[CI] Improve ccache performance for Windows Python builds (ccache windows version bump)#42195
Closed
murgatroid99 wants to merge 1 commit into
Closed
[CI] Improve ccache performance for Windows Python builds (ccache windows version bump)#42195murgatroid99 wants to merge 1 commit into
murgatroid99 wants to merge 1 commit into
Conversation
Member
Author
|
We got an 80 minute build with a cache hit ratio of about 75%: https://btx.cloud.google.com/invocations/1d464888-d5d4-4d6a-9c60-1e6da7e54e0f/targets |
Member
|
Internal ref b/501458064 |
sergiitk
approved these changes
Apr 22, 2026
Member
|
sergiitk
approved these changes
Apr 22, 2026
copybara-service Bot
pushed a commit
that referenced
this pull request
Apr 23, 2026
… build directory consistent across runs) (#42212) We see ccache cache misses because each python build runs in a different temporary directory, and some header file names in the cache entry's manifest appear to use the full file path, so they fail to match. This change resolves that by making the build directory consistent for each build type. ref: - b/501458064 - Previous change: #42195 Closes #42212 COPYBARA_INTEGRATE_REVIEW=#42212 from murgatroid99:python_windows_ccache_basedir a29d1bb PiperOrigin-RevId: 904139620
asheshvidyut
pushed a commit
to asheshvidyut/grpc
that referenced
this pull request
Apr 23, 2026
…dows version bump) (grpc#42195) In the Python Windows builds, ccache currently has a low cache hit rate and fails to populate the direct mode cache. This is an attempt to fix that. Closes grpc#42195 COPYBARA_INTEGRATE_REVIEW=grpc#42195 from murgatroid99:python_windows_ccache_fix 2205915 PiperOrigin-RevId: 903665805
asheshvidyut
pushed a commit
to asheshvidyut/grpc
that referenced
this pull request
Apr 23, 2026
… build directory consistent across runs) (grpc#42212) We see ccache cache misses because each python build runs in a different temporary directory, and some header file names in the cache entry's manifest appear to use the full file path, so they fail to match. This change resolves that by making the build directory consistent for each build type. ref: - b/501458064 - Previous change: grpc#42195 Closes grpc#42212 COPYBARA_INTEGRATE_REVIEW=grpc#42212 from murgatroid99:python_windows_ccache_basedir a29d1bb PiperOrigin-RevId: 904139620
asheshvidyut
pushed a commit
to a-detiste/grpc
that referenced
this pull request
Jun 10, 2026
…dows version bump) (grpc#42195) In the Python Windows builds, ccache currently has a low cache hit rate and fails to populate the direct mode cache. This is an attempt to fix that. Closes grpc#42195 COPYBARA_INTEGRATE_REVIEW=grpc#42195 from murgatroid99:python_windows_ccache_fix 2205915 PiperOrigin-RevId: 903665805
asheshvidyut
pushed a commit
to a-detiste/grpc
that referenced
this pull request
Jun 10, 2026
… build directory consistent across runs) (grpc#42212) We see ccache cache misses because each python build runs in a different temporary directory, and some header file names in the cache entry's manifest appear to use the full file path, so they fail to match. This change resolves that by making the build directory consistent for each build type. ref: - b/501458064 - Previous change: grpc#42195 Closes grpc#42212 COPYBARA_INTEGRATE_REVIEW=grpc#42212 from murgatroid99:python_windows_ccache_basedir a29d1bb PiperOrigin-RevId: 904139620
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.
In the Python Windows builds, ccache currently has a low cache hit rate and fails to populate the direct mode cache. This is an attempt to fix that.