Skip to content

Add post-deploy smoke tests to production and preview deploys - #177

Merged
anth-volk merged 1 commit into
mainfrom
ci/post-deploy-smoke-probe
Jul 3, 2026
Merged

Add post-deploy smoke tests to production and preview deploys#177
anth-volk merged 1 commit into
mainfrom
ci/post-deploy-smoke-probe

Conversation

@anth-volk

Copy link
Copy Markdown
Contributor

What

After every modal deploy (production deploy.yml, both preview deploy steps in pr-beta-deploy.yml), probe the deployed backend's /version endpoint: 12 attempts × 10s with a 15s request timeout, failing the workflow run on persistent non-200s.

Why

The #142 outage shipped through a fully green pipeline — tests correctly mock network seams, so a failure that only manifests against live infrastructure (the WIF token exchange hanging the request path) was structurally invisible to CI, and production served 500s until a human noticed. This probe turns that class of failure into a red workflow run within ~2 minutes of the deploy.

Independent of the GCL re-land: this is protection for every future deploy regardless of what it carries.

Verification

Both workflow files parse. The probe exercises the same URL contract the frontend uses (policyengine--<app>-web.modal.run); the preview steps reuse the existing steps.names.outputs.modal_url output.

🤖 Generated with Claude Code

The #142 outage deployed green and then hung every request: CI cannot
catch failures that only manifest against live infrastructure, so probe
the deployed backend's /version after each modal deploy and fail the
run on persistent non-200s (12 attempts x 10s, covering cold starts).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policyengine-uk-chat Ready Ready Preview, Comment Jul 3, 2026 11:22pm

Request Review

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Beta preview has been cleaned up because this PR was closed.

@anth-volk
anth-volk marked this pull request as ready for review July 3, 2026 23:31
@anth-volk
anth-volk merged commit 88106f0 into main Jul 3, 2026
6 of 7 checks passed
@anth-volk
anth-volk deleted the ci/post-deploy-smoke-probe branch July 3, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant