Repository navigation
[deps] Regenerate the ray-llm base_extra_testdeps locks after the brotli bump - #67979
dstrodtman wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the Python dependency lock files for Python 3.11 and 3.12 to reflect that the brotli package is now also referenced via the security requirements file (python/requirements/security-requirements.txt). I have no feedback to provide as there are no review comments and the changes are straightforward dependency lock updates.
…tli bump #67789 added brotli to python/requirements/security-requirements.txt, which the ray_base_extra_testdeps_llm_cuda depsets apply as a constraint, but didn't regenerate their locks. Brotli's "via" annotation now lists the constraint file, so raydepsets --check fails on any PR that runs it. The pinned versions and hashes are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
25632d5 to
ba77167
Compare
…67789) (#67998) ## Description Cherry-pick of #67789 (master commit 2f5e30a) onto `releases/2.60.1`. **Bottom of a 2-PR stack on `releases/2.60.1`, under #67997 (the #67596 pick).** Merge the stack with `gh stack merge 67997`, which lands this PR first. Brotli 1.0.3 through 1.2.0 has a critical out-of-bounds write in its decoder, CVE-2026-111497 ([GHSA-9v8h-qqgm-4m35](GHSA-9v8h-qqgm-4m35)), fixed in 1.2.1. Ray gets `brotli` transitively through gradio, and it's pinned in the compiled requirements and in the image, CI and release locks. #67789 does the following: - Adds `brotli>=1.2.1` to `security-requirements.txt`. - Moves `brotli` to 1.2.1 in `requirements_compiled.txt` and `requirements_compiled_py3.14.txt`. - Moves the locks to 1.2.1. The #67596 pick, #67997, fixes the conda copy in the base images. It's stacked on this PR because images built on those bases install these locks, and with the old pins pip would downgrade brotli to 1.2.0. ## Related issues Related to #67789. Advisory: GHSA-9v8h-qqgm-4m35 / CVE-2026-111497. ## Additional information ### Cherry-pick details Applied with `git cherry-pick -x`. Of #67789's 41 files: - **29 merged cleanly.** Their added and removed lines are identical to master's. - **11 dropped.** These locks don't exist on this branch, because master added them after the cut: - `ray-torch-cu133_base_py3.11.lock` and `ray-torch-cu133_base_py3.14.lock`; - the nine `release/ray_release/byod/torch_cu128_*_py3.11.lock` files. - **1 resolved: `ray-torch-cu128_base_py3.14.lock`.** It conflicted because it differs from master in other packages. I took this branch's version and replaced brotli's version and hash lines with #67789's 1.2.1 entry, keeping the branch's `# via` line. Its added and removed lines are now identical to master's: brotli 1.2.0 → 1.2.1, -100/+143 hashes. After the pick, every brotli pin in the compiled requirements and lock files is 1.2.1. The exception is `release/ray_release/byod/requirements_ml_byod_3.10.txt`, which nothing references; it is still 1.1.0, the same as on master. #67979 (open on master) regenerates two ray-llm locks whose `# via` annotation master's #67789 left stale. On this branch, `raydepsets build --all-configs` produces no changes after the pick, so that follow-up isn't needed here. Not a duplicate: this branch doesn't contain #67789, and no PR against `releases/2.60.1` references it. #67962 picks the same commit onto `releases/2.58.2`. ### Testing | Command | Result | |---|---| | `pre-commit run --files <the 30 changed files>` | Passed | | `bazel run //ci/raydepsets:raydepsets -- build --all-configs` | Succeeded with no changes to the tree | | `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check` | Passed: "Lock files are up to date." | AI assistance was used to prepare this cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: elliot-barn <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]> Co-authored-by: Elliot Barnwell <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
Why are these changes needed?
#67789 added brotli to
python/requirements/security-requirements.txt. Theray_base_extra_testdeps_llm_cuda_*depsets inci/raydepsets/configs/rayimg.depsets.yamlapply that file as a constraint, but their locks weren't regenerated. The regenerated locks list the constraint file in brotli's# viaannotation, soraydepsets build --all-configs --checknow fails on every PR that runs theraydepsets: compile all dependenciesjob. For example, it fails on premerge build 76526 for #67822, which doesn't touch these files.This PR regenerates the two affected locks. Only the annotation changes. Every pinned version and hash stays the same.
Testing
bazel run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/rayimg.depsets.yamlchanges only these two files, and the diff matches the one the failing CI job printed.bazel run //ci/raydepsets:raydepsets -- build --all-configs --check, the command the CI job runs, reports "Lock files are up to date." The locks resolve with--python-platform=linux, so the result doesn't depend on the host.Duplicate check
No open PR regenerates these locks. #67846 would have, but it was closed in favor of #67596, which changed only the base-deps and base-slim Dockerfiles.
AI assistance
I made this change with Claude Code (Opus 5.5). I reviewed the diff and ran the checks above.
🤖 Generated with Claude Code