Skip to content

fix: warm cache pre-commit and uv cache path bugs#1389

Open
sd-db wants to merge 2 commits intomainfrom
sd-db/fix/warm-cache-bugs
Open

fix: warm cache pre-commit and uv cache path bugs#1389
sd-db wants to merge 2 commits intomainfrom
sd-db/fix/warm-cache-bugs

Conversation

@sd-db
Copy link
Copy Markdown
Collaborator

@sd-db sd-db commented Apr 11, 2026

Summary

  • Fix pre-commit: command not found in warmDepsCache — pre-commit is inside hatch's default env, use hatch run pre-commit install-hooks
  • Fix UV cache path mismatch — setup-uv overrides UV_CACHE_DIR to a temp path, but cache save/restore uses ~/.cache/uv. Pin UV_CACHE_DIR: /home/runner/.cache/uv in job env so setup-uv respects it and paths align.

Test plan

Note: I had done a temp change to trigger warmDepsCache on the PR for testing

  • Verify warmDepsCache run succeeds Ref
  • Verify that we have correct artifacts uploaded - confirmed using github API
  • All existing tests pass

Two bugs from the initial warm cache workflow:

1. pre-commit is inside hatch's default env, not on system PATH.
   Changed to: hatch run pre-commit install-hooks

2. setup-uv overrides UV_CACHE_DIR to a temp path, but cache
   save/restore uses ~/.cache/uv. Pin UV_CACHE_DIR in job env
   so setup-uv respects it and paths align.
@github-actions
Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant