Repository navigation
Count Carried-Over Open Findings in pr_review.py's Shortfall Comparison - #2618
Conversation
A preamble finding total counts what is still open across rounds, so a later round that opened no thread of its own could state findings an earlier round raised, and the digest printed them as findings with no thread. Each open-section entry linking a thread an earlier round opened is now counted beside the round's own threads before the two are compared, and the block names how many it counted that way. Co-Authored-By: Claude Opus 5.5 <[email protected]>
One entry can link a thread beside its own, so counting carried links let a back-reference on a round's own finding cancel a real shortfall. An entry now stands for an earlier round's thread only where it links none this round opened. The exception list in the docstring and README now names the carried credit beside the count-first section. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keying by the smallest id made the dedupe depend on how ids sort, so a back-reference on a second entry could count one earlier thread twice. 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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2618 +/- ##
===========================================
+ Coverage 59.25% 59.30% +0.05%
===========================================
Files 16 16
Lines 8263 8274 +11
===========================================
+ Hits 4896 4907 +11
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.
🔵 Needs a closer look
The cross-round counting logic warrants human signoff, and two minor diagnostic and documentation issues remain.
2 open findings
What changed in this PR
This PR updates pr_review.py so its digest does not report carried-over open findings as missing threads when their entries link to threads from earlier rounds.
Changes:
- Count linked, carried-over threads alongside threads opened by the current round when checking for a shortfall.
- Add fixtures for carried findings, mixed rounds, and unlinked entries.
- Update the digest documentation.
| File | Description |
|---|---|
tests/test_pr_review.py |
Adds fixtures for the shortfall comparison. |
scripts/README.md |
Explains how carried-over findings affect the digest. |
scripts/pr_review.py |
Implements the count and updates its diagnostic and documentation. |
🧠 Review effort: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
An entry whose title names no thread fell through to a back-reference and counted as carried while unthreaded_entries also counted it, which could read the shortfall one low. The digest now says how many threads an earlier round opened, and round_threads no longer says a carried entry prints a standing shortfall. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The README and module docstring described the credit as any entry linking an earlier thread, and round_threads said the shortfall adds carried entries where the comparison counts them beside M. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
…w.py (#2619) ## Summary Promotes develop to main. - #2618: count an open entry standing for an earlier round's thread beside the threads a Copilot round opened, so `pr_review.py` no longer prints a standing `FINDINGS WITH NO THREAD` block for findings carried over from an earlier round. Fixes #2481 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Summary
pr_review.pycompared a Copilot round's preamble finding total against only the threads that round opened. A later round's total counts findings still open across rounds, and itsOpen (N)section links threads an earlier round opened. So the digest printed a standingFINDINGS WITH NO THREADblock about findings that already have threads.carried_open_threadscounts each open entry standing for a thread on this pull request that an earlier round opened, and the comparison counts it beside the round's own threads.Minoverview=T/Mstill reads the threads the round itself opened.read_overviewnow keeps each section's thread ids per entry for this.unthreaded_entries's to count, and a carried finding no entry links still reads as a shortfall.round_threads,read_overview, the module docstring, andscripts/README.mdnow say the above.Tests
Constructed fixtures cover:
Reverting each fix fails the case written for it.
Remaining Local Review Finding
The first push's local strict-review budget ran out with one
introducedfinding open, listed here for this pull request's review loop to dispose of.introduced:carried_open_threadskeyed an entry by the first link matching a known thread rather than by its title anchor, so an entry whose title named no thread could count as carried whileunthreaded_entriesalso counted it. Outcome: fixed in 5491dd4, with a test for that shape.Closes on promotion: #2481
🤖 Generated with Claude Code