From e6f762757cd239df2abe28ad7bfd3238f7e62615 Mon Sep 17 00:00:00 2001 From: StreamKit Devin Date: Sat, 25 Apr 2026 17:11:16 +0000 Subject: [PATCH] ci: use per-job sccache cache keys to avoid save conflicts 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 Co-Authored-By: Claudio Costa --- .github/workflows/e2e.yml | 12 ++++++------ .github/workflows/marketplace-build.yml | 6 +++--- .github/workflows/plugins.yml | 6 +++--- .github/workflows/release.yml | 6 +++--- .github/workflows/skit.yml | 18 +++++++++--------- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index f3ed7ceb..a664ea7e 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -49,9 +49,9 @@ jobs: uses: actions/cache/restore@v4 with: path: ~/.cache/sccache - key: sccache-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + key: sccache-e2e-pipeline-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} restore-keys: | - sccache-${{ runner.os }}- + sccache-e2e-pipeline-${{ runner.os }}- - uses: mozilla-actions/sccache-action@v0.0.9 @@ -107,7 +107,7 @@ jobs: uses: actions/cache/save@v4 with: path: ~/.cache/sccache - key: sccache-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + key: sccache-e2e-pipeline-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} pipeline-validation-gpu: name: Pipeline Validation (GPU) @@ -257,9 +257,9 @@ jobs: uses: actions/cache/restore@v4 with: path: ~/.cache/sccache - key: sccache-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + key: sccache-e2e-playwright-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} restore-keys: | - sccache-${{ runner.os }}- + sccache-e2e-playwright-${{ runner.os }}- - uses: mozilla-actions/sccache-action@v0.0.9 @@ -359,4 +359,4 @@ jobs: uses: actions/cache/save@v4 with: path: ~/.cache/sccache - key: sccache-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + key: sccache-e2e-playwright-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} diff --git a/.github/workflows/marketplace-build.yml b/.github/workflows/marketplace-build.yml index 4f9f8994..17ed53ba 100644 --- a/.github/workflows/marketplace-build.yml +++ b/.github/workflows/marketplace-build.yml @@ -111,9 +111,9 @@ jobs: uses: actions/cache/restore@v4 with: path: ~/.cache/sccache - key: sccache-plugins-${{ runner.os }}-${{ hashFiles('plugins/**/Cargo.lock') }} + key: sccache-marketplace-${{ runner.os }}-${{ hashFiles('plugins/**/Cargo.lock') }} restore-keys: | - sccache-plugins-${{ runner.os }}- + sccache-marketplace-${{ runner.os }}- - uses: mozilla-actions/sccache-action@v0.0.9 @@ -208,7 +208,7 @@ jobs: uses: actions/cache/save@v4 with: path: ~/.cache/sccache - key: sccache-plugins-${{ runner.os }}-${{ hashFiles('plugins/**/Cargo.lock') }} + key: sccache-marketplace-${{ runner.os }}-${{ hashFiles('plugins/**/Cargo.lock') }} publish-registry: name: Publish Registry (PR) diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml index 9b78cd16..00ee5254 100644 --- a/.github/workflows/plugins.yml +++ b/.github/workflows/plugins.yml @@ -166,9 +166,9 @@ jobs: uses: actions/cache/restore@v4 with: path: ~/.cache/sccache - key: sccache-plugins-${{ runner.os }}-${{ hashFiles('plugins/**/Cargo.lock') }} + key: sccache-plugins-lint-${{ runner.os }}-${{ hashFiles('plugins/**/Cargo.lock') }} restore-keys: | - sccache-plugins-${{ runner.os }}- + sccache-plugins-lint-${{ runner.os }}- - uses: mozilla-actions/sccache-action@v0.0.9 @@ -240,4 +240,4 @@ jobs: uses: actions/cache/save@v4 with: path: ~/.cache/sccache - key: sccache-plugins-${{ runner.os }}-${{ hashFiles('plugins/**/Cargo.lock') }} + key: sccache-plugins-lint-${{ runner.os }}-${{ hashFiles('plugins/**/Cargo.lock') }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f843e79..9b47cf89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,9 +57,9 @@ jobs: uses: actions/cache/restore@v4 with: path: ~/.cache/sccache - key: sccache-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + key: sccache-release-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} restore-keys: | - sccache-${{ runner.os }}- + sccache-release-${{ runner.os }}- - uses: mozilla-actions/sccache-action@v0.0.9 @@ -117,7 +117,7 @@ jobs: uses: actions/cache/save@v4 with: path: ~/.cache/sccache - key: sccache-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + key: sccache-release-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} - name: Upload artifacts uses: actions/upload-artifact@v4 diff --git a/.github/workflows/skit.yml b/.github/workflows/skit.yml index 031c271e..07ee4a6f 100644 --- a/.github/workflows/skit.yml +++ b/.github/workflows/skit.yml @@ -50,9 +50,9 @@ jobs: uses: actions/cache/restore@v4 with: path: ~/.cache/sccache - key: sccache-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + key: sccache-skit-lint-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} restore-keys: | - sccache-${{ runner.os }}- + sccache-skit-lint-${{ runner.os }}- - uses: mozilla-actions/sccache-action@v0.0.9 @@ -85,7 +85,7 @@ jobs: uses: actions/cache/save@v4 with: path: ~/.cache/sccache - key: sccache-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + key: sccache-skit-lint-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} test: name: Test @@ -127,9 +127,9 @@ jobs: uses: actions/cache/restore@v4 with: path: ~/.cache/sccache - key: sccache-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + key: sccache-skit-test-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} restore-keys: | - sccache-${{ runner.os }}- + sccache-skit-test-${{ runner.os }}- - uses: mozilla-actions/sccache-action@v0.0.9 @@ -150,7 +150,7 @@ jobs: uses: actions/cache/save@v4 with: path: ~/.cache/sccache - key: sccache-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + key: sccache-skit-test-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} test-gpu: name: Test (GPU) @@ -242,9 +242,9 @@ jobs: uses: actions/cache/restore@v4 with: path: ~/.cache/sccache - key: sccache-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + key: sccache-skit-build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} restore-keys: | - sccache-${{ runner.os }}- + sccache-skit-build-${{ runner.os }}- - uses: mozilla-actions/sccache-action@v0.0.9 @@ -265,4 +265,4 @@ jobs: uses: actions/cache/save@v4 with: path: ~/.cache/sccache - key: sccache-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + key: sccache-skit-build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}