Skip to content

CI: Store ccache only from branch runs - #6766

Open
fingolfin wants to merge 1 commit into
masterfrom
mh-claude/ci-ccache-no-pr-save
Open

fingolfin wants to merge 1 commit into
masterfrom
mh-claude/ci-ccache-no-pr-save

Conversation

@fingolfin

@fingolfin fingolfin commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

A pull request's ccache entries can be restored only by later runs of the same pull request, and those rarely exist: 26 of the 35 pull requests tested since 2026-10-15 had a single CI run. Even then, master's cache, which every first run restores, already gives 97-99% ccache hits. So these entries, 9.4 of the 10.6 GB in the repository's Actions cache, serve almost nobody.

Store the cache only from branch runs: pushes to master and stable-*, and the nightly schedule. Pull request runs keep restoring their base branch's cache through the existing fallback key; one that changes build rules or widely included headers now recompiles those parts on each push. Tag runs stop storing as well, since no other ref can restore their caches either.

Assisted-by: Generative AI

@fingolfin fingolfin added release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: infrastructure topic: ci Anything related to GitHub Actions, Codecov, AppVeyor, Coveralls, Travis, ... labels Oct 17, 2026
A pull request's ccache entries can be restored only by later runs of
the same pull request, and those rarely exist: 26 of the 35 pull
requests tested since 2026-10-15 had a single CI run. Even then,
master's cache, which every first run restores, already gives 97-99%
ccache hits. So these entries, 9.4 of the 10.6 GB in the repository's
Actions cache, serve almost nobody.

Store the cache only from branch runs: pushes to master and stable-*,
and the nightly schedule. Pull request runs keep restoring their base
branch's cache through the existing fallback key; one that changes
build rules or widely included headers now recompiles those parts on
each push. Tag runs stop storing as well, since no other ref can
restore their caches either.

Assisted-by: Generative AI
@codecov

codecov Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.70%. Comparing base (3f74e5d) to head (785778d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6766      +/-   ##
==========================================
+ Coverage   79.67%   79.70%   +0.02%     
==========================================
  Files         684      684              
  Lines      295464   295464              
  Branches     8656     8656              
==========================================
+ Hits       235421   235492      +71     
+ Misses      58217    58145      -72     
- Partials     1826     1827       +1     

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fingolfin
fingolfin force-pushed the mh-claude/ci-ccache-no-pr-save branch from a49809f to 785778d Compare October 17, 2026 15:49

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: ci Anything related to GitHub Actions, Codecov, AppVeyor, Coveralls, Travis, ... topic: infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant