Skip to content

release/2.13 bringup: pin requirements.txt - #3445

Merged
jithunnair-amd merged 9 commits into
release/2.13from
pgarayfe/release-2.13-pin-requirements
Jul 21, 2026
Merged

jithunnair-amd merged 9 commits into
release/2.13from
pgarayfe/release-2.13-pin-requirements

Conversation

@pablo-garay

@pablo-garay pablo-garay commented Jul 15, 2026 •

Copy link
Copy Markdown

Summary

Pin Python dependencies for the release/2.13 bringup so CI and builds are reproducible.

  • requirements.txt — pin all direct dev 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 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 compile and 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

@rocm-repo-management-api

rocm-repo-management-api Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

Jenkins build for db77a8d1ef918bdd6d9f794ecbdef27438c38468 commit finished as FAILURE
Links: Pipeline Overview / Build artifacts / Test Results

@rocm-repo-management-api

rocm-repo-management-api Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

Jenkins build for 7e6e20148a5a62abfba8f80622d0cd5c1b0f9c2a commit finished as NOT_BUILT
Links: Pipeline Overview / Build artifacts / Test Results

@rocm-repo-management-api

rocm-repo-management-api Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

Jenkins build for 7e6e20148a5a62abfba8f80622d0cd5c1b0f9c2a commit finished as FAILURE
Links: Pipeline Overview / Build artifacts / Test Results

@rocm-repo-management-api

rocm-repo-management-api Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

Jenkins build for cc7053e19dcf530997dde6ff1d5f72b4a071b370 commit finished as FAILURE
Links: Pipeline Overview / Build artifacts / Test Results

@rocm-repo-management-api

rocm-repo-management-api Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

Jenkins build for 0bdf6021017b89b9ffd5a340428399f6e32b2f03 commit finished as NOT_BUILT
Links: Pipeline Overview / Build artifacts / Test Results

@rocm-repo-management-api

rocm-repo-management-api Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

Jenkins build for 821d306eeffd90843bd654cf50fada711e217bad commit finished as NOT_BUILT
Links: Pipeline Overview / Build artifacts / Test Results

@rocm-repo-management-api

rocm-repo-management-api Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

Jenkins build for 821d306eeffd90843bd654cf50fada711e217bad commit finished as FAILURE
Links: Pipeline Overview / Build artifacts / Test Results

Detected error during base docker image building:

#53 523.8 downloading and extracting https://developer.download.nvidia.com/compute/cuda/redist/cuda_cupti/linux-x86_64/cuda_cupti-linux-x86_64-12.8.90-archive.tar.xz ...
#53 523.8 copy /var/lib/jenkins/.triton/nvidia/cupti/cuda_cupti-linux-x86_64-12.8.90-archive/include to /var/lib/jenkins/triton/third_party/nvidia/backend/include ...
#53 523.8 copy /var/lib/jenkins/.triton/nvidia/cupti/cuda_cupti-linux-x86_64-12.8.90-archive/lib to /var/lib/jenkins/triton/third_party/nvidia/backend/lib/cupti ...
#53 523.8 downloading and extracting https://oaitriton.blob.core.windows.net/public/llvm-builds/llvm-ac5dc54d-ubuntu-x64.tar.gz ...
#53 523.8 downloading and extracting https://github.com/nlohmann/json/releases/download/v3.11.3/include.zip ...
#53 523.8 error: <urlopen error _ssl.c:993: The handshake operation timed out>
#53 523.8 
#53 523.8 ERROR Backend subprocess exited when trying to invoke build_wheel
#53 523.8 ERROR conda.cli.main_run:execute(148): `conda run python -m build --wheel --no-isolation` failed. (See above for error)
#53 ERROR: process "/bin/sh -c if [ -n \"${TRITON}\" ]; then bash ./install_triton.sh; fi" did not complete successfully: exit code: 1
------

@jithunnair-amd
jithunnair-amd requested a review from ethanwee1 July 16, 2026 13:42
@jithunnair-amd

Copy link
Copy Markdown
Collaborator

@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]>
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]>
@pablo-garay
pablo-garay force-pushed the pgarayfe/release-2.13-pin-requirements branch from 821d306 to c4dc10e Compare July 20, 2026 19:25
@rocm-repo-management-api

rocm-repo-management-api Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

Jenkins build for 7bec22985731d62949ba36ea672f1108a9d76939 commit finished as NOT_BUILT
Links: Pipeline Overview / Build artifacts / Test Results

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]>
@rocm-repo-management-api

rocm-repo-management-api Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

Jenkins build for 7bec22985731d62949ba36ea672f1108a9d76939 commit finished as FAILURE
Links: Pipeline Overview / Build artifacts / Test Results

@pablo-garay

Copy link
Copy Markdown
Author

@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.

done ; PTAL @ PR description

@jithunnair-amd
jithunnair-amd merged commit a6ab526 into release/2.13 Jul 21, 2026
3 of 4 checks passed
@jithunnair-amd
jithunnair-amd deleted the pgarayfe/release-2.13-pin-requirements branch July 21, 2026 01:58
jithunnair-amd pushed a commit that referenced this pull request Aug 20, 2026
## 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]>
jithunnair-amd pushed a commit that referenced this pull request Aug 27, 2026
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants