Skip to content

Add post-deploy verification judgment, selector, and polling helpers - #121

Open
winnerdebest wants to merge 1 commit into
prooflinedev:mainfrom
winnerdebest:post-deploy-verification
Open

winnerdebest wants to merge 1 commit into
prooflinedev:mainfrom
winnerdebest:post-deploy-verification

Conversation

@winnerdebest

Copy link
Copy Markdown

Summary

Brings post-deploy verification judgment, deploy filtering, and polling parity with proofline ci deploy to proofline-sdk for teams driving post-deploy progression, canary checks, or automated rollback workflows from Python (such as Argo Rollouts hooks, AWS Lambda/Step Functions, Dagster/Prefect pipelines, or custom release controllers):

  • proofline/deploys.py:
    • DeploySelector, DeployReading, and DeployVerificationOutcome frozen dataclasses.
    • judge_deploy_verifications() evaluating CommitDeployVerifications through a target checkpoint (LANDING, MINUTES_20, HOUR_1, DAY_1) into NO_REGRESSION, REGRESSED, INCOMPLETE, or TIMED_OUT following the same rules and vocabulary as cli/src/deploy.rs.
  • proofline/client.py & proofline/__init__.py:
    • get_commit_deploy_verifications() with 40-character lowercase hexadecimal commit_sha validation before sending a request.
    • wait_for_deploy_verifications() on both ProoflineClient and AsyncProoflineClient with deadline-bounded exponential backoff (5s to 60s).
    • Top-level exports for CommitDeploy, CommitDeployVerifications, DeployCheckpoint, DeployReading, DeploySelector, DeployVerificationOutcome, and judge_deploy_verifications.
  • Documentation & Tests:
    • Documented deploy verification waiting, filtering, and single-read judgment in README.md.
    • Added synchronous and asynchronous HTTP tests in tests/test_http.py exercising all checkpoints, selector combinations, polling backoff, timeouts, pre-request validation, and malformed payload handling.
`). first staart with a review first
  1. please make this shorter and more understandable
  2. how are we testing it
  3. proceed to build please rememeber to keep everything clean and dont over engineer anything
  4. continue
  5. Ok i need to test this in another environment to verify so i dont just trust you judgment
  6. tested passed let push and also reply to the email with the pr
    -->

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.

1 participant