Skip to content

Assert the Lite Table-Carry Test's Own Premise - #2593

Merged
ptr727 merged 1 commit into
developfrom
feature/auto-2282-assert
Oct 8, 2026
Merged

ptr727 merged 1 commit into
developfrom
feature/auto-2282-assert

Conversation

@ptr727

@ptr727 ptr727 commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Summary

Answers the headline Copilot raised on the promotion pull request #2591, "Strengthen the Lite table-carry test assertions before approval", which named format, effort, and zero findings.

The test added in #2586 claimed both rounds were in the second overview format, the later one at Lite effort with no findings and no table, but asserted only the carry, so it still passed with the format reader disabled. It now asserts that:

  • both bodies read as second format
  • the first body's table names both changed files and the Lite body carries none
  • the digest reads effort=lite and overview=0/0

Patching second_format to return False now fails the test.

Verification

  • python3 -m unittest tests.test_pr_review passes.
  • Ruff format, Ruff check, and mypy pass through the pre-commit hook.

Closes on promotion: #2282

🤖 Generated with Claude Code

The test claimed both rounds were second format, the later one at Lite
effort with no findings and no table, but asserted only the carry. It
still passed with the format reader disabled. It now asserts both bodies
read as second format, the first table names both files and the later
body carries none, and the digest reads effort=lite and overview=0/0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 8, 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: 7d750aa8-6009-4206-b274-4a7a54b67365
  • 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.

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

The added assertions cover the test's stated scenario, and no unresolved issues were identified.

0 open findings

What changed in this PR

This PR strengthens the Lite table-carry regression test for pr_review.py by checking the scenario’s premises as well as its result.

Changes:

  • Assert both review bodies use the second format, with the expected file tables.
  • Assert the digest reports Lite effort and zero findings.
File Description
tests/​test_pr_review.py Adds premise and digest assertions to the existing regression test.

🧠 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 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.85%. Comparing base (05c92d3) to head (8415991).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2593   +/-   ##
========================================
  Coverage    58.85%   58.85%           
========================================
  Files           16       16           
  Lines         8181     8181           
========================================
  Hits          4815     4815           
  Misses        3366     3366           
Flag Coverage Δ
python-3.13 58.85% <ø> (ø)

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 merged commit a7ddc97 into develop Oct 8, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/auto-2282-assert branch October 8, 2026 22:00
ptr727 added a commit that referenced this pull request Oct 8, 2026
…, Table Carry Test (#2591)

## Summary

Promotes develop to main, carrying:

- #2588 Put the Managed Bin Directory on install-tools.sh's Own PATH
When the Caller Omits It
- #2589 Run bootstrap.sh's Whole Main Flow Against a Stub Download and
Stub Tools
- #2586 Pin the Table Carry Onto a Second-Format Lite Round That Finds
Nothing
- #2593 Assert the Lite Table-Carry Test's Own Premise

Fixes #2257
Fixes #1767
Fixes #2282

🤖 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