Repository navigation
Conversation
wait_for_review slept min(interval, remaining) between reads, so once the backed-off interval outgrew the time left, the last sleep ended at the deadline and the wait returned TIMED_OUT without reading again. With the default 300 s timeout the last read was at 255 s, so a review completing at 260 s was reported as timed out. Move a read the deadline would skip to 5 s before the deadline, unless that is under 5 s after the previous read. A wait that does not settle still ends at its deadline.
There was a problem hiding this comment.
Proofline has 1 new finding to review.
This change got a quick review of its diff. Review this change in more depth
|
|
||
| A name lookup still running at the deadline returns TIMED_OUT; it never | ||
| reports completion. | ||
| reports completion. A read that the deadline would skip moves to five |
There was a problem hiding this comment.
Warning · The polling docstring misstates when the last read moves
Client.wait_for_review in proofline/client.py describes moving reads the deadline would skip, but _poll_delay also advances reads inside the final five seconds and can leave a skipped read unmoved.
Callers can expect a final read even when too little time remains to schedule one.
Document both the five-second deadline window and the five-second minimum delay.
There was a problem hiding this comment.
Agreed. The docstring only covered reads the deadline would skip. _poll_delay also moves a read that would land in the last five seconds, and leaves a read in place when moving it would come under five seconds after the previous one. Fixed in d27ec52 to match the README, which already described both cases. Behaviour is unchanged.
…stays The wait_for_review docstring said only reads the deadline would skip move to five seconds before it. _poll_delay also moves a read that would land in the last five seconds, and leaves a read in place when moving it would come under five seconds after the previous one. Match the README wording.
Finding commandsProofline recorded 1 finding command on this pull request.
Affected findings |
Mirror of prooflinedev#155, opened inside my fork so the Proofline GitHub App installed on this account can review it.
Same branch (
fix/wait-final-read-before-deadline), same commit. The description, design notes and tests are on the upstream PR. Any fix made after the review is pushed to this branch, so both PRs update together.