ci(packaging): run cpp-sdk-user find_package test after native Linux install #9677
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.42) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 338 lines diff across 4 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.349
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #9677"
general
weight: 0.35
nunnikri
Motivation
The native Linux install job should check that an installed ROCm package works for a downstream CMake consumer, not only that the packages install. TheRock already has
examples/cpp-sdk-user, which exercises the packagedfind_packagetargets. Issue #9056 asks for the existing tests to run against installed packages.ISSUE ID : #9056
After the native Linux packages install, the install job now configures, builds, and runs
examples/cpp-sdk-useragainst the installed prefix. The step runs throughbuild_tools/packaging/linux/downstream_cmake_smoke.py, which is a thinlauncher around the example's existing CMake driver.
amdrocm-hpc-sdk(see #9866, merged as80522adef), so everyTHEROCK_ENABLE_option in the example stays at its default of ON.THEROCK_ENABLE_flags.find_packagecalls.Technical Details
Workflow (
.github/workflows/test_native_linux_packages_install.yml):find_package cmake testruns after "Package Installation Test" and before uninstall. It runs wheninstall_prefixis set, which is the default.Launcher (
build_tools/packaging/linux/downstream_cmake_smoke.py):examples/cpp-sdk-user/CMakeLists.txtand the driver exist, that the build directory is outside the prefix, and that acmakeexecutable is available.<prefix>/lib/llvm/bin/clang++when present, or--cxx-compiler. RHEL 8's GCC 8 cannot compilehip-host-test.cpp, so the prefix Clang is the default.examples/clean_configure_test_project.cmakewithCMAKE_PREFIX_PATH=<prefix>.Not covered in this change:
Test Plan
python -m unittest build_tools.packaging.linux.tests.downstream_cmake_smoke_test(8 tests)Test Result
python -m unittest build_tools.packaging.linux.tests.downstream_cmake_smoke_test- Status: Passedamdrocm-hpc-sdknow fails infind_package.Submission Checklist