Repository navigation
Count Linked Entries, Not Links, Against the Open-Findings Total in pr_review.py - #2622
Conversation
…r_review.py Where a round's count-first open-findings section supplies the stated total, the FINDINGS WITH NO THREAD shortfall is now measured against the entries that section lists with a link rather than the distinct thread ids those entries link, so a back-reference beside an entry's own link no longer cancels an entry the section lists with no link. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The inline shape is the one counting links let through, while the indented shape was already read as no entry's link, so the docstring now says the second subtest guards the reader rather than the fix. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe digest now measures findings without threads in count-first open-findings sections using the number of linked entries. Documentation and tests reflect this count, including entries with back-references to earlier threads. ChangesOpen Findings Thread Counts
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change addresses the reported shortfall-counting behavior, with tests for both back-reference forms. No material merge risk is identified in the supplied context. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2622 +/- ##
===========================================
+ Coverage 59.30% 59.33% +0.02%
===========================================
Files 16 16
Lines 8274 8280 +6
===========================================
+ Hits 4907 4913 +6
Misses 3367 3367
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.
🟢 Approval recommended
No blocking issues were identified; only a minor prose-style nit remains.
0 open findings
What changed in this PR
Updates pr_review.py to count linked entries rather than distinct links when calculating open-finding shortfalls.
Changes:
- Adds entry-based accounting and regression coverage.
- Updates output wording and documentation.
- Includes a minor prose-style nit in the new test docstring.
| File | Description |
|---|---|
tests/test_pr_review.py |
Covers inline and indented back-reference shapes. |
scripts/README.md |
Documents entry-based counting. |
scripts/pr_review.py |
Counts linked entries for shortfall calculation. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Answering the Copilot round on f7ff3ce, whose headline says "only a minor prose-style nit remains" in the new test docstring while the round counts 0 open findings and opens no thread. Declined as a style preference, since the round does not say what the nit is and nothing on the head contradicts a repository rule:
The digest passing a clean-verdict round whose headline names a finding is already tracked as #2567. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
…gs Total in pr_review.py (#2623) ## Summary Promotes develop to main, carrying one change: - #2622 counts the entries a count-first open-findings section lists with a link, rather than the thread ids those entries link, when `pr_review.py` measures the `FINDINGS WITH NO THREAD` shortfall, so a back-reference on one entry no longer cancels an unlinked entry. Fixes #2569 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
Where a round's count-first
(N) open findingssection supplies the stated total,pr_review.py's digest measured theFINDINGS WITH NO THREADshortfall as that total minus the distinct thread ids the open sections link. An extra back-reference on one entry therefore cancelled an entry the section lists with no link, and the block did not print.read_overview's per-section linked-entry count through a newtotal_section_entrieshelper, rather than the distinct ids those entries link.Open (N)section's linked entries no longer cancel a shortfall in it. That section's unlinked entries are still counted throughunlinked_open_entries.scripts/README.mdparagraph onread_overviewnow say entries are counted rather than links.The local strict review also found that
unthreaded_entriesstill reads every link of an entry, which can overstate the block for a back-reference to an unread thread. That predates this change and is filed as #2621.Closes on promotion: #2569
🤖 Generated with Claude Code
Summary by CodeRabbit