← Back to Pull requests

feat(ci): let multi_arch_ci.yml callers target a ref #10369

Merged
geomin12 merged 1 files (20 lines) on Nov 30, 2026 19:24 UTC
View on GitHub
geomin12 geomin12 commented on Nov 30, 2026 16:15 UTC
Author

Progress on https://github.com/ROCm/TheRock/issues/9317 (as a part of cleanup)

As multi_arch_ci.yml expands and is used by other teams for various use cases, sometimes, we need a specific ref to be used and tested. (ex: compiler team creates their own refs and branch, then test via that).

Diff: 20 lines (+20 / -0) across 1 files Reviewer: ScottTodd Review duration: 188m
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.21) × (1 − Review Confidence (0.84)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.21 · 20 lines diff across 1 files
0.21
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.77 · 5 substantive comment(s)
0.77
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
84%
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.182
Real PR Conversation Timeline
11 items
therock-pr-bot[bot] therock-pr-bot[bot] commented on Nov 30, 2026 16:16 UTC
Bot

<!-- therock-pr-bot-policy-check -->

✅ All Checks Passed — Ready for Review

| Check | Status | Details |
|---|:---:|---|
| 📝 PR Description | ✅ Pass | — |
| ⛔ Forbidden Files | ✅ Pass | — |
| 🧪 Unit Test | ✅ Pass | PR does not contain code files — Unit Test auto-passed |
| 🔎 pre-commit | ✅ Pass | — |
| 🚫 Draft PR | 🔜 To Be Enabled | — |
| 🚩 Feature Flag | 🔜 To Be Enabled | — |
| 📊 Code Coverage | 🔜 To Be Enabled | — |
| 🤖 therock-pr-bot | ✅ Pass | — |

🎉 All checks passed! This PR is ready for review.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

therock-pr-bot[bot] therock-pr-bot[bot] commented on Nov 30, 2026 16:16 UTC
Bot

<!-- therock-pr-bot-fix-policies -->
🎉 All checks passed! This PR is ready for review.

ScottTodd ScottTodd commented on code on Nov 30, 2026 18:47 UTC
Code Review
.github/workflows/multi_arch_ci.yml:1
@@ -145,6 +145,29 @@ on:
       changed_projects:
         type: string
         default: ""
+      # Callers that build a ref other than their own (e.g. compiler_bump.yml,
+      # which creates a branch and then builds it) must pass this. Reusable
+      # workflows otherwise run against the calling workflow's commit.
+      ref:
+        type: string
+        default: ""
+      release_type:
+        description: "Release type used for artifact storage and package versioning."
+        type: string
+        default: "ci"

Release type for multi_arch_ci.yml should only ever be ci. Why do you want this input?

Other release types should use https://github.com/ROCm/TheRock/blob/main/.github/workflows/multi_arch_release.yml

ScottTodd ScottTodd commented on code on Nov 30, 2026 18:51 UTC
Code Review
.github/workflows/multi_arch_ci_linux.yml:1
@@ -236,6 +236,7 @@ jobs:
       dist_amdgpu_families: ${{ fromJSON(inputs.build_config).dist_amdgpu_families }}
       rocm_version: ${{ inputs.rocm_deb_package_version }}
       native_package_type: deb
+      release_type: ${{ inputs.release_type }}

Release type in .github/workflows/multi_arch_ci_linux.yml should only ever be ci.

Other release types should use https://github.com/ROCm/TheRock/blob/main/.github/workflows/multi_arch_release_linux.yml

ScottTodd ScottTodd commented on code on Nov 30, 2026 18:53 UTC
Code Review
.github/workflows/multi_arch_ci.yml:1
@@ -145,6 +145,29 @@ on:
       changed_projects:
         type: string
         default: ""
+      # Callers that build a ref other than their own (e.g. compiler_bump.yml,
+      # which creates a branch and then builds it) must pass this. Reusable
+      # workflows otherwise run against the calling workflow's commit.
+      ref:
+        type: string
+        default: ""
+      release_type:
+        description: "Release type used for artifact storage and package versioning."
+        type: string
+        default: "ci"
+    outputs:
+      linux_build_config:
+        description: JSON object with Linux build configuration, or empty string if skipped.
+        value: ${{ jobs.setup.outputs.linux_build_config }}
+      windows_build_config:
+        description: JSON object with Windows build configuration, or empty string if skipped.
+        value: ${{ jobs.setup.outputs.windows_build_config }}
+      rocm_package_version:
+        description: ROCm package version (primarily for Python packages).
+        value: ${{ jobs.setup.outputs.rocm_package_version }}

How do you expect to use these outputs?

I would rather not treat these as outputs of the CI workflow. Instead, we could compute them ahead of the workflow (what is currently "setup") and pass to CI and other workflows, if you really want to trigger a broad set of workflows/jobs from a different entry point.

ScottTodd ScottTodd commented on Nov 30, 2026 18:54 UTC
Reviewer

ref is fine to add, I would want to review the technical design for the other changes. There is not enough on https://github.com/ROCm/TheRock/issues/9317 to review them here yet.

geomin12 geomin12 commented on Nov 30, 2026 19:08 UTC
Author

ref is fine to add, I would want to review the technical design for the other changes. There is not enough on #9317 to review them here yet.

yeah i will organize and enhance the issue so it has more details. it's vague right now

geomin12 geomin12 commented on code on Nov 30, 2026 19:09 UTC
Code Review
.github/workflows/multi_arch_ci.yml:1
@@ -145,6 +145,29 @@ on:
       changed_projects:
         type: string
         default: ""
+      # Callers that build a ref other than their own (e.g. compiler_bump.yml,
+      # which creates a branch and then builds it) must pass this. Reusable
+      # workflows otherwise run against the calling workflow's commit.
+      ref:
+        type: string
+        default: ""
+      release_type:
+        description: "Release type used for artifact storage and package versioning."
+        type: string
+        default: "ci"
+    outputs:
+      linux_build_config:
+        description: JSON object with Linux build configuration, or empty string if skipped.
+        value: ${{ jobs.setup.outputs.linux_build_config }}
+      windows_build_config:
+        description: JSON object with Windows build configuration, or empty string if skipped.
+        value: ${{ jobs.setup.outputs.windows_build_config }}
+      rocm_package_version:
+        description: ROCm package version (primarily for Python packages).
+        value: ${{ jobs.setup.outputs.rocm_package_version }}

this mostly meant for the compiler_bump.yml but it's not needed here.

ScottTodd ScottTodd commented on code on Nov 30, 2026 19:11 UTC
Code Review
.github/workflows/multi_arch_ci.yml:1
@@ -145,6 +145,12 @@ on:
       changed_projects:
         type: string
         default: ""
+      # Callers that build a ref other than their own (e.g. compiler_bump.yml,
+      # which creates a branch and then builds it) must pass this. Reusable
+      # workflows otherwise run against the calling workflow's commit.
+      ref:
+        type: string
+        default: ""

might be useful to put this on workflow_dispatch too, so we can trigger with workflow code from one ref and source code from another, without needing to run via a workflow that calls this with workflow_call

ScottTodd ScottTodd approved these changes on Nov 30, 2026 19:11 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
geomin12 geomin12
Labels
risk: low confidence: 84.3% 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: 21.2% (LOW) · Higher = larger blast radius
21.2%
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: 84.3% · Lower = rushed or shallow review
84.3%
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: 3.3% · Safe to merge
3.3%
Repository