Repository navigation
fix(env): share compiler cache settings with non-interactive shells - #41
Merged
Merged
Conversation
At 2G one worktree's cold build filled the cache, so sccache evicted the dependencies the next worktree would have reused. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Session notes
SCCACHE_CACHE_SIZEgoes from 2G to 10G in the provisioned~/.config/agentsfleet/.env.~/.cache/agentsfleet-sccacheat 2.0G (du -sh). At that size it evicts the dependencies the next worktree would reuse.Make
bash -n bin/provision-env-1passwordpassed.shellcheck -S warningreports only the existing SC1090 at line 190, which this change does not touch.🤖 Generated with Claude Code
Session notes 1
Non-interactive zsh commands now load the existing generated environment through
.zshenv. Cargo, Make and orly inherit the compiler-cache settings in every worktree. The corresponding.zshrcload is removed; the generator remains the authority for settings.Review
The adversarial review found no fixable issue in the two-file startup change. Overrides belong on commands after shell startup; launching another zsh reloads generated defaults. Both startup files were backed up before editing.
Make
zsh -n .zshenv .zshrcandgit diff --checkpassed.zsh -candzsh -lcin two existing worktrees) inherited all six cache settings, with no shared target override.make test-unit-rustd-daemonfail with exit 2.make test-unit-rustd-runnerin the second worktree passed: 1228 tests, 0 failures, 111.385 seconds.gitleaks protect --staged --redactpassed. The pushed revision's requiredgitleakscheck passed.