feat(ci): add code coverage component test workflow and installer #7828
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 233 lines diff across 2 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.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7828"
general
weight: 0.35
endurthiabhilash
Motivation
Nightly code-coverage runs need to test a normal (non-instrumented)
TheRock build in which only specific components (e.g. rocBLAS, rocSOLVER)
are swapped for their instrumented counterparts, then collect llvm
profraw files from the test run. This lets coverage be measured for a
targeted component without paying the cost of a fully instrumented build. GitHub Issue: #6572
## Technical Details
.github/workflows/test_code_coverage_component.yml, a reusable(
workflow_call) job mirroring the standard component test workflow withcoverage-specific additions:
- Installs the coverage build via
install_rocm_code_coverage_build.pyinstead of
install_rocm_from_artifacts.py.-
coverage_enabledinput setsLLVM_PROFILE_FILE(with%p/%msoforked/multi-lib shards don't overwrite profraw files) and uploads the
profraw as a workflow artifact, keyed by
coverage_artifact_prefix.- Uploads coverage even on test failure (partial shard data is still useful).
build_tools/install_rocm_code_coverage_build.py:- Installs the generic build via
install_rocm_from_artifacts.main, thendownloads instrumented replacement artifacts from the code-coverage run.
-
--replace-rocblas/--replace-rocsolvermap to theblas/solverartifacts; only library paths matching the keyword are swapped, leaving
co-packaged libs (e.g. hipBLAS) untouched.
- Flattens replacement archive members (file/dir/symlink/hardlink) into the
install tree, preserving exec bits and link structure.
Test Plan
<!-- Explain any relevant testing done to verify this PR. -->
Test Result
<!-- Briefly summarize test outcomes. -->
Submission Checklist