← Back to Pull requests

ci(packaging): add a downstream find_package smoke test to native install #9607

Closed
unknown closed this pull request without merging on Nov 02, 2026 04:55 UTC
View on GitHub
unknown unknown commented on Oct 29, 2026 17:14 UTC
Author

Motivation

Native install CI never configures a downstream CMake project against the installed ROCm prefix. This PR adds that configure smoke test on the native DEB/RPM install path.

Issue ID: https://github.com/ROCm/TheRock/issues/9056

Technical Details

  • build_tools/packaging/linux/downstream_cmake_smoke.py writes a temporary project and runs cmake against INSTALL_PREFIX. The project enables C++ and calls find_package(hip CONFIG REQUIRED) and find_package(hipblaslt CONFIG REQUIRED). LANGUAGES CXX is required because hip-config calls find_dependency(Threads). The step does not build a HIP program. make must be on PATH because the default generator is Unix Makefiles.
  • --cxx-compiler optionally passes -DCMAKE_CXX_COMPILER (g++, clang++, or an absolute path such as /opt/rocm/core/bin/amdclang++).
  • .github/workflows/test_native_linux_packages_install.yml installs cmake, make, and a C++ compiler (g++ on Debian, gcc-c++ on RHEL and SLES), then runs the helper after the package install. Sanity and full run it, including the existing ubuntu2404, rhel8, rhel10, and sles16 jobs. install and simulate skip it. The workflow does not pass --cxx-compiler.
  • Unit tests are in build_tools/packaging/linux/tests/downstream_cmake_smoke_test.py and are collected by the existing unit-test workflow.
  • Test Plan

  • Unit tests

  • Test with native install workflow.
  • Test Result

  • 9 unit tests passed with Python 3.12.

  • Test - Native Linux packages Install (ubuntu2404) #2151 on 28e41b684 (users/acheruva/downstream_cmake_smoke_poc) succeeded in 6m 32s. Package Installation Test, Downstream CMake smoke test, and Package Uninstall Test all completed successfully. The smoke step ran from 16:48:10Z to 16:48:11Z.
  • Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Diff: 246 lines (+184 / -62) across 3 files Reviewer: nunnikri Review duration: 5021m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 246 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.330
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #9607"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 38.9% (MEDIUM) · Higher = larger blast radius
    38.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.4% · Safe to merge
    15.4%
    Repository