Skip to content

Stop pr_review.py wait --min-rounds Reading as a Count to Reach #2780

Closed

Description

@ptr727

Problem

pr_review.py wait --min-rounds N waits for a round past the Nth, so N is the rounds= count a status read before a re-request. The flag's name reads as "at least N rounds", and a caller reading it that way passes one above the count it saw. The wait then holds out for the round after the one the re-request was for and runs its whole --timeout.

The work answering #2741 documents the counting and names the baseline in the timeout's status=PENDING line. That makes the mistake visible after the timeout, and it does not prevent it.

Constructed example

A pull request reads rounds=3, all three on the head. The caller runs wait --request --min-rounds 4. The fourth round lands mid-wait at position 3, below the baseline, so the wait polls on to its timeout.

Options

  1. Have wait --request take the baseline from its own read when it issues the request, since it reads the reviewer's round count before requesting anyway. A caller then passes no count at all on that path.
  2. Rename the flag to say what it holds, for example --after-rounds N, keeping --min-rounds as a deprecated alias.
  3. Leave it as documented.

Done looks like

The chosen option is applied, with a test of the constructed example above.

Activity

  1. added
    enhancement
    pre-existing
    script
    on Oct 11, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpre-existingscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions