Repository navigation
Add deploy verification outcome evaluator and deadline-aware waiter - #142
Open
srikhyathi wants to merge 1 commit into
Open
srikhyathi wants to merge 1 commit into
srikhyathi wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ProoflineClientandAsyncProoflineClientalready providewait_for_reviewandproofline/outcomes.pyfor evidence-strict review evaluation, whileget_commit_deploy_verificationsonly exposed a raw generated endpoint wrapper with no client-side SHA validation, evidence evaluation, checkpoint gating, or deadline-aware polling.This PR adds:
proofline/deploy_outcomes.py(evaluate_deploy_verifications,DeployVerificationOutcome,DeployEvaluation,DeployCheckpointGap,DeployOutcomeStatus):CommitDeployVerificationsstructure (urn:proofline:sdk:invalid-responseon malformed responses) and treats unknown futurestatevalues asINCOMPLETE.LANDING,MINUTES_20,HOUR_1,DAY_1) and aggregates across matching deploys by severity so regressions (REGRESSED), rollbacks (ROLLED_BACK),FAILEDdeploys, or recorded gaps are never masked asVERIFIED.until_checkpoint(returningCHECKPOINT_VERIFIEDwhen checks through the requested window recordHEALTHYwith no gaps) andfail_fast(short-circuiting onREGRESSED,ROLLED_BACK, orFAILEDacross multi-environment deploys).ProoflineClient.wait_for_commit_deploy_verificationsandAsyncProoflineClient.wait_for_commit_deploy_verificationswith pre-request 40-character lowercase SHA, timeout, and checkpoint validation, environment/task filtering, and_transport.DEADLINE-bounded exponential backoff (5sto60s), preserving the last observed snapshot onTIMED_OUT.scripts/contracts.py,scripts/install_smoke.pycoverage,README.mddocumentation, and unit/HTTP tests intests/test_deploy_outcomes.py.Verification
All checks were run locally on Python 3.13 after the final edit:
scripts/generate.py --check(passed)scripts/contracts.py(Python operation and outcome-vocabulary contracts passed.)ruff check .(All checks passed!) andruff format --check .(242 files already formatted)mypy proofline scripts(Success: no issues found in 233 source files)pytest -q(243 passed in 38.82s)proofline_sdk-10.3.0.tar.gzandproofline_sdk-10.3.0-py3-none-any.whland ranscripts/install_smoke.pyin isolated environments (Installed Python SDK sync/async HTTP smoke passed.for both)