Skip to content

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

Merged
ptr727 merged 8 commits into
developfrom
feature/auto-2758
Oct 11, 2026
Merged

ptr727 merged 8 commits into
developfrom
feature/auto-2758

Conversation

@ptr727

@ptr727 ptr727 commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

scripts/pr_review.py status read at most 100 changed files, so a pull request changing more, a develop -> main promotion above all, exited 45 however complete its Copilot round's file table was. The full read now follows the files connection's cursor up to GitHub's documented 3000-file ceiling, so the round's own table is compared against the whole change set.

  • follow() is one cursor walk, shared by the new page_files() and the existing unresolved_threads().
  • Paging runs in full_read, on the payload it is handed and on each re-read, so the digest and exit code always read a paged list while wait's decision-only Q_FULL reads spend no page. digest's own fallback read goes through full_read too.
  • A list reaching 3000 files stays marked cut short and is compared against nothing, as a list past the old 100-file window was.
  • A page read at a different head leaves the list unread under FILES_UNREAD. files_shortfall reports it, so full_read takes the read again on its existing schedule rather than exiting 45 on a transient cause. A page that fails to read ends the run like any other failed read.
  • The digest, table_against_diff, the UNSTATED message, and scripts/README.md now name the ceiling or the moved head rather than a 100-file window.

Tests construct a 160-file pull request read across two pages and reach a coverage verdict (exit 0). Other cases cover a push between pages and the ceiling, each exiting 45 with its own reason, a moved head being read again, full_read paging a payload it was handed (the wait path), and a bare gql(Q_FULL) read not paging. Each was shown to fail with the code it covers reverted.

Closes on promotion: #2758

Local review findings

Every introduced finding the local passes raised is fixed on this branch. The last pass, over the current head, raised none.

Declined with evidence: capping the read at the reviewer's 300-file limit rather than 3000. #2758's expected outcome names the REST ceiling of 3000, and the reviewer's limit is not a contract this script controls.

Filed along the way: #2767, a carried table is still bounded by the REST compare endpoint's 300-file cap in changed_at.

🤖 Generated with Claude Code

ptr727 and others added 3 commits October 10, 2026 21:28
status read at most 100 changed files, so a pull request changing more
than that, a develop -> main promotion above all, exited 45 however
complete its round's file table was. The full read now follows the files
connection's cursor to GitHub's 3000-file ceiling, and a list it could not
read whole stays cut short and is compared against nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A push between pages or a page that failed to read now leaves the list
unread rather than cut short, so files_shortfall names it and full_read
takes the read again, where before it was reported as GitHub's ceiling.
The cursor walk is shared with unresolved_threads, the per-page shape
guards are gone, and the messages that still described a 100-file window
now name the ceiling instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
changed_paths and two test names still described a 100-path window the
list is now paged past.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 11, 2026 04:44
@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: adfe08f7-7a66-45de-aa37-d207fd5e809d

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.65217% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@ab0ac31). Learn more about missing BASE report.

Files with missing lines Patch % Lines
scripts/pr_review.py 95.65% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #2768   +/-   ##
==========================================
  Coverage           ?   60.08%           
==========================================
  Files              ?       16           
  Lines              ?     8426           
  Branches           ?        0           
==========================================
  Hits               ?     5063           
  Misses             ?     3363           
  Partials           ?        0           
Flag Coverage Δ
python-3.13 60.08% <95.65%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Two unresolved review comments in scripts/pr_review.py should be addressed before approval.

2 open findings
What changed in this PR

This PR adds paginated changed-file coverage up to GitHub’s 3,000-file ceiling.

Changes:

  • Adds cursor-based file and review-thread pagination.
  • Handles failed pages, moved heads, and ceiling truncation.
  • Expands tests and documentation.
File Summary
tests/​test_pr_review.py Tests paging, retries, failures, and ceilings.
scripts/​README.md Documents the updated coverage behavior and limits.
scripts/​pr_review.py Implements pagination and unread-list handling.

🧠 Review effort: Lite


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/pr_review.py Resolved
Comment thread scripts/pr_review.py Resolved
ptr727 and others added 3 commits October 10, 2026 21:51
Paging moved from every Q_FULL read into full_read, so a wait read that
never looks at the list spends no page on it, and the changed_paths
docstring now says its flag is also true for a list left unread.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
digest's own fallback read now goes through full_read, and a case covers
the path wait takes, handing full_read a payload it already read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A failed page already exits loudly through gh_graphql, as the full read's
own re-read does, so catching it to mark the list unread guarded a
failure that was never silent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 11, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head d935a58ef77e028773809c421b955309e5ee34c0, the content this pull request carries at that commit against develop, and it recorded 1 finding.

ptr727 and others added 2 commits October 10, 2026 22:10
The docstring's "either way" took in a failed page read, which ends the
run rather than comparing anything.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 11, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 9dfe5dfde958524e926e49e65241b10527448b3e, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727
ptr727 merged commit 320c2e9 into develop Oct 11, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/auto-2758 branch October 11, 2026 05:23
ptr727 added a commit that referenced this pull request Oct 11, 2026
…ilure Reporting Fixes to Main (#2816)

## Summary

Promotes these pull requests from develop to main:

- #2832 Require Every CLI Script to Answer Help and Refuse Unknown
Arguments
- #2833 Exempt nopep8 as a Leading Directive in the Prose Gate
- #2815 Bind the Workspace-Edit Rule Only to an Agent Running Inside VS
Code
- #2813 Record HomeAssistant-Config's Incidental Python as a driftNote
- #2827 Read nopep8 in Any Letter Case in the Prose Gate
- #2825 Spend a Head Refusal a Later Genuine Round on That Head Answers
- #2819 Read noqa and CSpell Directives in Any Letter Case
- #2814 Judge the Prose in Front of a Trailing noqa or pylint Directive
- #2811 Name Why a Windows Tool Install Failed and Print Docker's Status
in UTF-8
- #2808 Read a Tool Name as a Prose Gate Directive Only Where It Opens
the Comment
- #2802 Name a File the Prose Gate Cannot Decode in Its Scope Line
- #2800 Read a First-Line Comment After a Byte Order Mark as Leading in
Every Language
- #2797 Name a Python File the Prose Gate Cannot Parse in Its Scope Line
- #2794 Let the Unattended Orchestrator Retry a Transient Dispatch
Failure
- #2792 Close the Remaining Blocked-Promotion Gaps in the Unattended
Worker
- #2790 Read a Carried Change Set Past the Compare Endpoint's 300-File
Ceiling
- #2784 Let a Round on the Head Outrank pr_review.py wait's Repo-Wide
Quota Reading
- #2782 Say What pr_review.py wait --min-rounds Counts and Name It at
the Timeout
- #2778 Share the Bounded Step Reader Across the Test Harnesses
- #2776 Pin the Prose Gate's Override Wiring by Structure
- #2773 Exempt a List Item's Label Separator from the Dash Rule for
Every Marker and Bold Spelling
- #2771 Strip a List Item's Opening Label for Every Marker and Bold
Spelling in the Prose Gate
- #2768 Page pr_review.py's Changed-File List Past 100 So a Large
Promotion Can State Coverage
- #2765 Let an Attested Local Pass Cover a Head Beside a Table-Less
Copilot Round

Closes #2285
Closes #2820
Closes #2818
Closes #2809
Closes #2807
Closes #1659
Closes #2796
Closes #2798
Closes #2163
Closes #1984
Closes #2614
Closes #2767
Closes #2781
Closes #2741
Closes #2775
Closes #1665
Closes #2770
Closes #2738
Closes #2758
Closes #2739

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.

2 participants