Skip to content

test: re-enable GitHub Actions cache for integration tests#1124

Draft
cpuguy83 wants to merge 2 commits into
project-dalec:mainfrom
cpuguy83:cpuguy83-test-gha-cache
Draft

test: re-enable GitHub Actions cache for integration tests#1124
cpuguy83 wants to merge 2 commits into
project-dalec:mainfrom
cpuguy83:cpuguy83-test-gha-cache

Conversation

@cpuguy83

@cpuguy83 cpuguy83 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Previously removed because it saved no time. With recent LLB determinism fixes, cross-run cache hits should now be realistic, so re-enabling to measure CI impact.

Integration test solves

  • Per-test scope; warmed on main, PRs read main + base + their own re-runs.
  • v2 cache service only (v1 retired March 2025): url_v2 + token, mode=max.

Prebuilt base images

  • frontend/worker bakes now use gha cache. frontend = shared scope; worker = per-suite scope to avoid matrix collisions. buildx auto-detects the runtime token.

Integration job exposes runtime tokens via crazy-max (commit-pinned). Draft to observe timing/cache-hit behavior before merging — first runs won't hit until main populates caches.

@cpuguy83 cpuguy83 force-pushed the cpuguy83-test-gha-cache branch from f9a0a69 to 8844b2f Compare June 29, 2026 01:05
The gha cache was removed previously because it bought no time. With the
LLB determinism fixes, cross-run hits are now realistic, so reinstate it
to see if it shortens CI. Caches are per-test scoped and warmed on main;
PRs read main + base + their own re-runs. Targets the v2 cache service
only (v1 retired March 2025).

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 force-pushed the cpuguy83-test-gha-cache branch from 8844b2f to 42fecc2 Compare June 29, 2026 01:17
Frontend uses a gha scope; workers reuse the ghcr registry caches published on merge and release, keeping heavy layers off the 10GB gha cap.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 force-pushed the cpuguy83-test-gha-cache branch from 42fecc2 to b1705aa Compare June 29, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant