Skip to content

fix: bump ray to 2.58.0 and purge bundled ray_dist.jar for CVE remediation - #4415

Merged
kajalj22 merged 3 commits into
r0.8.0from
build/bump-ray-2.58.0
Oct 2, 2026
Merged

kajalj22 merged 3 commits into
r0.8.0from
build/bump-ray-2.58.0

Conversation

@kajalj22

@kajalj22 kajalj22 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

CVE remediation, same fix pattern as NVIDIA-NeMo/Gym#3737/#3779/#3826:

  • ray[default] >=2.55.1 -> >=2.58.0. Note: the version bump alone does not fix the httpcore5 CVE bundled in ray's Java worker jar (GHSA-hf6x-8p5f-cgmf) — no released ray version has that fix yet.
  • docker/Dockerfile: delete ray_dist.jar from every venv and the default uv cache instead. NeMo-RL never uses Ray's Java cross-language worker (confirmed: no java_worker/cross_language usage anywhere in nemo_rl/ or the vendored submodules), and removing the jar doesn't affect ray.init(), remote tasks, actors, or ray.serve — verified via the same fix applied in Gym.
  • uv.lock regenerated via uv lock --upgrade-package ray. The diff is large (~3800 lines) but every line besides ray's own version/hash is internal extras-conflict-marker renumbering, not an actual dependency change — confirmed by diffing just the version = lines, which shows only ray 2.56.1 -> 2.58.0.

Base branch is r0.8.0 per request — intended to be cherry-picked to main separately.

Validation

  • Confirmed no Ray Java cross-language worker usage anywhere in this repo or its vendored submodules (grep for java_worker/cross_language/.jar references: zero matches)
  • Confirmed the uv.lock diff's only real version change is ray itself
  • Could not run uv run ruff/tests locally — this repo's lockfile only supports Linux (x86_64/aarch64) environments, and I'm on macOS; relying on CI
  • Draft until CI is green

Checklist

  • The change is focused on this CVE remediation.

…ation

- ray[default] >=2.55.1 -> >=2.58.0, matching the version validated in
  NVIDIA-NeMo/Gym#3737. Note: this version bump alone does not fix the
  httpcore5 CVE bundled in ray's Java worker jar (GHSA-hf6x-8p5f-cgmf)
  -- no released ray version has that fix yet.
- docker/Dockerfile: delete ray_dist.jar from every venv and the default
  uv cache instead. NeMo-RL never uses Ray's Java cross-language worker
  (confirmed: no java_worker/cross_language usage anywhere in nemo_rl/
  or the vendored submodules), and removing the jar doesn't affect
  ray.init(), remote tasks, actors, or ray.serve -- verified via the
  same fix applied in NVIDIA-NeMo/Gym#3779 and #3826.
- uv.lock regenerated via `uv lock --upgrade-package ray`. The diff is
  large (~3800 lines) but every line besides ray's own version/hash is
  internal extras-conflict-marker renumbering, not an actual dependency
  change -- confirmed by diffing just the `version = ` lines, which
  shows only ray 2.56.1 -> 2.58.0.

Signed-off-by: Kajal Jain <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Oct 2, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@kajalj22 kajalj22 added the CI:L0 Run doctests and unit tests label Oct 2, 2026
@kajalj22

kajalj22 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 3c46bb8

@kajalj22

kajalj22 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test ccad1da

@kajalj22

kajalj22 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test d9cadd3

@kajalj22
kajalj22 force-pushed the build/bump-ray-2.58.0 branch from d9cadd3 to 2131815 Compare October 2, 2026 06:15
@kajalj22

kajalj22 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 2131815

@kajalj22 kajalj22 added the cherry-pick-to-main Opt in: cherry-pick this PR's commit from the release branch back into main label Oct 2, 2026
@kajalj22
kajalj22 marked this pull request as ready for review October 2, 2026 06:16
@kajalj22
kajalj22 enabled auto-merge (squash) October 2, 2026 06:16
@kajalj22
kajalj22 merged commit 5779073 into r0.8.0 Oct 2, 2026
76 checks passed
@kajalj22
kajalj22 deleted the build/bump-ray-2.58.0 branch October 2, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-to-main Opt in: cherry-pick this PR's commit from the release branch back into main CI:L0 Run doctests and unit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants