Skip to content

Skip File-Table Rows When Reading Partial Coverage Markers - #2891

Merged
ptr727 merged 5 commits into
developfrom
feature/2886-file-table-marker
Oct 12, 2026
Merged

ptr727 merged 5 commits into
developfrom
feature/2886-file-table-marker

Conversation

@ptr727

@ptr727 ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Fixes #2886.

partial_shaped now drops file-summary table rows (first cell a backticked path, no HTML comment opener on the line) before scanning a Copilot round for drifted fleet-review markers, so a summary cell that names the review skill no longer reads as partial coverage.

Tests: a body built from the issue's constructed shape (odd and even table parity), plus guards that a plain-cell row, a non-path code-span row, and a row carrying a marker comment still read as partial. The first assertion fails with the strip reverted.

Local review findings left undisposed by design (narrow scope, listed for the orchestrator):

  • introduced, declined: a marker written entity-encoded on the same line as a path row is stripped with the row.
  • introduced, declined: a row quoting the comment opener in prose is kept, so it can still block.
  • Known: grouped-path rows and bare-path rows are not stripped.

🤖 Generated with Claude Code

A file-summary cell naming the fleet review skill supplied the marker name, and any digit after it read as a drifted marker.
The first pattern shadowed an existing one; the replacement drops only rows opening with a code-span path.
Copilot AI lite review requested due to automatic review settings October 12, 2026 17:41
@coderabbitai

coderabbitai Bot commented Oct 12, 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: 1d4c8e64-7d74-4383-a613-296ab0823d0a

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

🟡 Changes recommended

The row filter is not limited to actual file-summary tables, and the docstring formatting needs adjustment.

2 open findings
What changed in this PR

This PR prevents file-summary rows from causing false partial-coverage detection and adds regression coverage.

Changes:

  • Filters path-based rows before marker scanning.
  • Adds parity and marker-preservation tests.
  • Review found a moderate scope issue and a docstring formatting nit.
File Description
tests/​test_pr_review.py Adds coverage for filtering and marker edge cases.
scripts/​pr_review.py Adds file-row filtering before coverage analysis.

🧠 Review effort: Lite


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/pr_review.py Resolved
Comment thread scripts/pr_review.py Resolved
@codecov

codecov Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.63%. Comparing base (088afab) to head (bd8e3bc).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2891   +/-   ##
========================================
  Coverage    59.62%   59.63%           
========================================
  Files           16       16           
  Lines         8682     8683    +1     
========================================
+ Hits          5177     5178    +1     
  Misses        3505     3505           
Flag Coverage Δ
python-3.13 59.63% <100.00%> (+<0.01%) ⬆️

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 12, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head bd8e3bcdb76f4882cee75f4cd098d84a7db1b15b, the content this pull request carries at that commit against develop, and it recorded 2 findings.

@ptr727
ptr727 merged commit 1d906ad into develop Oct 12, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/2886-file-table-marker branch October 12, 2026 18:19
ptr727 added a commit that referenced this pull request Oct 12, 2026
…ge Rows, and Directive Comment Wrap to Main (#2894)

- #2890 documents the dispatch guard for a schedule that never
publishes, in D4.1 and the catalog snippet notes
- #2891 skips file-table rows when reading partial coverage markers
- #2893 treats a tool directive line as no previous sentence in the
comment-wrap rule

Closes #2849
Closes #2886
Closes #2885

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.

2 participants