← Back to Pull requests

feat(packaging): build amd-repo-setup for every distro in the ROCm repos #10004

Closed
unknown closed this pull request without merging on Nov 25, 2026 19:25 UTC
View on GitHub
unknown unknown commented on Nov 16, 2026 15:43 UTC
Author

Motivation

This builds amd-repo-setup for every distro the ROCm repos have packages for. It adds ubuntu2204, ubuntu2604, debian12, debian13, rhel9, sles15 and azl3, alongside the existing ubuntu2404, rhel8, rhel10 and sles16.

Part of #6986.

Depends on #10003.

Technical Details

Distros

  • Seven new entries in the builder's distro table. The rpm ones get their own dist tag (.el9, .sles15, .azl3).

  • No new build images. Each uses its family's existing one (Ubuntu 24.04, BCI 16 or UBI 10).
  • Build tools script

  • setup_repo_build_deps.sh accepts the Azure Linux profiles, still rejects unknown ones before any package manager runs, and uses tdnf where dnf is missing.
  • Docs

  • rocm_repo_setup.md lists the new distros, and notes that minimal Azure Linux containers need ca-certificates.
  • Notes

  • With the switch on, a release run has 11 setup-package jobs instead of 4. As today, one failure skips that run's publish.
  • Test Plan

  • Unit tests: tests that listed the old distros updated for the new ones.

  • Negative controls: undoing each change makes tests fail.

  • Full suite: compared by test ID with #10003's head (1751604f5).

  • Build tools script: checked with apt, dnf, tdnf and zypper.

  • Lint and scans: pre-commit, shellcheck and bandit.

  • End to end: build, upload and publish on MinIO for dev, nightly and prerelease.

  • Live installs: stable, rc and dev packages on all 11 distros against the live repos.

  • CI run: Multi-Arch CI, test branch with ci built as dev.

  • Dev release: Multi-Arch Release from this branch.
  • Test Result

    | Check | Result |
    |---|---|
    | Unit tests | 665 passed, 4 skipped (real-ELF fixtures need a compiler) |
    | Negative controls | 5 of 5 caught |
    | Full suite | 39 tests added, all passing. One renamed. No other changes. |
    | Build tools script | Right package manager on every image. An unknown profile is rejected before any package manager runs. |
    | Lint and scans | pre-commit and shellcheck pass. bandit adds only low-severity notes for the new test. |
    | End to end | 33 of 33 builds. Publish copies each package, and re-publishing skips them. |
    | Live installs | 33 of 33: right folder, refresh works, amdrocm resolves, clean removal |
    | CI run | Setup-package jobs pass for all 11 distros. Red only from 2 unrelated GPU tests. |
    | Dev release | Passes. All 11 distro jobs build, the packages publish, and each installs on its distro against the live dev repo and resolves this build's amdrocm. |

    Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Diff: 356 lines (+267 / -89) across 4 files Reviewer: nunnikri Review duration: 13181m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 356 lines diff across 4 files
    0.43
    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.352
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10004"
    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: 42.5% (MEDIUM) · Higher = larger blast radius
    42.5%
    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: 16.8% · Safe to merge
    16.8%
    Repository