Changes that are not affecting binaries, e.g., #27070 or #27072, are expected to show up to 100% ccache hit rate. But that is not the case:
Zero hit rate in the "macOS 10.15" is well known. But a fix was considered not "a good change" and closed.
For another task with nearly-zero hit rate--"ARM64 Android APK"--a fix suggested in #27077.
Here are cache hit rates for other problematic tasks:
- "previous releases": 33.47 % and 40.68 %
- "TSan": 77.94 % and 81.07 %
- "MSan": 47.24 % and 49.29 %
- "ASan + LSan + UBSan + integer": 54.96 % and 59.79 %
- "multiprocess": 12.05 % and 15.16 %
- "macOS 13 native": 65.87 % and 67.86 %
In my experiments, making a ccache_cache folder task-specific did not help.
Apparently, the problem is related to https://github.com/cirruslabs/cirrus-ci-docs/pull/896.
This PR fixes the issue. Also CCACHE_SIZE values have been adjusted for some tasks to avoid cache misses due to "cleanups performed".