Skip to content

ci: Scope the three composite actions' setup-uv PR saves with a pr-<N> suffix (#962) - #2663

Merged
zackees merged 2 commits into
masterfrom
ci/962-cache-013-composite-actions
Oct 27, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/962-cache-013-composite-actions

Conversation

@zackees

@zackees zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member

ci-lint's CACHE-013 flags an astral-sh/setup-uv step that can save a cache in PR context whose key has no delimited pr-<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 in ci.toml's #962 baseline:

file step
.github/actions/compatibility-validator/action.yaml Set Up uv
.github/actions/flatpak-manifest-validator/action.yaml Set Up uv
.github/actions/package-obs/action.yaml Set Up uv

Each already scopes its save to the writer flow (save-cache: ${{ github.ref == 'refs/heads/master' }}); what was missing is the key's pr-<N> component, so each step gets the same cache-suffix expression #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:

ci-lint precheck: 11 violation(s), 538 approved exception(s), 11 needs_review, in 23.49s

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) and ci/test_uv_run.py (5) pass; ruff check --select C901,RUF100 on the new file is clean.

Refs #962. CI-only change — no docs/features.md ledger line.

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

zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator. Auto-merge (--auto) is on. Local gate is not stamped: the full ./lint/./unittest lane (Docker Tier 2) was not run from this worker tick, so PR CI is the merge gate — the offline checks I did run are green (ci/test_cache013_actions.py 2/2, ci/test_ci_toml.py 28/28, ci/test_uv_run.py 5/5). CI-only change; happy to resolve any CodeRabbit/coordinator finding.

@zackees
zackees added this pull request to the merge queue Oct 27, 2026
Merged via the queue into master with commit b079673 Oct 27, 2026
32 checks passed
@zackees
zackees deleted the ci/962-cache-013-composite-actions branch October 27, 2026 16:52
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant