Skip to content

[CI] Make Java and dashboard optional in wheel builds - #62506

Merged
aslonnie merged 1 commit into
masterfrom
andrew/revup/master/optional-java-wheel
Apr 15, 2026
Merged

aslonnie merged 1 commit into
masterfrom
andrew/revup/master/optional-java-wheel

Conversation

@andrew-anyscale

@andrew-anyscale andrew-anyscale commented Apr 10, 2026 •

Copy link
Copy Markdown
Contributor

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]

@andrew-anyscale

andrew-anyscale commented Apr 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Reviews in this chain:
└#62506 [CI] Make Java and dashboard optional in wheel builds

@andrew-anyscale

andrew-anyscale commented Apr 10, 2026 •

Copy link
Copy Markdown
Contributor Author
# head base diff date summary
0 f858ac7e 262edcf1 diff Apr 10 9:44 AM 5 files changed, 95 insertions(+), 24 deletions(-)
1 39a2a95a 262edcf1 diff Apr 10 10:25 AM 2 files changed, 37 insertions(+), 3 deletions(-)
2 b4e3bde0 18c8f3e8 diff Apr 13 10:51 AM 0 files changed
3 63eb041d 781d562c diff Apr 14 7:05 AM 1 file changed, 10 insertions(+), 2 deletions(-)

@andrew-anyscale andrew-anyscale added ci go add ONLY when ready to merge, run all tests labels Apr 10, 2026

@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 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.

@andrew-anyscale
andrew-anyscale force-pushed the andrew/revup/master/optional-java-wheel branch from f858ac7 to 39a2a95 Compare April 10, 2026 17:25
@andrew-anyscale

Copy link
Copy Markdown
Contributor Author

Failing build fixed by ray-project/rayci#485

[2026-04-10T17:04:51Z] 2026/04/10 17:04:51 build ray-wheel-py3.13: resolve bases: resolve remote image scratch: fetch image scratch: GET https://index.docker.io/v2/library/scratch/manifests/latest: MANIFEST_UNKNOWN: manifest unknown; unknown tag=latest

@andrew-anyscale
andrew-anyscale force-pushed the andrew/revup/master/optional-java-wheel branch from 39a2a95 to b4e3bde Compare April 13, 2026 17:51
@andrew-anyscale
andrew-anyscale changed the base branch from master to andrew/revup/master/rayci-42 April 13, 2026 17:51
Base automatically changed from andrew/revup/master/rayci-42 to master April 14, 2026 04:46
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]>
@andrew-anyscale
andrew-anyscale marked this pull request as ready for review April 14, 2026 14:05
@andrew-anyscale
andrew-anyscale force-pushed the andrew/revup/master/optional-java-wheel branch from b4e3bde to 63eb041 Compare April 14, 2026 14:05
@andrew-anyscale
andrew-anyscale requested a review from a team as a code owner April 14, 2026 14:05

@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 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 63eb041. Configure here.

Comment thread ci/build/build_image.py Resolved
@aslonnie
aslonnie enabled auto-merge (squash) April 14, 2026 16:26
@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core devprod labels Apr 14, 2026
@aslonnie
aslonnie disabled auto-merge April 15, 2026 03:46
@aslonnie
aslonnie merged commit c91063a into master Apr 15, 2026
6 checks passed
@aslonnie
aslonnie deleted the andrew/revup/master/optional-java-wheel branch April 15, 2026 03:46
HLDKNotFound pushed a commit to chichic21039/ray that referenced this pull request Apr 22, 2026
)

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]>
Lucas61000 pushed a commit to Lucas61000/ray that referenced this pull request May 15, 2026
)

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]>
elliot-barn added a commit that referenced this pull request Aug 10, 2026
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]>
elliot-barn added a commit that referenced this pull request Aug 11, 2026
## 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]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…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]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci core Issues that should be addressed in Ray Core devprod go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants