diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 3a3184620..fd14daccd 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -517,6 +517,8 @@ jobs: echo "Cloud Run candidate URL: ${url}" env: CLOUD_RUN_TAG: ${{ steps.cloud_run.outputs.revision_tag }} + - name: Wait for Cloud Run candidate health + run: bash .github/scripts/health_check.sh "${{ steps.cloud_run_url.outputs.url }}/readiness-check" - name: Install Cloud Run smoke test dependencies run: pip install pytest httpx - name: Run Cloud Run candidate smoke tests diff --git a/changelog.d/prod-candidate-health-wait.fixed.md b/changelog.d/prod-candidate-health-wait.fixed.md new file mode 100644 index 000000000..c22032878 --- /dev/null +++ b/changelog.d/prod-candidate-health-wait.fixed.md @@ -0,0 +1 @@ +Wait for the production Cloud Run candidate to pass its readiness check before running smoke tests, matching the staging job, so tests no longer race the app import that now happens after the port binds.