Add cache-suffix to setup-uv actions across CI workflows#24
Merged
Conversation
Jobs with different `uv sync` dependency groups (e.g., `--group typing --group test` vs `--all-groups`) computed identical cache keys since GitHub Actions caches are immutable (first-writer-wins). Add distinct `cache-suffix` values to each non-matrix job: mypy, deps, pylint, pip-audit, and deps-update. https://claude.ai/code/session_01No4QEgz6Vc6zXDYWNnnYGY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds
cache-suffixparameters to allastral-sh/setup-uvaction invocations across the CI workflow files to enable job-specific caching strategies.Key Changes
ci.yml: Added cache suffixes to three jobs:
mypyjob:cache-suffix: mypydepsjob:cache-suffix: depspylintjob:cache-suffix: pylintdeps-update.yml: Added cache suffix to the dependency update job:
cache-suffix: deps-updateweekly-ci.yml: Added cache suffix to the pip-audit job:
cache-suffix: pip-auditImplementation Details
Each
setup-uvaction now includes awith:block specifying a uniquecache-suffixvalue that corresponds to the job's purpose. This allows GitHub Actions to maintain separate caches for each job type, preventing cache conflicts and improving cache hit rates by ensuring that job-specific dependencies are cached independently.https://claude.ai/code/session_01No4QEgz6Vc6zXDYWNnnYGY