canonical / checkbox

Checkbox
https://checkbox.readthedocs.io
GNU General Public License v3.0
30 stars 44 forks source link

SD Card will not be tested in `disk/read_preformance_.*` #1272

Open LiaoU3 opened 3 weeks ago

LiaoU3 commented 3 weeks ago

Bug Description

If a DUT has SD Card installed with system, the job disk/readperformance.* will not be run on the SD Card.

The root cause is because the template-filter require device.category == 'DISK', however, the output from device, it says the category of SD Card is CARDREADER as below.

path: /devices/platform/axi/ff9d0000.usb/fe200000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.1/1-1.1:1.0/host0/target0:0:0/0:0:0:0
name: sda
bus: scsi
category: CARDREADER
driver: sd
product: Ultra HS-COMBO
vendor: Generic
product_slug: Ultra_HS-COMBO
vendor_slug: Generic

Submission: https://certification.canonical.com/hardware/202202-29984/submission/371552/

To Reproduce

  1. Prepare a machine with SD Card installed
  2. checkbox.checkbox-cli list-bootstrapped com.canonical.certification::disk-cert-automated

Environment

Relevant log output

ubuntu@kria:~$ checkbox-limerick-classic.checkbox-cli list-bootstrapped com.canonical.certification::disk-cert-automated
$PROVIDERPATH is defined, so following provider sources are ignored ['/snap/checkbox-limerick-classic/x1/providers/checkbox-provider-limerick', '/home/ubuntu/.local/share/plainbox-providers-1', '/var/tmp/checkbox-providers-develop'] 
Skipped file: /snap/checkbox24/current/providers/checkbox-provider-base/units/stress/suspend_cycles_reboot.md
com.canonical.certification::executable
com.canonical.certification::disk/detect
com.canonical.plainbox::manifest
com.canonical.certification::disk/check-software-raid

ubuntu@kria:~$ lsblk 
NAME       MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0        7:0    0  36.2M  1 loop /snap/bugit/44
loop1        7:1    0 311.3M  1 loop /snap/checkbox24/15
loop2        7:2    0   1.9M  1 loop /snap/checkbox-limerick-classic/x1
loop3        7:3    0  59.8M  1 loop /snap/core20/2321
loop4        7:4    0  69.2M  1 loop /snap/core22/1383
loop5        7:5    0  61.2M  1 loop /snap/core24/410
loop6        7:6    0  61.2M  1 loop /snap/core24/424
loop7        7:7    0  33.7M  1 loop /snap/snapd/21467
loop8        7:8    0  33.7M  1 loop /snap/snapd/21761
sda          8:0    1  14.8G  0 disk 
├─sda1       8:1    1     1G  0 part /boot/firmware
└─sda2       8:2    1  13.8G  0 part /
sdb          8:16   1  28.9G  0 disk 
└─sdb1       8:17   1  28.9G  0 part 
mtdblock0   31:0    0   512K  1 disk 
mtdblock1   31:1    0   512K  1 disk 
mtdblock2   31:2    0   128K  0 disk 
mtdblock3   31:3    0   128K  0 disk 
mtdblock4   31:4    0   768K  0 disk 
mtdblock5   31:5    0    13M  0 disk 
mtdblock6   31:6    0   512K  1 disk 
mtdblock7   31:7    0    13M  0 disk 
mtdblock8   31:8    0   512K  1 disk 
mtdblock9   31:9    0     1M  0 disk 
mtdblock10  31:10   0     2M  1 disk 
mtdblock11  31:11   0     2M  1 disk 
mtdblock12  31:12   0   128K  0 disk 
mtdblock13  31:13   0   128K  0 disk 
mtdblock14  31:14   0   256K  1 disk 
mtdblock15  31:15   0   128K  0 disk 
mtdblock16  31:16   0  29.4M  0 disk

Additional context

No response

syncronize-issues-to-jira[bot] commented 3 weeks ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1458.

This message was autogenerated

LiaoU3 commented 1 week ago

We have the below machine avaible on testfliger, you could try on this. https://certification.canonical.com/hardware/202307-31906/