Repository navigation
fix(deps): share main test cache with fork builds - #7406
Merged
Merged
Conversation
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.
Fork PR tests fall back to local Bazel execution while main uses RBE, so their action keys differ. The old
disk-Test-restore prefix also matches examples caches: #7403 restored a 51 MiB examples cache before running roughly 50,000 actions locally.Give the GHA test job a dedicated Ubuntu 24.04 disk cache and run the same local configuration on main and PRs. Main saves a fresh snapshot per run, including completed actions when later tests fail; PRs only restore. The prefix includes architecture and Bazel version and cannot match examples or release caches. BuildBuddy workflows and release jobs retain their existing remote execution setup.
Validation: actionlint 1.7.12 and repository commit hooks. End-to-end cache reuse requires a main run to seed the new namespace after merge, followed by a PR restore; no speedup is claimed yet. The initial main run and later cache misses execute locally, so cold runs can still be slow. This changes neither #7403 nor its running workflows.