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 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
1diff --git a/units/info/jobs.pxu b/units/info/jobs.pxu
2index dee4fd5..4485829 100644
3--- a/units/info/jobs.pxu
4+++ b/units/info/jobs.pxu
5@@ -429,3 +429,24 @@ id: info/systemd-analyze
6 estimated_duration: 0.2
7 _summary: System boot-up performance statistics
8 command: systemd-analyze
9+
10+id: lstopo_verbose_attachment
11+plugin: attachment
12+category_id: com.canonical.plainbox::info
13+command: lstopo -v
14+estimated_duration: 0.015
15+requires: package.name == 'hwloc' or executable.name == 'lstopo'
16+_description: Attaches the system topology as presented by the lstopo command
17+_summary: Attach the output of lstopo
18+
19+id: lstopo_visual_attachment
20+plugin: attachment
21+category_id: com.canonical.plainbox::info
22+estimated_duration: 0.015
23+requires: package.name == 'hwloc' or executable.name == 'lstopo'
24+_description: Attaches the system topology as presented by the lstopo command
25+_summary: Attach the output of lstopo
26+command:
27+ lstopo $PLAINBOX_SESSION_SHARE/lstopo_visual.png; \
28+ [ -e "$PLAINBOX_SESSION_SHARE/lstopo_visual.png" ] && \
29+ cat "$PLAINBOX_SESSION_SHARE/lstopo_visual.png"
30diff --git a/units/info/packaging.pxu b/units/info/packaging.pxu
31index 26d76cb..67f18c2 100644
32--- a/units/info/packaging.pxu
33+++ b/units/info/packaging.pxu
34@@ -12,3 +12,8 @@ Depends: python3-guacamole (>= 0.9)
35 unit: packaging meta-data
36 os-id: debian
37 Depends: util-linux
38+
39+# This is to install hwloc for the lstopo attachment jobs
40+unit: packaging meta-data
41+os-id: debian
42+Depends: hwloc
43diff --git a/units/info/test-plan.pxu b/units/info/test-plan.pxu
44index e54b443..d293954 100644
45--- a/units/info/test-plan.pxu
46+++ b/units/info/test-plan.pxu
47@@ -42,6 +42,8 @@ include:
48 lsmod_attachment
49 lspci_attachment
50 lspci_standard_config_attachment
51+ lstopo_verbose_attachment
52+ lstopo_visual_attachment
53 lsusb_attachment
54 meminfo_attachment
55 modinfo_attachment
56@@ -53,3 +55,38 @@ include:
57 bootstrap_include:
58 device
59
60+id: server-info-attachment-automated
61+unit: test plan
62+_name: Info attachment jobs for Server Cert (Automated)
63+_description:
64+ Info attachment jobs for Server Cert(Automated)
65+include:
66+ config_file_attachment
67+ cpuinfo_attachment
68+ dkms_info_attachment
69+ dmesg_attachment
70+ dmi_attachment
71+ dmidecode_attachment
72+ efi_attachment
73+ info/disk_partitions
74+ info/hdparm_.*.txt
75+ installer_debug.gz
76+ kernel_cmdline_attachment
77+ lsblk_attachment
78+ lshw_attachment
79+ lsmod_attachment
80+ lspci_attachment
81+ lstopo_verbose_attachment
82+ lstopo_visual_attachment
83+ lsusb_attachment
84+ meminfo_attachment
85+ modinfo_attachment
86+ modprobe_attachment
87+ modules_attachment
88+ sysctl_attachment
89+ sysfs_attachment
90+ udev_attachment
91+ udev-summary_attachment
92+bootstrap_include:
93+ device
94+ fwts

Subscribers

People subscribed via source and target branches