Repository navigation
ci: Give appimage.yaml's PR cache saves a pr-<N> key (#962) - #2670
Merged
Merged
Conversation
zackees
enabled auto-merge
October 27, 2026 17:30
RED: appimage.yaml's three astral-sh/setup-uv steps carry no cache-suffix and its three direct actions/cache/save keys carry no pr-<N> component, so ci-lint precheck reports six CACHE-013 findings for the file (525 approved exceptions on origin/master). This test asserts the suffixes and the absence of the file's CACHE-013 exception block, and fails until they land.
CACHE-013 burn-down: appimage.yaml keeps its caches (zccache, cargo, the test images' packages) but the saves are PR-reclaimable. The three astral-sh/setup-uv steps get the cache-suffix expression every other workflow uses, and the three actions/cache/save keys end with the same pr-<N> component (the restore steps use the same key, and the zccache/cargo restores keep their restore-keys prefixes), so the janitor can delete a closed PR's entries. The file's CACHE-013 [[exceptions]] block is deleted. precheck: 525 -> 519 approved exceptions, the six appimage.yaml findings gone, violations and needs_review unchanged.
zackees
force-pushed
the
infra/962-cache013-appimage
branch
from
October 27, 2026 17:31
3181e8b to
89fce6f
Compare
Member
Author
|
Rebased onto origin/master (7180296) after #2662/#2668 landed. One ci.toml hunk conflicted (the adjacent CACHE-013 |
Member
Author
|
Rebased SHAs (correcting the earlier comment): RED test |
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 for
.github/workflows/appimage.yaml(part of #962). No user-visible change, so nodocs/features.mdline.RED
30b43825eaddsci/test_cache013_appimage.py. Against this branch's base (origin/master=02a79806d) it fails on both tests:appimage.yaml's threeastral-sh/setup-uvsteps carry nocache-suffixand its three directactions/cache/savekeys carry nopr-<N>component.ci-lint precheckonorigin/master(uvx --from git+https://github.com/zackees/ci.yml@a1917ce76598904ce515cd7eec83450c317ea6f2 ci-lint precheck):with six
[CACHE-013]findings for.github/workflows/appimage.yaml:jobs.build.steps[3],jobs.test.steps[4],jobs.release.steps[1]—astral-sh/setup-uv…'cache-suffix' = Nonejobs.build.steps[9]—actions/cache/savekey: zccache-appimage-${{ github.run_id }}jobs.build.steps[10]—actions/cache/savekey: cargo-appimage-${{ hashFiles(...) }}-${{ github.run_id }}jobs.test.steps[11]—actions/cache/savekey: testpkgs-${{ matrix.image }}-${{ hashFiles(...) }}GREEN
3181e8b80fixes the six sites and deletes the file's CACHE-013[[exceptions]]block:astral-sh/setup-uvsteps getcache-suffix: ${{ github.event.pull_request.number && format('pr-{0}', github.event.pull_request.number) || '' }}— the same expressionci.yml,welcome.yaml,check-format.yamland the four composite actions already use.actions/cache/savekeys end with the samepr-<N>component. The matchingactions/cache/restoresteps use the same key (so restore and save stay aligned); thezccache/cargorestores keep theirrestore-keysprefixes, which still match older master entries.ci-lint precheckon the branch:the six
appimage.yaml[CACHE-013]findings are gone; violations andneeds_revieware unchanged.Local:
uv run python -m unittest ci.test_cache013_appimage(3 tests OK, GREEN),ci.test_ci_toml(34 OK),ci.test_uv_run(5 OK);ruff check ci/test_cache013_appimage.pyclean (noruff format— the tree is not formatted that way).Refs #962 — this clears one file from the CACHE-013 baseline; the
build-project.yamlblock (43 findings: 19 setup-uv, 17actions/cache/save, 7setup-soldr) remains.