Improved Bazel Cache Hit Rate Calculation

Improved Bazel Cache Hit Rate Calculation on Bitrise – We’ve enhanced the accuracy of the Bazel cache hit rate as reported in Bitrise, ensuring more meaningful build insights for your projects.

Highlights:

  • Accurate Cache Hit Reporting: Cache hit rates now exclude internal Bazel actions, following Bazel’s official recommendations. Internal actions are not cacheable and will no longer skew your metrics.
  • Meaningful 100% Hit Rate: It’s now possible to achieve a true 100% remote cache hit rate if all eligible actions are served from the cache.
  • More Insightful Trends: You may notice an increase (“bump”) in your invocation cache hit rate trendlines in Bitrise Insights, as internal actions are no longer lowering your hit rate.
  • Detailed Invocation Data: The invocation detail page continues to show comprehensive information—including environment variables, command, startup options, runtimes, and now a more accurate cache hit rate.

Bottom line: Your Bazel cache hit rates on Bitrise now better reflect actual cacheable work, helping teams more accurately monitor and optimize build performance.

1 Like