Skip to content

Page pr_review.py's Changed-File List Past 100 So a Large Promotion Can State Coverage #2758

Closed

Description

@ptr727

Problem

scripts/pr_review.py status reads at most 100 changed files, so a pull request changing more than that can never state coverage. A completed, clean Copilot round in the lite overview format with a full file table still exits 45 COVERAGE_IS_UNSTATED, with the note "NO FILE TABLE STANDS IN: the pull request changes more than the 100 files this reads, so the table cannot be compared against all of them until a push brings the pull request back within that window".

A develop -> main promotion is where this lands, since its head is develop and no push can shrink it. The table is never compared at all, so the exit says nothing about whether the round covered the diff.

Constructed case

A promotion carrying 160 changed files (a directory move plus its references), one Copilot round on the head with every thread resolved, checks green, merge state CLEAN: status exits 45 however complete the round's file table is.

Expected

Page the changed-file list past 100, as the REST pulls/{n}/files endpoint allows up to 3000, so the table is compared against the whole change set.

Seen on ptr727/HomeAutomation-Config#934.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions