ci: remove SCCACHE_GHA_ENABLED to stop cache entry explosion#373
Merged
streamer45 merged 1 commit intomainfrom Apr 25, 2026
Merged
ci: remove SCCACHE_GHA_ENABLED to stop cache entry explosion#373streamer45 merged 1 commit intomainfrom
streamer45 merged 1 commit intomainfrom
Conversation
The sccache GHA backend stores one cache entry per compiled artifact, creating ~1000 tiny entries that evict the much more valuable Swatinem/rust-cache entries (full target/ snapshots) via LRU. Remove SCCACHE_GHA_ENABLED from all workflows. On hosted runners sccache falls back to local disk (harmless no-op on ephemeral VMs). On the self-hosted GPU runner it continues to work via persistent local disk cache. The other optimizations from #372 (shared-key, save-if, cache-on-failure, RUSTC_WRAPPER) remain in place. Signed-off-by: StreamKit Devin <devin@streamkit.dev> Co-Authored-By: Claudio Costa <cstcld91@gmail.com>
Contributor
Author
|
✅ Reviewed on |
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This was referenced Apr 25, 2026
streamer45
added a commit
that referenced
this pull request
Apr 25, 2026
Restore and save ~/.cache/sccache as a single GHA cache entry per Cargo.lock revision. This gives hosted runners compilation-level cache hits without the per-artifact entry explosion caused by SCCACHE_GHA_ENABLED (reverted in #373). Strategy: - actions/cache/restore before sccache-action starts (all hosted jobs) - actions/cache/save at end of job, main-branch only (if: always()) - Self-hosted GPU jobs skipped — they already have persistent disk cache - Plugins use a separate cache key prefix (sccache-plugins-*) Closes #374 Signed-off-by: StreamKit Devin <devin@streamkit.dev> Co-authored-by: StreamKit Devin <devin@streamkit.dev> Co-authored-by: Claudio Costa <cstcld91@gmail.com>
This was referenced Apr 25, 2026
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.
Summary
Removes
SCCACHE_GHA_ENABLED: "true"from all 5 Rust workflows, added in #372.The sccache GHA backend stores one cache entry per compiled artifact. A single CI run created ~1000 tiny entries (total ~134 MiB) which evicted nearly all the
Swatinem/rust-cacheentries via LRU. Only 2 of the original rust-cache entries survived — the rest were pushed out by sccache's granular entries.The rust-cache entries are far more valuable: they snapshot the full
target/directory including linking artifacts, build scripts, and incremental compilation state. Losing them means every job starts from scratch.Without
SCCACHE_GHA_ENABLED, sccache falls back to local disk — a harmless no-op on ephemeral hosted runners, and still fully functional on the self-hosted GPU runner via its persistent local disk cache (which already achieves 100% hit rate).All other optimizations from #372 remain in place:
RUSTC_WRAPPER: sccacheinrelease.ymlandmarketplace-build.ymlshared-keygrouping (skit / skit-e2e / skit-gpu)save-if: ${{ github.ref == 'refs/heads/main' }}on hosted runner jobscache-on-failure: trueeverywhereReview & Testing Checklist for Human
v0-rust-skit-*,v0-rust-skit-e2e-*,v0-rust-skit-gpu-*) reappear after the first main-branch CI rungh cache delete --allor selectively viagh cache list | grep sccacheNotes
mozilla-actions/sccache-actionis still installed in all workflows — it provides the sccache binary whichRUSTC_WRAPPERreferences. It just won't use the GHA cache API withoutSCCACHE_GHA_ENABLED.Link to Devin session: https://staging.itsdev.in/sessions/cdf841e834eb419aa04168a565311f10
Requested by: @streamer45