Merge ~bladernr/plainbox-provider-checkbox:add-lstopo-attachment into plainbox-provider-checkbox:master

Proposed by Jeff Lane 
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 77a7ef52b22269d73f625446694feafd2c00918c
Merged at revision: adaf7542225dccd816ffad55d47c305b877f5f2e
Proposed branch: ~bladernr/plainbox-provider-checkbox:add-lstopo-attachment
Merge into: plainbox-provider-checkbox:master
Diff against target: 94 lines (+63/-0)
3 files modified
units/info/jobs.pxu (+21/-0)
units/info/packaging.pxu (+5/-0)
units/info/test-plan.pxu (+37/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Jeff Lane  Needs Resubmitting
Review via email: mp+355951@code.launchpad.net

Description of the change

Adds two new info/attachment jobs.

lstopo_visual_attachment creates a small png mapping the system out
lstopo_verbose_attachment is the text output from lstopo -v showing detail

These were suggested/requested by the FE team to help them with deployments.

To post a comment you must log in.
Revision history for this message
Jeff Lane  (bladernr) wrote :

Updated to add a testplan for info/attachments so I can start converting the server plans to ones using nested parts.

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

See comments below

review: Needs Fixing
Revision history for this message
Jeff Lane  (bladernr) wrote :

Thanks. You're right, that first one was supposed to have been deleted but I forgot it. ANd I fixed the typo.

review: Needs Resubmitting
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

LGTM, +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/units/info/jobs.pxu b/units/info/jobs.pxu
index dee4fd5..4485829 100644
--- a/units/info/jobs.pxu
+++ b/units/info/jobs.pxu
@@ -429,3 +429,24 @@ id: info/systemd-analyze
429estimated_duration: 0.2429estimated_duration: 0.2
430_summary: System boot-up performance statistics430_summary: System boot-up performance statistics
431command: systemd-analyze431command: systemd-analyze
432
433id: lstopo_verbose_attachment
434plugin: attachment
435category_id: com.canonical.plainbox::info
436command: lstopo -v
437estimated_duration: 0.015
438requires: package.name == 'hwloc' or executable.name == 'lstopo'
439_description: Attaches the system topology as presented by the lstopo command
440_summary: Attach the output of lstopo
441
442id: lstopo_visual_attachment
443plugin: attachment
444category_id: com.canonical.plainbox::info
445estimated_duration: 0.015
446requires: package.name == 'hwloc' or executable.name == 'lstopo'
447_description: Attaches the system topology as presented by the lstopo command
448_summary: Attach the output of lstopo
449command:
450 lstopo $PLAINBOX_SESSION_SHARE/lstopo_visual.png; \
451 [ -e "$PLAINBOX_SESSION_SHARE/lstopo_visual.png" ] && \
452 cat "$PLAINBOX_SESSION_SHARE/lstopo_visual.png"
diff --git a/units/info/packaging.pxu b/units/info/packaging.pxu
index 26d76cb..67f18c2 100644
--- a/units/info/packaging.pxu
+++ b/units/info/packaging.pxu
@@ -12,3 +12,8 @@ Depends: python3-guacamole (>= 0.9)
12unit: packaging meta-data12unit: packaging meta-data
13os-id: debian13os-id: debian
14Depends: util-linux14Depends: util-linux
15
16# This is to install hwloc for the lstopo attachment jobs
17unit: packaging meta-data
18os-id: debian
19Depends: hwloc
diff --git a/units/info/test-plan.pxu b/units/info/test-plan.pxu
index e54b443..d293954 100644
--- a/units/info/test-plan.pxu
+++ b/units/info/test-plan.pxu
@@ -42,6 +42,8 @@ include:
42 lsmod_attachment42 lsmod_attachment
43 lspci_attachment43 lspci_attachment
44 lspci_standard_config_attachment44 lspci_standard_config_attachment
45 lstopo_verbose_attachment
46 lstopo_visual_attachment
45 lsusb_attachment47 lsusb_attachment
46 meminfo_attachment48 meminfo_attachment
47 modinfo_attachment49 modinfo_attachment
@@ -53,3 +55,38 @@ include:
53bootstrap_include:55bootstrap_include:
54 device56 device
5557
58id: server-info-attachment-automated
59unit: test plan
60_name: Info attachment jobs for Server Cert (Automated)
61_description:
62 Info attachment jobs for Server Cert(Automated)
63include:
64 config_file_attachment
65 cpuinfo_attachment
66 dkms_info_attachment
67 dmesg_attachment
68 dmi_attachment
69 dmidecode_attachment
70 efi_attachment
71 info/disk_partitions
72 info/hdparm_.*.txt
73 installer_debug.gz
74 kernel_cmdline_attachment
75 lsblk_attachment
76 lshw_attachment
77 lsmod_attachment
78 lspci_attachment
79 lstopo_verbose_attachment
80 lstopo_visual_attachment
81 lsusb_attachment
82 meminfo_attachment
83 modinfo_attachment
84 modprobe_attachment
85 modules_attachment
86 sysctl_attachment
87 sysfs_attachment
88 udev_attachment
89 udev-summary_attachment
90bootstrap_include:
91 device
92 fwts

Subscribers

People subscribed via source and target branches