Skip to content

Commit 4171d4b

Browse files
fix(ci): disable uv cache for release-consistency job
The release-consistency job runs only check-release-consistency.py, which is stdlib-only (tomllib/re/argparse) and never invokes uv. No uv cache directory is therefore created. setup-uv v9 fails its post step when told to save a cache path that does not exist on disk: Cache path /home/runner/work/_temp/setup-uv-cache does not exist on disk. The check itself passed; only the cleanup step failed, which still failed the job. This surfaced after bumping setup-uv v4 -> v9 in #5. It passed on that PR's run and failed on the post-merge main run, so it is timing-dependent on whether a cache was restored, not deterministic. Set enable-cache: false for this job only. Every other setup-uv job runs uv sync or uv build and legitimately populates the cache.
1 parent ac039a1 commit 4171d4b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ jobs:
5858
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
5959
with:
6060
python-version: "3.12"
61+
# This job only runs a stdlib-only script (tomllib/re/argparse); it never
62+
# invokes uv, so no cache directory is ever created. setup-uv v9 errors in
63+
# its post step when asked to save a cache path that does not exist.
64+
enable-cache: false
6165
- run: python scripts/check-release-consistency.py
6266

6367
test:

0 commit comments

Comments
 (0)