Skip to content

Promote develop to main: Count Linked Entries Against the Open-Findings Total in pr_review.py - #2623

Merged
ptr727 merged 1 commit into
mainfrom
develop
Oct 9, 2026
Merged

ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Summary

Promotes develop to main, carrying one change:

Fixes #2569

🤖 Generated with Claude Code

…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]>
Copilot AI lite review requested due to automatic review settings October 9, 2026 05:28
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 94797e21-8ec0-442a-8c9d-3603e0005a65
📥 Commits

Reviewing files that changed from the base of the PR and between 46dddb3 and 52e85b3.

📒 Files selected for processing (3)
  • scripts/README.md
  • scripts/pr_review.py
  • tests/test_pr_review.py
  • 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.

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.

🟢 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

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.33%. Comparing base (9099131) to head (52e85b3).
⚠️ Report is 341 commits behind head on main.

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              
Flag Coverage Δ
python-3.13 59.33% <100.00%> (+0.02%) ⬆️

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.

@ptr727

ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727
ptr727 merged commit d6f7cdc into main Oct 9, 2026
14 checks passed
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.

pr_review.py Lets an Extra Link Cancel an Unlinked Entry in the Open-Findings Section

2 participants