Repository navigation
[ci] soft_fail the raydepsets compile-all job during the data.pyg.org outage - #65880
Merged
Merged
Conversation
… outage data.pyg.org, the PyG wheel index every ML/data/rllib depset declares via --find-links, has been a dangling CNAME since 2026-09-02 (pyg-team/pyg-lib#719). uv fails eagerly on an unreadable --find-links URL, so `raydepsets build --all-configs --check` is red on every run regardless of the PR: 4/4 on master since 15:28Z Sep 2, plus every python_dependencies-tagged premerge build. The pip-compile step is unaffected (pip skips the unreachable index and PyPI's sdist satisfies the pins), so it keeps guarding requirements_compiled.txt. soft_fail rather than removing the step: the job still runs and reports, so it goes green on its own when upstream restores the record and reviewers can still see lock drift in the meantime. Revert once the job is green on master. Signed-off-by: elliot-barn <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request temporarily sets soft_fail: true on the raydepsets_compile_all_dependencies Buildkite step. This change is a workaround for an issue where uv fails eagerly on an unreadable --find-links URL from data.pyg.org, which has been a dangling CNAME. There are no review comments, so I have no feedback to provide.
elliot-barn
added a commit
that referenced
this pull request
Sep 4, 2026
…dead data.pyg.org find-links (#65899) ## Description `data.pyg.org` — the only host that ever served prebuilt wheels for the PyTorch Geometric extensions — has been a dangling CNAME since 2026-09-02 ([pyg-team/pyg-lib#719](pyg-team/pyg-lib#719)). Every ML/data/rllib/doc/windows depset declared it as `--find-links`, and uv fails eagerly on an unreadable find-links URL, so `raydepsets: compile all dependencies` has been red on master (postmerge 19501, 19507) and was made `soft_fail` in #65880. The same URL is line 2 of every affected lock, so any cache-miss rebuild of the `mlbuild`/`mlgpubuild`/`mllightning1gpubuild` images (and the core/rllib/doc GPU images) fails at `uv pip install -r <lock>` too. This PR narrows the dependency on `data.pyg.org` to the one package that needs it, sources `torch-scatter` from Astral's index, and re-enables the hard failure: - **`torch-scatter` now comes from Astral's GPU indexes** (`https://wheels.astral.sh/simple/{cpu,cu128}/`). These are real PEP 503/691 indexes, so the requirement files use `--extra-index-url` instead of a flat find-links page. Versions encode the torch minor: `2.1.2+cpu.torch.2.9` / `2.1.2+cu.12.8.torch.2.9`. Astral publishes manylinux wheels only, so the CPU pin carries `; sys_platform == 'linux'`; nothing in Ray imports `torch_scatter` on any platform. - **`torch-sparse` stays, still from `data.pyg.org`** (which came back on 2026-09-03; pyg-lib#719 closed). It is required: `torch_geometric.loader.NeighborSampler.__init__` builds a `SparseTensor` from `torch_geometric.typing`, whose stub raises `ImportError: 'SparseTensor' requires 'torch-sparse'` when the package is absent — verified empirically on torch 2.9.0 + torch-geometric 2.5.3 — and `python/ray/train/examples/pytorch_geometric/distributed_sage_example.py` (CI test `distributed_sage_example`, `train_v2_gpu`) uses it. `torch_sparse` also imports `torch_scatter` in 8 modules, so scatter is a hard dependency of sparse. No other wheel source for torch-sparse exists (PyPI is sdist-only; not on Astral, `download.pytorch.org` or `pypi.nvidia.com`; no GitHub release assets), so the `--find-links` for it remains and this PR does **not** remove the dependency on that host — it narrows it to one package. Pinned explicitly (`+pt29cpu` / `+pt29cu128`) so a missing wheel fails loudly instead of falling back to the sdist. - **`torch-cluster` and `torch-spline-conv` are dropped.** Nothing in `python/`, `rllib/`, `release/` or `doc/` imports them, `torch-geometric==2.5.3` lists none of the four in `requires_dist`, and the example's full path (FakeDataset → RandomNodeSplit → NeighborSampler → SAGEConv) trains with only scatter + sparse installed (run in a glibc-2.36 container against the exact pinned wheels). - Both remaining extensions are gated on `sys_platform == 'linux'`: Astral ships manylinux wheels only, `torch_sparse` cannot import without `torch_scatter`, and nothing on Windows or macOS uses PyG. Windows therefore loses the four `+pt27cpu` pins, their find-links, and the matching `relaxed_windows_tests` entries. - **`deepspeed`: `>=0.12.3` → `===0.18.9`** in `train-requirements.txt` (PEP 440 *arbitrary equality*; the compiled constraint follows as `deepspeed==0.18.9` → `deepspeed===0.18.9`). Why: Astral's cu128 index also publishes `deepspeed 0.18.9+cu.12.8.torch.2.9` (prebuilt CUDA ops). Under PEP 440 a bare `==0.18.9` *matches* that local version, and `--index-strategy unsafe-best-match` prefers it, so without this every GPU depset would silently switch to Astral's deepspeed build and pull in `nvidia-ml-py` (verified with `uv pip compile`). `===` is the only specifier that excludes local versions, so deepspeed stays on the PyPI build it uses today; uv honours it as requirement and constraint, and pip-tools writes it through to `requirements_compiled.txt`. The resolved version is unchanged (0.18.9 before and after). If we ever *want* Astral's prebuilt-ops deepspeed, the opt-in is the reverse edit, `===` → `==` — not part of this PR. - **`ci/ci.sh compile_pip_dependencies`**: the `+cpu`-stripping sed now removes the whole local segment. The compiled file is the GPU depsets' constraint (via the `requirements_compiled_py3.1x.txt` symlinks), and only a bare `torch-scatter==2.1.2` lets `+cu.12.8.torch.2.9` satisfy it; the old `[^\b]*cpu` pattern would have left `2.1.2.torch.2.9`. - `.buildkite/dependencies.rayci.yml`: `soft_fail` and its comment removed — the job hard-fails again. - Also: dead `--find-links` removed from `release/ray_release/byod/requirements_ml_byod_3.10.txt` (it pinned none of the four); docs and stale comments updated. Regenerated: `python/requirements_compiled.txt` (`./ci/ci.sh compile_pip_dependencies`, py3.11 + pip-tools 7.4.1) and all 32 affected locks under `python/deplocks/` (`bazel run //ci/raydepsets:raydepsets -- build --all-configs`). Package-level delta in every lock is only the PyG lines; deepspeed stays `0.18.9`, no new packages. `python/requirements_compiled_py3.14.txt` has no generator (it pins torch 2.7.0, which has no cp314 wheels) and has always been maintained by mirroring the hunks applied to `requirements_compiled.txt` (#65616, #65046, #64056 all changed identical pin counts in both), so the same header/pin deltas were applied to it by hand; its own `torch-2.7.0+cpu` find-links is kept to match its torch pin. That line is only ever read by pip: `requirements_compiled_py${PYTHON_VERSION}.txt` is staged into the `base-deps`/`base-slim` images as `/home/ray/requirements_compiled.txt` (those images install from the rayimg *lock* with uv, not from this file) and then used as `-c` by `ci/docker/ray-image.Dockerfile`, `docker/ray/Dockerfile` and `runtime_env_container/Dockerfile` — all `pip install -c`. pip treats an unreachable `--find-links` in a constraints file as a warning (5 retries, exit 0; verified against an NXDOMAIN host), whereas uv fails eagerly (exit 2; also verified). The only uv consumer is raydepsets, whose pre-hook strips the header lines. So no py3.10–3.14 image build hard-fails on that line even if data.pyg.org goes dark again; the uv exposure is the `--find-links` emitted into the ML/data/rllib/doc *locks*, which this PR narrows to torch-sparse. Left untouched, flagged for follow-up: `release/ray_release/byod/byod_horovod*.sh` (install torch-2.0.1-era PyG wheels from the same dead host — separate, older problem), `ci/raydepsets/tests/test_cli.py` (fixture strings only). ## Related issues Follows up #65880 (temporary `soft_fail`). Upstream: pyg-team/pyg-lib#719, pytorch_geometric#10793, pytorch_geometric#10716. ## Additional information Not a duplicate: no open PR touches `data.pyg.org`, `wheels.astral.sh`, or the PyG pins (searched `pyg`, `astral`, `find-links`, `torch-scatter`, `data.pyg.org`; only unrelated dependabot torch bumps match). Tests run locally: - `./ci/ci.sh compile_pip_dependencies` in a py3.11 venv → exit 0; diff vs master is exactly the two header lines, the PyG pins/markers and `deepspeed===` - `bazel run //ci/raydepsets:raydepsets -- build --all-configs` → exit 0, 107 depsets compiled; the 32 changed locks differ from master only in the PyG lines and the index/find-links header, and the `torch-sparse` hashes are unchanged - `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check` (CI's exact command) → exit 0, all 107 depsets regenerate byte-identically (including the py3.14-constrained ones against the mirrored snapshot), working tree clean afterwards - PyG minimal-set check in `python:3.10-bookworm`: the example's path trains with scatter+sparse only; fails without sparse, and sparse fails without scatter - `pre-commit run --files <changed source files>` → shellcheck, semgrep pass - `uv pip compile` probes: `torch-scatter==2.1.2+cu.12.8.torch.2.9` resolves from `wheels.astral.sh/simple/cu128/`; `deepspeed==0.18.9` flips to `0.18.9+cu.12.8.torch.2.9` with that index present, `deepspeed===0.18.9` does not. 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 Barnwell <[email protected]> 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
… outage (ray-project#65880) ## Why this change is needed `data.pyg.org`, the PyG wheel index that every ML/data/rllib depset declares via `--find-links`, has been a dangling CNAME since 2026-09-02: it points at `d28mro9bmx3ky3.cloudfront.net`, and that CloudFront distribution returns `NOERROR` with zero answers from 8.8.8.8, 1.1.1.1 and 9.9.9.9. Upstream is tracking it at pyg-team/pyg-lib#719 and has said they are working on it with urgency; as of their last update there is no ETA. uv fails eagerly on an unreadable `--find-links` URL before deciding whether it needs anything from it, so `raydepsets build --all-configs --check` is red on every run regardless of the PR's contents: | Pipeline | Build | Time (UTC) | Result | |---|---|---|---| | postmerge | ray-project#19487 | Sep 2 05:05 | passed (last good) | | postmerge | ray-project#19498 | Sep 2 15:28 | pyg DNS | | postmerge | ray-project#19501 | Sep 2 16:09 | pyg DNS | | postmerge | ray-project#19507 | Sep 2 20:06 | pyg DNS | | postmerge | ray-project#19511 | Sep 3 00:05 | pyg DNS | | premerge | #72711, #72712 | Sep 2 | pyg DNS | Every run since ~15:30Z Sep 2 has failed. It blocks every `python_dependencies`-tagged PR and paints master red. The `pip-compile dependencies` step is **not** affected and is left alone: pip treats an unreachable find-links as a warning, PyPI's sdist satisfies `torch-scatter==2.1.2`, and since `requirements_compiled.txt` pins without the `+pt29cpu` local version the output is byte-identical. It passed in all six of the builds above where raydepsets failed, so it keeps guarding `requirements_compiled.txt`. ## What changes `soft_fail: true` on the `raydepsets: compile all dependencies` step, with a comment recording why and when to remove it. `soft_fail` rather than removing the step: the job still runs and reports, so it turns green on its own when upstream restores the record, and reviewers can still see lock drift in its output in the meantime. There's precedent for this pattern in `lint.rayci.yml` (`api-param-coverage`). ## What this does not fix - **Image builds.** 32 deplocks carry the find-links line, so any wanda image build that misses cache fails at `pip install` inside the Dockerfile (#72719 lost `docgpubuild-py3.10` and `mlgpubuild-py3.10` this way). Most PRs are unaffected because unchanged inputs reuse the cached image. Nothing CI-side fixes this without hosting the wheels somewhere else, which is a separate change. - **Lock regeneration.** A PR that needs a new deplock still can't produce one until the index is back, since the recompile itself reads the find-links. ## Cost While this is in, a PR that edits a requirements file without regenerating its lock can merge. The pip-compile guard still covers `requirements_compiled.txt`, and the window should be short. ## Revert when `raydepsets: compile all dependencies` is green on a master postmerge build. Track pyg-team/pyg-lib#719. Signed-off-by: elliot-barn <[email protected]>
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
…dead data.pyg.org find-links (ray-project#65899) ## Description `data.pyg.org` — the only host that ever served prebuilt wheels for the PyTorch Geometric extensions — has been a dangling CNAME since 2026-09-02 ([pyg-team/pyg-lib#719](pyg-team/pyg-lib#719)). Every ML/data/rllib/doc/windows depset declared it as `--find-links`, and uv fails eagerly on an unreadable find-links URL, so `raydepsets: compile all dependencies` has been red on master (postmerge 19501, 19507) and was made `soft_fail` in ray-project#65880. The same URL is line 2 of every affected lock, so any cache-miss rebuild of the `mlbuild`/`mlgpubuild`/`mllightning1gpubuild` images (and the core/rllib/doc GPU images) fails at `uv pip install -r <lock>` too. This PR narrows the dependency on `data.pyg.org` to the one package that needs it, sources `torch-scatter` from Astral's index, and re-enables the hard failure: - **`torch-scatter` now comes from Astral's GPU indexes** (`https://wheels.astral.sh/simple/{cpu,cu128}/`). These are real PEP 503/691 indexes, so the requirement files use `--extra-index-url` instead of a flat find-links page. Versions encode the torch minor: `2.1.2+cpu.torch.2.9` / `2.1.2+cu.12.8.torch.2.9`. Astral publishes manylinux wheels only, so the CPU pin carries `; sys_platform == 'linux'`; nothing in Ray imports `torch_scatter` on any platform. - **`torch-sparse` stays, still from `data.pyg.org`** (which came back on 2026-09-03; pyg-lib#719 closed). It is required: `torch_geometric.loader.NeighborSampler.__init__` builds a `SparseTensor` from `torch_geometric.typing`, whose stub raises `ImportError: 'SparseTensor' requires 'torch-sparse'` when the package is absent — verified empirically on torch 2.9.0 + torch-geometric 2.5.3 — and `python/ray/train/examples/pytorch_geometric/distributed_sage_example.py` (CI test `distributed_sage_example`, `train_v2_gpu`) uses it. `torch_sparse` also imports `torch_scatter` in 8 modules, so scatter is a hard dependency of sparse. No other wheel source for torch-sparse exists (PyPI is sdist-only; not on Astral, `download.pytorch.org` or `pypi.nvidia.com`; no GitHub release assets), so the `--find-links` for it remains and this PR does **not** remove the dependency on that host — it narrows it to one package. Pinned explicitly (`+pt29cpu` / `+pt29cu128`) so a missing wheel fails loudly instead of falling back to the sdist. - **`torch-cluster` and `torch-spline-conv` are dropped.** Nothing in `python/`, `rllib/`, `release/` or `doc/` imports them, `torch-geometric==2.5.3` lists none of the four in `requires_dist`, and the example's full path (FakeDataset → RandomNodeSplit → NeighborSampler → SAGEConv) trains with only scatter + sparse installed (run in a glibc-2.36 container against the exact pinned wheels). - Both remaining extensions are gated on `sys_platform == 'linux'`: Astral ships manylinux wheels only, `torch_sparse` cannot import without `torch_scatter`, and nothing on Windows or macOS uses PyG. Windows therefore loses the four `+pt27cpu` pins, their find-links, and the matching `relaxed_windows_tests` entries. - **`deepspeed`: `>=0.12.3` → `===0.18.9`** in `train-requirements.txt` (PEP 440 *arbitrary equality*; the compiled constraint follows as `deepspeed==0.18.9` → `deepspeed===0.18.9`). Why: Astral's cu128 index also publishes `deepspeed 0.18.9+cu.12.8.torch.2.9` (prebuilt CUDA ops). Under PEP 440 a bare `==0.18.9` *matches* that local version, and `--index-strategy unsafe-best-match` prefers it, so without this every GPU depset would silently switch to Astral's deepspeed build and pull in `nvidia-ml-py` (verified with `uv pip compile`). `===` is the only specifier that excludes local versions, so deepspeed stays on the PyPI build it uses today; uv honours it as requirement and constraint, and pip-tools writes it through to `requirements_compiled.txt`. The resolved version is unchanged (0.18.9 before and after). If we ever *want* Astral's prebuilt-ops deepspeed, the opt-in is the reverse edit, `===` → `==` — not part of this PR. - **`ci/ci.sh compile_pip_dependencies`**: the `+cpu`-stripping sed now removes the whole local segment. The compiled file is the GPU depsets' constraint (via the `requirements_compiled_py3.1x.txt` symlinks), and only a bare `torch-scatter==2.1.2` lets `+cu.12.8.torch.2.9` satisfy it; the old `[^\b]*cpu` pattern would have left `2.1.2.torch.2.9`. - `.buildkite/dependencies.rayci.yml`: `soft_fail` and its comment removed — the job hard-fails again. - Also: dead `--find-links` removed from `release/ray_release/byod/requirements_ml_byod_3.10.txt` (it pinned none of the four); docs and stale comments updated. Regenerated: `python/requirements_compiled.txt` (`./ci/ci.sh compile_pip_dependencies`, py3.11 + pip-tools 7.4.1) and all 32 affected locks under `python/deplocks/` (`bazel run //ci/raydepsets:raydepsets -- build --all-configs`). Package-level delta in every lock is only the PyG lines; deepspeed stays `0.18.9`, no new packages. `python/requirements_compiled_py3.14.txt` has no generator (it pins torch 2.7.0, which has no cp314 wheels) and has always been maintained by mirroring the hunks applied to `requirements_compiled.txt` (ray-project#65616, ray-project#65046, ray-project#64056 all changed identical pin counts in both), so the same header/pin deltas were applied to it by hand; its own `torch-2.7.0+cpu` find-links is kept to match its torch pin. That line is only ever read by pip: `requirements_compiled_py${PYTHON_VERSION}.txt` is staged into the `base-deps`/`base-slim` images as `/home/ray/requirements_compiled.txt` (those images install from the rayimg *lock* with uv, not from this file) and then used as `-c` by `ci/docker/ray-image.Dockerfile`, `docker/ray/Dockerfile` and `runtime_env_container/Dockerfile` — all `pip install -c`. pip treats an unreachable `--find-links` in a constraints file as a warning (5 retries, exit 0; verified against an NXDOMAIN host), whereas uv fails eagerly (exit 2; also verified). The only uv consumer is raydepsets, whose pre-hook strips the header lines. So no py3.10–3.14 image build hard-fails on that line even if data.pyg.org goes dark again; the uv exposure is the `--find-links` emitted into the ML/data/rllib/doc *locks*, which this PR narrows to torch-sparse. Left untouched, flagged for follow-up: `release/ray_release/byod/byod_horovod*.sh` (install torch-2.0.1-era PyG wheels from the same dead host — separate, older problem), `ci/raydepsets/tests/test_cli.py` (fixture strings only). ## Related issues Follows up ray-project#65880 (temporary `soft_fail`). Upstream: pyg-team/pyg-lib#719, pytorch_geometric#10793, pytorch_geometric#10716. ## Additional information Not a duplicate: no open PR touches `data.pyg.org`, `wheels.astral.sh`, or the PyG pins (searched `pyg`, `astral`, `find-links`, `torch-scatter`, `data.pyg.org`; only unrelated dependabot torch bumps match). Tests run locally: - `./ci/ci.sh compile_pip_dependencies` in a py3.11 venv → exit 0; diff vs master is exactly the two header lines, the PyG pins/markers and `deepspeed===` - `bazel run //ci/raydepsets:raydepsets -- build --all-configs` → exit 0, 107 depsets compiled; the 32 changed locks differ from master only in the PyG lines and the index/find-links header, and the `torch-sparse` hashes are unchanged - `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check` (CI's exact command) → exit 0, all 107 depsets regenerate byte-identically (including the py3.14-constrained ones against the mirrored snapshot), working tree clean afterwards - PyG minimal-set check in `python:3.10-bookworm`: the example's path trains with scatter+sparse only; fails without sparse, and sparse fails without scatter - `pre-commit run --files <changed source files>` → shellcheck, semgrep pass - `uv pip compile` probes: `torch-scatter==2.1.2+cu.12.8.torch.2.9` resolves from `wheels.astral.sh/simple/cu128/`; `deepspeed==0.18.9` flips to `0.18.9+cu.12.8.torch.2.9` with that index present, `deepspeed===0.18.9` does not. 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 Barnwell <[email protected]> Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Fable 5.1 <[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.
Why this change is needed
data.pyg.org, the PyG wheel index that every ML/data/rllib depset declares via--find-links, has been a dangling CNAME since 2026-09-02: it points atd28mro9bmx3ky3.cloudfront.net, and that CloudFront distribution returnsNOERRORwith zero answers from 8.8.8.8, 1.1.1.1 and 9.9.9.9. Upstream is tracking it at pyg-team/pyg-lib#719 and has said they are working on it with urgency; as of their last update there is no ETA.uv fails eagerly on an unreadable
--find-linksURL before deciding whether it needs anything from it, soraydepsets build --all-configs --checkis red on every run regardless of the PR's contents:Every run since ~15:30Z Sep 2 has failed. It blocks every
python_dependencies-tagged PR and paints master red.The
pip-compile dependenciesstep is not affected and is left alone: pip treats an unreachable find-links as a warning, PyPI's sdist satisfiestorch-scatter==2.1.2, and sincerequirements_compiled.txtpins without the+pt29cpulocal version the output is byte-identical. It passed in all six of the builds above where raydepsets failed, so it keeps guardingrequirements_compiled.txt.What changes
soft_fail: trueon theraydepsets: compile all dependenciesstep, with a comment recording why and when to remove it.soft_failrather than removing the step: the job still runs and reports, so it turns green on its own when upstream restores the record, and reviewers can still see lock drift in its output in the meantime. There's precedent for this pattern inlint.rayci.yml(api-param-coverage).What this does not fix
pip installinside the Dockerfile (#72719 lostdocgpubuild-py3.10andmlgpubuild-py3.10this way). Most PRs are unaffected because unchanged inputs reuse the cached image. Nothing CI-side fixes this without hosting the wheels somewhere else, which is a separate change.Cost
While this is in, a PR that edits a requirements file without regenerating its lock can merge. The pip-compile guard still covers
requirements_compiled.txt, and the window should be short.Revert when
raydepsets: compile all dependenciesis green on a master postmerge build. Track pyg-team/pyg-lib#719.