Repository navigation
ci: route services-validator's timestamp cache pair through the cache wrapper (CACHE-001, #962) - #2777
Merged
Conversation
…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.
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.
The last approved CACHE-001 callsites in the baseline go through the cache wrapper. Refs #2776, Refs #962.
RED
952617e20extendsci/test_ci_toml.py's converted-path pin so it covers a composite action too: the list is now relative to.githuband includesactions/services-validator/action.yaml, plus a new test that a converted path keeps noCACHE-001block. On master it fails twice for that path:(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:./.github/actions/cachewithmode: restore/mode: save. Keys, paths, restore-keys and the save'sgithub.ref == 'refs/heads/master'+outputs.cache-hit != 'true'guards are unchanged.CACHE-001[[exceptions]]block is deleted. ItsCACHE-002block stays: those keys are commit-keyed on purpose.ci-lint precheckon the branch: 5 violation(s), 418 approved exception(s), 10 needs_review (was 5 / 420 / 10), and noCACHE-001section.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.