You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "rok (via GitHub)" <gi...@apache.org> on 2026/05/26 20:57:43 UTC
[I] [CI][C++] Improve GitHub Actions ccache reuse by saving compiler caches only from main [arrow]
rok opened a new issue, #50046:
URL: https://github.com/apache/arrow/issues/50046
### Describe the enhancement requested
Our C++ GitHub Actions jobs currently use `ccache` through `actions/cache`. Many cache keys include the full C++ source tree hash, for example:
```yaml
key: cpp-ccache-macos-${{ matrix.macos-version }}-${{ hashFiles('cpp/**') }}
restore-keys: cpp-ccache-macos-${{ matrix.macos-version }}-
```
This was originally introduced in #7081 as a workaround for GitHub Actions cache immutability: cache entries cannot be updated once written, so changing keys are needed to create new cache snapshots.
However, using hashFiles('cpp/**') might be suboptimal for compiler caches. Hashing the entire source tree at the outer GitHub cache layer creates many distinct cache entries and increases the chance of cache misses/eviction.
### Component(s)
Continuous Integration
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [CI][C++] Improve ccache performance by using more general cache keys [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #50046:
URL: https://github.com/apache/arrow/issues/50046#issuecomment-4627244582
Issue resolved by pull request 50047
https://github.com/apache/arrow/pull/50047
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [CI][C++] Improve ccache performance by using more general cache keys [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #50046: [CI][C++] Improve ccache performance by using more general cache keys
URL: https://github.com/apache/arrow/issues/50046
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org