From bc613cf41d41f61631c9ae999fc8d10cf3c8813a Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 13 Nov 2026 12:38:07 +0000 Subject: [PATCH] fix: stop backend-test rust cache from bloating and filling the runner disk (#12411) Claude-Session: https://claude.ai/code/session_01PjsYvxS1dYPf1dwqAXUY8y Co-authored-by: Claude Opus 5.5 --- .github/workflows/backend-test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/backend-test.yml b/.github/workflows/backend-test.yml index dc51370bb6..64da12420d 100644 --- a/.github/workflows/backend-test.yml +++ b/.github/workflows/backend-test.yml @@ -98,6 +98,12 @@ jobs: with: cache-workspaces: backend toolchain: 1.97.0 + # ubicloud's cache is not scoped per branch, so a PR's save is restored by main and every + # other PR. Each save keeps the artifacts it restored, so PR saves grew the cache from + # ~2GB to ~8GB compressed and the restored target dir filled the runner's disk at link + # time. Save from main only; bump cache-key to drop a bloated cache. + cache-key: v2 + cache-save-if: ${{ github.ref == 'refs/heads/main' }} - name: Fix stale v8 build cache working-directory: ./backend run: |