Skip to content

ci: route services-validator's timestamp cache pair through the cache wrapper (CACHE-001, #962) - #2777

Merged
zackees merged 2 commits into
masterfrom
infra/2773-services-validator-cache
Oct 28, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/2773-services-validator-cache

Conversation

@zackees

@zackees zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member

The last approved CACHE-001 callsites in the baseline go through the cache wrapper. Refs #2776, Refs #962.

RED

952617e20 extends ci/test_ci_toml.py's converted-path pin so it covers a composite action too: the list is now relative to .github and includes actions/services-validator/action.yaml, plus a new test that a converted path keeps no CACHE-001 block. On master it fails twice for that path:

FAIL ... (path=PosixPath('.github/actions/services-validator/action.yaml'))
AssertionError: Lists differ: [65, 106] != [] : route this step through ./.github/actions/cache

(the two raw calls are the "Restore Timestamp Cache" and "Save Timestamp Cache" steps), and the new exception test fails while the block is still in ci.toml.

GREEN

68aa992f1:

  • The restore/save pair calls ./.github/actions/cache with mode: restore / mode: save. Keys, paths, restore-keys and the save's github.ref == 'refs/heads/master' + outputs.cache-hit != 'true' guards are unchanged.
  • The path's CACHE-001 [[exceptions]] block is deleted. Its CACHE-002 block stays: those keys are commit-keyed on purpose.

ci-lint precheck on the branch: 5 violation(s), 418 approved exception(s), 10 needs_review (was 5 / 420 / 10), and no CACHE-001 section.

Local checks

  • uv run python -m unittest ci.test_ci_toml ci.test_cache013_actions — 48 tests OK.
  • uv run ruff check ci/test_ci_toml.py — clean.

…le CACHE-001 block

RED: ci/test_ci_toml.py lists the burned-down CACHE-001 paths relative to .github (so a composite action counts) and adds the services-validator action, whose two raw actions/cache steps fail the raw-call assertion; a second test fails while its CACHE-001 block is still in ci.toml.
…per (CACHE-001, #962)

GREEN: the restore/save pair now calls ./.github/actions/cache with mode: restore / mode: save; the save keeps its master-only guard and cache-hit condition. The path's CACHE-001 [[exceptions]] block is deleted. ci-lint precheck: 5 violations, 418 approved exceptions (was 420), no CACHE-001 finding left.
@zackees
zackees added this pull request to the merge queue Oct 28, 2026
Merged via the queue into master with commit 505a9e3 Oct 28, 2026
34 checks passed
@zackees
zackees deleted the infra/2773-services-validator-cache branch October 28, 2026 11:24
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