Merge lp:~roadmr/checkbox/pci-sys-id into lp:checkbox

Proposed by Daniel Manrique
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 3729
Merged at revision: 3735
Proposed branch: lp:~roadmr/checkbox/pci-sys-id
Merge into: lp:checkbox
Diff against target: 79 lines (+14/-0)
6 files modified
providers/plainbox-provider-certification-client/whitelists/client-cert.whitelist (+1/-0)
providers/plainbox-provider-certification-client/whitelists/client-selftest-14-04.whitelist (+1/-0)
providers/plainbox-provider-certification-client/whitelists/client-selftest.whitelist (+1/-0)
providers/plainbox-provider-checkbox/jobs/info.txt.in (+9/-0)
providers/plainbox-provider-checkbox/whitelists/autotesting.whitelist (+1/-0)
providers/plainbox-provider-checkbox/whitelists/hwsubmit.whitelist (+1/-0)
To merge this branch: bzr merge lp:~roadmr/checkbox/pci-sys-id
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+257551@code.launchpad.net

Commit message

providers:checkbox: Add ssid_attachment job

It attaches the PCI subsystem ID, this is to be collected for all
systems though it has special significance to uniquely identify a
specific configuration for some manufacturers only.

Also adds this job to relevant whitelists.

Description of the change

providers:checkbox: Add ssid_attachment job

It attaches the PCI subsystem ID, this is to be collected for all
systems though it has special significance to uniquely identify a
specific configuration for some manufacturers only.

Also adds this job to relevant whitelists.

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I don't quite get the point of this change, can you explain please?

review: Needs Information
Revision history for this message
Daniel Manrique (roadmr) wrote :

Sure, I explained this below, and we can certainly change this if another approach would be better. But we do need to collect that information :(

One thing I could change is attaching the whole lspci -x output and doing the processing/heuristics on the server if you think it would make it clearer on the checkbox job side. I realize that just 4 hex digits without any other context is a bit cryptic. Let me know!

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

More discussion below.

review: Needs Information
Revision history for this message
Daniel Manrique (roadmr) wrote :

OK, I created a more generic pci config data attachment, with the idea of then doing the parsing server-side.

I also noticed that this subsystem ID information is shown in lspci -vvnn (which we already have). Example (Notice that I'm running this on a Dell system, but we expect this to only make sense for HP):

$ lspci -x | awk 'NR==4{print $17 $16}'
060a

lspci -vvnn
00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 09)
        Subsystem: Dell Device [1028:060a]
                                     ^^^^ IT'S THIS VALUE WE WANT

        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
        Latency: 0
        Capabilities: <access denied>

However I hesitate to change the way we're getting it since we got this information from the CE team and I'd prefer not to deviate from their data collection too much.

lp:~roadmr/checkbox/pci-sys-id updated
3728. By Daniel Manrique

providers: Add lspci_standard_config_attachment job to pertinent whitelists

3729. By Daniel Manrique

providers:checkbox: Add lspci_standard_config_attachment job

It attaches a dump of PCI standard configuration data for all
devices in the system.

This raw data is used to uniquely identify a specific configuration
for some manufacturers only, and may have other uses in the future.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'providers/plainbox-provider-certification-client/whitelists/client-cert.whitelist'
--- providers/plainbox-provider-certification-client/whitelists/client-cert.whitelist 2015-04-27 09:46:56 +0000
+++ providers/plainbox-provider-certification-client/whitelists/client-cert.whitelist 2015-04-28 16:50:48 +0000
@@ -401,6 +401,7 @@
401dmidecode_attachment401dmidecode_attachment
402efi_attachment402efi_attachment
403lspci_attachment403lspci_attachment
404lspci_standard_config_attachment
404lsusb_attachment405lsusb_attachment
405kernel_cmdline_attachment406kernel_cmdline_attachment
406meminfo_attachment407meminfo_attachment
407408
=== modified file 'providers/plainbox-provider-certification-client/whitelists/client-selftest-14-04.whitelist'
--- providers/plainbox-provider-certification-client/whitelists/client-selftest-14-04.whitelist 2015-04-24 20:58:54 +0000
+++ providers/plainbox-provider-certification-client/whitelists/client-selftest-14-04.whitelist 2015-04-28 16:50:48 +0000
@@ -349,6 +349,7 @@
349dmidecode_attachment349dmidecode_attachment
350efi_attachment350efi_attachment
351lspci_attachment351lspci_attachment
352lspci_standard_config_attachment
352lsusb_attachment353lsusb_attachment
353kernel_cmdline_attachment354kernel_cmdline_attachment
354meminfo_attachment355meminfo_attachment
355356
=== modified file 'providers/plainbox-provider-certification-client/whitelists/client-selftest.whitelist'
--- providers/plainbox-provider-certification-client/whitelists/client-selftest.whitelist 2015-04-24 20:58:54 +0000
+++ providers/plainbox-provider-certification-client/whitelists/client-selftest.whitelist 2015-04-28 16:50:48 +0000
@@ -349,6 +349,7 @@
349dmidecode_attachment349dmidecode_attachment
350efi_attachment350efi_attachment
351lspci_attachment351lspci_attachment
352lspci_standard_config_attachment
352lsusb_attachment353lsusb_attachment
353kernel_cmdline_attachment354kernel_cmdline_attachment
354meminfo_attachment355meminfo_attachment
355356
=== modified file 'providers/plainbox-provider-checkbox/jobs/info.txt.in'
--- providers/plainbox-provider-checkbox/jobs/info.txt.in 2015-04-24 20:27:47 +0000
+++ providers/plainbox-provider-checkbox/jobs/info.txt.in 2015-04-28 16:50:48 +0000
@@ -57,6 +57,15 @@
57estimated_duration: 1.32257estimated_duration: 1.322
58_description: Attaches very verbose lspci output (with central database Query).58_description: Attaches very verbose lspci output (with central database Query).
5959
60id: lspci_standard_config_attachment
61_summary: Attach PCI configuration space hex dump
62plugin: attachment
63command: lspci -x
64estimated_duration: 0.1
65_description:
66 Attaches a hex dump of the standard part of the PCI configuration
67 space for all PCI devices.
68
60id: lsusb_attachment69id: lsusb_attachment
61plugin: attachment70plugin: attachment
62requires: package.name == 'usbutils'71requires: package.name == 'usbutils'
6372
=== modified file 'providers/plainbox-provider-checkbox/whitelists/autotesting.whitelist'
--- providers/plainbox-provider-checkbox/whitelists/autotesting.whitelist 2014-04-25 22:38:44 +0000
+++ providers/plainbox-provider-checkbox/whitelists/autotesting.whitelist 2015-04-28 16:50:48 +0000
@@ -17,6 +17,7 @@
17dmidecode_attachment17dmidecode_attachment
18efi_attachment18efi_attachment
19lspci_attachment19lspci_attachment
20lspci_standard_config_attachment
20meminfo_attachment21meminfo_attachment
21modprobe_attachment22modprobe_attachment
22modules_attachment23modules_attachment
2324
=== modified file 'providers/plainbox-provider-checkbox/whitelists/hwsubmit.whitelist'
--- providers/plainbox-provider-checkbox/whitelists/hwsubmit.whitelist 2015-04-24 20:58:54 +0000
+++ providers/plainbox-provider-checkbox/whitelists/hwsubmit.whitelist 2015-04-28 16:50:48 +0000
@@ -18,6 +18,7 @@
18kernel_cmdline_attachment18kernel_cmdline_attachment
19lsmod_attachment19lsmod_attachment
20lspci_attachment20lspci_attachment
21lspci_standard_config_attachment
21modprobe_attachment22modprobe_attachment
22modules_attachment23modules_attachment
23sysfs_attachment24sysfs_attachment

Subscribers

People subscribed via source and target branches