Repository navigation
[cherry-pick][2.60.0][ci][deps] Pin Windows CI to torch 2.11 so the gloo backend initializes (#66760) - #66858
Merged
Merged
Conversation
…es (#66760) `//python/ray/tests:test_experimental_collective` has failed on every full Windows postmerge run (`:ray: core: :windows: python tests [g19_s5]`) since #65909 bumped torch to 2.10.0 and retired the Windows torch 2.7 special case. Postmerge build 20086 (`dbaa45f0ae`, the commit just before #65909) passes. Build 20084 (`7219dacfb6`, #65909 itself) and every full run after it (20071 … 20130) fail. The first subtest's real error: ``` File "...\torch\distributed\distributed_c10d.py", line 2043, in _new_process_group_helper backend_class = ProcessGroupGloo( RuntimeError: makeDeviceForHostname(): unsupported gloo device ``` After that, every later subtest fails with `TimeoutError: Timed out waiting for GLOO rendezvous metadata`. Windows wheel is still built without libuv. I checked `torch/lib/torch_cpu.dll` in each cp310 `win_amd64` wheel from download.pytorch.org/whl/cpu: | torch | `transport@gloo` symbols | imports `uv.dll` | |---|---|---| | 2.7.0 | 95 | yes | | 2.10.0 | 8 | no | | 2.11.0 / 2.12.0 / 2.13.0 | 95 | yes | torch 2.11 is the first release with the gloo libuv transport back, so this restores the Windows-only relax/expand depset pair that #65909 removed, pinned to `torch==2.11.0` / `torchvision==0.26.0` instead of 2.7. The rest of the fleet stays on 2.10. Remove the Windows pin once the repo-wide pin reaches 2.11. - `python/requirements/windows-requirements.txt`: Windows-only torch pin, restored. - `ci_windows.depsets.yaml`: `relaxed_windows_tests_ci_depset` and `windows_tests_torch_ci_depset` restored. - `windows.build.wanda.yaml` and `build_base.sh` now consume `windows-tests-torch-ci_depset_py3.10.lock`. The new lock differs from `windows-tests-ci_depset_py3.10.lock` in exactly two pins: `torch` 2.10.0+cpu → 2.11.0+cpu and `torchvision` 0.25.0+cpu → 0.26.0+cpu. - `bazel run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/ci_windows.depsets.yaml` → exit 0 - the same command with `--check` → exit 0, "Lock files are up to date." - `pre-commit run` on the changed files → passed - Verified on Windows CI in premerge build [74454](https://buildkite.com/ray-project/premerge/builds/74454), using a temporary commit (since dropped) that let the `flaky :windows: core tests` step run on premerge, because `test_experimental_collective` is currently tagged flaky: - `windowsbuild` installed `torch==2.11.0+cpu`. - `//python/ray/tests:test_experimental_collective` passed on the first attempt (83.3s); no `makeDeviceForHostname` / gloo rendezvous errors. - The other Windows jobs (smoke, wheels, cpp, core python, serve, train) passed. Not a duplicate: no open PR mentions `test_experimental_collective` or Windows torch/gloo. AI assistance (Claude Code) was used for this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 993ef3c) Signed-off-by: elliot-barn <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the Windows-only PyTorch pin from version 2.7.0 to 2.11.0 and torchvision from 0.22.0 to 0.26.0, as torch 2.11.0 is the first release to restore the gloo libuv transport on Windows. It also renames the associated depset configuration and lock files to remove the version-specific 'torch27' suffix, updating references across CI build scripts and docker configurations. I have no feedback to provide on these changes.
elliot-barn
added a commit
that referenced
this pull request
Oct 8, 2026
…tral re-published its torch 2.9 wheels (#66713) (#66868) Cherry-pick of #66713 onto `releases/2.60.0`. ## Why Astral re-published every `torch-scatter` wheel in place on 2026-10-03 (same filenames and versions, new contents). This branch is still on torch 2.9, so its pins (`2.1.2+cpu.torch.2.9` and `2.1.2+cu.12.8.torch.2.9`) fail any wanda image build that can't reuse a cached image: ``` × Failed to download `torch-scatter==2.1.2+cpu.torch.2.9` ╰─▶ Hash mismatch for `torch-scatter==2.1.2+cpu.torch.2.9` ``` Seen in `wanda: corebuild-py3.10` on microcheck [55867](https://buildkite.com/ray-project/microcheck/builds/55867), the build for #66858. That PR doesn't touch these locks. ## Conflict resolution All 29 locks conflicted, because master's hashes are for the torch 2.10 wheels. I reset them to this branch's content and re-locked here with the same method as #66713: 1. Temporarily add `--upgrade-package torch-scatter`. 2. Run `raydepsets build --all-configs`. 3. Revert the flag. ## Testing - `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check`: `Lock files are up to date.` - The diff is only `--hash` lines under `torch-scatter`, in the same 29 locks as #66713. No version changes. - I checked it against Astral's live JSON index (`cpu` and `cu128`): - All 232 added hashes are files Astral serves now. - None of the 290 removed hashes is still served. - Each `torch-scatter` block now matches exactly the file set Astral publishes for that version (8 files, previously 10). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
sai-miduthuri
approved these changes
Oct 8, 2026
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.
Cherry-pick of #66760 onto releases/2.60.0.
Conflict resolution notes (the branch predates #65909, which is deliberately NOT picked — no fleet-wide torch 2.10 bump here):
windows_tests_torch27_*depset renamed towindows_tests_torch_*, torch27 lock renamed towindows-tests-torch-ci_depset_py3.10.lock.bazelisk run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/ci_windows.depsets.yaml— base locks reproduced byte-identically, relaxed lock unchanged, and the torch lock now pinstorch==2.11.0+cpu/torchvision==0.26.0+cpu.--checkpasses ("Lock files are up to date").🤖 Generated with Claude Code