-
Notifications
You must be signed in to change notification settings - Fork 49
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) #1089
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1089 +/- ##
==========================================
+ Coverage 42.85% 42.87% +0.02%
==========================================
Files 351 352 +1
Lines 38443 38461 +18
Branches 6532 6536 +4
==========================================
+ Hits 16475 16492 +17
Misses 21302 21302
- Partials 666 667 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Minor addition proposed in line, and one possible simplification.
modified the workaround
Co-authored-by: kissiel <[email protected]>
removed the step to restore the SNAP env
implement a script to be able to retrieve frimware information by debian fwupd and snap fwupd
6e92819
to
5c875ed
Compare
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.
The tests provided here look like they are here just to have test coverage instead of testing the logic (and the most difficult piece of logic is untested).
restructure scripts and added unittest cases
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.
Awesome! Thanks for all the amendments!
+1
* Add fwupdmgr test job and plans * Add it to client-cert-desktop test plan * modified the workaround modified the workaround * Update providers/base/units/firmware/jobs.pxu Co-authored-by: kissiel <[email protected]> * removed the step to restore SNAP environ var removed the step to restore the SNAP env * retrieve firmware by debian and snap fwupd implement a script to be able to retrieve frimware information by debian fwupd and snap fwupd * Restructure scripts and added unittest cases restructure scripts and added unittest cases --------- Co-authored-by: Patrick Liu <[email protected]> Co-authored-by: kissiel <[email protected]>
Description
This is a follow up PR for the PR965, I have applied the workaround (provided by Pierre). And I have verified the tests on EGW 3200.
https://certification.canonical.com/hardware/202312-33237/submission/360846/
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/