Skip to content

fix(env): share compiler cache settings with non-interactive shells - #41

Merged
indykish merged 2 commits into
masterfrom
chore/sccache-10g
Oct 14, 2026
Merged

indykish merged 2 commits into
masterfrom
chore/sccache-10g

Conversation

@indykish

@indykish indykish commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Session notes

  1. SCCACHE_CACHE_SIZE goes from 2G to 10G in the provisioned ~/.config/agentsfleet/.env.
  2. Measured: one agentsfleet worktree's first build with the cache cold left ~/.cache/agentsfleet-sccache at 2.0G (du -sh). At that size it evicts the dependencies the next worktree would reuse.
  3. The 8G increase is in the shared home cache.

Make

bash -n bin/provision-env-1password passed. shellcheck -S warning reports 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 .zshrc load 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 .zshrc and git diff --check passed.
  • Four startup probes (zsh -c and zsh -lc in two existing worktrees) inherited all six cache settings, with no shared target override.
  • Missing-file and command-level override probes passed. A deliberately missing compiler wrapper made make test-unit-rustd-daemon fail with exit 2.
  • make test-unit-rustd-runner in the second worktree passed: 1228 tests, 0 failures, 111.385 seconds.
  • gitleaks protect --staged --redact passed. The pushed revision's required gitleaks check passed.

indykish and others added 2 commits October 11, 2026 15:38
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]>
@indykish indykish changed the title chore(env): raise the agent sccache to 10G fix(env): share compiler cache settings with non-interactive shells Oct 12, 2026
@indykish
indykish merged commit 830ee3a into master Oct 14, 2026
1 check passed
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.

1 participant