rocr-debug-agent: Build all tests from the top-level project #15995
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.45) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 423 lines diff across 5 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.362
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #15995"
general
weight: 0.35
amd-bfilipov
Motivation
The unit tests link the
rocm-debug-agent-coreobject library, which only the top-levelCMakeLists.txtdefines, but they were added fromtest/, which TheRock configures as a separate project (rocr-debug-agent-tests). Configuringtest/on its own withENABLE_UNIT_TESTS=ONfails with aFATAL_ERROR, so TheRock cannot build the unit test binary, and a CPU-only test job has nothing to run (ROCm/TheRock#9357).Together with ROCm/TheRock#10041, which builds the tests from the top-level project, this makes the top-level project the only way to build the tests.
Merge order
ROCm/TheRock#10041 must merge first, and this PR second. This PR removes the standalone
test/configure that TheRock uses today, so merging it first would break TheRock's build. ROCm/TheRock#10041 builds the tests from the top-level project and works against both layouts: with the currentrocm-systemspin (old layout) it builds and passes, except--cpu-tests, which needs the unit binary this PR adds. After this PR lands, bump the pin.Technical Details
ENABLE_TESTS(defaultON) builds the integration tests, the unit tests and the CI wrapper together.test/unitis added from the sameif(ENABLE_TESTS)block astest/. CPU and GPU jobs are still run separately through the wrapper's--cpu-testsand--gpu-tests.ENABLE_TESTSis ON.test/is no longer a standalone project.project(),cmake_minimum_required(),include(GNUInstallDirs)and the duplicateENABLE_TESTSoption are removed, and the ctest target is always added with the integration tests.test/andtest/unit/fail with a clear message if configured on their own.ENABLE_TESTSis ON, so a default configure now needs it. Install it or pass-DENABLE_TESTS=OFF. This is noted inCHANGELOG.md.TESTING.mddescribes the single option and the GoogleTest requirement.CMakeLists.txtandtest/unit/CMakeLists.txtthat this change does not touch.Issue Tracking
JIRA ID: AIROCGDB-635
Test Plan
Standalone configure and build of
projects/rocr-debug-agenton a gfx90a machine:1. Defaults, with build and install.
2.
-DENABLE_TESTS=OFFwith no usable HIP compiler and GoogleTest hidden (-DCMAKE_DISABLE_FIND_PACKAGE_GTest=ON).3. Defaults, with GoogleTest hidden: must fail.
4. Configure
test/andtest/unit/directly: must hit the guard.TheRock build with ROCm/TheRock#10041 and this branch as the
rocm-systemssubmodule, thentest_rocr-debug-agent.pywith no flags,--cpu-testsand--gpu-tests.Test Result
tests/rocm-debug-agent/has the unit binary, the integration test binary, the.hipfbfiles and the CI wrapper. ctest lists 8 tests.test/directory and 0 ctest tests.test/andtest/unit/both fail with the guard error.rocm-systemssubmodule. The wrapper passes with no flags,--cpu-testsand--gpu-testson gfx90a.