Repository navigation
ci/windows: bump libuv version and fix windows - #472
Merged
Merged
Conversation
Contributor
d4l3k
force-pushed
the
d4l3k/fix_windows
branch
2 times, most recently
from
October 21, 2025 22:29
2c83677 to
d1c31e9
Compare
d4l3k
force-pushed
the
d4l3k/fix_windows
branch
2 times, most recently
from
December 2, 2025 00:56
0bb8e45 to
e7d4bf3
Compare
d4l3k
force-pushed
the
d4l3k/fix_windows
branch
7 times, most recently
from
December 2, 2025 02:15
7958848 to
32d7563
Compare
d4l3k
force-pushed
the
d4l3k/fix_windows
branch
from
December 2, 2025 02:23
32d7563 to
510ec78
Compare
Member
Author
|
Internal PR accepted -- landing |
elliot-barn
added a commit
to ray-project/ray
that referenced
this pull request
Jul 19, 2026
…ile error, streaming-generator timeout, uv test (#64865) ## Why are these changes needed? Fixes all four Windows test failures on master postmerge (builds 18675/18684). Windows tests run only on release-automation-triggered postmerge builds, so these landed silently. ### 1. `test_experimental_collective` — torch gloo broken on Windows (pin torch 2.7.0) Fails since #64257 bumped torch `2.7.0 → 2.9.0`: ``` RuntimeError: makeDeviceForHostname(): unsupported gloo device ``` torch 2.8/2.9 stock Windows wheels are built **without libuv**, and gloo's TCP transport is Linux-only, so `torch.distributed`'s gloo backend cannot initialize at all on Windows (pytorch/pytorch#150381). Fixed upstream via pytorch/gloo#472, shipped in torch **2.10** and explicitly not cherry-picked into 2.9.x. Ray's own postmerge bisection (builds 18569–18574) confirmed #64257 as first-bad; Linux/macOS are unaffected. The windowsbuild image previously pip-installed its test deps constrained by `requirements_compiled.txt` directly, so there was no depset to override. This brings it under raydepsets (`ci_windows.depsets.yaml`), mirroring the relax/expand pattern from `ci_data.depsets.yaml`: - `windows_tests_ci_depset_310` — compile `requirements.txt` + `test-requirements.txt` + `dl-cpu-requirements.txt` for windows/py3.10 constrained by `requirements_compiled` (same inputs `build_base.sh` used). - `relaxed_windows_tests_ci_depset_310` — relax torch, torchvision, and the ABI-coupled PyG binaries. - `windows_tests_torch27_ci_depset_310` — expand with `python/requirements/windows-requirements.txt`: `torch==2.7.0`, `torchvision==0.22.0`, and the `+pt27cpu` PyG local builds (explicit local tags because the relaxed lock still emits the torch-2.9.0 find-links and unsafe-best-match would otherwise re-pick `+pt29cpu`). `build_base.sh` installs the final lock hash-stripped with `--no-deps` (same pattern as `ci/ray_ci/macos/macos_ci.sh`). The wanda srcs now key on the lock instead of the four requirements files. The final lock differs from the base resolution by exactly the six torch packages. Windows **wheel** builds are unaffected (hermetic `uv run` env in `build-wheel-windows.sh`). Delete `windows-requirements.txt` and the torch2.7 depsets once the repo-wide torch pin reaches ≥2.10. ### 2. `generator_waiter_test` — MSVC C2131 compile error (cpp tests job) Broken since #64383: a by-ref-captured `constexpr` local used as an array bound inside a lambda is not a constant expression to MSVC. Make the test constants `static constexpr`. ### 3. `test_streaming_generator` — timeout, moved to the large shard Passing Windows runs take ~296s against the moderate (300s) limit (build 18675: PASSED in 296.2s; build 18684: TIMEOUT at 300s in 2/2 attempts, dying mid-suite at test 21–22 of 23) — legitimately slow, not hung. The Windows job selects `//python/ray/tests/...` by path, so the size-tag move keeps Windows coverage. ### 4. `test_runtime_env_uv::test_uv_with_version_and_check` — pkg_resources removed Use `importlib.metadata` instead of `pkg_resources`: virtualenv ≥21 (bumped in #64257) no longer seeds setuptools into the venvs Ray creates, and setuptools ≥83 removed `pkg_resources` entirely, so the test must not depend on it regardless of the virtualenv pin decision in #64739. Ray's non-test code has zero pkg_resources usage. ## Related issue number Root causes: upstream pytorch/pytorch#150381 (item 1); regressions introduced by #64257 (items 1, 4) and #64383 (item 2). ## Checks - Not a duplicate: searched open PRs — none address the Windows gloo/torch failure, the MSVC break, or the streaming-generator timeout. #64739 (virtualenv pin) is complementary: item 4 here makes the test independent of that decision. - Tests run locally: `bazel run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/ci_windows.depsets.yaml` (all depsets compile; final lock pins `torch==2.7.0+cpu`, diff vs base is exactly the six torch packages); `bazel query` confirms `test_streaming_generator` is a unique target with `size = large`; `pre-commit` passed on all changed files. Windows image build + test runs can only be validated in CI — watch `windowsbuild` (cold rebuild expected) and the Windows cpp/python test jobs on this PR. - AI assistance was used for this change (diagnosis and implementation); reviewed and submitted by a human. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
…ile error, streaming-generator timeout, uv test (ray-project#64865) ## Why are these changes needed? Fixes all four Windows test failures on master postmerge (builds 18675/18684). Windows tests run only on release-automation-triggered postmerge builds, so these landed silently. ### 1. `test_experimental_collective` — torch gloo broken on Windows (pin torch 2.7.0) Fails since ray-project#64257 bumped torch `2.7.0 → 2.9.0`: ``` RuntimeError: makeDeviceForHostname(): unsupported gloo device ``` torch 2.8/2.9 stock Windows wheels are built **without libuv**, and gloo's TCP transport is Linux-only, so `torch.distributed`'s gloo backend cannot initialize at all on Windows (pytorch/pytorch#150381). Fixed upstream via pytorch/gloo#472, shipped in torch **2.10** and explicitly not cherry-picked into 2.9.x. Ray's own postmerge bisection (builds 18569–18574) confirmed ray-project#64257 as first-bad; Linux/macOS are unaffected. The windowsbuild image previously pip-installed its test deps constrained by `requirements_compiled.txt` directly, so there was no depset to override. This brings it under raydepsets (`ci_windows.depsets.yaml`), mirroring the relax/expand pattern from `ci_data.depsets.yaml`: - `windows_tests_ci_depset_310` — compile `requirements.txt` + `test-requirements.txt` + `dl-cpu-requirements.txt` for windows/py3.10 constrained by `requirements_compiled` (same inputs `build_base.sh` used). - `relaxed_windows_tests_ci_depset_310` — relax torch, torchvision, and the ABI-coupled PyG binaries. - `windows_tests_torch27_ci_depset_310` — expand with `python/requirements/windows-requirements.txt`: `torch==2.7.0`, `torchvision==0.22.0`, and the `+pt27cpu` PyG local builds (explicit local tags because the relaxed lock still emits the torch-2.9.0 find-links and unsafe-best-match would otherwise re-pick `+pt29cpu`). `build_base.sh` installs the final lock hash-stripped with `--no-deps` (same pattern as `ci/ray_ci/macos/macos_ci.sh`). The wanda srcs now key on the lock instead of the four requirements files. The final lock differs from the base resolution by exactly the six torch packages. Windows **wheel** builds are unaffected (hermetic `uv run` env in `build-wheel-windows.sh`). Delete `windows-requirements.txt` and the torch2.7 depsets once the repo-wide torch pin reaches ≥2.10. ### 2. `generator_waiter_test` — MSVC C2131 compile error (cpp tests job) Broken since ray-project#64383: a by-ref-captured `constexpr` local used as an array bound inside a lambda is not a constant expression to MSVC. Make the test constants `static constexpr`. ### 3. `test_streaming_generator` — timeout, moved to the large shard Passing Windows runs take ~296s against the moderate (300s) limit (build 18675: PASSED in 296.2s; build 18684: TIMEOUT at 300s in 2/2 attempts, dying mid-suite at test 21–22 of 23) — legitimately slow, not hung. The Windows job selects `//python/ray/tests/...` by path, so the size-tag move keeps Windows coverage. ### 4. `test_runtime_env_uv::test_uv_with_version_and_check` — pkg_resources removed Use `importlib.metadata` instead of `pkg_resources`: virtualenv ≥21 (bumped in ray-project#64257) no longer seeds setuptools into the venvs Ray creates, and setuptools ≥83 removed `pkg_resources` entirely, so the test must not depend on it regardless of the virtualenv pin decision in ray-project#64739. Ray's non-test code has zero pkg_resources usage. ## Related issue number Root causes: upstream pytorch/pytorch#150381 (item 1); regressions introduced by ray-project#64257 (items 1, 4) and ray-project#64383 (item 2). ## Checks - Not a duplicate: searched open PRs — none address the Windows gloo/torch failure, the MSVC break, or the streaming-generator timeout. ray-project#64739 (virtualenv pin) is complementary: item 4 here makes the test independent of that decision. - Tests run locally: `bazel run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/ci_windows.depsets.yaml` (all depsets compile; final lock pins `torch==2.7.0+cpu`, diff vs base is exactly the six torch packages); `bazel query` confirms `test_streaming_generator` is a unique target with `size = large`; `pre-commit` passed on all changed files. Windows image build + test runs can only be validated in CI — watch `windowsbuild` (cold rebuild expected) and the Windows cpp/python test jobs on this PR. - AI assistance was used for this change (diagnosis and implementation); reviewed and submitted by a human. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]> Signed-off-by: 400Ping <[email protected]>
elliot-barn
added a commit
to ray-project/ray
that referenced
this pull request
Sep 4, 2026
…ch 2.7 special case torch 2.9.0 -> 2.10.0 and torchvision 0.24.0 -> 0.25.0 in dl-cpu/dl-gpu requirements, data-test-requirements, the release BYOD .in files, the compiled constraints and every non-LLM lock (38 modified). The PyG extensions move to their torch-2.10 builds (Astral torch-scatter +cpu.torch.2.10 / +cu.12.8.torch.2.10, PyG torch-sparse +pt210cpu / +pt210cu128). torchcodec's cap flips from <0.10 to >=0.10,<0.11: its libtorchcodec is ABI-bound to the torch minor and 0.10.x is the torch 2.10 line. triton follows torch to 3.6.0 (3.6 in the ml_byod_3.10 .in as well). torch 2.8/2.9 Windows wheels lacked libuv and could not initialize the gloo backend (pytorch/pytorch#150381); the fix (pytorch/gloo#472) ships in 2.10, so the Windows-only torch 2.7 pin, its relaxed/torch27 depsets and locks are deleted and the windowsbuild image consumes windows-tests-ci_depset directly. The LLM stack (vllm-pinned to torch 2.13) and the legacy doc templates are untouched. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
added a commit
to ray-project/ray
that referenced
this pull request
Oct 1, 2026
…ch 2.7 special case (#65909) ## Description Bumps the repo-wide torch pin from **2.9.0 to 2.10.0** (torchvision 0.24.0 → 0.25.0) across CI, the release BYOD images and the compiled constraints, and retires the Windows-only torch 2.7 special case that the 2.9 pin forced. Why now: torch 2.8/2.9 Windows wheels were built without libuv, so `torch.distributed`'s gloo backend could not initialize on Windows (pytorch/pytorch#150381). The fix (pytorch/gloo#472) ships in torch 2.10, and `windows-requirements.txt` carried the instruction *"Keep Windows CI on 2.7.0 until the repo-wide torch pin reaches >=2.10, then delete this file and the windows torch2.7 depsets."* This PR does exactly that. ### Pins moved - `python/requirements/ml/dl-cpu-requirements.txt`: `torch==2.10.0`, `torchvision==0.25.0`, `torch-scatter==2.1.2+cpu.torch.2.10` (Astral), `torch-sparse==0.6.18+pt210cpu` (PyG `torch-2.10.0+cpu` page). `nvidia-nccl-cu12==2.27.5` is unchanged — torch 2.10.0+cu128 still requires exactly that. - `dl-gpu-requirements.txt`: `torch==2.10.0+cu128`, `torchvision==0.25.0+cu128`, `torch-scatter==2.1.2+cu.12.8.torch.2.10`, `torch-sparse==0.6.18+pt210cu128`. - `data-test-requirements.txt`: `torchvision==0.25.0`; **`torchcodec` cap flipped from `<0.10` to `>=0.10,<0.11`** — its `libtorchcodec` is ABI-bound to a torch minor and declares no torch requirement, so the line has to be pinned by hand: 0.9.x was built for torch 2.9 and would fail to load, 0.10.x is the torch 2.10 line (lerobot 0.5.1 allows `<0.11`). - Release BYOD: `requirements_ml_byod_3.10.in` (`torch==2.10.0`, `triton==3.6.0` — torch 2.10 requires triton 3.6), `requirements_ml_byod_3.13.in` (`torch==2.10.0`), `requirements_gpu_cu130.in` (`2.9.1` → `2.10.0`). - `requirements_compiled_py3.14.txt`: `torch==2.10.0`, `torchvision==0.25.0`, PyG find-links → `torch-2.10.0+cpu` — mirrored by hand as always for this file. Note torch 2.10 is the first line with cp314 wheels, so this snapshot's torch pin is now actually satisfiable on py3.14 (it pinned 2.7.0, which has none); unifying `docker/ray-torch/torch-constraints-py3.14.txt` onto it is a possible follow-up, not done here. ### ray-torch image: py3.14 now shares the compiled constraints (closes the TODO in `ray_torch.depsets.yaml`) `ray_torch.depsets.yaml` carried two copies of the same depset because `requirements_compiled_py3.14.txt` pinned torch 2.7.0 (no cp314 wheels), so the py3.14 image had to pin torch itself in `docker/ray-torch/torch-constraints-py3.14.txt`. With the snapshot on 2.10.0 every pin in that side file (`torch`, `torchvision`, `cupy-cuda12x`, `llvmlite`, `numba`, `dm-tree`) is supplied identically by the snapshot, so the two entries collapse into one constrained by `/tmp/ray-deps/requirements_compiled_py${PYTHON_VERSION}.txt` and the side file is deleted. Two things had to move for that to resolve: - `nvidia-nccl-cu12` in the py3.14 snapshot: `2.26.2` → `2.27.5` — the torch-2.7-era value was never mirrored; torch 2.10.0 requires 2.27.5 exactly (same as `requirements_compiled.txt` / `dl-cpu-requirements.txt`). - **Effect on the py3.14 ray-torch lock:** it was previously unconstrained apart from the six side-file pins, so ~100 of its packages floated to whatever was newest at compile time; they are now held to the py3.14 compiled snapshot the same way the py3.11 image is held to `requirements_compiled.txt`. Most of the ~109 moved lines are exactly that (e.g. `pytest` 9.0.3 → 8.3.3, `numpy` 2.4.6 → 2.3.3, `sentence-transformers` 5.5.1 → 3.0.1). Caveat worth knowing: `requirements_compiled_py3.14.txt` is a hand-maintained snapshot and differs from `requirements_compiled.txt` in 28 of 607 shared pins (mixed direction — `transformers` 4.36.2 vs 5.11.0 and `datasets` 3.6.0 vs 4.8.5 older, `numpy`/`pytest`/`urllib3`/`grpcio`/`pydantic` newer) plus 15 py3.14-only pins, so the two ray-torch images are aligned in *policy* but not yet byte-for-byte in versions. Refreshing that snapshot toward `requirements_compiled.txt` (now that torch 2.10 makes it possible) is the natural follow-up. The py3.11 lock only gains `langchain-text-splitters` and its closure plus the jsonpatch bump. - **`jsonpatch==1.32` → `1.33`** in `test-requirements.txt`. `langchain-text-splitters` (in the ray-torch image since #65114) needs a `langchain-core` requiring `jsonpatch>=1.33`; 1.32 was a 2023 tier-split snapshot pin (#36808), 1.33 is the last release, and the only other consumer (`cfn-lint`) takes any version. This also removes the reason `langchain-text-splitters` was excluded from the py3.11 ray-torch image, so that `python_version >= "3.12"` marker is dropped and both images match. ### Windows special case removed - `python/requirements/windows-requirements.txt` deleted. - `ci_windows.depsets.yaml`: `relaxed_windows_tests_ci_depset` and `windows_tests_torch27_ci_depset` removed; their two locks deleted. - `ci/docker/windows.build.wanda.yaml` and `ci/ray_ci/windows/build_base.sh` now consume `windows-tests-ci_depset_py3.10.lock` directly (the lock the torch27 one was derived from). ### Not moved (deliberately) - LLM stack (`python/requirements/llm`, `python/deplocks/llm/*`): pinned by `vllm==0.27.0` to torch 2.13; independent of this pin. - `doc/source/templates/**` (torch 2.0.1): legacy template examples, out of scope. - `docker/ray-torch/torch-constraints-py3.14.txt` already pins torch 2.10.0 / torchvision 0.25.0. ### What moved in the locks Aggregated across the 38 changed locks — nothing outside torch's own closure: `torch` 2.9.0→2.10.0 (+cpu/+cu128), `torchvision` 0.24.0→0.25.0, `torch-scatter`/`torch-sparse` to the torch-2.10 builds, `triton` 3.5.0→3.6.0 (13 GPU locks), `torchcodec` 0.9.1→0.10.0 (3 data locks), `nvidia-nvshmem-cu12` 3.3.20→3.4.5 (13 GPU locks), and the `cuda-bindings`/`cuda-python`/`cuda-pathfinder` set that torch 2.10's cu128 wheel pulls in (torch 2.10.0+cu128 declares `cuda-bindings==12.9.4` exactly, which brings `cuda-pathfinder` and moves the five py3.12 GPU locks that previously resolved `cuda-bindings`/`cuda-python` 12.9.6 down to 12.9.4). `deepspeed` stays `0.18.9`. ### Verified locally - torch 2.10.0 has cp310/cp312/cp314 wheels on `download.pytorch.org/whl/{cpu,cu128,cu130}` and win_amd64 on PyPI; torchvision 0.25.0 likewise (and the repo's ray-torch py3.14 constraints already pair 2.10.0 with 0.25.0). - PyG publishes `torch_sparse 0.6.18+pt210{cpu,cu128}` for cp310/cp312 (linux + win); Astral publishes `torch-scatter 2.1.2+cpu.torch.2.10` / `+cu.12.8.torch.2.10`. - No caps in the way: `torchtext 0.18.0` requires `torch>=2.3.0`; `pytorch-lightning 1.8.6` requires `torch>=1.9.0`; `torchft-nightly` requires `torch>=2.7`. - `./ci/ci.sh compile_pip_dependencies` → exit 0; diff vs base is exactly the find-links URL, `torch==2.10.0`, `torchvision==0.25.0` - `bazel run //ci/raydepsets:raydepsets -- build --all-configs` → exit 0, 105 depsets; 38 locks modified, 2 deleted (the Windows torch27 pair); every non-LLM lock now pins `torch==2.10.0` - `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check` → exit 0, all 105 depsets regenerate byte-identically Follows #65899 (Astral index / PyG cleanup), which has merged; this PR is rebased on top of it. ## Related issues pytorch/pytorch#150381, pytorch/gloo#472. Follows #65899. ## Additional information Not a duplicate: open dependabot PRs (#64868, #64860, #64005) bump torch in single requirement files without the Windows/PyG/torchcodec/lock changes, and each carries a failing check; no open PR bumps the fleet pin coherently. AI assistance (Claude Code) was used for this change; every changed line was reviewed by the submitter. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
…ch 2.7 special case (ray-project#65909) ## Description Bumps the repo-wide torch pin from **2.9.0 to 2.10.0** (torchvision 0.24.0 → 0.25.0) across CI, the release BYOD images and the compiled constraints, and retires the Windows-only torch 2.7 special case that the 2.9 pin forced. Why now: torch 2.8/2.9 Windows wheels were built without libuv, so `torch.distributed`'s gloo backend could not initialize on Windows (pytorch/pytorch#150381). The fix (pytorch/gloo#472) ships in torch 2.10, and `windows-requirements.txt` carried the instruction *"Keep Windows CI on 2.7.0 until the repo-wide torch pin reaches >=2.10, then delete this file and the windows torch2.7 depsets."* This PR does exactly that. ### Pins moved - `python/requirements/ml/dl-cpu-requirements.txt`: `torch==2.10.0`, `torchvision==0.25.0`, `torch-scatter==2.1.2+cpu.torch.2.10` (Astral), `torch-sparse==0.6.18+pt210cpu` (PyG `torch-2.10.0+cpu` page). `nvidia-nccl-cu12==2.27.5` is unchanged — torch 2.10.0+cu128 still requires exactly that. - `dl-gpu-requirements.txt`: `torch==2.10.0+cu128`, `torchvision==0.25.0+cu128`, `torch-scatter==2.1.2+cu.12.8.torch.2.10`, `torch-sparse==0.6.18+pt210cu128`. - `data-test-requirements.txt`: `torchvision==0.25.0`; **`torchcodec` cap flipped from `<0.10` to `>=0.10,<0.11`** — its `libtorchcodec` is ABI-bound to a torch minor and declares no torch requirement, so the line has to be pinned by hand: 0.9.x was built for torch 2.9 and would fail to load, 0.10.x is the torch 2.10 line (lerobot 0.5.1 allows `<0.11`). - Release BYOD: `requirements_ml_byod_3.10.in` (`torch==2.10.0`, `triton==3.6.0` — torch 2.10 requires triton 3.6), `requirements_ml_byod_3.13.in` (`torch==2.10.0`), `requirements_gpu_cu130.in` (`2.9.1` → `2.10.0`). - `requirements_compiled_py3.14.txt`: `torch==2.10.0`, `torchvision==0.25.0`, PyG find-links → `torch-2.10.0+cpu` — mirrored by hand as always for this file. Note torch 2.10 is the first line with cp314 wheels, so this snapshot's torch pin is now actually satisfiable on py3.14 (it pinned 2.7.0, which has none); unifying `docker/ray-torch/torch-constraints-py3.14.txt` onto it is a possible follow-up, not done here. ### ray-torch image: py3.14 now shares the compiled constraints (closes the TODO in `ray_torch.depsets.yaml`) `ray_torch.depsets.yaml` carried two copies of the same depset because `requirements_compiled_py3.14.txt` pinned torch 2.7.0 (no cp314 wheels), so the py3.14 image had to pin torch itself in `docker/ray-torch/torch-constraints-py3.14.txt`. With the snapshot on 2.10.0 every pin in that side file (`torch`, `torchvision`, `cupy-cuda12x`, `llvmlite`, `numba`, `dm-tree`) is supplied identically by the snapshot, so the two entries collapse into one constrained by `/tmp/ray-deps/requirements_compiled_py${PYTHON_VERSION}.txt` and the side file is deleted. Two things had to move for that to resolve: - `nvidia-nccl-cu12` in the py3.14 snapshot: `2.26.2` → `2.27.5` — the torch-2.7-era value was never mirrored; torch 2.10.0 requires 2.27.5 exactly (same as `requirements_compiled.txt` / `dl-cpu-requirements.txt`). - **Effect on the py3.14 ray-torch lock:** it was previously unconstrained apart from the six side-file pins, so ~100 of its packages floated to whatever was newest at compile time; they are now held to the py3.14 compiled snapshot the same way the py3.11 image is held to `requirements_compiled.txt`. Most of the ~109 moved lines are exactly that (e.g. `pytest` 9.0.3 → 8.3.3, `numpy` 2.4.6 → 2.3.3, `sentence-transformers` 5.5.1 → 3.0.1). Caveat worth knowing: `requirements_compiled_py3.14.txt` is a hand-maintained snapshot and differs from `requirements_compiled.txt` in 28 of 607 shared pins (mixed direction — `transformers` 4.36.2 vs 5.11.0 and `datasets` 3.6.0 vs 4.8.5 older, `numpy`/`pytest`/`urllib3`/`grpcio`/`pydantic` newer) plus 15 py3.14-only pins, so the two ray-torch images are aligned in *policy* but not yet byte-for-byte in versions. Refreshing that snapshot toward `requirements_compiled.txt` (now that torch 2.10 makes it possible) is the natural follow-up. The py3.11 lock only gains `langchain-text-splitters` and its closure plus the jsonpatch bump. - **`jsonpatch==1.32` → `1.33`** in `test-requirements.txt`. `langchain-text-splitters` (in the ray-torch image since ray-project#65114) needs a `langchain-core` requiring `jsonpatch>=1.33`; 1.32 was a 2023 tier-split snapshot pin (ray-project#36808), 1.33 is the last release, and the only other consumer (`cfn-lint`) takes any version. This also removes the reason `langchain-text-splitters` was excluded from the py3.11 ray-torch image, so that `python_version >= "3.12"` marker is dropped and both images match. ### Windows special case removed - `python/requirements/windows-requirements.txt` deleted. - `ci_windows.depsets.yaml`: `relaxed_windows_tests_ci_depset` and `windows_tests_torch27_ci_depset` removed; their two locks deleted. - `ci/docker/windows.build.wanda.yaml` and `ci/ray_ci/windows/build_base.sh` now consume `windows-tests-ci_depset_py3.10.lock` directly (the lock the torch27 one was derived from). ### Not moved (deliberately) - LLM stack (`python/requirements/llm`, `python/deplocks/llm/*`): pinned by `vllm==0.27.0` to torch 2.13; independent of this pin. - `doc/source/templates/**` (torch 2.0.1): legacy template examples, out of scope. - `docker/ray-torch/torch-constraints-py3.14.txt` already pins torch 2.10.0 / torchvision 0.25.0. ### What moved in the locks Aggregated across the 38 changed locks — nothing outside torch's own closure: `torch` 2.9.0→2.10.0 (+cpu/+cu128), `torchvision` 0.24.0→0.25.0, `torch-scatter`/`torch-sparse` to the torch-2.10 builds, `triton` 3.5.0→3.6.0 (13 GPU locks), `torchcodec` 0.9.1→0.10.0 (3 data locks), `nvidia-nvshmem-cu12` 3.3.20→3.4.5 (13 GPU locks), and the `cuda-bindings`/`cuda-python`/`cuda-pathfinder` set that torch 2.10's cu128 wheel pulls in (torch 2.10.0+cu128 declares `cuda-bindings==12.9.4` exactly, which brings `cuda-pathfinder` and moves the five py3.12 GPU locks that previously resolved `cuda-bindings`/`cuda-python` 12.9.6 down to 12.9.4). `deepspeed` stays `0.18.9`. ### Verified locally - torch 2.10.0 has cp310/cp312/cp314 wheels on `download.pytorch.org/whl/{cpu,cu128,cu130}` and win_amd64 on PyPI; torchvision 0.25.0 likewise (and the repo's ray-torch py3.14 constraints already pair 2.10.0 with 0.25.0). - PyG publishes `torch_sparse 0.6.18+pt210{cpu,cu128}` for cp310/cp312 (linux + win); Astral publishes `torch-scatter 2.1.2+cpu.torch.2.10` / `+cu.12.8.torch.2.10`. - No caps in the way: `torchtext 0.18.0` requires `torch>=2.3.0`; `pytorch-lightning 1.8.6` requires `torch>=1.9.0`; `torchft-nightly` requires `torch>=2.7`. - `./ci/ci.sh compile_pip_dependencies` → exit 0; diff vs base is exactly the find-links URL, `torch==2.10.0`, `torchvision==0.25.0` - `bazel run //ci/raydepsets:raydepsets -- build --all-configs` → exit 0, 105 depsets; 38 locks modified, 2 deleted (the Windows torch27 pair); every non-LLM lock now pins `torch==2.10.0` - `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check` → exit 0, all 105 depsets regenerate byte-identically Follows ray-project#65899 (Astral index / PyG cleanup), which has merged; this PR is rebased on top of it. ## Related issues pytorch/pytorch#150381, pytorch/gloo#472. Follows ray-project#65899. ## Additional information Not a duplicate: open dependabot PRs (ray-project#64868, ray-project#64860, ray-project#64005) bump torch in single requirement files without the Windows/PyG/torchcodec/lock changes, and each carries a failing check; no open PR bumps the fleet pin coherently. AI assistance (Claude Code) was used for this change; every changed line was reviewed by the submitter. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
elliot-barn
added a commit
to ray-project/ray
that referenced
this pull request
Oct 8, 2026
…es (#66760) ## 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](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. ## 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](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
This fixes the windows build by bumping the libuv version to be compatible with newer versions of cmake.
https://github.com/pytorch/gloo/actions/runs/18698446504/job/53321707849