Repository navigation
Require a checked environment in wait_for_review - #74
Open
milos-plavsic wants to merge 1 commit into
Open
milos-plavsic wants to merge 1 commit into
milos-plavsic 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.
Require a checked environment in
wait_for_reviewA release job can wait for the right commit and still get a completed review that covers only staging. Both Python clients now accept
required_environment_keyonwait_for_review, so a job deploying to production can require the review to have checked production. How Proofline checks a changeThe regression test uses one completed review for the requested head. Staging is
CHECKED. Production isNOT_APPLICABLEbecause pull-request reviews are disabled on its repository link.COMPLETEDstagingCOMPLETEDproductionINCOMPLETECallers can already pin a wait to the revision they intend to ship with
head_commit_sha. The new keyword checks the deployment target on that same review response. Callers identify the target by its external key because display names are not unique. Exactly one entry must match that key and reportCHECKED; duplicate keys are ambiguous rather than an opportunity to select a favorable result. Commit-pinned waits in PR #49Missing, duplicate, and unchecked targets produce distinct gap codes. The SDK uses fixed diagnostic text and retains the server's reason on the environment entry. The feature uses the existing API operation and permissions, with no extra request, dependency, public type, or generated-code change.
Verification
The implementation and tests passed the full Linux gate on Python 3.11.18, 3.13.12 (the CI pin), and 3.14.6 at upstream
9413015. Each run passed generation, contracts, Ruff lint and format, mypy, 230 tests, and 8 subtests. Each built the 7.1.0 wheel and source distribution and exercised sync and async clients from both installations. The HTTP tests used a local server and made no calls to the Proofline production API.Across both clients, the tests preserve the existing request shape and cover omission and an explicit
None, exact key identity, every fixed diagnostic, conflicting duplicate keys, unresolved assessment evidence, a running checked response followed by a completed response without the target, and a deadline expiring immediately after another review is decoded. Installed wheel and source-package smoke tests requireproductionand preserve the existingWORLD_UNAVAILABLEgap alongsideREQUIRED_ENVIRONMENT_UNAVAILABLE.