Skip to content

[image] add base-extra layer - #55513

Merged
aslonnie merged 1 commit into
masterfrom
lonnie-250811-asimg
Aug 13, 2025
Merged

aslonnie merged 1 commit into
masterfrom
lonnie-250811-asimg

Conversation

@aslonnie

@aslonnie aslonnie commented Aug 12, 2025 •

Copy link
Copy Markdown
Contributor

this the layer required to run on anyscale cloud and for running in ray release tests.

we have been sourcing this layer from a tarball in s3; this change builds it from the source.

@aslonnie
aslonnie requested a review from a team as a code owner August 12, 2025 01:44
@aslonnie
aslonnie marked this pull request as draft August 12, 2025 01:44

@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 new 'cloud extra' Docker image that includes additional dependencies for cloud environments. This is achieved by adding a new Dockerfile and updating the Buildkite CI configuration. The changes also involve refactoring the dependency compilation process, notably by pinning grpcio-tools.

While the overall direction is good, I've found a critical issue with the image tagging in the Wanda configuration that could lead to overwriting the base image. I've also pointed out some areas for improvement in the new Dockerfile regarding deprecated commands and potential base image mismatches, as well as some confusing file naming in the CI configuration that could affect maintainability. Please review the comments for details.

Comment thread ci/docker/ray.cpu.base.wanda.yaml Resolved
Comment thread ci/docker/ray.cpu.base.wanda.yaml Resolved
Comment thread ci/docker/ray.cpu.extra.wanda.yaml Resolved
Comment thread docker/extra-deps/Dockerfile Resolved
Comment thread docker/extra-deps/Dockerfile Resolved
@aslonnie
aslonnie force-pushed the lonnie-250811-asimg branch 2 times, most recently from 923652e to bbf0459 Compare August 12, 2025 06:15
@aslonnie
aslonnie marked this pull request as ready for review August 13, 2025 06:50
@aslonnie
aslonnie force-pushed the lonnie-250811-asimg branch from 88a3017 to 6c316a3 Compare August 13, 2025 06:54
@aslonnie aslonnie changed the title build cloud extra image [image] add base-extra layer Aug 13, 2025
@aslonnie
aslonnie force-pushed the lonnie-250811-asimg branch from 6c316a3 to 9f76dff Compare August 13, 2025 06:56
@aslonnie

Copy link
Copy Markdown
Contributor Author

@aslonnie
aslonnie force-pushed the lonnie-250811-asimg branch 2 times, most recently from 52684c7 to c341ab9 Compare August 13, 2025 15:04
@aslonnie
aslonnie requested a review from khluu August 13, 2025 16:31
@aslonnie aslonnie added the go add ONLY when ready to merge, run all tests label Aug 13, 2025
@aslonnie
aslonnie force-pushed the lonnie-250811-asimg branch from c341ab9 to 6c28969 Compare August 13, 2025 22:14
@aslonnie
aslonnie merged commit ecc4c93 into master Aug 13, 2025
@aslonnie
aslonnie deleted the lonnie-250811-asimg branch August 13, 2025 23:35
dioptre pushed a commit to sourcetable/ray that referenced this pull request Aug 20, 2025
this the layer required to run on anyscale cloud and for running in ray
release tests.

we have been sourcing this layer from a tarball in s3; this change
builds it from the source.

Signed-off-by: Lonnie Liu <[email protected]>
Signed-off-by: Andrew Grosser <[email protected]>
jugalshah291 pushed a commit to jugalshah291/ray_fork that referenced this pull request Sep 11, 2025
this the layer required to run on anyscale cloud and for running in ray
release tests.

we have been sourcing this layer from a tarball in s3; this change
builds it from the source.

Signed-off-by: Lonnie Liu <[email protected]>
Signed-off-by: jugalshah291 <[email protected]>
dstrodtman pushed a commit that referenced this pull request Oct 6, 2025
this the layer required to run on anyscale cloud and for running in ray
release tests.

we have been sourcing this layer from a tarball in s3; this change
builds it from the source.

Signed-off-by: Lonnie Liu <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
snorkelopstesting3-bot pushed a commit to snorkel-marlin-repos/ray-project_ray_pr_55513_2af4afe2-04e4-4351-b11a-0c4ff788ce82 that referenced this pull request Oct 22, 2025
Original PR #55513 by aslonnie
Original: ray-project/ray#55513
snorkelopstesting4-web added a commit to snorkel-marlin-repos/ray-project_ray_pr_55513_2af4afe2-04e4-4351-b11a-0c4ff788ce82 that referenced this pull request Oct 22, 2025
elliot-barn added a commit that referenced this pull request Nov 17, 2026
## Why

The CPU `base-extra` images pin EFA installer 1.42.0, which ships
libfabric 2.1. AWS Neuron collectives on Trainium2 refuse to load
against it:

```
NET/Plugin: Error: libnccom-net.so load failed due to unsupported libfabric version. Installed libfabric version is currently 2.1.
```

so cross-node collectives over EFA fail in containers built on the CPU
images (reported on `anyscale/ray:2.59.0-py313`). The host AMI already
runs EFA installer 1.51.0 (libfabric 2.7), and rebuilding the image with
EFA installer 1.51.0 fixed the Trainium2 test.

The 1.42.0 pin was the latest release when the `base-extra` layer was
added (#55513) and has not been changed since. 1.51.0 is the newest EFA
installer release.

## What changed

- `docker/base-extra/Dockerfile`: CPU branch `EFA_VERSION` 1.42.0 ->
1.51.0.

Only the CPU branch changes. The CUDA images build aws-ofi-nccl from
source against the EFA installer's libfabric and OpenMPI, so bumping
them needs a matching aws-ofi-nccl version and a multi-node NCCL run on
EFA hardware. That is left for a follow-up. Note for that follow-up: EFA
installer 1.51.0 also installs its own aws-ofi-nccl (`libnccl-ofi`
1.22.0 under `/opt/amazon/ofi-nccl`), which would sit next to the one
the Dockerfile builds into `/usr/local`.

Not a duplicate: no open PR touches the EFA pins (`gh pr list --state
open --search "EFA in:title"` / `"efa installer"` return nothing).

## Testing

- `pre-commit` on the commit: passed.
- `docker build -f docker/base-extra/Dockerfile --build-arg
BASE_IMAGE=rayproject/ray:2.59.0-py313-cpu --build-arg
PYTHON_VERSION=3.13 .`: built successfully. In the built image:
- `/opt/amazon/efa/bin/fi_info --version`: `libfabric: 2.7.0amzn2.0`,
`libfabric api: 2.7` (was 2.1 with 1.42.0).
- `/opt/amazon/efa_installed_packages`: EFA installer 1.51.0,
`libfabric1-aws 2.7.0amzn2.0`, `libnccl-ofi 1.22.0`, `openmpi40-aws
4.1.8`, `openmpi50-aws 5.0.9`. This matches the versions on the current
GA AMI.
  - `import ray` works (2.59.0).
- Trainium2 cross-node collectives were verified separately on an image
rebuilt with EFA installer 1.51.0.

AI assistance (Claude Code) was used to prepare this PR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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