Skip to content

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

Closed

Description

@zackees

The last approved CACHE-001 callsites in the baseline are .github/actions/services-validator/action.yaml's timestamp cache pair: a raw actions/cache/restore (step "Restore Timestamp Cache", line 68) and a raw actions/cache/save (step "Save Timestamp Cache", line 108). The .github/actions/cache wrapper from #2733 exists, so both can go through it and the path's [[exceptions]] block can leave ci.toml (#2737 split this out of the tracker).

Current state (origin/master, ci-lint precheck)

ci-lint precheck: 5 violation(s), 420 approved exception(s), 10 needs_review — CACHE-001 reports exactly these 2 findings, both on that one path.

Work

  1. RED: extend ci/test_ci_toml.py's converted-path pin so it also covers a composite action (paths relative to .github), add actions/services-validator/action.yaml, and pin that a converted path keeps no CACHE-001 block. On master the raw-call assertion fails at lines 65 and 106.
  2. GREEN: call ./.github/actions/cache with mode: restore / mode: save, keeping the save's github.ref == 'refs/heads/master' guard, its outputs.cache-hit != 'true' condition and both key/restore-key values unchanged. Delete the path's CACHE-001 [[exceptions]] block.

Acceptance

ci-lint precheck shows 5 violation(s), 418 approved exception(s), 10 needs_review, no CACHE-001 section, and ci/test_ci_toml.py + ci/test_cache013_actions.py pass. The path's CACHE-002 block stays (those keys are commit-keyed on purpose).

Activity

  1. added
    infra
    on Oct 28, 2026
  2. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Claiming: investigation

    Plan (one PR):

    1. RED: extend ci/test_ci_toml.py's converted-path pin to composite actions and add .github/actions/services-validator/action.yaml; on master its two raw actions/cache steps fail the assertion.
    2. GREEN: route the restore/save pair through ./.github/actions/cache with an explicit mode:, keys/paths/guards unchanged; delete the path's CACHE-001 [[exceptions]] block.
    3. Verify: ci-lint precheck 420 -> 418 approved exceptions with no CACHE-001 section, plus ci/test_ci_toml.py and ci/test_cache013_actions.py.
  3. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    /ready

  4. added
    needs-investigation
    on Oct 28, 2026
  5. added
    ready
    and removed
    needs-investigation
    on Oct 28, 2026
  6. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Claiming: services-validator CACHE-001 burn-down — the investigation is the fix here (one composite action, two callsites). Branch infra/2773-services-validator-cache, RED 952617e20 / GREEN 68aa992f1, PR next.

  7. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    PR up: #2777 — the pair calls ./.github/actions/cache (mode: restore/mode: save), keys/paths/guards unchanged, and the path's CACHE-001 block is gone. ci-lint precheck: 420 -> 418 approved exceptions, no CACHE-001 finding. Queued once PR CI is green.

  8. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Fixed by #2777, merged to master as 505a9e3a7 (squash) at 11:24Z.

    • Both raw actions/cache steps in .github/actions/services-validator/action.yaml now call ./.github/actions/cache (mode: restore / mode: save), with the save's github.ref == 'refs/heads/master' guard, its outputs.cache-hit != 'true' condition and both key/restore-key values unchanged.
    • The path's CACHE-001 [[exceptions]] block is gone from ci.toml, and ci/test_ci_toml.py's converted-path pin now covers composite actions (paths relative to .github), so a converted path cannot keep a CACHE-001 block again.
    • Verified on master 505a9e3a7: uvx --from git+https://github.com/zackees/ci.yml@a1917ce7 ci-lint precheck reports 5 violation(s), 418 approved exception(s), 10 needs_review with zero CACHE-001 findings (420 -> 418 approved exceptions across ci: route services-validator's timestamp cache pair through the cache wrapper (CACHE-001, #962) #2777 and its sibling).

    Nothing is outstanding on this issue, so closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

infraready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions