Repository navigation
ci: Give services-validator's uv and timestamp caches a pr-<N> key (#962) - #2668
Merged
Merged
Conversation
The composite action's setup-uv step has no cache-suffix and its Save Timestamp Cache step's actions/cache/save key has no pr-<N> component; extend ci/test_cache013_actions.py to require both, so it fails on master until they carry one.
) The composite action's Set Up uv step saved its cache with no cache-suffix and its Save Timestamp Cache step wrote an actions/cache/save key with no pr-<N> component, so the janitor could never reclaim either from a closed PR. Both now carry the expression #2590/#2663 used; the Restore Timestamp Cache key gets the same component so restore and save still agree (empty off a PR). The file's CACHE-013 [[exceptions]] block in ci.toml is deleted.
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.
ci-lint burn-down (CACHE-013):
.github/actions/services-validator/action.yaml.This composite action is the last single-file CACHE-013 unit, and it carried two findings. The exception is path-scoped, so both had to clear before the block could leave (the three composite actions in #2663 each had only the
setup-uvfinding).What changes
.github/actions/services-validator/action.yamlruns.steps[1]Set Up uv 🐍— gains the samecache-suffixexpression ci: Scope the remaining setup-uv PR saves with a pr-<N> cache suffix (#962) #2590/ci: Scope the three composite actions' setup-uv PR saves with a pr-<N> suffix (#962) #2663 used, so a PR save carries a delimitedpr-<N>component the janitor can reclaim.runs.steps[8]Save Timestamp Cache ⏳—key: service-check-${{ github.run_id }}gains the samepr-<N>component (empty off a PR, so master's key is unchanged).runs.steps[4]Restore Timestamp Cache ⏳— the same component, so restore and save still agree (the repo'sCacheWriterPolicyTestinvariant); therestore-keys: service-check-prefix still matches.ci.toml: the file's CACHE-013[[exceptions]]block is deleted.Evidence
1b3cd0c47—ci/test_cache013_actions.pyextended to includeservices-validator/action.yamlinTARGETSand to require thepr-<N>component on the timestamp save key; on master it fails 3 cases (cache-suffix:absent, the save key unsuffixed, the exception still present).546d9b06a— as above;uv run --no-project ci/test_cache013_actions.py→ 3 tests OK,ci/test_ci_toml.py→ 34 tests OK,[email protected] checkclean.ci-lint precheck: 11 violation(s), 528 approved exception(s) (baseline530); the file's two CACHE-013 findings are gone, no new finding.No
docs/features.mdledger line: CI configuration only, no user-visible change.Refs #962