From bd9d0778f671df361d4ed5343f58075d4fcc8c16 Mon Sep 17 00:00:00 2001 From: bherbruck Date: Mon, 26 Oct 2026 09:49:34 -0400 Subject: [PATCH] CI: keep lavapipe's shader cache for the GPU path tests (#7113) The first test in each GPU path shard compiles the path pipeline cold on lavapipe (335-502 s on 16 vCPU, 665 s on 8, against the 600 s setup budget); the later ones read Mesa's disk cache in about 30 s. Put that cache on a sticky disk that main commits, so the first test reads it too until the shaders change. Co-authored-by: Claude Opus 5.5 --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b9577a50..7e25ca1c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -565,6 +565,8 @@ jobs: # As in Native Linux tests: lavapipe draws, and a test without an adapter fails. SOLIDCRAFT_GPU: software SOLIDCRAFT_REQUIRE_GPU: "1" + # lavapipe's own shader cache (below). + MESA_SHADER_CACHE_DIR: /home/runner/.cache/mesa-gpu CARGO_INCREMENTAL: "0" RUSTC_WRAPPER: sccache SCCACHE_DIR: /home/runner/.cache/sccache @@ -589,6 +591,17 @@ jobs: key: ${{ github.repository }}-sccache-gpu path: /home/runner/.cache/sccache commit: ${{ github.ref == 'refs/heads/main' && matrix.shard == 1 && 'on-change' || 'false' }} + # The first test in a shard to build the path pipeline compiles it cold on lavapipe (335 to + # 665 s, against the 600 s setup budget); every later one reads Mesa's disk cache (about + # 30 s). Keeping that cache from main's last run lets the first test read it too, until the + # shaders change. Same sticky disk rules as the compiler cache. + - name: Mount lavapipe's shader cache + uses: useblacksmith/stickydisk@3f6be1451e3cad893b778bc93495c80452a5da26 # v1.7.2 + continue-on-error: true + with: + key: ${{ github.repository }}-mesa-gpu + path: /home/runner/.cache/mesa-gpu + commit: ${{ github.ref == 'refs/heads/main' && matrix.shard == 1 && 'on-change' || 'false' }} # Main saves the cache; every other run restores it, read-only. - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 with: