Skip to content

[ci] Recompile release/requirements_py310.txt; drop packages no longer required - #68050

Merged
elliot-barn merged 3 commits into
masterfrom
elliot-barn/recompile-requirements-py310
Nov 20, 2026
Merged

elliot-barn merged 3 commits into
masterfrom
elliot-barn/recompile-requirements-py310

Conversation

@elliot-barn

Copy link
Copy Markdown
Collaborator

Description

release/requirements_py310.txt is the py_deps_py310 Bazel lock and the release-test launcher environment. It wasn't regenerated when the docs dropped TensorFlow (#65947) and swapped sphinx plugins (#66957). It still pins 23 packages that nothing in requirements_py310.in or requirements-doc.txt requires anymore:

  • TensorFlow stack: tensorflow, tf-keras, keras, tensorboard, tensorboard-data-server, h5py, absl-py, astunparse, flatbuffers, gast, google-pasta, libclang, ml-dtypes, namex, opt-einsum, optree, markdown, werkzeug
  • Doc plugins: sphinx-jsonschema, sphinx-llms-txt, sphinxcontrib-redoc
  • Other: pillow, wheel

This PR recompiles the file and removes them. No pin changes, and nothing is added.

Stacked on #68048 (idna and aiohttp security bumps), so the recompile starts from the fixed floors. Merge #68048 first, then retarget this PR to master.

How it was recompiled

It uses the same tool and settings as //release:requirements_py310.update: pip-tools 6.6.0 on pip 22.0.4 and Python 3.10, with --no-upgrade --generate-hashes. The Bazel target itself can't run on master for two reasons:

  1. It doesn't build, because @rules_python//python/pip_install:pip_compile.py no longer exists in the rules_python version master uses.
  2. release/requirements-doc.txt is a symlink to doc/requirements-doc.txt, which now pins sphinx==8.2.3 and sphinxcontrib-openapi==0.10.0. Both need Python ≥3.11, so this Python 3.10 environment can't resolve them.

So during the compile, that symlink was temporarily replaced by the same doc requirements at the versions already in the .txt, leaving out doc packages the .txt doesn't have, and then restored. On releases/2.57.2, the same procedure reproduces the existing file byte for byte.

A longer-term fix is to drop -r requirements-doc.txt from this Python 3.10 environment, or move the environment to Python 3.11, and to repair the Bazel target. I'll leave that for a follow-up.

Related issues

Follow-up to #65947, #66957 and #68048.

Testing

  • No Bazel ci_require/bk_require/requirement or @py_deps_py310_* reference and no import in release/ray_release or ci/ uses the removed packages.
  • uv pip install --dry-run --require-hashes on Python 3.10 covers 198 packages, and a full resolve gives the same 198 with no conflicts. Before this change, the full resolve needed one package the file didn't pin.

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

🤖 Generated with Claude Code

@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 updates the Python 3.10 requirements file (release/requirements_py310.txt) by removing TensorFlow, Keras, TensorBoard, and their associated dependencies, as well as several Sphinx documentation plugins. I have no feedback to provide as there are no review comments.

@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core devprod release-test release test labels Nov 11, 2026
elliot-barn and others added 2 commits November 19, 2026 22:44
#64056 set idna>=3.15 and idna 3.18 in requirements_compiled.txt, but
files not constrained by the compiled file kept vulnerable pins:
- multimodal byod py3.10 release locks (audio_transcription,
  document_embedding, image_classification, video_object_detection):
  3.7
- release/requirements_py310.txt (py_deps_py310 bazel lock and the
  release-test launcher env): 3.7
- datatfds_py3.12.lock: 3.11
- requirements_ml_byod_3.10.txt (unreferenced): 3.7

All move to 3.18, the compiled pin. raydepsets build --all-configs
--check passes. The two .txt files change only their idna version and
hash lines, because //release:requirements_py310.update no longer builds
(its pip_compile.py target is gone from rules_python). Instead, checked
with uv pip install --dry-run --require-hashes on python 3.10.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
release/requirements_py310.txt still pins aiohttp 3.9.5 (and yarl 1.9.4),
below the aiohttp>=3.14.4 floor master uses for CVE-2026-111064,
CVE-2026-111066 and GHSA-2g87-pp6c-29x5 (#67304).

- aiohttp 3.9.5 -> 3.14.4, yarl 1.9.4 -> 1.25.1, aiosignal 1.3.1 ->
  1.4.0, and the new aiohttp deps aiohappyeyeballs 2.6.1 and propcache
  0.4.1, at the versions in requirements_compiled.txt. Every other pin
  is unchanged; multidict, frozenlist, attrs and async-timeout already
  satisfy aiohttp 3.14.4.
- requirements_py310.in gains aiohttp>=3.14.4 and idna>=3.15 floors,
  next to the existing certifi and h11 floors.

//release:requirements_py310.update doesn't build on master, and the .in
can't resolve on 3.10 anyway (requirements-doc.txt pins sphinx 8.2.3,
python>=3.11; the .txt still has sphinx 7.3.7). So the versions come from
a uv pip compile with every other pin in the .txt held fixed; only those
entries are spliced in. Checked with uv pip install --dry-run
--require-hashes on python 3.10 (all 221 packages, plus a full resolve).
Hashes match the same versions in master's deplocks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn
elliot-barn force-pushed the elliot-barn/idna-cve-2026-45409 branch from eaf171a to edeca9f Compare November 19, 2026 22:49
…r required

release/requirements_py310.txt (the py_deps_py310 bazel lock and the
release-test launcher env) was not regenerated when the docs dropped
tensorflow (#65947) and swapped sphinx plugins (#66957), so it still pins
23 packages that nothing in requirements_py310.in or
requirements-doc.txt requires: the tensorflow/keras stack (tensorflow,
tf-keras, keras, tensorboard, h5py, absl-py, ...), sphinx-jsonschema,
sphinx-llms-txt, sphinxcontrib-redoc, pillow, werkzeug and wheel.

Recompiled with the same tool as //release:requirements_py310.update
(pip-tools 6.6.0 on pip 22.0.4 and python 3.10, --no-upgrade
--generate-hashes). The bazel target doesn't build on master
(rules_python no longer ships pip_compile.py), and requirements-doc.txt
can't resolve on python 3.10 (sphinx 8.2.3 and sphinxcontrib-openapi
0.10.0 need >=3.11). So for the compile, release/requirements-doc.txt
was replaced by the doc requirements at the versions already in the .txt,
then restored. No pins change and nothing is added. No bazel target or
release/ci code references the removed packages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn
elliot-barn force-pushed the elliot-barn/recompile-requirements-py310 branch from a1dd0fa to 2df36a2 Compare November 19, 2026 22:50
Base automatically changed from elliot-barn/idna-cve-2026-45409 to master November 20, 2026 01:45
@elliot-barn
elliot-barn enabled auto-merge (squash) November 20, 2026 01:45
@elliot-barn elliot-barn added the go add ONLY when ready to merge, run all tests label Nov 20, 2026
@elliot-barn
elliot-barn merged commit 32e5120 into master Nov 20, 2026
7 checks passed
@elliot-barn
elliot-barn deleted the elliot-barn/recompile-requirements-py310 branch November 20, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core devprod go add ONLY when ready to merge, run all tests release-test release test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants