Repository navigation
[cherry-pick][2.57.1][ci] Give ray-wheel-minimal-build a distinct wanda image name (#65318) - #66826
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 minimal wheel builds (without Java or the dashboard) from full wheel builds, preventing them from overwriting each other's Wanda images. Feedback suggests dynamically setting WHEEL_NAME_SUFFIX to "-minimal" in ci/build/build_wheel.py when no_java or no_dashboard is enabled, rather than hardcoding it to an empty string, to prevent poisoning the local docker cache during local builds.
| "IS_LOCAL_BUILD": "true", | ||
| "RAY_JAVA_IMAGE": java_image, | ||
| "RAY_DASHBOARD_IMAGE": dashboard_image, | ||
| "WHEEL_NAME_SUFFIX": "", |
There was a problem hiding this comment.
In local builds, if --no-java or --no-dashboard is specified, the built image is a minimal/non-standard wheel. Hardcoding WHEEL_NAME_SUFFIX to "" here means local minimal builds will use the same image name as the full wheel (ray-wheel-py<version>), poisoning the local docker cache for subsequent full wheel builds.\n\nWe should dynamically set WHEEL_NAME_SUFFIX to "-minimal" if either no_java or no_dashboard is enabled.
| "WHEEL_NAME_SUFFIX": "", | |
| "WHEEL_NAME_SUFFIX": "-minimal" if (self.no_java or self.no_dashboard) else "", |
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) the minimal build won the race, so theray-anyscale py3.13test images were built from a dashboard-less minimal wheel —ray starton the head node then fails withFrontendNotFoundError: Dashboard build directory not foundand 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, frequencyany) should then pass.🤖 Generated with Claude Code