Skip to content

Carry a File Table Past the Compare Endpoint's 300-File Ceiling #2767

Closed

Description

@ptr727

Problem

scripts/pr_review.py status reads a carried file table (coverage=carried:table) only where carry_holds finds the pull request changing the same set of files at both commits. That set comes from changed_at, a REST compare, which returns None once the list reaches COMPARE_FILE_CAP (300), since the compare endpoint caps its file list there without flagging it.

So on a pull request changing between 300 and 3000 files, a round covering the head that carries no table of its own can never be answered by an earlier round's table. status exits 45 with "the change set could not be read at both commits", and the UNSTATED message tells the reader to run status again, for a cause no re-read clears.

Found by a local review pass on the change for #2758, which pages the head's own changed-file list to GitHub's 3000-file ceiling but leaves the compare read as it was.

Constructed case

A promotion carrying 400 changed files. Its first Copilot round carries a full file table, and a later round on a new head re-reviews a one-line delta with no table. Both compares return 300 files and changed_at returns None for each, so the carry is refused and status exits 45 on a change set that did not move.

Expected

Either read the change set at each commit in a way that reaches past 300 files, or say in the digest that the compare endpoint's ceiling refused the carry, so the remedy is not a re-run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions