Skip to content

[deps] Update py3.14 dependencies and generate python lock files - #64495

Closed
elliot-barn wants to merge 8 commits into
masterfrom
py313-py314-dependencies
Closed

elliot-barn wants to merge 8 commits into
masterfrom
py313-py314-dependencies

Conversation

@elliot-barn

@elliot-barn elliot-barn commented Jul 2, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Carves the dependency layer out of #63270 (py3.14-release-testing) so the dependency updates can land independently of the release-test / image / runtime changes.

Applied as a 3-way merge of #63270's dependency diff onto current master, preserving master's recent changes (e.g. the ray-haproxy 2.8.25 bump) and layering the py3.14 additions on top.

What's included (60 files)

  • raydepsets configs (2): rayimg, ray_torch .depsets.yaml
  • Lock files (43): python/deplocks/** — new py3.14 base/ci/ray_img locks, updated py3.10/3.12 CI locks, ray-torch cu128
  • Requirements (13): requirements.txt, requirements_compiled_py3.13.txt, requirements_compiled_py3.14.txt, requirements/ml/py313/*, serve/cloud
  • Dependency-adjacent (2): ci/ci.sh (pip-tools 7.4.1→7.5.3), docker/ray-torch/torch-requirements.txt

Carve the dependency layer out of the py3.14 release-testing branch:
raydepsets configs, all python/deplocks lock files, requirements
(incl. requirements_compiled_py3.13/3.14), the vllm/nixl setup.py extras,
the pip-tools bump used to compile them, and the torch-requirements list.

Signed-off-by: elliot-barn <[email protected]>

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@elliot-barn
elliot-barn requested review from a team, edoakes and richardliaw as code owners July 2, 2026 02:36

@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 introduces support for Python 3.14 across the Ray build and CI infrastructure. It updates dependency configurations, setup scripts, and lockfiles to target Python 3.14, including upgrading pytest to 8.3.3, numpy to 2.3.3, and urllib3 to 2.0.7. It also handles Python 3.14 compatibility workarounds, such as pinning vllm to 0.22.0 on Python 3.14 (due to flashinfer/cuda-tile wheel conflicts) and excluding TensorFlow-related packages since TensorFlow cp314 wheels are not yet available. There are no review comments to address, and I have no feedback to provide.

ray-llm is not built for py3.14 (see stacked images PR), so remove the
py3.14 LLM dependency additions from this PR:

- Delete the 10 new py3.14 LLM lock files (python/deplocks/llm/*_py314_*
  and ray-llm-base_extra_testdeps_py3.14.lock).
- Revert rayllm.depsets.yaml, llm_release_tests.depsets.yaml,
  ci/test_compile_llm_requirements.sh, python/requirements/llm/llm-requirements.txt
  and python/setup.py (vllm 0.22.0 split + nixl-cu13) to master.
- Drop the py314_cu130 build_arg_set usage from ray_base_extra_testdeps_llm_cuda
  in rayimg.depsets.yaml (it also referenced a non-existent
  requirements_llm_byod_3.14.txt).

Non-LLM py3.14 deps are unchanged, including the ray_base_deps_tpu py314
addition in rayimg.depsets.yaml.

Signed-off-by: elliot-barn <[email protected]>

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@elliot-barn elliot-barn changed the title [deps] Update py3.13/py3.14 dependencies and raydepsets locks [deps] Update py3.14 dependencies and generate python lock files Jul 2, 2026
elliot-barn added a commit that referenced this pull request Jul 2, 2026
Add py3.14 to the image-build matrices and bump the cu130 base/llm/torch
images from py3.12 to py3.14. Covers the buildkite image pipelines
(_images, build, linux_aarch64, release/build), the wanda/Dockerfile
image specs (ray-llm, ray-torch, min, torch-anyscale-cuda), the
ray_torch_cuda release-image mapping, wheel py3.14 support, and the
ray-images.json manifest.

Stacked on the py3.14 dependencies PR (#64495).

Signed-off-by: elliot-barn <[email protected]>

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b6fe277. Configure here.

- --index https://download.pytorch.org/whl/${CUDA_CODE}
- --unsafe-package ray
- --python-version=${PYTHON_VERSION}
- --python-platform=linux

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ray torch depset missing constraints

Medium Severity

The new ray_torch_* expand depset pulls in ray_img_depset_* but, unlike ray_base_extra_testdeps_*, it does not pass requirements_compiled_py${PYTHON_VERSION}.txt (or the ray_img lock) as compile constraints. The resulting ray-torch-cu128_base_py3.14.lock therefore pins different versions of shared packages (e.g. adlfs, aiohappyeyeballs, certifi) than ray_base_deps_py3.14.lock, breaking the cross-lock consistency raydepsets is meant to enforce for layered images.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit b6fe277. Configure here.

@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core release-test release test labels Jul 2, 2026
elliot-barn added a commit that referenced this pull request Jul 9, 2026
Add py3.14 to the image-build matrices and bump the cu130 base/llm/torch
images from py3.12 to py3.14. Covers the buildkite image pipelines
(_images, build, linux_aarch64, release/build), the wanda/Dockerfile
image specs (ray-llm, ray-torch, min, torch-anyscale-cuda), the
ray_torch_cuda release-image mapping, wheel py3.14 support, and the
ray-images.json manifest.

Stacked on the py3.14 dependencies PR (#64495).

Signed-off-by: elliot-barn <[email protected]>

Co-Authored-By: Claude Opus 4.8 (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 Jul 10, 2026
elliot-barn added a commit that referenced this pull request Jul 15, 2026
Ports the py3.14-specific changes from #64495 onto current master.

## What this does
- Enables the `py314` build arg for the **TPU base-deps** depset in
`rayimg.depsets.yaml` and adds the generated
`ray_base_deps_tpu_py3.14.lock`.
- Refreshes the py3.14 lock files (`base_deps`, `base_extra`,
`base_extra_testdeps`, `base_slim`, `ray_img`) via `raydepsets`.
- Bumps the py3.14 compiled constraints: numpy 2.3.3, urllib3 2.0.7,
numba 0.65.0, llvmlite 0.47.0, cupy-cuda12x 14.0.1, pytest 8.3.3.

All lock files were regenerated with `raydepsets` (not hand-copied) and
come out byte-identical to #64495.

## Deliberately excluded
- The **ray-torch image** changes from #64495 (out of scope here).
- The py313 requirements changes — those directories have been
unified/removed on master.
- The **cu130 py3.14** image lock: master intentionally excludes py3.14
from the cu130 relax block (`cupy-cuda13x` has no cp314 wheel and no
cu130 target uses py3.14).
- Non-py314 changes (the `pip-tools` bump in `ci.sh`, base
`requirements.txt`, cloud/serve requirements, and the
`ci/*_py3.10/py3.12` locks).

---------

Signed-off-by: elliot-barn <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…ject#64750)

Ports the py3.14-specific changes from ray-project#64495 onto current master.

## What this does
- Enables the `py314` build arg for the **TPU base-deps** depset in
`rayimg.depsets.yaml` and adds the generated
`ray_base_deps_tpu_py3.14.lock`.
- Refreshes the py3.14 lock files (`base_deps`, `base_extra`,
`base_extra_testdeps`, `base_slim`, `ray_img`) via `raydepsets`.
- Bumps the py3.14 compiled constraints: numpy 2.3.3, urllib3 2.0.7,
numba 0.65.0, llvmlite 0.47.0, cupy-cuda12x 14.0.1, pytest 8.3.3.

All lock files were regenerated with `raydepsets` (not hand-copied) and
come out byte-identical to ray-project#64495.

## Deliberately excluded
- The **ray-torch image** changes from ray-project#64495 (out of scope here).
- The py313 requirements changes — those directories have been
unified/removed on master.
- The **cu130 py3.14** image lock: master intentionally excludes py3.14
from the cu130 relax block (`cupy-cuda13x` has no cp314 wheel and no
cu130 target uses py3.14).
- Non-py314 changes (the `pip-tools` bump in `ci.sh`, base
`requirements.txt`, cloud/serve requirements, and the
`ci/*_py3.10/py3.12` locks).

---------

Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: 400Ping <[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 go add ONLY when ready to merge, run all tests release-test release test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant