Repository navigation
[ci] Recompile release/requirements_py310.txt; drop packages no longer required - #68050
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.
sai-miduthuri
approved these changes
Nov 19, 2026
#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
force-pushed
the
elliot-barn/idna-cve-2026-45409
branch
from
November 19, 2026 22:49
eaf171a to
edeca9f
Compare
…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
force-pushed
the
elliot-barn/recompile-requirements-py310
branch
from
November 19, 2026 22:50
a1dd0fa to
2df36a2
Compare
elliot-barn
enabled auto-merge (squash)
November 20, 2026 01:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
release/requirements_py310.txtis thepy_deps_py310Bazel 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 inrequirements_py310.inorrequirements-doc.txtrequires anymore: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:@rules_python//python/pip_install:pip_compile.pyno longer exists in the rules_python version master uses.release/requirements-doc.txtis a symlink todoc/requirements-doc.txt, which now pinssphinx==8.2.3andsphinxcontrib-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.txtdoesn't have, and then restored. Onreleases/2.57.2, the same procedure reproduces the existing file byte for byte.A longer-term fix is to drop
-r requirements-doc.txtfrom 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
ci_require/bk_require/requirementor@py_deps_py310_*reference and no import inrelease/ray_releaseorci/uses the removed packages.uv pip install --dry-run --require-hasheson 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