Skip to content

Check that the static driver can run standalone - #5465

Merged
pfultz2 merged 6 commits into
developfrom
standalone-driver
Nov 3, 2026
Merged

pfultz2 merged 6 commits into
developfrom
standalone-driver

Conversation

@pfultz2

@pfultz2 pfultz2 commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

Motivation

Technical Details

Changelog Category

Add a CHANGELOG.md entry for any option other than Not Applicable

    • Added: New functionality.
    • Changed: Changes to existing functionality.
    • Removed: Functionality or support that has been removed. (Compared to a previous release)
    • Optimized: Component performance that has been optimized or improved.
    • Resolved Issues: Known issues from a previous version that have been resolved.
    • Not Applicable: This PR is not to be included in the changelog.

Follow the LLVM AI Tool Use Policy for contributions using AI.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The pipeline can falsely pass verification because it discards the driver’s exit status and misses dependency paths, allowing crashes, sanitizer failures, or non-standalone builds to go undetected.

2 open issues
What changed in this PR

This PR adds Jenkins coverage to check that MIGraphX’s static driver can run without shared libraries installed by rbuild or produced in the build tree.

Changes:

  • Add an optional dependency check and enable it for the static build stage.
  • Run driver verification after each CMake build and require a success message in its log.
File Description
Jenkinsfile Adds standalone dependency checks and post-build driver verification.

Review effort: Max

Comment thread Jenkinsfile Outdated
# The driver must only need the ROCm and system shared libraries: nothing
# installed by rbuild and nothing from the build tree.
ldd ./bin/migraphx-driver
if ldd ./bin/migraphx-driver | grep -E "=> (/usr/local/lib/[^/]+|\$(pwd)/[^ ]+) "; then
Comment thread Jenkinsfile Outdated
if [ -n "\$(ls ./*.deb 2>/dev/null)" ]; then md5sum ./*.deb; fi
${standalone_driver_check}
# The driver exits 0 even when verification fails, so check its log.
./bin/migraphx-driver verify --test 2>&1 | tee driver.log
@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5465      +/-   ##
===========================================
- Coverage    92.95%   91.40%   -1.55%     
===========================================
  Files          670      704      +34     
  Lines        40391    41488    +1097     
===========================================
+ Hits         37542    37918     +376     
- Misses        2849     3570     +721     
Files with missing lines Coverage Δ
src/argument.cpp 89.38% <100.00%> (+1.53%) ⬆️
src/program_verify.cpp 84.67% <100.00%> (+0.10%) ⬆️

... and 48 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pfultz2
pfultz2 merged commit 55e22f4 into develop Nov 3, 2026
34 of 36 checks passed
@pfultz2
pfultz2 deleted the standalone-driver branch November 3, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants