← Back to Pull requests

ci: pin CI Python dependencies to explicit versions #9643

Closed
unknown closed this pull request without merging on Oct 31, 2026 00:22 UTC
View on GitHub
unknown unknown commented on Oct 30, 2026 16:53 UTC
Author

Motivation

Several CI entry points install Python packages without a version pin, so each run silently
resolves them to whatever is latest on PyPI. That makes CI non-reproducible and lets a
breaking upstream release land with no change on our side. This pins the
unpinned CI dependencies to explicit versions.
JIRA ID : ROCM-26886

Technical Details

  • Replaced bare pip install <pkg> calls and unpinned requirements entries with explicit

  • == versions.
  • Versions reuse what the repo already pins elsewhere, rather than jumping to latest:

  • requests==2.33.0, pytest==9.0.3, prettytable==3.12.0, PyYAML==6.0.2,
    packaging==25.0, boto3==1.39.15. Packages with no existing == anywhere
    (jinja2, pyzstd, pyelftools, ninja, uv) are pinned to their current versions.
  • Files touched:

  • - Workflows / actions: setup_test_environment/action.yml (uv),
    multi_arch_build_native_linux_packages.yml (jinja2, pyelftools, boto3, pyzstd),
    multi_arch_ci_linux.yml + multi_arch_ci_windows.yml (boto3),
    test_multi_arch_linux_jax_wheels.yml (packaging).
    - Requirements: test_executable_scripts/requirements-test-ninja.txt,
    packaging/linux/requirements.txt, packaging/linux/tests/requirements.txt.
    - Bump workflow: bump_submodules.yml now installs from a pinned
    requirements-bump.txt (+ requirements-bump.in).
  • Left unchanged: external-builds/pytorch/requirements-ci.txt — it intentionally

  • requires newer versions (boto3>1.42.0, packaging>=26.0) than the repo-wide pins, so
    matching would downgrade it. Pinning it is a follow-up for the PyTorch owner.

    Test Plan

  • Confirm no bare pip install <pkg> remains in CI workflows/actions.

  • Confirm the changed workflows/actions and requirements files are valid.

  • Run the bump automation unit tests.
  • Test Result

  • No bare pip install <pkg> remains; all changed YAML parses.

  • No source (.py) files are changed by this PR.

  • pytest build_tools/github_actions/tests/bump_automation_test.py

  • build_tools/github_actions/tests/post_bump_breadcrumbs_test.py
    → 94 passed.

    Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Diff: 285 lines (+213 / -72) across 3 files Reviewer: nunnikri Review duration: 449m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 285 lines diff across 3 files
    0.40
    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.338
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #9643"
    general weight: 0.35
    Reviewers
    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: 39.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    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: 15.7% · Safe to merge
    15.7%
    Repository