feat(cache): share dependency caches for CI #9

Merged
robin.everaars merged 8 commits from feat/dependency-caches into main 2026-10-31 21:23:15 +00:00
Owner

Summary

  • Add paired restore/save actions for uv, Maven artifacts and the Grype database.
  • Keep keying, payload ownership and sanitization in shared policy; use the pinned upstream cache transport.
  • Exclude private/workspace uv packages and credential directories; retain normal installs, tests, scans and Grype freshness checks.

Validation

  • 20 behavior tests; Ruff/format, strict Zuban, configured actionlint and REUSE pass.
  • All 21 controlled mutants fail exactly one test each.
  • Independent closing review found no issues at b75fcae.
  • Cold PR run saved 75,652 bytes.
  • Warm/outage run restored that cache, installed offline, skipped a duplicate upload and continued normal tool execution after a real connection refusal.
  • Earlier trusted-context probe could not read PR-written entries.

Rollout

Publish v0.7.0 after merge. Consumer adoption uses the separately published cache-capable toolbox images. Runtime/post-GC acceptance remains pending for the consumer rollout.

## Summary - Add paired restore/save actions for uv, Maven artifacts and the Grype database. - Keep keying, payload ownership and sanitization in shared policy; use the pinned upstream cache transport. - Exclude private/workspace uv packages and credential directories; retain normal installs, tests, scans and Grype freshness checks. ## Validation - 20 behavior tests; Ruff/format, strict Zuban, configured actionlint and REUSE pass. - All 21 controlled mutants fail exactly one test each. - Independent closing review found no issues at b75fcae. - [Cold PR run](https://forge.hoist-it.nl/HOIST-IT-Actions/actions/actions/runs/13) saved 75,652 bytes. - [Warm/outage run](https://forge.hoist-it.nl/HOIST-IT-Actions/actions/actions/runs/15) restored that cache, installed offline, skipped a duplicate upload and continued normal tool execution after a real connection refusal. - Earlier trusted-context probe could not read PR-written entries. ## Rollout Publish v0.7.0 after merge. Consumer adoption uses the separately published cache-capable toolbox images. Runtime/post-GC acceptance remains pending for the consumer rollout.
test(cache): probe the deployed Forgejo cache protocol
All checks were successful
Cache protocol probe / cache (push) Successful in 37s
28adfef99f
feat(cache): share safe uv, Maven and Grype dependency caches
All checks were successful
Cache protocol probe / cache (push) Successful in 2s
Cache protocol probe / policy (push) Successful in 19s
c06b63b4df
fix(cache): permit backend-isolated PR uploads
All checks were successful
Cache protocol probe / cache (push) Successful in 2s
Cache protocol probe / isolation (push) Successful in 2s
Cache protocol probe / policy (push) Successful in 12s
Cache protocol probe / cache (pull_request) Successful in 2s
Cache protocol probe / isolation (pull_request) Successful in 2s
Cache protocol probe / policy (pull_request) Successful in 10s
5ec6951d01
test(cache): prove restored dependencies install offline
All checks were successful
Cache protocol probe / cache (push) Successful in 1s
Cache protocol probe / isolation (push) Successful in 1s
Cache protocol probe / policy (push) Successful in 10s
Cache protocol probe / cache (pull_request) Successful in 1s
Cache protocol probe / isolation (pull_request) Successful in 1s
Cache protocol probe / policy (pull_request) Successful in 9s
6c40b071e6
fix(cache): namespace keys and reuse exact trusted entries
All checks were successful
Cache protocol probe / cache (push) Successful in 1s
Cache protocol probe / isolation (push) Successful in 1s
Cache protocol probe / policy (push) Successful in 12s
Cache protocol probe / cache (pull_request) Successful in 2s
Cache protocol probe / isolation (pull_request) Successful in 2s
Cache protocol probe / policy (pull_request) Successful in 11s
c7cfeb413b
fix(cache): isolate project payloads and preserve Maven options
All checks were successful
Cache protocol probe / isolation (push) Successful in 52s
Cache protocol probe / cache (push) Successful in 52s
Cache protocol probe / cache (pull_request) Successful in 3s
Cache protocol probe / isolation (pull_request) Successful in 3s
Cache protocol probe / policy (push) Successful in 11s
Cache protocol probe / policy (pull_request) Successful in 10s
961b24028d
test(cache): verify transport fallback after a warm restore
All checks were successful
Cache protocol probe / isolation (push) Successful in 1s
Cache protocol probe / cache (push) Successful in 2s
Cache protocol probe / cache (pull_request) Successful in 1s
Cache protocol probe / isolation (pull_request) Successful in 1s
Cache protocol probe / policy (push) Successful in 24s
Cache protocol probe / policy (pull_request) Successful in 21s
b75fcae65e
robin.everaars changed title from WIP: feat(cache): share dependency caches for CI to feat(cache): share dependency caches for CI 2026-10-31 21:23:14 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
HOIST-IT-Actions/actions!9
No description provided.