Skip to content

ci: Give appimage.yaml's PR cache saves a pr-<N> key (#962) - #2670

Merged
zackees merged 2 commits into
masterfrom
infra/962-cache013-appimage
Oct 27, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/962-cache013-appimage

Conversation

@zackees

@zackees zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member

ci-lint burn-down for .github/workflows/appimage.yaml (part of #962). No user-visible change, so no docs/features.md line.

RED

30b43825e adds ci/test_cache013_appimage.py. Against this branch's base (origin/master = 02a79806d) it fails on both tests: 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.

ci-lint precheck on origin/master (uvx --from git+https://github.com/zackees/ci.yml@a1917ce76598904ce515cd7eec83450c317ea6f2 ci-lint precheck):

ci-lint precheck: 11 violation(s), 525 approved exception(s), 10 needs_review

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' = None
  • jobs.build.steps[9] — actions/cache/save key: zccache-appimage-${{ github.run_id }}
  • jobs.build.steps[10] — actions/cache/save key: cargo-appimage-${{ hashFiles(...) }}-${{ github.run_id }}
  • jobs.test.steps[11] — actions/cache/save key: testpkgs-${{ matrix.image }}-${{ hashFiles(...) }}

GREEN

3181e8b80 fixes the six sites and deletes the file's CACHE-013 [[exceptions]] block:

  • The three astral-sh/setup-uv steps get cache-suffix: ${{ github.event.pull_request.number && format('pr-{0}', github.event.pull_request.number) || '' }} — the same expression ci.yml, welcome.yaml, check-format.yaml and the four composite actions already use.
  • The three actions/cache/save keys end with the same pr-<N> component. The matching actions/cache/restore steps use the same key (so restore and save stay aligned); the zccache/cargo restores keep their restore-keys prefixes, which still match older master entries.

ci-lint precheck on the branch:

ci-lint precheck: 11 violation(s), 519 approved exception(s), 10 needs_review

the six appimage.yaml [CACHE-013] findings are gone; violations and needs_review are 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.py clean (no ruff format — the tree is not formatted that way).

Refs #962 — this clears one file from the CACHE-013 baseline; the build-project.yaml block (43 findings: 19 setup-uv, 17 actions/cache/save, 7 setup-soldr) remains.

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
zackees force-pushed the infra/962-cache013-appimage branch from 3181e8b to 89fce6f Compare October 27, 2026 17:31
@zackees

zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Rebased onto origin/master (7180296) after #2662/#2668 landed. One ci.toml hunk conflicted (the adjacent CACHE-013 [[exceptions]] region): resolved as master's list minus this file's block, so git diff origin/master -- ci.toml shows only appimage.yaml's six-line block gone. Rebased SHAs: RED test 30b43825e, GREEN 89fce6f7b. Re-ran ci.test_cache013_appimage + ci.test_ci_toml + ci.test_uv_run on the new tip (OK) and precheck (509 approved exceptions, 0 appimage.yaml findings).

@zackees
zackees added this pull request to the merge queue Oct 27, 2026
@zackees

zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Rebased SHAs (correcting the earlier comment): RED test e14f83aa9, GREEN 89fce6f7b. CI is green and the PR is queued. Handed off to the coordinator.

Merged via the queue into master with commit 9c16d5f Oct 27, 2026
31 checks passed
@zackees
zackees deleted the infra/962-cache013-appimage branch October 27, 2026 17:43
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