Skip to content

[Core CI] Make windows python distrib tests use ccache.#42171

Closed
yuanweiz wants to merge 25 commits into
grpc:masterfrom
yuanweiz:fixit-windows-ccache
Closed

[Core CI] Make windows python distrib tests use ccache.#42171
yuanweiz wants to merge 25 commits into
grpc:masterfrom
yuanweiz:fixit-windows-ccache

Conversation

@yuanweiz

@yuanweiz yuanweiz commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Previously ccache wasn't properly enabled for our python builds because setuptools has special logic to find MSVC and disregard CC/CXX flags https://github.com/pypa/setuptools/blob/main/setuptools/msvc.py. There's no graceful solution other than monkeypatching (which we already do with _spawn_patch.py).

Certain MSVC flags are not properly handled by ccache 4.8 so we need to rewrite and exclude them from hash key generation.

@yuanweiz yuanweiz force-pushed the fixit-windows-ccache branch from 2eee020 to 1fce289 Compare April 17, 2026 23:28
@yuanweiz yuanweiz changed the title [DRAFT]Fixit windows ccache [Core CI] Make windows python distrib tests use ccache. Apr 20, 2026
@yuanweiz yuanweiz requested review from Copilot and removed request for Copilot April 20, 2026 18:20
@yuanweiz yuanweiz added the release notes: no Indicates if PR should not be in release notes label Apr 20, 2026
@yuanweiz yuanweiz marked this pull request as ready for review April 20, 2026 18:31
@yuanweiz yuanweiz marked this pull request as draft April 20, 2026 18:31
@yuanweiz yuanweiz marked this pull request as ready for review April 20, 2026 20:44
Comment thread tools/run_tests/artifacts/build_artifact_python.bat
asheshvidyut pushed a commit to asheshvidyut/grpc that referenced this pull request Apr 23, 2026
Previously ccache wasn't properly enabled for our python builds before because setuptools has special logic to find MSVC and disregard `CC/CXX` flags https://github.com/pypa/setuptools/blob/main/setuptools/msvc.py. There's no graceful solution other than monkeypatching (which we already do with `_spawn_patch.py`).

Certain MSVC flags are not properly handled by ccache 4.8 so we need to rewrite and exclude them from hash key generation.

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes grpc#42171

COPYBARA_INTEGRATE_REVIEW=grpc#42171 from yuanweiz:fixit-windows-ccache 5ff00ca
PiperOrigin-RevId: 902859436
asheshvidyut pushed a commit to a-detiste/grpc that referenced this pull request Jun 10, 2026
Previously ccache wasn't properly enabled for our python builds before because setuptools has special logic to find MSVC and disregard `CC/CXX` flags https://github.com/pypa/setuptools/blob/main/setuptools/msvc.py. There's no graceful solution other than monkeypatching (which we already do with `_spawn_patch.py`).

Certain MSVC flags are not properly handled by ccache 4.8 so we need to rewrite and exclude them from hash key generation.

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes grpc#42171

COPYBARA_INTEGRATE_REVIEW=grpc#42171 from yuanweiz:fixit-windows-ccache 5ff00ca
PiperOrigin-RevId: 902859436
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants