Skip to content

Quickly sandbox your AI agent.

Python

Isolate release build caches between attempts

Tyler Payneaeed34244de2
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f6ca462..0f3a6c5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -101,6 +101,7 @@ jobs:
UVR_PLAN: ${{ inputs.plan }}
UVR_RUNNER: ${{ toJSON(matrix.runner) }}
QUICKSAND_AUTO_INSTALL: "1"
+ UV_CACHE_DIR: ${{ runner.temp }}/quicksand-uv-${{ github.run_id }}-${{ github.run_attempt }}-${{ strategy.job-index }}
run: |
uv venv --seed --clear
uv sync --package quick-sandbox --all-extras --group dev
diff --git a/docs/contributor-guide/04-releasing.md b/docs/contributor-guide/04-releasing.md
index 13b4820..d527480 100644
--- a/docs/contributor-guide/04-releasing.md
+++ b/docs/contributor-guide/04-releasing.md
@@ -40,6 +40,12 @@ Build jobs use uv 0.12.13 and install `quick-sandbox`, its extras, and the expli
not needed to build wheels and are intentionally excluded from this bootstrap
environment.
+Each build job uses an isolated `UV_CACHE_DIR` for that run and attempt.
+uv treats filenames in `--find-links` directories as immutable, so a persistent
+cache can silently install an earlier wheel when an unreleased version is rebuilt.
+Disabling the setup action's cache does not disable a self-hosted runner's local
+uv cache. Docker's build cache remains available across attempts.
+
Agent and CUA overlay Python installs inherit the host's `PIP_INDEX_URL`,
`PIP_EXTRA_INDEX_URL`, `UV_DEFAULT_INDEX`, `UV_INDEX_URL`, and
`UV_EXTRA_INDEX_URL` through `run_python_install()` in the image tools. The guest