Conversation
Wires rustc-wrapper=sccache + SCCACHE_BASEDIRS into each worktree's isolated .cargo/config.toml (soft skip when sccache isn't on PATH), so registry-dep compiles still hit cache across sibling worktrees even though local-crate target dirs stay isolated. Documents the build-isolation setup and the remaining ambient-env gap in AGENTS.md. Agentflare-Agent: claude-code_2-1-216_agent Agentflare-Branch: HEAD
|
Warning Review limit reached
Next review available in: 49 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughWorktree build isolation now optionally configures ChangesWorktree build isolation
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@AGENTS.md`:
- Around line 96-110: Remove the duplicated “Build isolation (claim worktrees)”
section and merge its sccache configuration details into the existing “Cargo
target-dir isolation (item `#133/`#139)” section. Preserve the ambient
CARGO_TARGET_DIR limitation and ensure references such as `#12516` do not trigger
MD018 by escaping the leading hash or reformatting the text.
In `@crates/flare-git-core/src/worktree.rs`:
- Around line 167-169: Update the config content construction in the worktree
path handling to use a TOML basic string for SCCACHE_BASEDIRS instead of a
literal string. Escape backslashes and double quotes in worktree_path before
inserting it, while preserving valid output for paths containing single quotes.
- Around line 577-581: Update the assertion in the worktree test to expect the
TOML-escaped, double-quoted SCCACHE_BASEDIRS value produced by the
implementation, rather than the current single-quoted value. Keep the existing
worktree path interpolation and failure message unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 192c4043-961c-4d64-b374-7ee3530a405c
📒 Files selected for processing (2)
AGENTS.mdcrates/flare-git-core/src/worktree.rs
… AGENTS.md section
TOML literal strings ('...') can't escape a single quote, so a worktree
path containing one (e.g. a Windows username like John's) produced
invalid .cargo/config.toml. Switch to a basic string with backslashes
and double quotes escaped.
Also merges the new sccache doc sentence into the existing 'Cargo
target-dir isolation' AGENTS.md section instead of duplicating it.
Agentflare-Agent: claude-code_2-1-216_agent
Agentflare-Branch: task/133
Agentflare-Item: 133
|
@coderabbitai review |
✅ Action performedReview finished.
|
Agentflare-Agent: claude-code_2-1-216_agent Agentflare-Branch: task/133 Agentflare-Item: 133
Agentflare-Agent: claude-code_2-1-216_agent Agentflare-Branch: task/133 Agentflare-Item: 133
Agentflare-Agent: claude-code_2-1-216_agent Agentflare-Branch: task/133 Agentflare-Item: 133
Agentflare-Agent: claude-code_2-1-216_agent Agentflare-Branch: task/133 Agentflare-Item: 133
Agentflare-Agent: claude-code_2-1-217_agent Agentflare-Branch: task/133 Agentflare-Item: 133
Summary
sccacheis onPATH,isolate_worktree_target_dirnow also wires it up asrustc-wrapperwithSCCACHE_BASEDIRSset to the worktree's own absolute path, so registry-dependency compiles still hit a shared cache across sibling worktrees even though each worktree's local-cratetarget/stays isolated (Cache misses when different projects shares same dependencies mozilla/sccache#196 — sccache hashes absolute source paths by default;SCCACHE_BASEDIRSstrips the worktree-specific prefix so identical dependency source hits cache instead of missing).sccacheisn't installed — never blocks a claim.AGENTS.md.Rebased onto current master: the real worktree-isolation logic moved from
src/worktree.rsintocrates/flare-git-core/src/worktree.rssince this branch forked (src/worktree.rsis now a thin MCP/GitHub-specific shim over the leaf crate). Ported the sccache wiring + its test to the new location;src/worktree.rsitself needed no changes.Item #133's other acceptance criteria (isolated target-dir, ambient-env warning, docs) already landed on master; this closes the one remaining
⬜ sccache wiringbox. The ambient-CARGO_TARGET_DIR-always-wins gap is tracked separately in item #139 (already resolved viarun_launch_env/run_headlessenv stripping + thetarget-dir-guardCI job) — #133 can close once this merges.Test plan
cargo build --workspace --all-featurescleancargo clippy -p flare-git-core --all-targets --all-features -- -D warningscleancargo test -p flare-git-core worktree— 19/19 passed, including the newisolate_worktree_target_dir_wires_sccache_when_availablecargo test --workspace— 727 passed, 0 failedcargo fmt --all -- --checkcleanSummary by CodeRabbit
New Features
Documentation
CARGO_TARGET_DIRduring local testing.