Skip to content

Promote develop to main: Read Split and Noted Copilot File-Table Cells - #2611

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.

Fixes #2251

🤖 Generated with Claude Code

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

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7efdeef4-5780-4aba-a74b-4a433d799bc1
  • Autopilot · 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.

@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.25%. Comparing base (53170c6) to head (38f2c91).
⚠️ Report is 338 commits behind head on main.

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

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.

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.

🔵 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.

@ptr727

ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

The parser controls a merge-coverage gate, so its changed acceptance behavior warrants final human validation.

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 main scope is the human checkpoint this promotion is driven to.

@ptr727

ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

Correction to the comment above: this promotion is merged by the unattended run, under the main scope the maintainer named when invoking it, not by the maintainer at merge time. The human checkpoint is that standing grant, and the maintainer's later review of the merged change.

@ptr727
ptr727 merged commit 915182a 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 Reads a Copilot File-Table Cell Naming Two Paths as One, Exiting 45 on Full Coverage

2 participants