Repository navigation
Conversation
Who: callers of wait_for_reviews waiting on more than one review. What: a review reached after the deadline gets one read (timeout=0) instead of a TIMED_OUT outcome that never asked the server. Where: wait_for_reviews in the sync and async clients, README, tests/test_wait_reviews.py. When: the sync client waits in order, so a slow first review spends the whole deadline before the others are reached. Why: a review that had already finished came back TIMED_OUT from the sync client and COMPLETED from the async one: one input, two answers. Trade-off: each late read can run the batch past the deadline by one request; the docstring and README now say so. How verified: the new test fails on the sync client before the change and passes after; pytest 244 passed; ruff, format and mypy clean.
mamane19
force-pushed
the
wait-for-reviews
branch
from
December 6, 2026 15:59
1132c1f to
04db001
Compare
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.
Suggested fix for prooflinedev#165, from my review there: prooflinedev#165 (comment)
What: a review reached after the shared deadline gets one read (
timeout=0) instead of aTIMED_OUToutcome that never asked the server.Why: the sync client waits in order, so a slow first review can spend the whole deadline. A second review that had already finished then came back
TIMED_OUTfrom the sync client andCOMPLETEDfrom the async one. Same input, two answers.Trade-off: each late read can run the batch past the deadline by one request. The docstring and README now say so. The other way round (keep the hard deadline, accept the wrong status) seemed worse for a CI gate that acts on the status.
How verified: the new test
test_wait_for_reviews_reports_a_finished_review_after_the_deadlinefails on the sync client before the change and passes after. The shared-deadline test now expects 3 requests on sync. pytest 244 passed; ruff check, ruff format --check and mypy clean.Merge it, cherry-pick it, or take the idea and close this. Whichever suits your branch.