Repository navigation
Conversation
…r_review.py (#2622) ## Summary Where a round's count-first `(N) open findings` section supplies the stated total, `pr_review.py`'s digest measured the `FINDINGS WITH NO THREAD` shortfall 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. - The comparison now subtracts the entries the count-first section lists with a link, read from `read_overview`'s per-section linked-entry count through a new `total_section_entries` helper, rather than the distinct ids those entries link. - It counts that section only, since its count is the total, so an `Open (N)` section's linked entries no longer cancel a shortfall in it. That section's unlinked entries are still counted through `unlinked_open_entries`. - The block's wording reads "its open section listing N with a link" to match. - The module docstring and the `scripts/README.md` paragraph on `read_overview` now say entries are counted rather than links. - A test feeds both constructed shapes from the issue, the back-reference inline on an entry and on its own indented line under one. Reverting the fix fails the inline shape. The indented shape was already read as no entry's link, and the test keeps it so a reader change cannot let it through. The local strict review also found that `unthreaded_entries` still 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](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Corrected the unthreaded-finding count for open review sections: entries with recognized thread links are counted, even when multiple entries link to the same thread or an earlier review thread. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 46 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (3)
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 |
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved issues were identified.
0 open findings
What changed in this PR
Updates pr_review.py to count linked entries rather than distinct thread links when calculating open-finding shortfalls.
Changes:
- Adds entry-based counting and regression tests.
- Updates diagnostic wording and documentation.
| File | Description |
|---|---|
tests/test_pr_review.py |
Adds back-reference regression tests. |
scripts/README.md |
Documents entry-based counting. |
scripts/pr_review.py |
Corrects open-finding 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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2623 +/- ##
==========================================
+ 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:
|
|
@coderabbitai review |
|
Summary
Promotes develop to main, carrying one change:
pr_review.pymeasures theFINDINGS WITH NO THREADshortfall, so a back-reference on one entry no longer cancels an unlinked entry.Fixes #2569
🤖 Generated with Claude Code