Skip to content

Mirror of prooflinedev/sdk-python#155 for a Proofline review - #1

Open
Ryzuuuu wants to merge 2 commits into
mainfrom
fix/wait-final-read-before-deadline
Open

Ryzuuuu wants to merge 2 commits into
mainfrom
fix/wait-final-read-before-deadline

Conversation

@Ryzuuuu

@Ryzuuuu Ryzuuuu commented Dec 3, 2026

Copy link
Copy Markdown
Owner

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.

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.

@prooflinedev prooflinedev Bot 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.

Proofline has 1 new finding to review.

View full review in Proofline

This change got a quick review of its diff. Review this change in more depth

Comment thread proofline/client.py Outdated

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

View finding in Proofline

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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.
@prooflinedev

prooflinedev Bot commented Dec 3, 2026

Copy link
Copy Markdown

Finding commands

Proofline recorded 1 finding command on this pull request.

  • Marked fixed: 1

Affected findings

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.

1 participant