Repository navigation
ci: reduce ccache size on GHA runners - #35176
willcl-ark wants to merge 1 commit into
Conversation
The GHA cache backend has a 10 GB per-repository limit, so jobs that save multiple 2 GB ccache entries can evict each other before slower jobs have a chance to reuse their caches. This was observed in bitcoin#35024. Set CCACHE_MAXSIZE to 500M only for jobs using GitHub-hosted runners, including matrix entries that explicitly opt into GHA. Keep the 2G limit for Cirrus runners, where the larger cache does not compete for the same constrained GHA cache quota.
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35176. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsNo conflicts as of last run. |
|
Extra GHA cache seems very cheap according to this page: Cache size Monthly cost (if fully utilized) And IMO would be the better option all round. Let me know if we don't want to buy more cache space from GH, and I'll undraft this. One advantage of this change though, might be that forks get "better" GHA cache hitrates (at our own expense though, to be clear). |
Concept ACK. |
|
Yeah, not sure how easy it would be to set up billing for this, but if it is possible, going for 200 GB (or more) would be nice. |
I concur. |
|
Well, if we find someone willing to shell out the whole $13/month for it, an admin will want to visit and configure billing information on https://github.com/organizations/bitcoin/settings/billing/payment_information Then, I think, they need to "set a budget" at https://github.com/organizations/bitcoin/settings/billing/budgets for actions to increase what can be spent on actions. It's unclear to me whether https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#configuring-cache-settings-for-your-repository is needed too, I think a bit of trial and error to work out which knobs we need to press could be in order... |
|
The additional caching should now be enabled. |
|
Is this still relevant? |
|
No I think we can close this now |
The GHA cache backend has a 10 GB per-repository limit, so jobs that save multiple 2 GB ccache entries can evict each other before slower jobs have a chance to reuse their caches. This was observed in #35024.
Set CCACHE_MAXSIZE to 500M only for jobs using GitHub-hosted runners, including matrix entries that explicitly opt into GHA. Keep the 2G limit for Cirrus runners, where the larger cache does not compete for the same constrained GHA cache quota.