From 50be6b28157b740a9e4a5282a0523ac8a865560a Mon Sep 17 00:00:00 2001 From: desmondcheongzx Date: Fri, 20 Feb 2026 00:46:00 -0800 Subject: [PATCH 1/3] ci: cache workspace crate artifacts in integration build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add `cache-workspace-crates: "true"` to the Swatinem/rust-cache config for the integration-test-build job. Previously, `cache-all-crates` only preserved registry crates (downloaded .crate files and extracted sources), while workspace crate fingerprints, build scripts, and compiled artifacts in target/ were cleaned before cache save — causing all ~70 local crates to recompile from scratch every run (~25 min at opt-level=3). Temporarily sets save-if: true so this PR branch can bootstrap the cache. Must be reverted to main-only before merge. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/pr-test-suite.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-test-suite.yml b/.github/workflows/pr-test-suite.yml index f4ef2a46ca..da5f83bddd 100644 --- a/.github/workflows/pr-test-suite.yml +++ b/.github/workflows/pr-test-suite.yml @@ -338,7 +338,10 @@ jobs: with: shared-key: ${{ runner.os }}-integration-build cache-all-crates: "true" - save-if: ${{ github.ref == 'refs/heads/main' }} + cache-workspace-crates: "true" + # TODO: revert to main-only before merge: + # save-if: ${{ github.ref == 'refs/heads/main' }} + save-if: true - uses: actions/setup-node@v6 with: node-version: "22" From b16af1d3b4e3dd7d44b2c31eb683e47f8d162d67 Mon Sep 17 00:00:00 2001 From: desmondcheongzx Date: Fri, 20 Feb 2026 01:25:56 -0800 Subject: [PATCH 2/3] ci: retrigger for warm cache test From 5ef868ee3d9713d5055d92a06bc500a546c30f6f Mon Sep 17 00:00:00 2001 From: desmondcheongzx Date: Fri, 20 Feb 2026 01:31:41 -0800 Subject: [PATCH 3/3] ci: revert save-if to main-only Warm cache test confirmed: Build wheels dropped from 36 min to 10 sec. Revert save-if to only save from main branch. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/pr-test-suite.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pr-test-suite.yml b/.github/workflows/pr-test-suite.yml index da5f83bddd..fb3bc35237 100644 --- a/.github/workflows/pr-test-suite.yml +++ b/.github/workflows/pr-test-suite.yml @@ -339,9 +339,7 @@ jobs: shared-key: ${{ runner.os }}-integration-build cache-all-crates: "true" cache-workspace-crates: "true" - # TODO: revert to main-only before merge: - # save-if: ${{ github.ref == 'refs/heads/main' }} - save-if: true + save-if: ${{ github.ref == 'refs/heads/main' }} - uses: actions/setup-node@v6 with: node-version: "22"