← Back to Pull requests

ci: build the stages ci:run-wsl needs on narrowed builds #9628

Closed
unknown closed this pull request without merging on Nov 11, 2026 22:45 UTC
View on GitHub
unknown unknown commented on Oct 30, 2026 07:06 UTC
Author

Motivation

ci:run-wsl (#8457) fails setup on external repo PRs that narrow the build. rocm-systems passes build_stages per PR, which usually leaves out wsl-rocdxg, and configure_multi_arch_ci.py then raises ci:run-wsl needs the wsl-rocdxg stage. Per review on ROCm/rocm-systems#14472, this belongs in TheRock rather than in each caller.

GitHub issue: https://github.com/ROCm/TheRock-Infra/issues/317

Technical Details

Following the review design: build_stages is the requested stages, and decide_jobs() resolves the effective stages from what the requested tests need.

  • CIInputs reads build_stages as-is. This removes the ci:run-wsl append and the wsl-rocdxg check in validate() (from #8457), so configure_multi_arch_ci.py no longer names any stage.

  • amdgpu_family_matrix.CI_LABEL_REQUIRED_ARTIFACTS declares the artifacts a CI label needs beyond the components' own: ci:run-wsl -> wsl-rocdxg (the WSL libhsakmt that install_rocm_from_artifacts installs on WSL).

  • decide_jobs() unions the requested stages with get_topology().get_stages_for_artifacts() of those artifacts (producing stage plus dependencies) and skips everything else.
  • Example: requested compiler-runtime,dctools-core, plus compiler-runtime,wsl-rocdxg for the test, gives effective compiler-runtime,dctools-core,wsl-rocdxg. Full builds and PRs without the label are unchanged.

    Test Plan

  • python -m pytest build_tools/github_actions/tests

  • Workflow dispatch on this branch: build_stages=compiler-runtime,runtime-tests, pr_labels=ci:run-wsl,test:hip-tests,test:rocrtst, gfx110X, prebuilt compiler-runtime/runtime-tests.
  • Test Result

  • configure_multi_arch_ci_test.py + amdgpu_family_matrix_test.py: 192 passed, 1 skipped. Full build_tools/github_actions/tests: 1112 passed. The only failure is run_jax_tests_test.py::test_a_symlink_leading_out_of_the_test_tree_is_fatal, which needs symlink rights and fails the same on main on this Windows machine.

  • test_run_wsl_adds_wsl_rocdxg_to_partial_build feeds a labelled PR event through from_environ() and decide_jobs(). It checks that the requested stages are unchanged, and that wsl-rocdxg is built only with the label.

  • Run 41680234108:

  • - Setup logs Requested build stages: ['compiler-runtime', 'runtime-tests'] and Added for the requested tests: ['wsl-rocdxg'].
    - wsl-rocdxg built, and WSL hip-tests and rocrtst passed.
    - Before this change, the same inputs failed setup on main (run 41018833833).

    Submission Checklist

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