Skip to content

Read a review once after the shared deadline, not report it unread - #1

Open
dboles99 wants to merge 6 commits into
mamane19:wait-for-reviewsfrom
dboles99:review/pr-165-read-after-deadline
Open

dboles99 wants to merge 6 commits into
mamane19:wait-for-reviewsfrom
dboles99:review/pr-165-read-after-deadline

Conversation

@dboles99

@dboles99 dboles99 commented Dec 6, 2026

Copy link
Copy Markdown

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 a TIMED_OUT outcome 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_OUT from the sync client and COMPLETED from 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_deadline fails 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.

mamane19 and others added 6 commits December 4, 2026 02:21
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.
Copilot AI balanced review requested due to automatic review settings December 6, 2026 00:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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.

3 participants