Merge ~sylvain-pineau/plainbox-provider-checkbox:new_json_exporter into plainbox-provider-checkbox:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 783eb4eb95205be03a027c2951c33594bb8c7942
Merged at revision: 5c5b246ca2d57393c877f7bfd71325969f3439fc
Proposed branch: ~sylvain-pineau/plainbox-provider-checkbox:new_json_exporter
Merge into: plainbox-provider-checkbox:master
Diff against target: 76 lines (+59/-0)
2 files modified
jobs/miscellanea.txt.in (+5/-0)
jobs/submission.txt.in (+54/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+308757@code.launchpad.net

Description of the change

A set of new jobs meant to be run to populate the new json exporter template.

They are just existing jobs + plainbox dev parse + a bit a jq

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

I'm keeping json and non json attachments as requirements of the submission_resource job. We'll clean up once C3 will process tar files natively.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/jobs/miscellanea.txt.in b/jobs/miscellanea.txt.in
index 8710fed..882838b 100644
--- a/jobs/miscellanea.txt.in
+++ b/jobs/miscellanea.txt.in
@@ -13,6 +13,11 @@ depends:
13 lsblk_attachment13 lsblk_attachment
14 sysfs_attachment14 sysfs_attachment
15 udev_attachment15 udev_attachment
16 dkms_info_json
17 udev_json
18 raw_devices_dmi_json
19 modprobe_json
20 lspci_standard_config_json
16estimated_duration: 1.021estimated_duration: 1.0
17command: true22command: true
18_summary:23_summary:
diff --git a/jobs/submission.txt.in b/jobs/submission.txt.in
19new file mode 10064424new file mode 100644
index 0000000..9851d3a
--- /dev/null
+++ b/jobs/submission.txt.in
@@ -0,0 +1,54 @@
1id: dkms_info_json
2plugin: attachment
3category_id: 2013.com.canonical.plainbox::info
4command: dkms_info --format json | plainbox dev parse dkms-info
5_description: Attaches json dumps of installed dkms package information.
6_summary: Attaches json dumps of installed dkms package information.
7
8id: udev_json
9plugin: attachment
10category_id: 2013.com.canonical.plainbox::info
11command: udevadm info --export-db | plainbox dev parse udevadm
12_description: Attaches json dumps of udev_resource
13
14unit: packaging meta-data
15os-id: debian
16Depends: jq
17
18unit: packaging meta-data
19os-id: debian
20Depends: plainbox
21
22id: raw_devices_dmi_json
23plugin: attachment
24category_id: 2013.com.canonical.plainbox::info
25requires: package.name == 'dmidecode'
26user: root
27command:
28 dmidecode -t bios -t system | plainbox dev parse dmidecode | \
29 jq --indent 4 '{"raw-devices-dmi": [.[0]."_attributes" +
30 {"category": .[0]."category"}, .[1]."_attributes" +
31 {"category": .[1]."category"}]}'
32estimated_duration: 1
33_description: Attaches dmidecode output
34_summary: Attaches json dumps of udev_resource raw dmi devices
35
36id: modprobe_json
37plugin: attachment
38category_id: 2013.com.canonical.plainbox::info
39command:
40 find /etc/modprobe.* -name \*.conf | xargs cat | plainbox dev parse modprobe |
41 jq --indent 4 'to_entries | {"modprobe-info":
42 map({"module": .key, "options": .value})}'
43estimated_duration: 0.015
44_description: Attaches the contents of the various modprobe conf files.
45_summary: Attach the contents of /etc/modprobe.*
46
47id: lspci_standard_config_json
48_summary: Attach PCI configuration space hex dump
49plugin: attachment
50category_id: 2013.com.canonical.plainbox::info
51command: lspci -x | plainbox dev parse pci-subsys-id
52estimated_duration: 0.1
53_description: Attaches a hex dump of the standard part of the PCI configuration
54 space for all PCI devices.

Subscribers

People subscribed via source and target branches