Merge ~jocave/plainbox-provider-resource:summaries-for-everyone into plainbox-provider-resource:master

Proposed by Jonathan Cave
Status: Merged
Approved by: Jonathan Cave
Approved revision: d878ac3f66cf8153eeda217ccb18866cf817b32b
Merged at revision: 7a6a1e2d669dc6e405bb9d7c0e0e6c330eb1625d
Proposed branch: ~jocave/plainbox-provider-resource:summaries-for-everyone
Merge into: plainbox-provider-resource:master
Diff against target: 141 lines (+16/-15)
1 file modified
jobs/resource.pxu (+16/-15)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Paul Larson Approve
Review via email: mp+348678@code.launchpad.net

Description of the change

Make sure all the jobs have a summary as a minimum - this is used more frequently for display purposes

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

lgtm, but I would get feedback from kissiel or spineau also, as they are more likely to know whether there's some downside lurking to not having a description.

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

Both fields have equivalent severity if missing for validation (advice level). Since summaries are used more often in UI, let's promote summaries. +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/jobs/resource.pxu b/jobs/resource.pxu
2index 46cb72f..69ce130 100644
3--- a/jobs/resource.pxu
4+++ b/jobs/resource.pxu
5@@ -173,6 +173,7 @@ estimated_duration: 0.56
6 plugin: resource
7 user: root
8 command: efi_resource
9+_summary: Collect information about the EFI configuration
10
11 id: uname
12 estimated_duration: 0.09
13@@ -185,7 +186,7 @@ id: sleep
14 estimated_duration: 0.03
15 plugin: resource
16 command: for state in `cat /sys/power/state`; do echo "$state: supported"; done
17-_description: Create resource info for supported sleep states
18+_summary: Create resource info for supported sleep states
19
20 unit: template
21 template-resource: device
22@@ -194,21 +195,21 @@ id: optical_drive_{name}
23 plugin: resource
24 command: optical_resource /dev/{name}
25 estimated_duration: 0.5
26-_description: Create resource info for supported optical actions ({name})
27+_summary: Create resource info for supported optical actions ({name})
28
29 id: block_device
30 estimated_duration: 0.08
31 plugin: resource
32 user: root
33 command: block_device_resource
34-_description: Create resource info for removable block devices
35+_summary: Create resource info for removable block devices
36
37 id: display
38 estimated_duration: 0.43
39 plugin: resource
40 command: display_resource
41 requires: package.name == "x11-xserver-utils"
42-_description: Creates display resource info from xrandr output
43+_summary: Creates display resource info from xrandr output
44
45 id: usb
46 estimated_duration: 0.33
47@@ -230,12 +231,12 @@ estimated_duration: 0.19
48 plugin: resource
49 command: xinput_resource
50 requires: package.name == "xinput"
51-_description: Creates resource info from xinput output.
52+_summary: Creates resource info from xinput output.
53
54 id: environment
55 estimated_duration: 0.11
56 plugin: resource
57-_description: Create resource info for environment variables
58+_summary: Create resource info for environment variables
59 command:
60 IFS=$'\n'
61 for e in `env | sed 's/=/:/g'`; do
62@@ -245,7 +246,7 @@ command:
63 id: mobilebroadband
64 estimated_duration: 0.38
65 plugin: resource
66-_description: Create resource for mobile broadband devices
67+_summary: Create resource for mobile broadband devices
68 command: mobilebroadband_resource
69
70 id: virtualization
71@@ -253,7 +254,7 @@ estimated_duration: 0.13
72 plugin: resource
73 requires:
74 package.name == "cpu-checker" or executable.name == 'kvm-ok'
75-_description: Resource for hardware virtualization
76+_summary: Resource for hardware virtualization
77 command:
78 if kvm-ok > /dev/null
79 then
80@@ -266,7 +267,7 @@ id: IEEE_80211
81 estimated_duration: 0.08
82 plugin: resource
83 command: 80211_resource
84-_description: Creates resource info for wifi supported protocols/interfaces
85+_summary: Creates resource info for wifi supported protocols/interfaces
86
87 id: wireless_sta_protocol
88 plugin: resource
89@@ -288,7 +289,7 @@ command:
90 else
91 echo "state: unsupported"
92 fi
93-_description: Creates resource info for RTC
94+_summary: Creates resource info for RTC
95
96 id: requirements
97 estimated_duration: 0.01
98@@ -299,6 +300,7 @@ command:
99 else
100 true
101 fi
102+_summary: Provide links to requirements documents
103 _description:
104 Provide links to requirements documents.
105 .
106@@ -327,15 +329,14 @@ _description:
107 id: graphics_card
108 estimated_duration: 0.05
109 plugin: resource
110-_description:
111- Generate an entry for each graphics card present in the system.
112+_summary: Generate an entry for each graphics card present in the system.
113 command: graphics_card_resource
114
115 id: fwts
116 estimated_duration: 0.5
117 plugin: resource
118 requires: executable.name == "fwts"
119-_description: Generate an entry for each FWTS test available
120+_summary: Generate an entry for each FWTS test available
121 command:
122 for test in `checkbox-support-fwts_test --list`; do echo "name: $test"; echo ""; done
123
124@@ -343,7 +344,7 @@ id: mir
125 estimated_duration: 0.5
126 plugin: resource
127 requires: package.name == "mir-test-tools"
128-_description: Generate an entry for each MIR integration tests
129+_summary: Generate an entry for each MIR integration tests
130 command:
131 for test in `mir_integration_tests --gtest_list_tests | sed -n '/\.$/s/\.$//p'`; do echo "category: integration"; echo "name: $test"; echo ""; done
132 for test in `mir_acceptance_tests --gtest_list_tests | sed -n '/\.$/s/\.$//p'`; do echo "category: acceptance"; echo "name: $test"; echo ""; done
133@@ -357,7 +358,7 @@ command:
134 grep -Pzo '(?s)Supported interface modes:\n\K(\s+\*\s.*?\n)+' |
135 sed "s/.*\* \(.*\)/"$i"_\1: supported/" | tr -d '\000';
136 done
137-_description: Create resource info for supported wifi interface modes
138+_summary: Create resource info for supported wifi interface modes
139
140 id: snap
141 estimated_duration: 1.1

Subscribers

People subscribed via source and target branches