Repository navigation
Page pr_review.py's Changed-File List Past 100 So a Large Promotion Can State Coverage - #2768
Conversation
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]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2768 +/- ##
==========================================
Coverage ? 60.08%
==========================================
Files ? 16
Lines ? 8426
Branches ? 0
==========================================
Hits ? 5063
Misses ? 3363
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 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.
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]>
|
A recorded local strict-review pass covers head |
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
…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)


Summary
scripts/pr_review.py statusread 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 thefilesconnection'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 newpage_files()and the existingunresolved_threads().full_read, on the payload it is handed and on each re-read, so the digest and exit code always read a paged list whilewait's decision-onlyQ_FULLreads spend no page.digest's own fallback read goes throughfull_readtoo.FILES_UNREAD.files_shortfallreports it, sofull_readtakes 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.table_against_diff, the UNSTATED message, andscripts/README.mdnow 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_readpaging a payload it was handed (thewaitpath), and a baregql(Q_FULL)read not paging. Each was shown to fail with the code it covers reverted.Closes on promotion: #2758
Local review findings
Every
introducedfinding 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