Repository navigation
test(xtask): cover no-package combined preparation, document positionals - #8409
Conversation
…ionals Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J3KUnhhKPXLyZHb2mHiFbC
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
In-session proof: Generated by Claude Code |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 24 minutes. View limit details
Comment |
|
The red "Ripr Rust Small / Rust gates" and "Ripr Rust Small Result" checks reported here are not from this PR's head. They come from run 39009103330, which ran on the merged #8397's old head (306cd52) before this branch name was reused. That run failed Generated by Claude Code |
There was a problem hiding this comment.
Refuted
- Non-mergeable --bin/--test-only selectors need a dedicated helper rather than reusing the existing mergeability arm; refuted because: Existing None arm already sets mergeable=false for any non-flag word; adding a separate matcher would duplicate logic and inflate diff surface beyond smallest fix.
- Comment addition restates the safety invariant of the positional arm; no behavior change in production code path.
- The new regression test passes vacuously because both selectors short-circuit before reaching the merge arm, hiding a real bug where two bin/test-only selectors are merged.; refuted because: Both selectors are Some(...) and route through combine() to the Some(SelectorKind::Bin|Test) arm, which then sets mergeable=false on the None positional/locked/offline arm. No earlier guard short-circuits; the assertion would catch the regression it claims.
Parked follow-ups
- ripr sensor failed with exit 2; diff is comment+test, so failure is unlikely to indicate a correctness defect in this PR.
Evidence gaps
- ripr failed exit code 2; cargo-test scheduled as late evidence. Behavior-change claim in PR body (test+comment only) is plausible but ripr receipt would confirm no AST/unsafe drift beyond comment.
- ripr sensor failed with exit code 2; cargo-test scheduled late. No public blocker since this PR has no Rust behavior change.
Before:
combined_preparation_argshad two review nits from #8397: no test for selectors that carry only--bin/--test(no-p), and no note on why positional words are safe to accept.After: a regression assertion that such selectors are not merged, and a comment on the positional arm.
How: test and comment only in
xtask/src/policy/file_policy.rs; no behavior change.Verified:
cargo test -p xtask --bin xtask policy::file_policy(28 pass),cargo xtask precommitpass.Generated by Claude Code