Skip to content

Wait for a commit's deploy verification from CI - #131

Open
USBAI wants to merge 1 commit into
prooflinedev:mainfrom
USBAI:elias/deploy-verification-gate
Open

USBAI wants to merge 1 commit into
prooflinedev:mainfrom
USBAI:elias/deploy-verification-gate

Conversation

@USBAI

@USBAI USBAI commented Nov 27, 2026

Copy link
Copy Markdown

Problem

get_commit_deploy_verifications returns one snapshot. To gate a release on Proofline's deploy checks, every CI user has to write their own polling loop and decide what counts as healthy across several deploys, gaps, supersessions and rollbacks. Getting that wrong can pass a deploy Proofline never checked.

Solution

wait_for_deploy_verification on both clients:

outcome = client.wait_for_deploy_verification(org_id, repo_id, sha, through="MINUTES_20")
if outcome.status != "HEALTHY":
    raise SystemExit(outcome.status)
  • Returns HEALTHY, REGRESSED, FAILED, INCOMPLETE or TIMED_OUT, with a verdict and reason codes per deploy.
  • Sleeps until the next check is due instead of polling: a MINUTES_20 wait makes about 5 reads instead of about 25. It still reads at least every 5 minutes so a failed deploy ends the wait early.
  • Ends at once on a regression.
  • Never HEALTHY for a commit with no recorded deploy, a rolled-back deploy, or a result the SDK doesn't know.

Tests

tests/test_deploys.py runs both clients against the loopback server (54 tests). ruff, mypy, generate.py --check, contracts.py and the full suite (272) pass.

Happy to add the same helper to the TypeScript SDK as a follow-up.

This branch has not been deployed

No deployments
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.

2 participants