test: re-enable GitHub Actions cache for integration tests#1124
Draft
cpuguy83 wants to merge 2 commits into
Draft
test: re-enable GitHub Actions cache for integration tests#1124cpuguy83 wants to merge 2 commits into
cpuguy83 wants to merge 2 commits into
Conversation
f9a0a69 to
8844b2f
Compare
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>
8844b2f to
42fecc2
Compare
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>
42fecc2 to
b1705aa
Compare
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.
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
main, PRs read main + base + their own re-runs.url_v2+token,mode=max.Prebuilt base images
frontend/workerbakes 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
mainpopulates caches.