From 6b50452603f161a1c2b3899b6cafcc422a0a0bfc Mon Sep 17 00:00:00 2001 From: Aaron Braunstein Date: Mon, 2 Nov 2026 22:03:57 +0000 Subject: [PATCH] Keep pruning setup-uv caches setup-uv v9 changed the prune-cache default to false, so the v10 bump (#25, #27) would start caching every downloaded wheel, including the 200-600 MB CUDA wheels. The repository's Actions cache is already at its ~10 GB limit with 5.7 GB of Rust caches, which unpruned uv entries would evict. Set prune-cache: true in the shared setup action and on every setup-uv step that caches (GitHub-hosted jobs using the default enable-cache: auto). It is already the default on v8.1.0, so nothing changes until the bump lands. --- .github/actions/setup/action.yml | 1 + .github/workflows/_diskgraph-wheel.yml | 1 + .github/workflows/agent-skills.yml | 1 + .github/workflows/install.yml | 1 + .github/workflows/kumo-api-hotfix-release.yml | 1 + .github/workflows/kumo-api-lint.yml | 2 ++ .github/workflows/kumo-api-release.yml | 1 + .github/workflows/kumo-api-testing.yml | 2 ++ .github/workflows/kumo-sdk-lint.yml | 2 ++ .github/workflows/kumo-sdk-test-integration.yml | 1 + .github/workflows/kumo-sdk-test-unit.yml | 1 + .github/workflows/linting.yml | 8 ++++++++ .github/workflows/oss-readiness.yml | 1 + .github/workflows/testing.yml | 5 +++++ .github/workflows/testing_databricks.yml | 1 + .github/workflows/testing_gcs.yml | 1 + .github/workflows/ui-client-code-generate.yml | 2 ++ 17 files changed, 32 insertions(+) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 3ab54f5cb..959fd4ed6 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -77,6 +77,7 @@ runs: # intermittent connect-timeout install failures. Key on # the files that determine the resolved dependency set. enable-cache: true + prune-cache: true cache-dependency-glob: | pyproject.toml packages/kumo-api/pyproject.toml diff --git a/.github/workflows/_diskgraph-wheel.yml b/.github/workflows/_diskgraph-wheel.yml index 607fb3e01..e465f6b48 100644 --- a/.github/workflows/_diskgraph-wheel.yml +++ b/.github/workflows/_diskgraph-wheel.yml @@ -55,6 +55,7 @@ jobs: with: python-version: '3.11' activate-environment: true + prune-cache: true - id: python if: steps.cache.outputs.cache-hit != 'true' run: echo "version=$(python -c 'import platform; print(platform.python_version())')" >> "$GITHUB_OUTPUT" diff --git a/.github/workflows/agent-skills.yml b/.github/workflows/agent-skills.yml index 8d1405dc8..25a0295dd 100644 --- a/.github/workflows/agent-skills.yml +++ b/.github/workflows/agent-skills.yml @@ -48,6 +48,7 @@ jobs: uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 with: python-version: "3.14" + prune-cache: true # Builds every host package and fails on any reference it does not ship, and checks that # every Kumo module and SDK name the skills cite still exists. diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 6826bb772..4657d644b 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -48,6 +48,7 @@ jobs: with: python-version: '3.14' activate-environment: true + prune-cache: true - name: Configure AWS credentials if: steps.ui-changes.outputs.only_changed != 'true' diff --git a/.github/workflows/kumo-api-hotfix-release.yml b/.github/workflows/kumo-api-hotfix-release.yml index 18544fe5f..3c45bcd39 100644 --- a/.github/workflows/kumo-api-hotfix-release.yml +++ b/.github/workflows/kumo-api-hotfix-release.yml @@ -103,6 +103,7 @@ jobs: with: python-version: '3.11' activate-environment: true + prune-cache: true - name: Verify import uses: ./packages/kumo-api/.github/actions/verify-import diff --git a/.github/workflows/kumo-api-lint.yml b/.github/workflows/kumo-api-lint.yml index d14426a00..c2d634578 100644 --- a/.github/workflows/kumo-api-lint.yml +++ b/.github/workflows/kumo-api-lint.yml @@ -41,6 +41,7 @@ jobs: with: python-version: '3.11' activate-environment: true + prune-cache: true - name: Cache pre-commit uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 @@ -69,6 +70,7 @@ jobs: with: python-version: '3.11' activate-environment: true + prune-cache: true - name: Install Kumo API run: | diff --git a/.github/workflows/kumo-api-release.yml b/.github/workflows/kumo-api-release.yml index a17d41f61..ae93d6706 100644 --- a/.github/workflows/kumo-api-release.yml +++ b/.github/workflows/kumo-api-release.yml @@ -121,6 +121,7 @@ jobs: with: python-version: '3.11' activate-environment: true + prune-cache: true - name: Verify import uses: ./packages/kumo-api/.github/actions/verify-import diff --git a/.github/workflows/kumo-api-testing.yml b/.github/workflows/kumo-api-testing.yml index c8342bcce..0b240fc4a 100644 --- a/.github/workflows/kumo-api-testing.yml +++ b/.github/workflows/kumo-api-testing.yml @@ -77,6 +77,7 @@ jobs: with: python-version: '3.11' activate-environment: true + prune-cache: true - name: Build wheel run: | @@ -109,6 +110,7 @@ jobs: with: python-version: ${{ matrix.python-version }} activate-environment: true + prune-cache: true - name: Download wheel artifact uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 diff --git a/.github/workflows/kumo-sdk-lint.yml b/.github/workflows/kumo-sdk-lint.yml index 71f025433..fadbcdda4 100644 --- a/.github/workflows/kumo-sdk-lint.yml +++ b/.github/workflows/kumo-sdk-lint.yml @@ -43,6 +43,7 @@ jobs: with: python-version: '3.11' activate-environment: true + prune-cache: true - name: Cache pre-commit uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 @@ -70,6 +71,7 @@ jobs: with: python-version: '3.11' activate-environment: true + prune-cache: true - name: Install colocated Kumo API and SDK run: | diff --git a/.github/workflows/kumo-sdk-test-integration.yml b/.github/workflows/kumo-sdk-test-integration.yml index 0e69bbb26..a5af4f4c4 100644 --- a/.github/workflows/kumo-sdk-test-integration.yml +++ b/.github/workflows/kumo-sdk-test-integration.yml @@ -46,6 +46,7 @@ jobs: # set (including NumPy 2.3.x) is not installable on Python 3.10. python-version: '3.14' activate-environment: true + prune-cache: true - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6 diff --git a/.github/workflows/kumo-sdk-test-unit.yml b/.github/workflows/kumo-sdk-test-unit.yml index 596c54c71..32e65a5fb 100644 --- a/.github/workflows/kumo-sdk-test-unit.yml +++ b/.github/workflows/kumo-sdk-test-unit.yml @@ -80,6 +80,7 @@ jobs: with: python-version: ${{ matrix.python-version }} activate-environment: true + prune-cache: true - name: Download a wheel uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 81ae557bd..8fb9bd59b 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -41,6 +41,7 @@ jobs: with: python-version: "3.14" activate-environment: true + prune-cache: true - name: Install dependencies if: steps.lockfile-only.outputs.only_changed != 'true' @@ -73,6 +74,7 @@ jobs: with: python-version: "3.14" activate-environment: true + prune-cache: true - name: Install dependencies if: steps.lockfile-only.outputs.only_changed != 'true' @@ -105,6 +107,7 @@ jobs: with: python-version: "3.14" activate-environment: true + prune-cache: true - name: Install dependencies if: steps.lockfile-only.outputs.only_changed != 'true' @@ -129,6 +132,7 @@ jobs: with: python-version: "3.14" activate-environment: true + prune-cache: true - name: Install test dependencies run: | @@ -186,6 +190,7 @@ jobs: with: python-version: "3.14" activate-environment: true + prune-cache: true - name: Install dependencies if: steps.lockfile-only.outputs.only_changed != 'true' @@ -300,6 +305,7 @@ jobs: uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 with: python-version: "3.14" + prune-cache: true - name: Run focused offline deployment tests if: steps.deploy-test-changes.outputs.any_changed == 'true' @@ -340,6 +346,7 @@ jobs: with: python-version: "3.14" activate-environment: true + prune-cache: true # Reuse the DiskGraph wheel that testing.yml caches per source tree, as # .github/actions/setup does, instead of compiling it on every run. @@ -485,6 +492,7 @@ jobs: uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 with: python-version: "3.14" + prune-cache: true # Fails when a pyproject.toml/setup.py change was # not followed by `uv lock`. diff --git a/.github/workflows/oss-readiness.yml b/.github/workflows/oss-readiness.yml index 19c983511..249b9d21e 100644 --- a/.github/workflows/oss-readiness.yml +++ b/.github/workflows/oss-readiness.yml @@ -37,6 +37,7 @@ jobs: uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 with: python-version: "3.14" + prune-cache: true - name: Test repository readiness checks run: | diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index fd347dc17..39e6a8a09 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -173,6 +173,7 @@ jobs: with: python-version: "3.14" activate-environment: true + prune-cache: true # This enables us to skip the minimal python tests. # Note, it's not possible use the standard `on.pull_request` method to @@ -443,6 +444,7 @@ jobs: with: python-version: '3.11' activate-environment: true + prune-cache: true - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: name: diskgraph-wheel @@ -528,6 +530,7 @@ jobs: with: python-version: '3.12' activate-environment: true + prune-cache: true - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: name: diskgraph-wheel @@ -808,6 +811,7 @@ jobs: with: python-version: "3.14" activate-environment: true + prune-cache: true - name: Install dependencies run: uv pip install -q 'coverage[toml]' @@ -880,6 +884,7 @@ jobs: with: python-version: ${{ matrix.python }} activate-environment: true + prune-cache: true - name: Build and install in-tree wheels run: | uv build --wheel --out-dir dist packages/kumo-api diff --git a/.github/workflows/testing_databricks.yml b/.github/workflows/testing_databricks.yml index b82dd74ed..5b11901d1 100644 --- a/.github/workflows/testing_databricks.yml +++ b/.github/workflows/testing_databricks.yml @@ -87,6 +87,7 @@ jobs: with: python-version: "3.14" activate-environment: true + prune-cache: true # uv.lock is deliberately excluded: a lock-only dependency bump must # still run the real install + test suite (see testing.yml). diff --git a/.github/workflows/testing_gcs.yml b/.github/workflows/testing_gcs.yml index 9b8509eb0..06d20b2c6 100644 --- a/.github/workflows/testing_gcs.yml +++ b/.github/workflows/testing_gcs.yml @@ -96,6 +96,7 @@ jobs: with: python-version: "3.14" activate-environment: true + prune-cache: true - name: Configure AWS credentials if: steps.gcs-files-changed.outputs.any_changed == 'true' diff --git a/.github/workflows/ui-client-code-generate.yml b/.github/workflows/ui-client-code-generate.yml index 8bc8216c0..61ff28076 100644 --- a/.github/workflows/ui-client-code-generate.yml +++ b/.github/workflows/ui-client-code-generate.yml @@ -270,6 +270,7 @@ jobs: with: python-version: "3.14" activate-environment: true + prune-cache: true - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6 @@ -396,6 +397,7 @@ jobs: with: python-version: "3.14" activate-environment: true + prune-cache: true - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6