ci: build the stages ci:run-wsl needs on narrowed builds #9628
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
geomin12
Motivation
ci:run-wsl(#8457) fails setup on external repo PRs that narrow the build. rocm-systems passesbuild_stagesper PR, which usually leaves outwsl-rocdxg, andconfigure_multi_arch_ci.pythen raisesci: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_stagesis the requested stages, anddecide_jobs()resolves the effective stages from what the requested tests need.CIInputsreadsbuild_stagesas-is. This removes theci:run-wslappend and the wsl-rocdxg check invalidate()(from #8457), soconfigure_multi_arch_ci.pyno longer names any stage.amdgpu_family_matrix.CI_LABEL_REQUIRED_ARTIFACTSdeclares the artifacts a CI label needs beyond the components' own:ci:run-wsl->wsl-rocdxg(the WSL libhsakmt thatinstall_rocm_from_artifactsinstalls on WSL).decide_jobs()unions the requested stages withget_topology().get_stages_for_artifacts()of those artifacts (producing stage plus dependencies) and skips everything else.Example: requested
compiler-runtime,dctools-core, pluscompiler-runtime,wsl-rocdxgfor the test, gives effectivecompiler-runtime,dctools-core,wsl-rocdxg. Full builds and PRs without the label are unchanged.Test Plan
python -m pytest build_tools/github_actions/testsbuild_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. Fullbuild_tools/github_actions/tests: 1112 passed. The only failure isrun_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_buildfeeds a labelled PR event throughfrom_environ()anddecide_jobs(). It checks that the requested stages are unchanged, and thatwsl-rocdxgis built only with the label.- Setup logs
Requested build stages: ['compiler-runtime', 'runtime-tests']andAdded 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