Repository navigation
Conversation
…t Covering (#2543) ## Summary Copilot's file table, which `pr_review.py` reads as coverage when no coverage statement reaches the head, misread two shapes the Balanced review effort writes, so a fully reviewed pull request was sent to the maintainer. - A cell grouping several files, each in its own single-backtick code span with commas between them, is now read as one entry per span. Any other cell is read whole, as before. - A row that names no changed path and ends in a parenthesized note, as in `docs/a.md (cleanup)`, is read again without the note. Per decision #2522, such a row only stops being reported as naming a path the diff does not carry. It covers nothing, since nothing reads the note and it could say the file went unreviewed. So a file named only on a noted row is left out, and the table refuses. - A grouped cell ending in one or more notes, as in `` `docs/a.md`, `docs/b.md` (moved) ``, gives each span those notes, so each reads as a noted row. The note comes off before the spans are found, so a path quoted inside it is never read as one. `note_split` and `span_list` hold the note check and the span-list check once each. - The digest's "the reviewer names N rows" message now says "entries", since one split cell yields several. - `table_match` also returns the uncovered paths a noted row names, so the digest's `table_against_diff` counts such a file as named and no longer reads it as the one unread file. `scripts/README.md`, the `row_paths`, `table_match`, and `cell_paths` docstrings, and the tests change with the code. ## Verification - Current `develop` (53170c6) is merged in. Its new exit 50 reads a round stating no finding under a flagging verdict, so the split-cell tests' `written` helper now gives its rounds the clean verdict, as the sibling `balanced` helper already does (54a45bd). - Full unit suite: 2389 tests OK (6 skipped). ruff format and check, mypy, the prose gate, `repo_gate.py`, and `spec/validate.py` pass. - With `elif not noted` reverted to `else`, six subtests across three tests fail, so the tests pin the decision. Finding the spans in the whole cell rather than in the text before the note fails both new grouped-note tests, and loosening `note_split`'s whitespace and inner-parenthesis checks fails the read-whole test. - Copilot's second round raised the grouped-noted-cell reading (de954e6). A first attempt, aa804fb, counted spans quoted inside a note and is reverted in 8f97a76. The local passes since then raised a duplicated note check and two README wordings, fixed in 2a857d8 and 721406e. Copilot's third round raised a grouped cell carrying stacked notes, which the last local pass had also left open, and an ungrammatical docstring sentence, both fixed in e2d5cf2, which a local pass recorded with no findings. Closes on promotion: #2251 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Coverage tables now recognize comma-separated file paths and rows with trailing notes. Paths found only after removing a note are not counted as covered. * Coverage diagnostics distinguish noted paths from uncovered, invented, or ambiguous paths. A table establishes coverage only when no such issues remain. * Clarified how statements indicating no coverage are classified. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- 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 @@
## main #2611 +/- ##
==========================================
+ Coverage 59.09% 59.25% +0.15%
==========================================
Files 16 16
Lines 8231 8263 +32
==========================================
+ Hits 4864 4896 +32
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 parser controls a merge-coverage gate, so its changed acceptance behavior warrants final human validation.
0 open findings
What changed in this PR
This promotion updates pr_review.py so Copilot file tables can stand in for coverage when a cell lists several paths, while rows with trailing notes do not claim coverage on their own.
Changes:
- Split comma-separated backticked paths into separate table entries.
- Recognize trailing notes without treating noted rows as coverage, and update diagnostics, documentation, and tests.
| File | Description |
|---|---|
tests/test_pr_review.py |
Tests split cells, noted rows, and coverage diagnostics. |
scripts/README.md |
Documents the file-table reading rules. |
scripts/pr_review.py |
Updates table parsing and coverage diagnostics. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This headline is a caution rather than a finding: it names no defect. The changed acceptance behavior was validated on #2543. It fails closed throughout: a file named only on a row carrying a note never enters the covered set, so it can only turn a misreported refusal into a correctly reported one, never a refusal into a pass. Six local strict-review passes over the merged branch probed the cell shapes (grouped, noted, stacked notes, spans quoted in notes, parentheses inside paths, glob and gap spans) and found no false pass, the last at 0 findings. Mutating each new guard fails a test that pins it, and the full suite (2389 tests) passes. The maintainer's merge to main under the run's |
|
Correction to the comment above: this promotion is merged by the unattended run, under the |
Summary
Promotes develop to main.
Fixes #2251
🤖 Generated with Claude Code