File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 9999 - name : Collect pod logs
100100 if : always()
101101 run : |
102+ mkdir -p /tmp/tmp.kfp /tmp/tmp.postgres
102103 ./.github/resources/scripts/collect-logs.sh --ns "$NAMESPACE" --output /tmp/tmp.kfp/pod_log.txt
103104 ./.github/resources/scripts/collect-logs.sh --ns "$POSTGRES_NAMESPACE" --output /tmp/tmp.postgres/pod_log.txt
104105
Original file line number Diff line number Diff line change @@ -59,29 +59,29 @@ jobs:
5959 forward_port : " true"
6060
6161 - name : Port-forward Postgres
62- id : forward-postgres-port
63- if : ${{ steps.deploy.outcome == 'success' }}
64- run : kubectl -n "$POSTGRES_NAMESPACE" port-forward svc/postgres-service ${{ env.DB_PORT }}:${{ env.DB_PORT }} --address=${{ env.DB_FORWARD_IP }} &
65- continue-on-error : true
62+ run : |
63+ kubectl -n "$POSTGRES_NAMESPACE" port-forward svc/postgres-service ${{ env.DB_PORT }}:${{ env.DB_PORT }} --address=${{ env.DB_FORWARD_IP }} &
64+ sleep 10
65+
66+ - name : Wait for API server readiness
67+ run : kubectl -n "$NAMESPACE" wait --for=condition=available deploy/ml-pipeline --timeout=300s
6668
6769 - name : Initialization tests v1
6870 id : initialization-tests
69- if : ${{ steps.forward-postgres-port.outcome == 'success' }}
7071 working-directory : ./backend/test/initialization
7172 run : go test -v ./... -namespace="$NAMESPACE" -args -runIntegrationTests=true
7273 continue-on-error : true
7374
7475 - name : API integration tests v1
7576 id : integration-tests
76- if : ${{ steps.forward-postgres-port.outcome == 'success' }}
7777 working-directory : ./backend/test/integration
7878 run : go test -v ./... -skip TestUpgrade -args -namespace="$NAMESPACE" -runIntegrationTests=true -runPostgreSQLTests=true
7979 env :
8080 DBCONFIG_POSTGRESQLCONFIG_HOST : ${{ env.DB_FORWARD_IP }}
8181 continue-on-error : true
8282
8383 - name : Collect failed logs
84- if : ${{ steps.forward-postgres-port.outcome != 'success' || steps. integration-tests.outcome != 'success' || steps.initialization-tests.outcome != 'success' }}
84+ if : ${{ steps.integration-tests.outcome != 'success' || steps.initialization-tests.outcome != 'success' }}
8585 run : |
8686 ./.github/resources/scripts/collect-logs.sh --ns "$NAMESPACE" --output /tmp/tmp_pod_log.txt
8787 exit 1
You can’t perform that action at this time.
0 commit comments