Repository navigation
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.
What
Adds
wait_for_reviews(organization_id, review_ids, *, timeout=300, head_commit_shas=None) -> dict[UUID, ReviewOutcome]to bothProoflineClientandAsyncProoflineClient, a README section under the wait docs, and tests intests/test_wait_reviews.py.Why
wait_for_reviewcovers one review. Batches that must not run past a cutoff, a release train or a nightly re-review sweep, currently make every caller roll its own deadline loop, and a caller that waits one review after another can blow past its cutoff because the later waits never see the time already spent.How
anyiotask group, so one slow review cannot delay the others past the deadline they all share.TIMED_OUTwithout a request.timeout=0reads each review once. A review named twice is waited on once.FAILEDoutcome for that review carrying the error's detail while the others keep going; a deadline error surfaces the same way it does inwait_for_review.timeoutand every entry ofhead_commit_shasare validated before any request is made.tests/test_wait_reviews.pycovers the shared deadline under both clients, per-review error capture, dedupe, and pre-request validation.tests/test_http.pyis untouched.Checks: full suite 241 passed. One note:
tests/test_generated_operation.py::test_new_public_operationfails on a pristine checkout too (it shells out to the generator), so it is unrelated to this change.