← Back to Pull requests

Add per-variant PR label and test inputs to setup_multi_arch #9887

Open
unknown opened this pull request with 307 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 11, 2026 00:55 UTC
Author

Motivation

Based on the decisions made in #9366, each repository should choose which sanitizer variant runs on which trigger in its own workflow file. This PR adds the TheRock side: inputs on setup_multi_arch.yml for the pull request label and test policy, and host-asan support for gfx90a.

GitHub issue: https://github.com/ROCm/TheRock/issues/9366

Technical Details

  • setup_multi_arch.yml gets three optional inputs: pull_request_opt_in_label, pull_request_opt_out_label (strings) and pull_request_tests (boolean). They apply to pull_request events only, and the defaults keep current behavior.

  • configure_multi_arch_ci.py applies the label inputs in get_skip_reason() and shows the skip reason in the job summary.

  • pull_request_tests runs tests for sanitizer variants on pull requests. For host-asan it uses the family's regular runner when there is no sandbox runner.

  • gfx90a lists host-asan in build_variants.

  • docs/development/ci_behavior_manipulation.md documents the inputs and skip precedence.
  • Behavior change: because gfx90a now supports host-asan, the existing asan workflow's push runs, and schedule runs with the ci:host-asan label, also build gfx90a. Its tests stay off there. This lasts until the asan to host-asan rewrite is removed.

    Test Plan

  • python -m pytest build_tools/github_actions/tests/ and pre-commit run --all-files.

  • New unit tests for the label inputs, skip reasons, pull_request_tests and a gfx90a host-asan pull request with the real matrix.

  • End to end from a repository that calls TheRock at a pinned SHA: a workflow with build_variant: "host-asan", linux_amdgpu_families of gfx90a and pull_request_tests: true, checking the setup summary, the test runner, and that an opt-out label skips the run with the reason shown.
  • Test Result

  • python -m pytest build_tools/github_actions/tests/: 1360 passed, 3 skipped.

  • pre-commit run --all-files: all hooks passed.

  • Tests on rocm-systems

  • - Default PR run: https://github.com/ROCm/rocm-systems/actions/runs/43327444484
    - Opt in label (without providing label): https://github.com/ROCm/rocm-systems/actions/runs/43337169722
    - Opt in label (with label): https://github.com/ROCm/rocm-systems/actions/runs/43337543460

    Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Diff: 307 lines (+230 / -77) across 3 files Reviewer: endurthiabhilash Review duration: 29792m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.40) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 307 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.343
    Real PR Conversation Timeline
    1 comments
    "Review active on #9887"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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: 40.2% (MEDIUM) · Higher = larger blast radius
    40.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: 43.0% · Lower = rushed or shallow review
    43.0%
    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: 22.9% · Safe to merge
    22.9%
    Repository