-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fwupdmgr attachment job (New) #965
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #965 +/- ##
==========================================
- Coverage 38.07% 38.02% -0.06%
==========================================
Files 333 333
Lines 36921 36869 -52
Branches 6302 6188 -114
==========================================
- Hits 14059 14019 -40
- Misses 22242 22265 +23
+ Partials 620 585 -35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/canonical/self-hosted-runners/run-workflows b90d888 |
As discussed this morning during our meeting, I'm a bit concerned about silently skipping this job just because we are running Checkbox Snap version. I just tried bypassing the heuristic used by
So maybe an easy fix is just to unset the |
I opened an issue in the fwupd project: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on previous comment, this should be reworked to use the workaround to allow calling fwupdmgr from within the Checkbox snap.
Closing this PR due to I have filed another one for this feature. |
Description
This attachment job is requested from the OEM SWE team. They'd like to parse the
fwupdmgr
device information from the submission.This PR added a
firmware/fwupdmgr_get_devices
attachment job and the related test plan to be nested in the client-cert-desktop test plan.The
firmware/fwupdmgr_get_devices
only does the following command:Requires
The tests will only be executed when
fwupdmgr
executable is available.Also, we found a limitation:
Our purpose is to run the
fwupdmgr
command from the default deb package to get the needed information. However, while Checkbox is running in the snap environment, thefwupdmgr
will try to find the snap servicessnap.fwupd.fwupd.service
, which leads to the following daemon and client mismatch error,This environment check is written in https://github.com/fwupd/fwupd/blob/main/src/fu-util-common.c#L42
Using the Debian version checkbox will not encounter this problem. Currently, I don’t have any good idea to solve this problem. So I intend to add a job for Debian Checkbox for now. And the
environment.SNAP == ""
is to ensure the job will only be executed with Debian Checkbox.Resolved issues
Request from SWE team
https://warthogs.atlassian.net/browse/OEMQA-3797
Tests
Sideload result on an Ubuntu Desktop 22.04 laptop with Debian Checkbox
https://pastebin.canonical.com/p/4Jf5gXDKYV/
Sideload result on an Ubuntu Desktop 22.04 laptop with Snap Checkbox -> job skipped
https://pastebin.canonical.com/p/8wnCchBnWv/