Repository navigation
ci: Scope the three composite actions' setup-uv PR saves with a pr-<N> suffix (#962) - #2663
Merged
Merged
Conversation
RED: fails on master — the three composite actions' astral-sh/setup-uv steps carry no cache-suffix and ci.toml still holds their CACHE-013 exceptions.
…> suffix (#962) GREEN: ci-lint precheck drops the three CACHE-013 findings and their [[exceptions]] blocks (541 -> 538 approved exceptions).
zackees
enabled auto-merge
October 27, 2026 16:39
Member
Author
|
Handed off to the coordinator. Auto-merge ( |
zackees
added a commit
that referenced
this pull request
Oct 27, 2026
) 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.
MCPVOT
pushed a commit
to MCPVOT/obs-studio
that referenced
this pull request
Oct 30, 2026
…bs-rust#962) (obs-rust#2668) * test(ci): Pin services-validator's CACHE-013 pr-<N> suffixes (obs-rust#962) 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. * ci: Give services-validator's uv and timestamp caches a pr-<N> key (obs-rust#962) 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 obs-rust#2590/obs-rust#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's
CACHE-013flags anastral-sh/setup-uvstep that can save a cache in PR context whose key has no delimitedpr-<N>component: the cache janitor reclaims a closed PR's entries by that component, so an unsuffixed PR save is never deleted. #2590 scoped the workflow half; three composite actions still carried the finding inci.toml's #962 baseline:.github/actions/compatibility-validator/action.yamlSet Up uv.github/actions/flatpak-manifest-validator/action.yamlSet Up uv.github/actions/package-obs/action.yamlSet Up uvEach already scopes its save to the writer flow (
save-cache: ${{ github.ref == 'refs/heads/master' }}); what was missing is the key'spr-<N>component, so each step gets the samecache-suffixexpression #2590 used, and its CACHE-013[[exceptions]]block is deleted.RED —
ci/test_cache013_actions.py(new, stdlib-only) against these files as they stand on master: both tests fail ('cache-suffix:' not found …; the three exceptions still present). 2 failures.GREEN — the fix plus
ci.toml:was
541 approved exception(s); the three CACHE-013 findings and their[[exceptions]]blocks are gone.uv run python -m unittest ci/test_ci_toml.py(28) andci/test_uv_run.py(5) pass;ruff check --select C901,RUF100on the new file is clean.Refs #962. CI-only change — nodocs/features.mdledger line.