Repository navigation
release/2.13 bringup: pin requirements.txt - #3445
Conversation
|
Jenkins build for db77a8d1ef918bdd6d9f794ecbdef27438c38468 commit finished as FAILURE |
|
Jenkins build for 7e6e20148a5a62abfba8f80622d0cd5c1b0f9c2a commit finished as NOT_BUILT |
|
Jenkins build for 7e6e20148a5a62abfba8f80622d0cd5c1b0f9c2a commit finished as FAILURE |
|
Jenkins build for cc7053e19dcf530997dde6ff1d5f72b4a071b370 commit finished as FAILURE |
|
Jenkins build for 0bdf6021017b89b9ffd5a340428399f6e32b2f03 commit finished as NOT_BUILT |
|
Jenkins build for 821d306eeffd90843bd654cf50fada711e217bad commit finished as NOT_BUILT |
|
Jenkins build for 821d306eeffd90843bd654cf50fada711e217bad commit finished as FAILURE Detected error during base docker image building: |
|
@pablo-garay Thanks for the PR. I would suggest we kick off builds on theRock CI for all python versions, so we can get a signal on how the build and core tests do with this pinning logic. @ethanwee1 can provide you more info on how to do that. |
Pin requirements.txt to the same versions used on release/2.12 (identical package set; optree kept split on python_version 3.14 as in 2.12). Signed-off-by: pablo-garay <[email protected]>
…pins Pin build-system deps in requirements-build.txt and set the direct requirements.txt pins to the versions selected for the 2.13 release. build keeps the [uv] extra (build[uv]==1.5.0). Signed-off-by: pablo-garay <[email protected]>
setuptools==81.0.0 and numpy==2.5.1. Signed-off-by: pablo-garay <[email protected]>
Signed-off-by: pablo-garay <[email protected]>
networkx 3.4.2 (<3.11) / 3.6.1 (>=3.11) in requirements.txt; numpy 2.2.6 (<3.11) / 2.4.6 (==3.11) / 2.5.1 (>=3.12) in requirements-build.txt. Signed-off-by: pablo-garay <[email protected]>
Pin the previously-loose entries to resolved versions (verified via uv pip compile on py3.10-3.14): click, librosa (<3.11), psutil, pytest-rerunfailures, unittest-xml-reporting, redis, pyzstd (split <3.13/>=3.13), six, tqdm, cuda-bindings, uv. Signed-off-by: pablo-garay <[email protected]>
cupti-python==13.3.0 (resolved uniform across py3.10-3.13; absent on 3.14 per existing marker). Marker/comment preserved. Signed-off-by: pablo-garay <[email protected]>
Revert the cuda-bindings hard pin back to the upstream range so it matches the accompanying comment (allow minor updates within the CUDA 13 major). Signed-off-by: pablo-garay <[email protected]>
821d306 to
c4dc10e
Compare
|
Jenkins build for 7bec22985731d62949ba36ea672f1108a9d76939 commit finished as NOT_BUILT |
fbscribelogger==0.1.7 caps thriftpy2<0.6.0, and thriftpy2 only ships cp314 wheels from 0.6.0. On Python 3.14 pip therefore source-builds thriftpy2 via distutils/gcc, which fails in the compiler-less test image (no_rocm_image_ubuntu24_04). fbscribelogger is a no-op on OSS/ROCm CI, so gate it to python_version < 3.14. Signed-off-by: pablo-garay <[email protected]>
|
Jenkins build for 7bec22985731d62949ba36ea672f1108a9d76939 commit finished as FAILURE |
done ; PTAL @ PR description |
## Summary Pin Python dependencies for the `release/2.14` bringup so CI and builds are reproducible, and make everything resolve cleanly on Python **3.10 / 3.11 / 3.12 / 3.13 / 3.14**. Mirrors the 2.13 bringup (#3445), plus the extra version-conditional bumps needed for 3.13/3.14. Three commits, one per file: - `requirements.txt` — pin all direct dev/install deps (with a `python_version` split for `networkx`). - `requirements-build.txt` — pin all build-system deps (with a `python_version` split for `numpy`). - `.ci/docker/requirements-ci.txt` — pin the previously-loose entries (`click`, `psutil`, `pytest-rerunfailures`, `unittest-xml-reporting`, `redis`, `pyzstd` split, `six`, `cuda-bindings`, `cupti-python`, `tqdm`, `uv`, `librosa`) and add `python_version` conditionals for 3.13/3.14. ## Per-version splits (dev/build) - **numpy** (build): `2.2.6` (<3.11), `2.4.6` (==3.11), `2.5.2` (>=3.12). - **networkx** (dev): `3.4.2` (<3.11), `3.6.1` (>=3.11). Every other dev/build dep resolved identically across 3.10–3.14, so those are flat-pinned. ## 3.13 / 3.14 conditional bumps in requirements-ci.txt (new vs 2.13) - **scikit-image**: `0.22.0` for `< 3.13`, `0.26.0` for `>= 3.13` (0.22.0 has no cp313/cp314 wheel). - **networkx**: `2.8.8` for `< 3.13`, `3.6.1` for `>= 3.13` (scikit-image 0.26 requires networkx>=3.0; keeping 2.8.8 forced pip to backtrack to a wheelless scikit-image). - **pywavelets**: adds `1.9.0` for `>= 3.14` (1.7.0 has no cp314 wheel). - **fbscribelogger**: guarded to `< 3.14` (its `thriftpy2` dep has no cp314 wheel and would source-build in the compiler-less test image) — mirrors 2.13. ## How versions were resolved Per the documented process (AIPYTORCH-748): installed each requirements file in a fresh venv inside an `ubuntu:24.04` container (deadsnakes for the non-native Python versions) and pinned the `pip freeze` output. Verified all files install on **3.10–3.14** with no new compiler-dependent source builds (only pre-existing `coremltools` for <3.12 and pure-Python `pwlf`). ## Test plan TheRock CI `multi_arch_build_portable_linux_pytorch_wheels.yml` (gfx94X-dcgpu, ROCm 7.15.0a20260712, `pytorch_git_ref` = the pinned integration branch). The **Build job passed for every Python version** — torch + torchaudio + torchvision + triton + apex all built against the pinned requirements: - [x] Python 3.10 — build ✅ [run 32165499080](https://github.com/ROCm/TheRock/actions/runs/32165499080) - [x] Python 3.11 — build ✅ [run 32165508608](https://github.com/ROCm/TheRock/actions/runs/32165508608) - [x] Python 3.12 — build ✅ [run 32165519879](https://github.com/ROCm/TheRock/actions/runs/32165519879) - [x] Python 3.13 — build ✅ [run 32165528430](https://github.com/ROCm/TheRock/actions/runs/32165528430) - [x] Python 3.14 — build ✅ [run 32165536568](https://github.com/ROCm/TheRock/actions/runs/32165536568) > Note: the downstream GPU **Test** job hit a transient 30-min git-clone timeout in its "Checkout PyTorch Source Repos" step (infra/network, unrelated to these pins). The build — which is what exercises the requirements files — is green across all five versions. --------- Signed-off-by: pablo-garay <[email protected]> Co-authored-by: pablo-garay <[email protected]>
## Summary Pin Python dependencies for the `release/2.14` bringup so CI and builds are reproducible, and make everything resolve cleanly on Python **3.10 / 3.11 / 3.12 / 3.13 / 3.14**. Mirrors the 2.13 bringup (#3445), plus the extra version-conditional bumps needed for 3.13/3.14. Three commits, one per file: - `requirements.txt` — pin all direct dev/install deps (with a `python_version` split for `networkx`). - `requirements-build.txt` — pin all build-system deps (with a `python_version` split for `numpy`). - `.ci/docker/requirements-ci.txt` — pin the previously-loose entries (`click`, `psutil`, `pytest-rerunfailures`, `unittest-xml-reporting`, `redis`, `pyzstd` split, `six`, `cuda-bindings`, `cupti-python`, `tqdm`, `uv`, `librosa`) and add `python_version` conditionals for 3.13/3.14. ## Per-version splits (dev/build) - **numpy** (build): `2.2.6` (<3.11), `2.4.6` (==3.11), `2.5.2` (>=3.12). - **networkx** (dev): `3.4.2` (<3.11), `3.6.1` (>=3.11). Every other dev/build dep resolved identically across 3.10–3.14, so those are flat-pinned. ## 3.13 / 3.14 conditional bumps in requirements-ci.txt (new vs 2.13) - **scikit-image**: `0.22.0` for `< 3.13`, `0.26.0` for `>= 3.13` (0.22.0 has no cp313/cp314 wheel). - **networkx**: `2.8.8` for `< 3.13`, `3.6.1` for `>= 3.13` (scikit-image 0.26 requires networkx>=3.0; keeping 2.8.8 forced pip to backtrack to a wheelless scikit-image). - **pywavelets**: adds `1.9.0` for `>= 3.14` (1.7.0 has no cp314 wheel). - **fbscribelogger**: guarded to `< 3.14` (its `thriftpy2` dep has no cp314 wheel and would source-build in the compiler-less test image) — mirrors 2.13. ## How versions were resolved Per the documented process (AIPYTORCH-748): installed each requirements file in a fresh venv inside an `ubuntu:24.04` container (deadsnakes for the non-native Python versions) and pinned the `pip freeze` output. Verified all files install on **3.10–3.14** with no new compiler-dependent source builds (only pre-existing `coremltools` for <3.12 and pure-Python `pwlf`). ## Test plan TheRock CI `multi_arch_build_portable_linux_pytorch_wheels.yml` (gfx94X-dcgpu, ROCm 7.15.0a20260712, `pytorch_git_ref` = the pinned integration branch). The **Build job passed for every Python version** — torch + torchaudio + torchvision + triton + apex all built against the pinned requirements: - [x] Python 3.10 — build ✅ [run 32165499080](https://github.com/ROCm/TheRock/actions/runs/32165499080) - [x] Python 3.11 — build ✅ [run 32165508608](https://github.com/ROCm/TheRock/actions/runs/32165508608) - [x] Python 3.12 — build ✅ [run 32165519879](https://github.com/ROCm/TheRock/actions/runs/32165519879) - [x] Python 3.13 — build ✅ [run 32165528430](https://github.com/ROCm/TheRock/actions/runs/32165528430) - [x] Python 3.14 — build ✅ [run 32165536568](https://github.com/ROCm/TheRock/actions/runs/32165536568) > Note: the downstream GPU **Test** job hit a transient 30-min git-clone timeout in its "Checkout PyTorch Source Repos" step (infra/network, unrelated to these pins). The build — which is what exercises the requirements files — is green across all five versions. --------- Signed-off-by: pablo-garay <[email protected]> Co-authored-by: pablo-garay <[email protected]>
Summary
Pin Python dependencies for the release/2.13 bringup so CI and builds are reproducible.
requirements.txt— pin all direct dev deps (with apython_versionsplit fornetworkx).requirements-build.txt— pin all build-system deps (with apython_versionsplit fornumpy)..ci/docker/requirements-ci.txt— pin the 12 previously-loose entries:click,librosa(<3.11),psutil,pytest-rerunfailures,unittest-xml-reporting,redis,pyzstd(<3.13/>=3.13),six,tqdm,cuda-bindings,cupti-python,uv. Everything else in the file was already pinned.Versions were resolved with
uv pip compileand verified to resolve cleanly on Python 3.10–3.14.Tested/Verified:
TESTED on different versions; good enough results (build steps passed + test failures unrelated to changes):
Py3.10: https://github.com/ROCm/TheRock/actions/runs/29779170268/job/88480432450
Py3.11: https://github.com/ROCm/TheRock/actions/runs/29779138751/job/88480277806
Py3.12: https://github.com/ROCm/TheRock/actions/runs/29593825191/job/87929269396
Py3.13: https://github.com/ROCm/TheRock/actions/runs/29779082237/job/88479960891
Py3.14: https://github.com/ROCm/TheRock/actions/runs/29783793885/job/88490775157