ci: use per-job sccache cache keys to avoid save conflicts#380
Merged
streamer45 merged 1 commit intomainfrom Apr 25, 2026
Merged
ci: use per-job sccache cache keys to avoid save conflicts#380streamer45 merged 1 commit intomainfrom
streamer45 merged 1 commit intomainfrom
Conversation
Different jobs in the same workflow were using the same sccache cache key, causing 'Unable to reserve cache' warnings when the second job tried to save to an already-taken key. Each job now gets a unique cache key prefix (e.g. sccache-skit-lint-, sccache-skit-test-, sccache-skit-build-) so saves never collide and each job's sccache cache is tailored to its specific compilation profile. 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 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
All hosted-runner jobs in the same workflow were sharing an identical sccache cache key (
sccache-{os}-{hash}), so when multiple jobs finished around the same time, only the first save succeeded — the rest hit:Each job now gets a unique key prefix matching its role:
sccache-skit-lint-sccache-skit-test-sccache-skit-build-sccache-e2e-pipeline-sccache-e2e-playwright-sccache-release-sccache-plugins-lint-sccache-marketplace-This also means each job's sccache cache is tailored to its specific compilation profile (e.g., clippy flags vs release mode), which should improve hit rates.
Review & Testing Checklist for Human
Unable to reserve cachewarnings in CI logs after mergingNotes
Follow-up to #376. The old
sccache-Linux-*entries can be cleaned withgh cache delete --all.Link to Devin session: https://staging.itsdev.in/sessions/cdf841e834eb419aa04168a565311f10
Requested by: @streamer45