Repository navigation
ci: Scope the remaining setup-uv PR saves with a pr-<N> cache suffix (#962) - #2590
Merged
Merged
Conversation
…962) ci-lint CACHE-013 flags a setup-uv step that can save in PR context but whose cache key has no delimited pr-<N> component, so the janitor cannot delete a closed PR's entry. Five steps are still unapproved findings: - .github/workflows/check-format.yaml jobs.checks (save-cache scoped to master, but a PR-context save would still be unsuffixed) - .github/workflows/ci.yml: cancel-superseded, native-cache-consumer, ci-gate, cache-janitor Add cache-suffix (the checker's recommended inline expression) to each. On master the suffix is empty, so the writer key is unchanged; on a PR it carries pr-<N> for the janitor. Steps that already pass enable-cache: false are untouched. RED: ci-lint precheck -> 5 CACHE-013 VIOLATION, 24 total (master). GREEN: ci-lint precheck -> 0 CACHE-013 VIOLATION, 19 total. Also: uv run python -m unittest ci.test_ci_toml (19 OK). Refs #962
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 aastral-sh/setup-uvstep that can save a cache in PR context whose key has no delimitedpr-<N>component: the janitor deletes a closed PR's entries by that component, so an unsuffixed PR save is never reclaimed. Five steps are still unapproved findings against the#962baseline:.github/workflows/check-format.yamlchecks.github/workflows/ci.ymlcancel-superseded.github/workflows/ci.ymlnative-cache-consumer.github/workflows/ci.ymlci-gate.github/workflows/ci.ymlcache-janitorEach already scopes its save to the writer flow (
save-cache: ${{ github.ref == 'refs/heads/master' }}); what was missing is the key'spr-<N>component. The steps that passenable-cache: falseare exempt and are untouched.The fix adds the checker's recommended inline suffix:
On a
masterpush the suffix is empty, so the writer key is unchanged; on a PR the save carriespr-<N>for the janitor. This is a cache-key change only — no job graph, trigger or step behavior changes.RED → GREEN
Focused CI/configuration fix (coordination.md §4): local RED evidence, one fix commit.
ci-lint precheckonorigin/master(0ef8117b8):24 violation(s), including 5[CACHE-013] VIOLATION(the table above).19 violation(s),0[CACHE-013] VIOLATION. No new finding; the count drops by exactly the 5 fixed.uv run python -m unittest ci.test_ci_toml→Ran 19 tests ... OK.ci-lintis the guard for this rule, so the fix needs no new offline test (an offline mirror of CACHE-013 would have to reproduce its "can this job save on a pull_request" analysis, and a naive version over-flags every setup-uv step).Refs #962