Repository navigation
[ci][deps] Compile requirements_compiled_py3.14.txt from markers instead of by hand - #66795
Merged
Merged
Conversation
…ead of by hand requirements_compiled_py3.14.txt was edited by hand and drifted: it pinned packages with no cp314 wheel (tokenizers 0.15.2 via transformers 4.36.2, tensorflow 2.20, ...), which broke the nightly ray-torch py3.14 build once #65909 made that depset constrain on it. - Source requirement files express every 3.14 difference with python_version markers: a newer pin where the shared one has no cp314 wheel, or a < '3.14' gate where no release has one. - ci/ci.sh compile_pip_dependencies_py314 compiles the file with uv, wheels only (bar a short list of sdist-only packages), constrained to requirements_compiled.txt minus the pins that are marker-gated off 3.14 (ci/py314_parity_constraints.py). No --override, so dependents' version bounds still apply and conflicts fail the compile. - The dependencies pipeline checks the file is current, like the main one. - requirements_compiled.txt changes are marker-only; non-3.14 deplocks change only in markers, no versions. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: elliot-barn <[email protected]>
Compile requirements_compiled_py3.14.txt as a separate uv compile, like compile_313_pip_dependencies did, instead of constraining it to requirements_compiled.txt. The 3.14 branch lines in the source files are now unpinned, and the cryptography/pyopenssl/snowflake splits that only existed for parity are gone. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: elliot-barn <[email protected]>
elliot-barn
marked this pull request as ready for review
October 9, 2026 06:21
elliot-barn
requested review from
a team,
matthewdeng and
richardliaw
as code owners
October 9, 2026 06:21
Contributor
|
Note The number of changes in this pull request is too large for Gemini Code Assist to generate a review. |
The `python_version >= '3.14'` halves of each marker pair were unpinned. Pin them to the versions already in requirements_compiled_py3.14.txt so they read like the rest of the source files and a re-resolve can't move them silently. Recompiling requirements_compiled_py3.14.txt is a no-op. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: elliot-barn <[email protected]>
…arker-constraints Signed-off-by: elliot-barn <[email protected]> # Conflicts: # python/deplocks/ci/data-mongo-ci_depset_py3.10.lock # python/deplocks/ci/data-pyarrow-latest-ci_depset_py3.10.lock # python/deplocks/ci/data-pyarrow-latest-ci_depset_py3.12.lock # python/deplocks/ci/data-pyarrow-nightly-ci_depset_py3.10.lock # python/requirements/ml/data-test-requirements.txt
…master Comment-only: master's data-test-requirements now lists azure-storage-blob and databricks-sdk directly, which updates their `# via` lines. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: elliot-barn <[email protected]>
hyperopt is pinned to a git commit, so uv can only get it by building it.
`--only-binary :all:` rejected it in CI ("Building source distributions for
`hyperopt` is disabled"). Local runs passed only because uv had hyperopt's
metadata cached; with UV_NO_CACHE=1 the failure reproduces, and with this
change the compile succeeds and the lock is unchanged.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
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.
Why
python/requirements_compiled_py3.14.txtis edited by hand. It copied most pins from the py3.11 lock, and only six were ever bumped for 3.14. About 25 other pins have no cp314 wheel (jax 0.4.33, h5py 3.12.1, pymongo 4.3.2, tensorflow 2.20, ...), and transformers was still at 4.36.2. Nobody noticed, because a constraints file only gets tested when some image actually requests a package. Once #65909 made the ray-torch py3.14 depset constrain on this file, the nightlyray-torch.py3.14build failed ontokenizers==0.15.2(no cp314 wheel).Not a duplicate: #66731 fixes the same failure with a uv
--overridefile. An override replaces every requirement on a package, including the version bounds other packages declare, so conflicts compile cleanly. Its generated file pinss3torchconnector1.4.3 withs3torchconnectorclient1.5.0,numcodecs0.17 against zarr's<0.16, andnumpy2.3.3 against lerobot's<2.3. This PR takes a different approach and uses no overrides, so uv enforces every dependent's bounds.What changed
ci/ci.sh compile_pip_dependencies_py314compiles the 3.14 file on its own, likecompile_313_pip_dependenciesdid before [ci][deps] Unifyrequirements_compiledacross Python versions #64257. It uses uv 0.9.26 (the version bazel pins) with--python-version 3.14, from the same source files ascompile_pip_dependencies.--only-binary :all:), except 12 packages that ship only an sdist for every Python version, so building them isn't a 3.14 regression.manylinux_2_35.python_version < '3.14'. Where 3.14 needs a replacement, an unpinnedpython_version >= '3.14'line is added and the resolver picks the version. This replaces thepy313/directory copies 3.13 used to have.--only-binary :all:, so a package without a cp314 wheel fails the compile instead of quietly building from source. The exceptions are packages that never ship a wheel on any Python: sdist-only releases (crcmod, gsutil, ...) andhyperopt, whichtune-requirements.txtpins to a git commit. Every Python builds those from source; the 3.10–3.13 compile just doesn't forbid it.requirements_compiled_py3.14.txtis out of date, the same check it already runs on the main file.requirements_compiled.txt: marker-only changes (python_version < "3.14").dependency-management.mdgets a Python 3.14 section.3.14 decisions (source files)
>= '3.14'line pins the version that resolved)Notes for reviewers:
ast.Strbelow Python 3.8. It's needed because locust ≥2.40 requires it, and older locust capsgevent<25.8.1, which has no cp314 wheel.tf-kerasline after the pinned one rewrotetf-keras==2.19.0's marker from< "3.12"to< "3.14", which would have applied that pin on 3.12/3.13. So those lines are split at 3.12.User-visible change (py3.14 images)
Full diff of requirements_compiled_py3.14.txt pins vs master (108 packages)
Changed (35): accelerate 0.28.0→1.15.0, ale-py 0.10.1→0.12.1, array-record 0.5.1→0.8.3, click 8.3.2→8.5.0, crc32c 2.3→2.9.post0, cryptography 44.0.3→47.0.0, datasets 3.6.0→4.8.5, etils 1.5.2→1.14.0, evaluate 0.4.3→0.4.6, h5py 3.12.1→3.16.0, hf-xet 1.4.3→1.7.0, huggingface-hub 0.36.2→1.33.0, jax 0.4.33→0.11.2, jaxlib 0.4.33→0.11.2, mlflow / mlflow-skinny / mlflow-tracing 3.11.1→3.16.1, mujoco 3.2.4→3.15.0, onnx 1.16.0→1.23.2, open-spiel 1.4→2.0.2, py-spy 0.4.1→0.4.2, pyiceberg 0.11.0→0.12.0, pymongo 4.3.2→4.18.2, pymunk 6.2.1→7.3.0, pyopenssl 25.1.0→26.2.0, s3torchconnector 1.4.3→1.5.0, s3torchconnectorclient 1.4.3→1.5.0, safetensors 0.7.0→0.8.0, sentencepiece 0.1.96→0.2.1, snowflake-connector-python 4.3.0→4.8.0, tensordict 0.8.3→0.14.2, tokenizers 0.15.2→0.23.2, transformers 4.36.2→5.19.0, urllib3 2.0.7→1.26.20 (+ deepspeed marker only)
Added (13), all already in the shared sources: audioop-lts, av, cuda-pathfinder, hf-gradio, mcap, obstore, onnx-ir, onnxscript, pymysql, pyvers, ray-haproxy, taskiq-redis, torchcodec
Removed (60): the gated packages above and what only they pull in (tensorflow stack, RL envs, aim/mosaicml/hpbandster/uvloop which the sources already gate to <3.12), plus stale entries no current source requires (sphinx/myst/ruff family).
Testing
Run on x86_64 Linux in a Python 3.11 venv:
ci/ci.sh compile_pip_dependencies, thenci/ci.sh compile_pip_dependencies_py314, thenbazelisk run //ci/raydepsets:raydepsets -- build --all-configs. All succeed.compile_pip_dependencies_py314a second time reproduces the committed file byte for byte, so the new CI check passes. This was also checked withUV_NO_CACHE=1, which is how CI runs it: a warm local uv cache had hidden the hyperopt failure below.uv pip compile --no-deps --python-version 3.14 --python-platform x86_64-manylinux_2_35 --only-binary :all:(minus the sdist-only list). That covers base_deps, base_extra, base_extra_testdeps, base_slim, ray_img, ray_img_cu130 and ray-torch.Not changed here
docker/base-extra/requirements.inlists it directly, so the base-extra py3.14 image still builds it from source, same as master.tensorboard-plugin-profilethere has no cp314 wheel.AI assistance (Claude Code) was used to investigate and write this change.
🤖 Generated with Claude Code