Repository navigation
ci: prune every uv cache before it is saved - #27
Merged
Merged
Conversation
setup-uv v9 and later default prune-cache to false, so a saved uv cache keeps every wheel uv downloaded. In datarax the unpruned caches reached 3.9 GB each and evicted the dataset cache (avitai/datarax#49). Set prune-cache: true on the one setup-uv step, in the shared setup-diffbio action. A contract test now fails when any setup-uv step in a workflow or a composite action leaves prune-cache out.
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
setup-uv v9 and later default
prune-cacheto false, so a saved uv cache keeps every wheel uv downloaded. In datarax the unpruned caches reached 3.9 GB each and evicted the dataset cache: run 36748306376 loggedprune-cache: true/ "Pruning cache...", and run 36760783548, after setup-uv v10.2.0, loggedprune-cache: false. This mirrors avitai/datarax#49.prune-cache: trueon the one setup-uv step, in the sharedsetup-diffbioaction.test_every_uv_cache_is_pruned_before_it_is_savedtotests/test_ci_concurrency.py: every setup-uv step in.github/workflows/*.ymland.github/actions/*/action.ymlmust set it, and the test fails if it finds no setup-uv step at all.Verification
prune-cache: truelines equals the count ofastral-sh/setup-uv@steps.pre-commit run --all-filespasses.