Skip to content

Only ccache save/restore on main to improve our cache hit rate/TTLs#185

Open
bleggett wants to merge 1 commit into
mainfrom
bleggett/cache-refresh-tighten
Open

Only ccache save/restore on main to improve our cache hit rate/TTLs#185
bleggett wants to merge 1 commit into
mainfrom
bleggett/cache-refresh-tighten

Conversation

@bleggett
Copy link
Copy Markdown
Contributor

@bleggett bleggett commented May 22, 2026

We do not need to cache PR branch run ccache bundles, because branches can (and do) inherit main caches automatically, it is only the inverse that is disallowed

And, caching ccache results from PR branches counts against the 10GB github limit, which eats into our overall ability to save main ccache bundles.

This is why we were losing ccache bundles in CI builds - the TTL wasn't expiring, we were hitting the 10GB limit, and losing our ccache when we didn't need to.

@bleggett bleggett requested review from azenla, kaniini and tycho as code owners May 22, 2026 19:42
@bleggett bleggett changed the title Fixup caching Only ccache save/restore on main to improve our cache hit rate/TTLs May 22, 2026
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