Repository navigation
[cherry-pick][2.58.0][ci] Give ray-wheel-minimal-build a distinct wanda image name (#65318) - #65383
Conversation
## 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]> (cherry picked from commit d1d60b9) Signed-off-by: elliot-barn <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request introduces a WHEEL_NAME_SUFFIX environment variable to differentiate Wanda image names between full and minimal wheel builds, preventing the minimal build from overwriting the full wheel image in CI. The reviewer suggested dynamically setting this suffix to "-minimal" for local builds when both Java and Dashboard are excluded to avoid clobbering the local Docker image cache.
| "IS_LOCAL_BUILD": "true", | ||
| "RAY_JAVA_IMAGE": java_image, | ||
| "RAY_DASHBOARD_IMAGE": dashboard_image, | ||
| "WHEEL_NAME_SUFFIX": "", |
There was a problem hiding this comment.
For local builds, if a developer builds a minimal wheel (using --no-java and --no-dashboard), setting WHEEL_NAME_SUFFIX to "-minimal" (matching the CI behavior) prevents clobbering the local Docker image cache for the full wheel build. We can dynamically set this suffix based on whether both Java and the dashboard are excluded.
| "WHEEL_NAME_SUFFIX": "", | |
| "WHEEL_NAME_SUFFIX": "-minimal" if (self.no_java and self.no_dashboard) else "", |
…da image name (#65318) (#66826) Cherry-pick of #65318 (already on 2.58.x via #65383; was never picked to 2.57.x). Without this, the py3.13 minimal wheel build and the full py3.13 wheel build both publish to the wanda name `ray-wheel-py3.13`, and whichever finishes last silently replaces the full wheel for every downstream consumer. On the 2.57.1 release-test run (release build [109081](https://buildkite.com/ray-project/release/builds/109081)) the minimal build won the race, so the `ray-anyscale py3.13` test images were built from a dashboard-less minimal wheel — `ray start` on the head node then fails with `FrontendNotFoundError: Dashboard build directory not found` and every py3.13 release test (hello_world_py313.aws, hello_world_cu130_py3.13, jobs_check_cuda_available.py313_cu130, jobs_check_cuda_version_cu130_py3.13) dies as an exit-19 no-start, surviving 3-5 retries. The published 2.57.1 py3.13 wheel on S3 is unaffected (verified it contains the dashboard frontend) — this only poisons the CI release-test images. After this lands, the next release-test build on the branch rebuilds the py3.13 wheel/image chain under distinct names; re-running the four py3.13 tests (filter `py313|py3\.13`, frequency `any`) should then pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
Cherry-pick of #65318 (merge commit d1d60b9) onto
releases/2.58.0. Clean pick, no conflicts.Why are these changes needed?
ray-wheel-minimal-buildpublishes to the same wanda image name as the real py3.13 wheel build, so 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 (wheel S3 upload, all py3.13 x86_64 images, CI test containers). This gives the minimal build a distinct image name so release wheel artifacts on 2.58.0 can't be silently clobbered.Not a duplicate: no existing cherry-pick PR for #65318 targets this branch.
Checks
git cherry-pick -x -sapplied cleanly; 4 files, +9/-1, identical to the master change.🤖 Generated with Claude Code