Add ccache troubleshooting docs and analysis scripts#5185
Open
ScottTodd wants to merge 2 commits into
Open
Conversation
Add docs/development/ccache_troubleshooting.md covering: - CI infrastructure (remote cache servers, namespace versioning, platform differences, Windows drive mounts) - How to download and inspect ccache logs from CI - Symptoms of poor cache hit rates and their fixes - Validation procedures for compiler reproducibility, path stability, and flag stability Add two analysis scripts to build_tools/hack/ccache/: - analyze_ccache_logs.py: Downloads ccache logs from S3 and reports hit/miss rates broken down by compiler and subproject - compare_ccache_by_project.py: Compares per-subproject hit rates across two log files (e.g. Linux vs Windows) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Follow-up to #5141, documenting what was learned while debugging and contributing a few (hacky) scripts that helped my coding agent in its analysis.
See also:
Technical Details
The documentation and scripts here were mostly generated by Claude Code following a multi-day debugging session. The intended audience is both humans and coding agents, so together we won't need to rediscover so much the next time we're debugging poor cache behavior.
Test Plan
Ran the new scripts myself:
Analyze "baseline"
Analyze "with fixes"
Compare "baseline" to "with fixes"
Submission Checklist