Skip to content

Make the Narrowed-Scan Diff-Floor Test Independent of the Working Directory - #2860

Merged
ptr727 merged 1 commit into
developfrom
feature/test-2830
Oct 11, 2026
Merged

ptr727 merged 1 commit into
developfrom
feature/test-2830

Conversation

@ptr727

@ptr727 ptr727 commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Summary

TestDiffScopeFloor.test_a_deliberately_narrowed_scan_is_not_told_the_narrowing_is_a_defect narrowed the scan with the bare path catalog, which prose_lint.main resolves against the working directory. It passed only from the hub root, where a tracked catalog/ exists. The test now creates self.tmp / "catalog" and passes its absolute path, so it resolves against the mocked root.

Every other main call in the class passes . or no path, so no sibling needed the same fix.

Verification

  • Before: cd tests && python3 -m unittest test_prose_lint.TestDiffScopeFloor failed with 0 != 2.
  • After: 10/10 pass from the worktree root, from tests/, from scripts/, and from a scratch directory.
  • Full python3 -m unittest discover -s tests: 2626 tests OK.

Fixes #2830

🤖 Generated with Claude Code

…ectory

The test narrowed the scan with a bare relative path that existed only in
the hub root, so a run from any other directory failed. It now creates the
directory under its temporary root and passes the absolute path.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 11, 2026 23:34
@coderabbitai

coderabbitai Bot commented Oct 11, 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: f7ca988f-afdc-4d73-8316-151a0e55cc33

  • 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

The change is focused, fully reviewed, and has no unresolved issues.

0 open findings

What changed in this PR

This PR makes the narrowed-scan regression test independent of the working directory.

Changes:

  • Creates a temporary catalog directory.
  • Passes its absolute path to prose_lint.main.
File Description
tests/​test_prose_lint.py Makes the diff-floor test self-contained and working-directory independent.

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

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.49%. Comparing base (ebff68d) to head (3c32c67).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2860   +/-   ##
========================================
  Coverage    60.49%   60.49%           
========================================
  Files           16       16           
  Lines         8534     8534           
========================================
  Hits          5163     5163           
  Misses        3371     3371           
Flag Coverage Δ
python-3.13 60.49% <ø> (ø)

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

Copy link
Copy Markdown
Owner Author

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

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

🧠 Review effort: Lite

@ptr727
ptr727 merged commit 9f60eb8 into develop Oct 11, 2026
15 checks passed
@ptr727
ptr727 deleted the feature/test-2830 branch October 11, 2026 23:44
ptr727 added a commit that referenced this pull request Oct 12, 2026
…urrency Audit to Main (#2866)

## Summary

Promotes [#2857](#2857),
[#2860](#2860),
[#2858](#2858),
[#2859](#2859), and
[#2863](#2863) to main.

- Over-cap config comments are split and the scenario table gains S14.
- The narrowed-scan diff-floor test no longer depends on the working
directory.
- The EditorConfig lint task image comes from the registry CI uses.
- The audit flags a publisher or merge-bot concurrency group that drifts
from WORKFLOW.md.
- `prose_lint.py`'s opt-in `sentence-length` check reads the remaining
layouts it misread.

Closes #2845
Closes #2830
Closes #2844
Closes #2856
Closes #2843

🤖 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