← Back to Pull requests

release/2.15 bringup: pin requirements files #3818

Closed
unknown closed this pull request without merging on Oct 16, 2026 05:42 UTC
View on GitHub
unknown unknown commented on Oct 15, 2026 08:23 UTC
Author

Summary

Pin Python dependencies for the release/2.15 bringup so CI and builds are reproducible, and make everything resolve cleanly on Python 3.10 / 3.11 / 3.12 / 3.13 / 3.14 / 3.15. Mirrors the 2.14 bringup (#3574), plus the 3.15 handling that is new in this release.

Three commits, one per file:

  • requirements.txt: pin all direct dev/install deps (with python_version splits for filelock, hypothesis and 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.14/3.15.
  • Per-version splits (dev/build)

  • numpy (build): 2.2.6 (<3.11), 2.4.6 (==3.11), 2.5.4 (>=3.12).

  • networkx (dev): 3.4.2 (<3.11), 3.6.1 (==3.11), 3.7 (>=3.12).

  • filelock (dev): 4.1.0 (<3.11), 4.2.0 (>=3.11).

  • hypothesis (dev): 6.168.5 (<3.11), 6.169.2 (>=3.11).
  • Every other dev/build dep resolved identically across 3.10-3.15, so those are flat-pinned.

    3.14 / 3.15 conditionals in requirements-ci.txt

    Restored from 2.14 (lost in the 2.15 branch):

  • pywavelets: 1.9.0 for 3.14 (1.7.0 has no cp314 wheel).

  • fbscribelogger: guarded to < 3.14 (its thriftpy2 dep has no cp314/cp315 wheel and would source-build in the compiler-less test image).
  • New for 3.15 (earliest release with a cp315 wheel):

  • numpy 2.5.2 (the existing 2.4.6 pin for 3.15 has no cp315 wheel), pandas 3.0.6, optree 0.20.0, pywavelets 1.10.0, aiohttp 3.14.4.

  • scikit-image: skipped on 3.15 (no release ships a cp315 wheel yet).
  • How versions were resolved

    Per the documented process: installed each requirements file in a fresh venv inside an ubuntu:24.04 container with no C compiler (deadsnakes for the non-native Python versions) and pinned the pip freeze output. All three files install on 3.10-3.15 with pip check clean and no new compiler-dependent source builds (only the pre-existing pure-Python pwlf and coremltools sdists, plus pyyaml on 3.15, which builds without its optional C extension).

    Test plan

    TheRock CI multi_arch_build_portable_linux_pytorch_wheels.yml (gfx94X-dcgpu, ROCm 10.2.0a20261013, pytorch_git_ref = pablo-garay/release-2.15-integration, which is this PR plus the related_commits from #3816):

  • Python 3.11: build passed, run 38705512288

  • Python 3.12: build passed, run 38705525582

  • Python 3.13: build passed, run 38705535781

  • Python 3.14: build passed, run 38705545732

  • Python 3.10: n/a. Triton 3.9 requires Python >=3.11, and TheRock dropped 3.10 release builds in ROCm/TheRock#8396 (run 38705500960 fails installing the triton wheel).

  • Python 3.15: n/a until ROCm/TheRock#8394 adds 3.15 to the build image (run 38705556076 fails at setup: Could not find python: /opt/python/cp315-cp315). The 3.15 pins were validated by the container install above.
  • Diff: 441 lines (+330 / -111) across 5 files Reviewer: jithunnair-amd Review duration: 1279m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 441 lines diff across 5 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.364
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3818"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.3% (MEDIUM) · Higher = larger blast radius
    45.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.9% · Safe to merge
    17.9%
    Repository