Repository navigation
[CI] Make Java and dashboard optional in wheel builds - #62506
Conversation
|
Reviews in this chain: |
|
There was a problem hiding this comment.
Code Review
This pull request introduces the capability to build minimal Ray wheels by allowing the exclusion of Java JARs and the dashboard. Key changes include updating the Buildkite CI configuration to add a minimal wheel build for Python 3.13, modifying the build_wheel.py script to support --no-java and --no-dashboard flags, and refactoring the ray-wheel.Dockerfile to use BuildKit mounts and conditional logic for optional components. I have no feedback to provide as there are no review comments.
f858ac7 to
39a2a95
Compare
|
Failing build fixed by ray-project/rayci#485
|
39a2a95 to
b4e3bde
Compare
Make the ray wheel build configurable so Java JARs and the dashboard can be excluded. - Dockerfile: use RUN --mount for optional Java/dashboard stages, defaulting to scratch when excluded - Wanda: use $RAY_JAVA_IMAGE, $RAY_DASHBOARD_IMAGE, and $JDK_SUFFIX env vars to control inclusion - build_wheel.py: add --no-java and --no-dashboard flags - Buildkite: add ray-wheel-minimal-build CI step to test the no-java/no-dashboard build path Topic: optional-java-wheel Signed-off-by: andrew <[email protected]>
b4e3bde to
63eb041
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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 63eb041. Configure here.
) Make the ray wheel build configurable so Java JARs and the dashboard can be excluded. - Dockerfile: use RUN --mount for optional Java/dashboard stages, defaulting to scratch when excluded - Wanda: use $RAY_JAVA_IMAGE, $RAY_DASHBOARD_IMAGE, and $JDK_SUFFIX env vars to control inclusion - build_wheel.py: add --no-java and --no-dashboard flags - Buildkite: add ray-wheel-minimal-build CI step to test the no-java/no-dashboard build path Signed-off-by: andrew <[email protected]>
) Make the ray wheel build configurable so Java JARs and the dashboard can be excluded. - Dockerfile: use RUN --mount for optional Java/dashboard stages, defaulting to scratch when excluded - Wanda: use $RAY_JAVA_IMAGE, $RAY_DASHBOARD_IMAGE, and $JDK_SUFFIX env vars to control inclusion - build_wheel.py: add --no-java and --no-dashboard flags - Buildkite: add ray-wheel-minimal-build CI step to test the no-java/no-dashboard build path Signed-off-by: andrew <[email protected]>
ray-wheel-minimal-build (the CI smoke test for the no-java/no-dashboard wheel build path, #62506) publishes to the same wanda image name as the real py3.13 wheel build: ci/docker/ray-wheel.wanda.yaml names its output purely from PYTHON_VERSION/ARCH_SUFFIX, so both steps push to <work-repo>:<rayci-build-id>-ray-wheel-py3.13 and the last writer wins. When the minimal build finishes last, the dashboard-less/jar-less wheel silently replaces the full wheel for every downstream consumer: the wheel S3 upload, every py3.13 x86_64 image (cpu + every CUDA variant), and CI test containers. The resulting images fail 'ray start' on cluster launch with 'FrontendNotFoundError: Dashboard build directory not found' (release builds 103723 vs 103652 built from the same commit: one lost the race and both py313_cu130 release tests failed, the other won it and passed). Parameterize the wanda image name with WHEEL_NAME_SUFFIX: the minimal build publishes as ray-wheel-py3.13-minimal (it has no consumers, so nothing else changes) and all real wheel builds set an empty suffix, keeping their names and downstream references unchanged. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: elliot-barn <[email protected]>
## Why are these changes needed? `ray-wheel-minimal-build` — the CI smoke test for the no-java/no-dashboard wheel build path (#62506) — publishes to the **same wanda image name** as the real py3.13 wheel build. `ci/docker/ray-wheel.wanda.yaml` names its output purely from `PYTHON_VERSION`/`ARCH_SUFFIX`, so both steps push to `<work-repo>:<rayci-build-id>-ray-wheel-py3.13` and **the last writer wins**. When the minimal build finishes last, the dashboard-less/jar-less wheel silently replaces the full wheel for every downstream consumer — the wheel S3 upload, every py3.13 x86_64 image (cpu + every CUDA variant), and CI test containers — with no error anywhere in the build: both wheels produce the identical filename `ray-3.0.0.dev0-cp313-cp313-manylinux2014_x86_64.whl`. **Observed impact:** release build 103723 lost this race (minimal wheel pushed 13s after the full wheel; the published `b9d27506-py313-cu130` image contains the 43.7MB minimal wheel with zero `ray/dashboard/client/build` files) and both py3.13 cu130 release tests failed — clusters die on head-node startup with `FrontendNotFoundError: Dashboard build directory not found`. Release build 103652, built from the **same commit**, won the race (78.3MB full wheel, dashboard present) and passed. The race also intermittently poisons premerge. Because wanda steps have no manual retry once green, a lost race cannot be repaired in-place. ## What Parameterize the wanda image name: `ray-wheel-py$PYTHON_VERSION$ARCH_SUFFIX$WHEEL_NAME_SUFFIX`. - minimal build → `ray-wheel-py3.13-minimal` (its image has no consumers — the step is a build-path smoke test — so nothing else changes) - all real wheel builds (x86_64, aarch64, local `build_wheel.py`) set `WHEEL_NAME_SUFFIX: ""` → names unchanged, no downstream references touched ## Related issue number N/A ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. - [x] I've made sure the tests are passing. - Testing Strategy - [x] Release tests - [ ] Unit tests - [ ] This PR is not tested :( 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
…oject#65318) ## Why are these changes needed? `ray-wheel-minimal-build` — the CI smoke test for the no-java/no-dashboard wheel build path (ray-project#62506) — publishes to the **same wanda image name** as the real py3.13 wheel build. `ci/docker/ray-wheel.wanda.yaml` names its output purely from `PYTHON_VERSION`/`ARCH_SUFFIX`, so both steps push to `<work-repo>:<rayci-build-id>-ray-wheel-py3.13` and **the last writer wins**. When the minimal build finishes last, the dashboard-less/jar-less wheel silently replaces the full wheel for every downstream consumer — the wheel S3 upload, every py3.13 x86_64 image (cpu + every CUDA variant), and CI test containers — with no error anywhere in the build: both wheels produce the identical filename `ray-3.0.0.dev0-cp313-cp313-manylinux2014_x86_64.whl`. **Observed impact:** release build 103723 lost this race (minimal wheel pushed 13s after the full wheel; the published `b9d27506-py313-cu130` image contains the 43.7MB minimal wheel with zero `ray/dashboard/client/build` files) and both py3.13 cu130 release tests failed — clusters die on head-node startup with `FrontendNotFoundError: Dashboard build directory not found`. Release build 103652, built from the **same commit**, won the race (78.3MB full wheel, dashboard present) and passed. The race also intermittently poisons premerge. Because wanda steps have no manual retry once green, a lost race cannot be repaired in-place. ## What Parameterize the wanda image name: `ray-wheel-py$PYTHON_VERSION$ARCH_SUFFIX$WHEEL_NAME_SUFFIX`. - minimal build → `ray-wheel-py3.13-minimal` (its image has no consumers — the step is a build-path smoke test — so nothing else changes) - all real wheel builds (x86_64, aarch64, local `build_wheel.py`) set `WHEEL_NAME_SUFFIX: ""` → names unchanged, no downstream references touched ## Related issue number N/A ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. - [x] I've made sure the tests are passing. - Testing Strategy - [x] Release tests - [ ] Unit tests - [ ] This PR is not tested :( 🤖 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]>
…oject#65318) ## Why are these changes needed? `ray-wheel-minimal-build` — the CI smoke test for the no-java/no-dashboard wheel build path (ray-project#62506) — publishes to the **same wanda image name** as the real py3.13 wheel build. `ci/docker/ray-wheel.wanda.yaml` names its output purely from `PYTHON_VERSION`/`ARCH_SUFFIX`, so both steps push to `<work-repo>:<rayci-build-id>-ray-wheel-py3.13` and **the last writer wins**. When the minimal build finishes last, the dashboard-less/jar-less wheel silently replaces the full wheel for every downstream consumer — the wheel S3 upload, every py3.13 x86_64 image (cpu + every CUDA variant), and CI test containers — with no error anywhere in the build: both wheels produce the identical filename `ray-3.0.0.dev0-cp313-cp313-manylinux2014_x86_64.whl`. **Observed impact:** release build 103723 lost this race (minimal wheel pushed 13s after the full wheel; the published `b9d27506-py313-cu130` image contains the 43.7MB minimal wheel with zero `ray/dashboard/client/build` files) and both py3.13 cu130 release tests failed — clusters die on head-node startup with `FrontendNotFoundError: Dashboard build directory not found`. Release build 103652, built from the **same commit**, won the race (78.3MB full wheel, dashboard present) and passed. The race also intermittently poisons premerge. Because wanda steps have no manual retry once green, a lost race cannot be repaired in-place. ## What Parameterize the wanda image name: `ray-wheel-py$PYTHON_VERSION$ARCH_SUFFIX$WHEEL_NAME_SUFFIX`. - minimal build → `ray-wheel-py3.13-minimal` (its image has no consumers — the step is a build-path smoke test — so nothing else changes) - all real wheel builds (x86_64, aarch64, local `build_wheel.py`) set `WHEEL_NAME_SUFFIX: ""` → names unchanged, no downstream references touched ## Related issue number N/A ## Checks - [x] I've signed off every commit(by using the -s flag, i.e., `git commit -s`) in this PR. - [x] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've added any new APIs to the API Reference. - [x] I've made sure the tests are passing. - Testing Strategy - [x] Release tests - [ ] Unit tests - [ ] This PR is not tested :( 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>

Make the ray wheel build configurable so Java JARs and the dashboard can be excluded.
Topic: optional-java-wheel
Signed-off-by: andrew [email protected]