Skip to content

fix(ll-driver-detect): report installation failure in install-only mode - #2116

Open
chennaji9 wants to merge 2 commits into
OpenAtom-Linyaps:masterfrom
chennaji9:fix/driver-detect-install-only-exit
Open

chennaji9 wants to merge 2 commits into
OpenAtom-Linyaps:masterfrom
chennaji9:fix/driver-detect-install-only-exit

Conversation

@chennaji9

@chennaji9 chennaji9 commented Sep 30, 2026 •

Copy link
Copy Markdown

What does this PR do?

In ll-driver-detect --install-only mode, an installDriverPackage() failure was only logged as a warning — the tool then printed Successfully installed driver package and still exited with status 0, so scripts and callers could not detect the failure.

Return 1 on failure and only print the success message (and return 0) when the installation actually succeeded, matching the interactive installation path in the same file, which already returns 1 on failure.

Validation

  • Full project build passes with the change (cmake --build --preset debug).
  • Behavior review: the --install-only branch now mirrors the exit-status handling of the interactive branch (apps/ll-driver-detect/src/main.cpp, interactive path returns 1 when installDriverPackage fails).

@deepin-ci-robot

Copy link
Copy Markdown
Collaborator

Hi @chennaji9. Thanks for your PR.

I'm waiting for a OpenAtom-Linyaps member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
apps/ll-driver-detect/src/main.cpp 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
apps/ll-driver-detect/src/main.cpp 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

In install-only mode, the tool logged a warning when installDriverPackage failed but still printed the success message and returned exit code 0, so scripts and callers could not detect the failure. Return 1 on failure and only report success on success, matching the interactive path.

Signed-off-by: 陈那几 <2078634206@qq.com>
The SPDX Year Range Checker in the license-check workflow requires the
copyright header of a file modified in 2026 to cover 2026. Extend the
range on the one file this PR touches; no code change.

Signed-off-by: 陈那几 <2078634206@qq.com>
@chennaji9
chennaji9 force-pushed the fix/driver-detect-install-only-exit branch from c06031d to da5af31 Compare October 13, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants