Skip to content

[cherry-pick][2.58.0][ci] Give ray-wheel-minimal-build a distinct wanda image name (#65318) - #65383

Merged
elliot-barn merged 1 commit into
releases/2.58.0from
elliot-barn/cp-65318-releases-2.58.0
Aug 11, 2026
Merged

elliot-barn merged 1 commit into
releases/2.58.0from
elliot-barn/cp-65318-releases-2.58.0

Conversation

@elliot-barn

Copy link
Copy Markdown
Collaborator

Cherry-pick of #65318 (merge commit d1d60b9) onto releases/2.58.0. Clean pick, no conflicts.

Why are these changes needed?

ray-wheel-minimal-build publishes 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 -s applied cleanly; 4 files, +9/-1, identical to the master change.
  • AI assistance (Claude Code) was used to prepare this cherry-pick; reviewed by the submitter.

🤖 Generated with Claude Code

## 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]>
@elliot-barn
elliot-barn requested review from a team as code owners August 11, 2026 18:35

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

Comment thread ci/build/build_wheel.py
"IS_LOCAL_BUILD": "true",
"RAY_JAVA_IMAGE": java_image,
"RAY_DASHBOARD_IMAGE": dashboard_image,
"WHEEL_NAME_SUFFIX": "",

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.

medium

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.

Suggested change
"WHEEL_NAME_SUFFIX": "",
"WHEEL_NAME_SUFFIX": "-minimal" if (self.no_java and self.no_dashboard) else "",

@ray-gardener ray-gardener Bot added the devprod label Aug 11, 2026
@elliot-barn
elliot-barn merged commit 9a948db into releases/2.58.0 Aug 11, 2026
4 of 5 checks passed
@elliot-barn
elliot-barn deleted the elliot-barn/cp-65318-releases-2.58.0 branch August 11, 2026 21:07
elliot-barn added a commit that referenced this pull request Oct 8, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants