Repository navigation
[release] Remove the ray-ml release test image and the gpu byod type (4/N) - #67518
Merged
elliot-barn merged 27 commits intoNov 3, 2026
Merged
Conversation
Step 1 of retiring `byod.type: gpu` (anyscale/ray-ml) in release tests:
- 13 tests that only need torch move to `torch-cu128` (ray-torch, py3.11).
- 6 tests that use no ML framework and run on CPU-only compute move to `cpu`.
- Delete the manual compiled_graphs_GPU[_multinode] tests, which the
`_cu130_py{{python}}` variants replace.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
…-ray-ml-release-tests Signed-off-by: elliot-barn <[email protected]>
Every test leaving ray-ml now targets the ray-torch image (`torch-cu128`) instead of splitting between it and `cpu`, and moves to Python 3.11 (the image is built for 3.11 and 3.14 only). The xgboost/lightgbm train batch inference benchmarks need both libraries, which ray-torch doesn't ship, so they get a `python_depset` (torch_cu128_xgboost_lightgbm_py3.11.lock). It is expanded from the ray-torch py3.11 image lock and constrained to it, so it adds exactly xgboost 2.1.0 and lightgbm 4.6.0 and changes no package the image has. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…-torch pytest_serve_resnet_benchmark's DataDownloader loads NVIDIA's torch hub nvidia_convnets_processing_utils, which imports validators. ray-ml shipped it; the ray-torch image does not, so the downloading replica died with ModuleNotFoundError and the others timed out waiting on its lock (build 110605). Add torch_cu128_serve_resnet_py3.11.lock: the ray-torch image lock plus validators, constrained to that lock like the xgboost/lightgbm depset. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: elliot-barn <[email protected]>
The data release tests' DEFAULTS block now uses the ray-torch image (`torch-cu128`) instead of ray-ml (`gpu`), and 47 tests move to Python 3.11, the version the image is built for. Two tests need packages ray-torch doesn't ship, so they get python_depsets expanded from the ray-torch py3.11 image lock and constrained to it. Each depset only adds packages and changes no pin the image has: - read_tfrecords, to_tf: tensorflow 2.19.1 and tensorflow-metadata (torch_cu128_data_tensorflow_py3.11.lock). 2.20 needs protobuf>=5.28, and the image pins 5.27.5. - image_embedding_from_uris/jsonl: albumentations and pybase64 (torch_cu128_data_image_embedding_py3.11.lock). Three tests stay on ray-ml with a TODO: - image_classification_fixed_size and image_classification_from_parquet_fixed_size pin pyarrow 19 for the removed pyarrow.PyExtensionType. ray-torch ships pyarrow 23. - distributed_training imports mosaicml-streaming at module load. Every streaming release needs torchtext (0.5.x) or transformers<5. Both conflict with ray-torch. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…y-torch (3/N) Moves the last 22 release tests that ran on the ray-ml image (byod type gpu) to ray-torch (torch-cu128, python 3.11), so nothing in the release test suite uses ray-ml anymore. - rllib_learning_tests_* (13): new rllib depset replaces byod_rllib.sh, which reinstalled torch 2.7 on top of the image. - torch_lightning, huggingface_transformers, huggingface_accelerate: new lightning / huggingface depsets. - air_benchmark_tensorflow_mnist_gpu_4x4: reuses the data tensorflow depset. - training_ingest_benchmark-task=recsys: torchrec 1.5 / fbgemm-gpu 1.5 (the torch 2.10 pairing). torchrec pins torchmetrics==1.0.3 against the image's 0.10.3, so this is a pinned closure installed --no-deps. - transformers_reinforcement_learning: image switch only; its post_build installs trl[vllm], which brings its own vllm and torch as before. - distributed_training: import mosaicml-streaming only on the --use-mosaic path, which the release test doesn't take. - image_classification_fixed_size / _from_parquet_fixed_size: a one-package depset swaps in pyarrow 19 for the PyExtensionType dataset. - audio_transcription: new depset; torchaudio pinned to the image's torch release (2.11 declares no torch requirement and would resolve). Removes the now-unused byod_rllib.sh, byod_install_torchrec.sh, byod_pytorch_lightning_test.sh and byod_install_mosaicml.sh. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…(4/N) No release test uses the ray-ml image after 3/N, so drop its build and publish steps (ray-mlcudabaseextra-testdeps, ray-ml-anyscale-cuda-build, anyscalemlbuild), the wanda file, the ray_ml release_image_step config and the "gpu" byod type with its anyscale/ray-ml repo and cu121 tag mapping. The public rayproject/ray-ml Docker Hub images are untouched. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
Step 1 of retiring `byod.type: gpu` (anyscale/ray-ml) in release tests:
- 13 tests that only need torch move to `torch-cu128` (ray-torch, py3.11).
- 6 tests that use no ML framework and run on CPU-only compute move to `cpu`.
- Delete the manual compiled_graphs_GPU[_multinode] tests, which the
`_cu130_py{{python}}` variants replace.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Every test leaving ray-ml now targets the ray-torch image (`torch-cu128`) instead of splitting between it and `cpu`, and moves to Python 3.11 (the image is built for 3.11 and 3.14 only). The xgboost/lightgbm train batch inference benchmarks need both libraries, which ray-torch doesn't ship, so they get a `python_depset` (torch_cu128_xgboost_lightgbm_py3.11.lock). It is expanded from the ray-torch py3.11 image lock and constrained to it, so it adds exactly xgboost 2.1.0 and lightgbm 4.6.0 and changes no package the image has. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…-torch pytest_serve_resnet_benchmark's DataDownloader loads NVIDIA's torch hub nvidia_convnets_processing_utils, which imports validators. ray-ml shipped it; the ray-torch image does not, so the downloading replica died with ModuleNotFoundError and the others timed out waiting on its lock (build 110605). Add torch_cu128_serve_resnet_py3.11.lock: the ray-torch image lock plus validators, constrained to that lock like the xgboost/lightgbm depset. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…ster Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
The data release tests' DEFAULTS block now uses the ray-torch image (`torch-cu128`) instead of ray-ml (`gpu`), and 47 tests move to Python 3.11, the version the image is built for. Two tests need packages ray-torch doesn't ship, so they get python_depsets expanded from the ray-torch py3.11 image lock and constrained to it. Each depset only adds packages and changes no pin the image has: - read_tfrecords, to_tf: tensorflow 2.19.1 and tensorflow-metadata (torch_cu128_data_tensorflow_py3.11.lock). 2.20 needs protobuf>=5.28, and the image pins 5.27.5. - image_embedding_from_uris/jsonl: albumentations and pybase64 (torch_cu128_data_image_embedding_py3.11.lock). Three tests stay on ray-ml with a TODO: - image_classification_fixed_size and image_classification_from_parquet_fixed_size pin pyarrow 19 for the removed pyarrow.PyExtensionType. ray-torch ships pyarrow 23. - distributed_training imports mosaicml-streaming at module load. Every streaming release needs torchtext (0.5.x) or transformers<5. Both conflict with ray-torch. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…ay-torch Dataset.join needs polars, which ray-ml shipped and ray-torch doesn't, so every joins_sf1000_* and tpch_* test failed on import (release build 112579). torch_cu128_data_joins_py3.11.lock is the ray-torch base lock plus polars 1.40.0 and polars-runtime-32; no existing pin changes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…-torch Signed-off-by: Elliot Barnwell <[email protected]>
Resolve conflicts from the squashed #66880 and #67262's later commits by taking #67262's side and re-applying this PR's own changes: the six 3/N depsets after the data ones, and air_benchmark_tensorflow_mnist in requirements_data_tensorflow.in. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
Picks up master's aiohttp 3.14.4, certifi, virtualenv and packaging bumps in the audio_transcription, rllib, train_huggingface and train_lightning locks. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
Resolve conflicts with master's cu133 additions: keep cu13.3.1-cudnn in the ray-torch-anyscale publish step and gpu-cu133/torch-cu133 in ALLOWED_BYOD_TYPES, while still dropping the ray-ml-anyscale publish step and the gpu byod type. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
torchaudio 2.10 routes torchaudio.load through torchcodec, which the ray-torch image doesn't ship, so the benchmark failed with ImportError. Decode the FLAC bytes with soundfile and keep torchaudio for resampling. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…r load on ray-torch - audio_transcription: transformers 5's Whisper batch_decode fails on rows that are numpy arrays (Ray hands over ragged token_ids as an object array), so pass lists of ints. - image_classification x2: the dataset uses the legacy pickled tensor type. byod.Dockerfile sets RAY_DATA_AUTOLOAD_PYEXTENSIONTYPE=1 for the old base images, but ray-torch images don't go through it, so set it in the test's byod runtime_env. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…-remaining-release-tests-ray-torch Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…into elliot-barn/remove-ray-ml-release-test-image Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
The download.pytorch.org fbgemm-gpu 1.5.0+cu128 cp311 wheel fails its hash check in CI: the custom image build gets a 671.6 MiB file whose sha256 (3ba552...) isn't the one the index lists (71ffe2..., 672.0 MiB), on two runs 18 hours apart. PyPI's fbgemm-gpu 1.5.0 is a CUDA 12 build (libcudart.so.12) for torch 2.10, so it runs on the cu128 image; torchrec 1.5.0 is pure Python. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
torchrec moved PipelineStage out of train_pipeline.utils into train_pipeline.pipeline_stage; the recsys benchmark failed with ImportError on the ray-torch image (release build 113042). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…s runner torchrec 1.5's SparseDataDistUtil tracks one context per in-flight batch. During pipeline fill it needs wait_sdd_fill_callback, which also advances the context; wait_sparse_data_dist alone left the model forward on the wrong context and full_training failed with KeyError 'model.sparse_arch.embedding_bag_collection' (release build 113063). Also pass data_exhausted_callback, and detach the SparseDataDistUtil once its loader is done so the validation loader's pipeline starts from an unpipelined model. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…of github.com:ray-project/ray into elliot-barn/remove-ray-ml-release-test-image Signed-off-by: elliot-barn <[email protected]>
Base automatically changed from
elliot-barn/migrate-remaining-release-tests-ray-torch
to
master
November 3, 2026 00:27
elliot-barn
marked this pull request as ready for review
November 3, 2026 00:27
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
sai-miduthuri
approved these changes
Nov 3, 2026
elliot-barn
pushed a commit
that referenced
this pull request
Nov 4, 2026
…ge (#67805) ## Problem #67518 removed the `gpu` BYOD type, but `mid_epoch_resume_benchmark_{10M,3B}` still uses it. #66680 added those tests after #67517 had migrated the others. So `//release:test_config` fails on master: ``` Failed to validate test mid_epoch_resume_benchmark_10M: Invalid BYOD type: gpu ``` ## Solution Move the test to `torch-cu128`, like the other Train tests in #67517. `torch-cu128` requires Python 3.11, so bump `python` from 3.10. The benchmark only needs Ray and torch, which the ray-torch image provides. ## Validation `bazel test //release:test_config` fails on master with the error above and passes with this change. No existing PR addresses this. AI assistance (Claude Code) was used. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Jeffrey Wang <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
elliot-barn
pushed a commit
that referenced
this pull request
Nov 5, 2026
…and k8s Serve release tests (#67773) ## Problem Four Serve release tests fail on every run: | Test | Cause | Last pass | |---|---|---| | `pytest_serve_multi_deployment_1k_noop_replica.gce` | Replicas require the custom `worker` resource (#46130), but the GCE config never declared it, so they are unschedulable. | Never since #46130 | | `serve_controller_benchmark_haproxy.gce` | Points at a single 16-CPU node; the benchmark needs ~205 workers. It stalls at 34/51 replicas. | Never (added in #61368) | | `video_analysis_pipeline.gce` | Invalid instance type (`g2-standard-4`), wrong region, and the app reads from S3. | Never | | `k8s_serve_ha_test` | `prepare.sh` fails with `jq: command not found`, then needs `kubectl` and a GKE cluster. | Jul 2023 | ## Fix - Add `resources: {CPU: 32, worker: 1}` to `compute_tpl_32_cpu_gce.yaml`, matching the AWS config. - Remove the GCE variations of the controller benchmark and video analysis tests. The AWS variations cover them. - Remove `k8s_serve_ha_test` and `release/k8s_tests/`, which nothing else uses. `read_and_validate_release_test_collection` passes on the updated `release_tests.yaml`, apart from the master breakage below. ## Premerge `//release:test_config` fails on master, not from this PR: `mid_epoch_resume_benchmark_{10M,3B}` (#66680) still use the `gpu` BYOD type that #67518 removed. Moving them to `torch-cu128` on Python 3.11, as #67517 did for the rest, fixes it. This PR will be rebased once master is fixed. Signed-off-by: qishengxhe <[email protected]>
elliot-barn
added a commit
that referenced
this pull request
Nov 10, 2026
## Why Starting with Ray 2.61.0, the release artifacts (PyPI wheels and `rayproject/ray` / `ray-extra` images) no longer include Python 3.10. This PR only stops **publishing** 3.10. CI keeps building py3.10 internally: the core build, kuberay, the HA integration tests and the runtime_env container tests all depend on it. `python_requires` is unchanged, so this isn't a full support drop. ## What changes **Wheels** - `build.rayci.yml` / `linux_aarch64.rayci.yml`: the 3.10 Linux wheel *builds* **and their S3 upload** (`linux_wheels_upload`, `linux_wheels_upload_aarch64`) stay. The Anyscale runtime image builds (rayturbo) install the OSS cp310 manylinux wheel from `ray-wheels/<branch>/<commit>/` and gate their whole image pipeline on it existing, on master and on release branches. These S3 wheels are not released: `ray_wheels_lib.PYTHON_VERSIONS` drops cp310 (below), so the release download and PyPI upload never pick them up. - `windows.rayci.yml`: drop 3.10 from the `windows_wheels` matrix. - `python/build-wheel-macos.sh`: stop building cp310. `ci/build/test-macos-wheels.sh` now tests 3.11/3.12, and the 3.10-only conda pip workaround is removed from both scripts. - `ray_wheels_lib.PYTHON_VERSIONS`: drop `cp310`, so release download/upload doesn't expect cp310 wheels. - release-automation: drop 3.10 from the Linux x86_64/arm64 TestPyPI validation matrices and from `verify-macos-wheels.sh`. **Images** - Drop 3.10 from the `ray_images_push`, `ray_extra_images_push` and `*_aarch64` publish steps. - `ray-images.json`: remove 3.10 from `ray.python`. This list drives `push_ray_image` validation, nightly index generation (`generate_index`) and the image commit checks. - **Default python tag 3.10 → 3.11** (`DEFAULT_PYTHON_TAG_VERSION` and the `ray-images.json` default). Untagged tags (`X.Y.Z`, `nightly`, `latest`, `-cpu`, `-gpu`, …) now point at py3.11. This also applies to the `anyscale/ray` release-test image tags pushed by `push_release_test_image`. Release tests always use explicit `-pyXY` tags, so they aren't affected. - `DockerContainer` (the legacy `build_in_docker docker` path, no longer used to publish) now validates python against the CI-buildable set (`configs.PYTHON_VERSIONS`) instead of the published set. This keeps the py3.10 HA-integration / kuberay / runtime_env test images building. **Docs** - Remove the 3.10 nightly wheel links. Update the image-tag docs (default is py3.11; no py310 images from 2.61) and the dev-install wheel example. - Installed-dependencies section: document the **py3.11** image. `pip_freeze_ray-py310-cpu.txt` is renamed to `pip_freeze_ray-py311-cpu.txt` and seeded from master postmerge #20742 (`6fe11a7b4c`, artifact `ray:6fe11a-py311-cpu_pip-freeze.txt`). The release docs-deps automation (anyscale/product `devprod/rayrelease`) needs a matching change to read the py3.11 artifact. That change goes in separately. Not changed here: ray-ml, which #67518 removes, and the runtime_env conda py-version list. ## Duplicate check `gh pr list --state open --search "python 3.10"` / `"3.10 release wheels images"` returns no open PR for this. ## Testing - `PYTHONPATH=release:. pytest ci/ray_ci ci/build release/ray_release/tests` on this branch vs a clean checkout of the same master commit (944780d): identical failure set (8 failed / 9 errors, all pre-existing local-env issues such as the missing bazel runfiles `Rlocation`), and 1435 vs 1433 passed. The +2 is the new `test_python_310_not_published_for_ray` cases. Parametrized test IDs changed only where the version was bumped. - YAML parse check that each edited publish/upload/validate step's python matrix is now `3.11–3.14`. `bash -n` on the edited shell scripts. - Pre-commit hooks pass. - Combined with #67723 (cu133 release publishing) on top of master: the two merge cleanly, and `bazelisk test //ci/ray_ci/automation:test_push_ray_image` passes. AI assistance (Claude Code) was used to write this change. I reviewed every changed line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Opus 5.5 <[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 are these changes needed?
Step 4 of retiring ray-ml from release tests. Stacked on #67517 (3/N), after which no release test uses byod type
gpu(the ray-ml image). This removes the image build and the type..buildkite/release/build.rayci.yml: dropray-mlcudabaseextra-testdeps,ray-ml-anyscale-cuda-buildand theray-ml-anyscalepublish step (anyscalemlbuild). Deleteci/docker/ray-ml-anyscale-cuda.wanda.yaml.ci/ray_ci/oss_config.yaml/global_config.py: droprelease_image_step.ray_ml.ray_release/config.py:gpuis no longer an allowed byod type, so a new test can't land on ray-ml.ray_release/test.py: drop theanyscale/ray-mlrepo,use_byod_ml_image, and thegpu→cu121tag mapping.custom_byod_build_init_helper.py: drop theray-mlprerequisite-step branch.gpuas a generic GPU type now usetorch-cu128(py3.11) orgpu-cu130(py3.12). Cases that tested only the removed behavior are deleted, and a case assertsgpuis rejected.Not changed: the public
rayproject/ray-mlimages (_images.rayci.yml,docker/ray-ml/, image tag/push automation), the genericpush_release_test_image.py, and the shareddocker/base-extra-testdeps/.Merge order: anyscale/rayturbo#4501 must merge before this syncs into rayturbo, because its ray-ml release image step depends on
ray-mlcudabaseextra-testdeps.Duplicate check
Only this stack (#66880, #67262, #67517) touches ray-ml release-test infra.
Testing
bazel test //release:test_config //release:test_test //release:test_byod_build //release:test_global_config //release:test_custom_byod_build_init_helper //release:test_custom_image_build_and_test_init //release:test_custom_byod_build //release:test_byod_build_context //release:test_buildkite //release:test_step //release:test_glue: 11/11 pass.//release:test_*plus//ci/ray_ci/...: 66 pass, including//ci/ray_ci:test_utils, which readsoss_config.yaml. 2 fail locally on things this PR doesn't touch:test_anyscale_job_wrappertimes out at 60s, andtest_privilegedhits atyping._SpecialGenericAliasenv error.git grepfinds no remaining reference toanyscalemlbuild,ray-ml-anyscale-cuda,ray-mlcudabaseextra-testdeps,release_image_step_ray_ml,DATAPLANE_ECR_ML_REPOoruse_byod_ml_image.This PR was prepared with AI assistance (Claude Code). I reviewed the change.
🤖 Generated with Claude Code