Skip to content

[ci][deps] Pin Windows CI to torch 2.11 so the gloo backend initializes - #66760

Merged
elliot-barn merged 1 commit into
masterfrom
windows-torch211-gloo
Oct 8, 2026
Merged

elliot-barn merged 1 commit into
masterfrom
windows-torch211-gloo

Conversation

@elliot-barn

@elliot-barn elliot-barn commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Description

//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.

#65909 assumed pytorch/gloo#472 shipped in torch 2.10, but the 2.10.0 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.

Testing

  • 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, 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.

Additional information

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

torch 2.10.0+cpu Windows wheels are still built without libuv, so
ProcessGroupGloo fails with "makeDeviceForHostname(): unsupported gloo
device" and //python/ray/tests:test_experimental_collective fails on
every Windows postmerge run since #65909. torch 2.11 is the first
release whose Windows wheel ships the gloo libuv transport again.

Restore the Windows-only relax/expand depset pair, pinned to
torch==2.11.0 / torchvision==0.26.0.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn elliot-barn added the go add ONLY when ready to merge, run all tests label Oct 5, 2026
@elliot-barn
elliot-barn marked this pull request as ready for review October 7, 2026 00:39
@elliot-barn
elliot-barn requested review from a team as code owners October 7, 2026 00:39
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@elliot-barn
elliot-barn merged commit 993ef3c into master Oct 8, 2026
7 checks passed
@elliot-barn
elliot-barn deleted the windows-torch211-gloo branch October 8, 2026 20:00
elliot-barn added a commit that referenced this pull request Oct 9, 2026
…loo backend initializes (#66760) (#66858)

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):
- Took the incoming side of the config/requirements conflicts: Windows
pin moves 2.7.0 → 2.11.0, `windows_tests_torch27_*` depset renamed to
`windows_tests_torch_*`, torch27 lock renamed to
`windows-tests-torch-ci_depset_py3.10.lock`.
- Did NOT take master's generated lock content: master's base Windows
lock has drifted from this branch (dl-cpu/test-requirements changes from
#65909). Instead regenerated the derived locks on this branch with
`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 pins
`torch==2.11.0+cpu` / `torchvision==0.26.0+cpu`. `--check` passes ("Lock
files are up to date").

🤖 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core devprod go add ONLY when ready to merge, run all tests windows

Development

Successfully merging this pull request may close these issues.

2 participants