Skip to content

fix(tests): main lib tests compile and the #10011 root parity helper uses the CLI's native root spelling - #10035

Closed
EffortlessSteven wants to merge 2 commits into
mainfrom
claude/project-thread-dbye5j
Closed

EffortlessSteven wants to merge 2 commits into
mainfrom
claude/project-thread-dbye5j

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: main-health repair; follows #10031 (compile break from #8989 x #8990) and #10011 (#10009)
Acceptance delta (one sentence): cargo test -p ripr --lib compiles and passes on main again, including the three mcp::repair::freshness_tests::root_tests witnesses for a literal-backslash Unix root.

What changed

Two test-only commits, both required for a green lib-test run:

  1. already_present: false in the RustTestStub initializer at app/test_stub.rs:2394 (the one-line change from fix(agent): name already_present in the Lane W repair-journey stub initializer #10031; fix(agent): stub names the repair journey it feeds (wave 2, Lane W) #8989 and fix(agent): stub rewrite idempotency and truthful grip wording (wave 2, Lane X) #8990 each passed against a base without the other). Carried here so this PR compiles; fix(agent): name already_present in the Lane W repair-journey stub initializer #10031 is superseded.
  2. mcp/repair_freshness_tests.rs: the mcp: project durable-attempt next_command with the portable root #10011 parity helper built the expected CLI root token with display_path, which folds \ to /. The CLI renders root_path_display (native Unix spelling), so for the literal-backslash root three tests failed on Linux. The compile error had hidden this; fix(agent): name already_present in the Lane W repair-journey stub initializer #10031's hosted run surfaced it (durable_selected_awaiting_mcp_projects_portable_continue_root, durable_selected_restart_failed_..., durable_selected_restart_open_gap_...). The helper now uses root_path_display for the CLI token. The leak check still rejects the raw, slash-folded and shell-quoted spellings in the MCP projection.

Proof

No production code or output changes; no changelog entry (test-only).


Generated by Claude Code

EffortlessSteven and others added 2 commits October 23, 2026 20:32
…itializer

Merge repair: #8989 (wave 2, Lane W) landed an app/test_stub.rs test
initializer for RustTestStub without the already_present field that
#8990 (wave 2, Lane X) added to the struct, so main HEAD fails
cargo check --workspace --all-targets with E0063 and every open PR's
merge ref inherits the red. Set already_present: false, matching the
repair-ready stubs at app/test_stub.rs:1543 and :1600, so the test's
repair-ready premise holds.
… CLI renders

The #10011 parity helper built its expected CLI token from display_path, which
folds a literal backslash to a slash. The CLI renders the native Unix root, so
three root_tests failed on Linux for a literal-backslash root; the E0063 compile
break on main had hidden them. Use root_path_display, the CLI's own spelling.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ko9uTzfEN9vJcshsDpo2NB
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 140 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 17fa0d35-e98c-4f17-9722-c80dac43e7b1
📥 Commits

Reviewing files that changed from the base of the PR and between aad05dd and caf2c85.

📒 Files selected for processing: 2
  • crates/ripr/src/app/test_stub.rs
  • crates/ripr/src/mcp/repair_freshness_tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Member Author

Independent review of head caf2c85 (fresh subagent, source-checked): no findings. It confirmed the CLI builds its --root from root_path_display (app/agent_status.rs:2805, native spelling on Unix), that the old display_path token could never match the literal-backslash fixture, that the leak check still rejects the raw, slash-folded and shell-quoted spellings, and that Windows is unchanged. Local proof: cargo test -p ripr --lib 13794 passed, cargo xtask precommit exit 0. CodeRabbit and Gemini are rate-limited, so they are not counted. Applying merge-ready once.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Closing as superseded. #10027 landed on main (6e162bd) with both of this PR's changes (the already_present line and the native-root parity fix), which left a duplicated already_present field; #10036 removes that duplicate and already has its qualification running. Landing this PR on top would add a third copy, so #10036 is the single fix path. I will verify main's lib tests after #10036 merges.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants