Skip to content

Only save caches on main branch pushes#1523

Merged
d-e-s-o merged 1 commit intolibbpf:mainfrom
d-e-s-o:topic/rust-cache-main
Mar 21, 2026
Merged

Only save caches on main branch pushes#1523
d-e-s-o merged 1 commit intolibbpf:mainfrom
d-e-s-o:topic/rust-cache-main

Conversation

@d-e-s-o
Copy link
Copy Markdown
Collaborator

@d-e-s-o d-e-s-o commented Mar 21, 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 main 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 main 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>
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.51%. Comparing base (213019c) to head (ab10b81).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1523   +/-   ##
=======================================
  Coverage   95.51%   95.51%           
=======================================
  Files          56       56           
  Lines        9555     9555           
=======================================
  Hits         9126     9126           
  Misses        429      429           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@d-e-s-o d-e-s-o merged commit 8d28aca into libbpf:main Mar 21, 2026
47 checks passed
@d-e-s-o d-e-s-o deleted the topic/rust-cache-main branch March 21, 2026 16:43
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