Fix the insertion of USB3 Gen2x1 device could not being detected (Bugfix)#1438
Fix the insertion of USB3 Gen2x1 device could not being detected (Bugfix)#1438
Conversation
d27bc7c to
5a6aab7
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1438 +/- ##
==========================================
- Coverage 45.72% 45.72% -0.01%
==========================================
Files 367 367
Lines 39134 39134
Branches 6618 6618
==========================================
- Hits 17895 17894 -1
Misses 20565 20565
- Partials 674 675 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
pieqq
left a comment
There was a problem hiding this comment.
Thanks for this PR, and thanks for the test to make sure it works with your USB-C disk!
|
@pieqq , thank you for your quick review. |
|
Taking a look at this issue I saw that there is an error in the "insertion" condition. python Expression Evaluation Order: Python evaluates "USB Mass Storage device detected" first. |
Description
We had a usb3 gen2x1 device which used to the type-c usb3 test. But it failed to be detected by checkbox when plug in. The Bug is: The hotplug of a usb-c disk works well but com.canonical.certification::usb-c/insert test failed #1437
The reason of this issue is that the new run_watcher didn't cover this type of usb3 device.
Resolved issues
We had a usb3 gen2x1 device which used to the type-c usb3 test. But it failed to be detected by checkbox when plug in. The Bug is: The hotplug of a usb-c disk works well but com.canonical.certification::usb-c/insert test failed #1437
The reason of this issue is that the new run_watcher didn't cover this type of usb3 device.
Documentation
Tests
Run the usb3-typec insert test:
==============[ Running job 3 / 3. Estimated time left: 0:00:30 ]===============
--------[ USB 3.0 storage device insertion detected on USB Type-C port ]--------
ID: com.canonical.certification::usb-c/insert
Category: com.canonical.plainbox::usb
Purpose:
This test will check that the system correctly detects the insertion of
a USB 3.0 storage device in a USB Type-C connector.
NOTE: Make sure the USB storage device has a partition before starting
the test.
Steps:
Pick an action
=> press ENTER to continue
c => add a comment
s => skip this job
q => save the session and quit
[csq]:
... 8< -------------------------------------------------------------------------
INSERT NOW
Timeout: 30 seconds
super_speed_plus_gen2x1_usb was inserted. Controller: xhci_hcd, Number: 54
usable partition: sda1
USB3 insertion test passed.
cache file usb_insert_info is at: /var/tmp/checkbox-ng/sessions/checkbox-run-2024-08-29T03.21.05.session/session-share
------------------------------------------------------------------------- >8 ---
Outcome: job passed
Finalizing session that hasn't been submitted anywhere: checkbox-run-2024-08-29T03.21.05
==================================[ Results ]===================================
☑ : Collect information about supported types of USB
☑ : Hardware Manifest
☑ : USB 3.0 storage device insertion detected on USB Type-C port
Run the usb3 insert test with usb3 gen1 disk insert:
==============[ Running job 2 / 2. Estimated time left: 0:02:00 ]===============
-----------------[ USB 3.0 storage device insertion detected ]------------------
ID: com.canonical.certification::usb3/insert
Category: com.canonical.plainbox::usb
Purpose:
Check system can detect insertion of a USB 3.0 storage device.
NOTE: Make sure the USB storage device has a partition before starting
the test.
Steps:
Pick an action
=> press ENTER to continue
c => add a comment
s => skip this job
q => save the session and quit
[csq]:
... 8< -------------------------------------------------------------------------
INSERT NOW
Timeout: 30 seconds
super_speed_usb was inserted. Controller: xhci_hcd, Number: 53
usable partition: sda2
USB3 insertion test passed.
cache file usb_insert_info is at: /var/tmp/checkbox-ng/sessions/checkbox-run-2024-08-29T02.49.03.session/session-share
------------------------------------------------------------------------- >8 ---
Outcome: job passed
Finalizing session that hasn't been submitted anywhere: checkbox-run-2024-08-29T02.49.03
==================================[ Results ]===================================
☑ : Collect information about supported types of USB
☑ : USB 3.0 storage device insertion detected