Skip to content

[cherry-pick][2.60.0][ci][deps] Pin Windows CI to torch 2.11 so the gloo backend initializes (#66760) - #66858

Merged
elliot-barn merged 2 commits into
releases/2.60.0from
elliot/2.60.0-pick-66760
Oct 9, 2026
Merged

elliot-barn merged 2 commits into
releases/2.60.0from
elliot/2.60.0-pick-66760

Conversation

@elliot-barn

Copy link
Copy Markdown
Collaborator

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 [ci][deps] Bump torch to 2.10.0 fleet-wide and retire the Windows torch 2.7 special case #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

…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]>
@elliot-barn
elliot-barn requested review from a team as code owners October 8, 2026 20:14

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]>
@elliot-barn elliot-barn added the go add ONLY when ready to merge, run all tests label Oct 8, 2026
@elliot-barn
elliot-barn enabled auto-merge (squash) October 8, 2026 23:56
@elliot-barn
elliot-barn merged commit b7a4529 into releases/2.60.0 Oct 9, 2026
8 checks passed
@elliot-barn
elliot-barn deleted the elliot/2.60.0-pick-66760 branch October 9, 2026 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants