Repository navigation
[ci] Build Python 3.14 images and wheels - #64754
Conversation
Ports the py3.14-specific changes from #64495 onto current master: - Enable the py3.14 build arg for the TPU base-deps depset in rayimg.depsets.yaml and generate ray_base_deps_tpu_py3.14.lock. - Refresh the py3.14 lock files (base_deps, base_extra, base_extra_testdeps, base_slim, ray_img) via raydepsets. - Bump 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). Excludes the ray-torch image changes and the cu130 py3.14 image lock (master deliberately excludes py3.14 from the cu130 relax: cupy-cuda13x has no cp314 wheel and no cu130 target uses py3.14). Signed-off-by: elliot-barn <[email protected]>
Add py314_cu130 to the ray_img_cu130 relax depset and generate ray_img_cu130_py3.14.lock. The relax simply strips cupy-cuda12x from ray_img_py3.14.lock, so it doesn't depend on a cupy-cuda13x cp314 wheel. Drop the now-stale "py3.10-3.13 only" comment. Signed-off-by: elliot-barn <[email protected]>
Enable Python 3.14 across the image build/publish matrices and finish the remaining wheel-build gaps. The py3.14 base deplocks this relies on land in the parent branch (#64750). Images (add 3.14 to the ray / ray-extra / ray-anyscale matrices; ray-ml, ray-llm and ray-torch are intentionally left as-is): - .buildkite/_images.rayci.yml: cpu/cpu-extra/tpu/cuda/cuda-extra and slim cpu/cuda base layers - .buildkite/build.rayci.yml: ray + ray-extra cpu/tpu/cuda build & publish (x86_64) - .buildkite/linux_aarch64.rayci.yml: base layers + ray/ray-extra build & publish (aarch64) - .buildkite/release/build.rayci.yml: base-extra-testdeps and ray-anyscale cpu/cuda build & publish This also closes an existing inconsistency: ray-images.json already advertised 3.14 for the ray image, but it was never actually built or pushed. Wheels: - ci/build/build_wheel.py: add 3.14 to SUPPORTED_PYTHON_VERSIONS - python/build-wheel-manylinux2014.sh: add py314 cp314-cp314 Signed-off-by: elliot-barn <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request adds support for Python 3.14 across various Buildkite CI/CD pipeline configurations and wheel building scripts, including ci/build/build_wheel.py and python/build-wheel-manylinux2014.sh. There are no review comments, and I have no feedback to provide.
The cu13 image build swaps ray[all]'s cupy-cuda12x for the matching cupy-cuda13x build via a hard-coded pip install. cupy-cuda13x 13.6.0 ships wheels only up to cp313, so the py3.14 cu13.0.0 ray / ray-extra image builds failed with "No matching distribution found for cupy-cuda13x==13.6.0". Make the pin conditional on the Python version: py3.14 installs 14.0.1 (the first cu13 build with a cp314 wheel), while py3.10-3.13 keep 13.6.0 unchanged. Re-declare the PYTHON_VERSION build arg in the build stage so it is available inside the RUN script. Signed-off-by: elliot-barn <[email protected]>
|
Fix for the py3.14 cu13 image build failures (from premerge build 70110) The only PR-caused failures were Root cause: This is exactly the case the Fix: make the cu13 cupy pin conditional on the Python version — py3.14 installs Verified Unrelated: the AI assistance was used for this change. |
|
When will Python 3.15 work start? Planned for 2026-10-01. |
Enables building & publishing **Python 3.14 images and wheels**. Stacked on ray-project#64750 (base branch `elliot-barn-py314-port-64495`), which provides the py3.14 base deplocks this relies on. This PR will auto-retarget to `master` once ray-project#64750 merges. ## Images Adds `3.14` to the core `ray` / `ray-extra` / `ray-anyscale` build & publish matrices (ray-ml, ray-llm and ray-torch intentionally left as-is): - `.buildkite/_images.rayci.yml` — cpu / cpu-extra / tpu / cuda / cuda-extra + slim cpu/cuda base layers - `.buildkite/build.rayci.yml` — ray + ray-extra cpu/tpu/cuda build & publish (x86_64) - `.buildkite/linux_aarch64.rayci.yml` — base layers + ray/ray-extra build & publish (aarch64) - `.buildkite/release/build.rayci.yml` — base-extra-testdeps + ray-anyscale cpu/cuda build & publish Also closes an existing inconsistency: `ray-images.json` already advertised 3.14 for the `ray` image, but it was never actually built or pushed. ## Wheels The rest of the wheel path was already 3.14-ready; this closes the two remaining gaps: - `ci/build/build_wheel.py` — add `3.14` to `SUPPORTED_PYTHON_VERSIONS` - `python/build-wheel-manylinux2014.sh` — add `py314 cp314-cp314` No ray-torch changes. --------- Signed-off-by: elliot-barn <[email protected]> Signed-off-by: 400Ping <[email protected]>
Enables building & publishing Python 3.14 images and wheels.
Stacked on #64750 (base branch
elliot-barn-py314-port-64495), which provides the py3.14 base deplocks this relies on. This PR will auto-retarget tomasteronce #64750 merges.Images
Adds
3.14to the coreray/ray-extra/ray-anyscalebuild & publish matrices (ray-ml, ray-llm and ray-torch intentionally left as-is):.buildkite/_images.rayci.yml— cpu / cpu-extra / tpu / cuda / cuda-extra + slim cpu/cuda base layers.buildkite/build.rayci.yml— ray + ray-extra cpu/tpu/cuda build & publish (x86_64).buildkite/linux_aarch64.rayci.yml— base layers + ray/ray-extra build & publish (aarch64).buildkite/release/build.rayci.yml— base-extra-testdeps + ray-anyscale cpu/cuda build & publishAlso closes an existing inconsistency:
ray-images.jsonalready advertised 3.14 for therayimage, but it was never actually built or pushed.Wheels
The rest of the wheel path was already 3.14-ready; this closes the two remaining gaps:
ci/build/build_wheel.py— add3.14toSUPPORTED_PYTHON_VERSIONSpython/build-wheel-manylinux2014.sh— addpy314 cp314-cp314No ray-torch changes.