TheRock : Code Coverage - add the Linux coverage CI entry workflow #8605
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.57) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.57 · 589 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.382
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #8605"
general
weight: 0.35
endurthiabhilash
Motivation
GitHub issue: https://github.com/ROCm/TheRock/issues/6572
This is the workflow part of TheRock's code coverage support. This PR adds the CI entry point and the coverage CI docs, and the matrix script and the per-project test and report workflow are in #10335 and #10334. The entry point builds an instrumented stack, runs each selected project's tests against it, and publishes the project's coverage report.
It depends on five other PRs:
-D<PROJECT>_ENABLE_COVERAGEthrough to subprojects and adds theTHEROCK_COVERAGE_*group options.merge_coverage_report.py.extra_cmake_optionsinput ofmulti_arch_build_portable_linux_artifacts.yml.configure_coverage_ci.py, which computes the job matrix and the coverage CMake options.multi_arch_ci_coverage_report.yml, which runs one project's tests and builds its report.All six PRs form a GitHub stack, which from the bottom is #9717, #8602, #10334, #8598, #10335 and this PR. This PR is the top layer and targets #10335's branch, so the diff here shows only this PR's changes. When the PRs below it merge, GitHub rebases it and, once it is at the bottom, retargets it to
main.Technical Details
.github/workflows/multi_arch_ci_coverage_linux.yml(new): the entry point, run byworkflow_dispatchor, from another repository, byworkflow_call.-
setup_coverage_matrixrunsconfigure_coverage_ci.py, which outputs the report matrix and the CMake options that instrument the selected projects.-
build_compiler_runtimebuilds the compiler-runtime stage normally.build_instrumented_math_libsbuilds math-libs with those options passed asextra_cmake_options.-
coverage_reportrunsmulti_arch_ci_coverage_report.ymlonce per project and GPU family, andci_summarycollects the results.- Its inputs are
projects_to_test,amdgpu_families(defaultgfx94X-dcgpu),test_type, the three group inputs,quartz_tracking_id(reserved for release tracking and passed to the builds), andrepositoryandref, which tell the workflow where its scripts are when another repository calls it. The group inputs,coverage_rocm_libraries_all,coverage_rocm_systems_allandcoverage_all, also instrument whole groups through #8598's options. Reports still cover onlyprojects_to_test, although an instrumented dependency's inline code can add to a report's counts, ascode_coverage.mdexplains.coverage_rocm_libraries_allandcoverage_allleave hipCCL out, since its instrumented build doesn't link yet, andcoverage_rocm_systems_allhas no effect for now: the rocm-systems projects build in comm-libs, which this workflow doesn't build yet.- The build calls keep
secrets: inherit, asmain's callers do, because the build workflow reads Quartz notification secrets it doesn't declare. The report call passes onlyCODECOV_TOKEN.code_coverage.mdgains sections on producing a report locally, the coverage CI run, selecting projects, adding a project and adding a stage.ci_overview.mddescribes the coverage entry point, and the docs index links the Coverage CI section.Test Plan
pre-commit runon the changed files, including actionlint, which checks every reusable-workflow call against the called workflow's inputs.configure_coverage_ci_test.pyandmerge_coverage_report_test.py.build_tools/scan_tools/zizmor.yml).Test Result
template-injectionnotes are for the checkout's commit SHA andtoJSON(needs)in the entry workflow; neither is an input.Submission Checklist