Skip to content

Only save caches on master branch pushes#1366

Merged
d-e-s-o merged 1 commit intolibbpf:masterfrom
d-e-s-o:topic/restrict-rust-cache
Mar 24, 2026
Merged

Only save caches on master branch pushes#1366
d-e-s-o merged 1 commit intolibbpf:masterfrom
d-e-s-o:topic/restrict-rust-cache

Conversation

@d-e-s-o
Copy link
Collaborator

@d-e-s-o d-e-s-o commented Mar 24, 2026

With a large build matrix and various specialized jobs, cache entries are created for every PR branch, quickly exhausting the 10 GB GitHub Actions cache limit and causing evictions. That is a problem, because it can force kernel bzImage and vmsh rebuilds, which can take a long time.
Restrict cache saving to the master branch, while still allowing all branches to restore from existing caches. In so doing we should curb evictions hopefully completely.

With a large build matrix and various specialized jobs, cache
entries are created for every PR branch, quickly exhausting the
10 GB GitHub Actions cache limit and causing evictions. That is a
problem, because it can force kernel bzImage and vmsh rebuilds, which
can take a long time.
Restrict cache saving to the master branch, while still allowing all
branches to restore from existing caches. In so doing we should curb
evictions hopefully completely.

Signed-off-by: Daniel Müller <deso@posteo.net>
@d-e-s-o d-e-s-o force-pushed the topic/restrict-rust-cache branch from e4addac to 8d991a4 Compare March 24, 2026 19:54
@d-e-s-o d-e-s-o changed the title Only save caches on main branch pushes Only save caches on master branch pushes Mar 24, 2026
@d-e-s-o d-e-s-o merged commit f01d606 into libbpf:master Mar 24, 2026
18 checks passed
@d-e-s-o d-e-s-o deleted the topic/restrict-rust-cache branch March 24, 2026 19:59
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