Skip to content

fix(deps): share main test cache with fork builds - #7406

Merged
longlho merged 1 commit into
mainfrom
codex/gha-main-test-cache
Sep 14, 2026
Merged

longlho merged 1 commit into
mainfrom
codex/gha-main-test-cache

Conversation

@longlho

@longlho longlho commented Sep 14, 2026

Copy link
Copy Markdown
Member

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.

@longlho
longlho merged commit 31e15b6 into main Sep 14, 2026
18 of 19 checks passed
@longlho
longlho deleted the codex/gha-main-test-cache branch September 14, 2026 22:35
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