Merge lp:~brendan-donegan/checkbox/bug804190_server_sleep into lp:checkbox

Proposed by Brendan Donegan
Status: Merged
Merged at revision: 1166
Proposed branch: lp:~brendan-donegan/checkbox/bug804190_server_sleep
Merge into: lp:checkbox
Diff against target: 52 lines (+11/-1)
4 files modified
data/whitelists/default.whitelist (+1/-0)
debian/changelog (+2/-0)
jobs/resource.txt.in (+5/-0)
jobs/suspend.txt.in (+3/-1)
To merge this branch: bzr merge lp:~brendan-donegan/checkbox/bug804190_server_sleep
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+87922@code.launchpad.net

Description of the change

During SRU testing, the suspend_advanced_auto test was running on servers and failing since none of the servers we have support the 'mem' (suspend/S3) sleep state. This merge creates a resource job for storing the status of support for the different sleep states. It also uses this to add a requirement for the 'mem' sleep state to be supported in the suspend_advanced_auto test.

To post a comment you must log in.
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

I would also like to get this backported to Oneiric when it's accepted.

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

Do we know how stable /sys/power/state is? how far back is it available, and is it likely to change in the future? I'm mainly asking since this is meant to be backported and it'd be good to know how likely we are to be affected by changes in this.

Other than this, I'm OK with merging this code.

review: Needs Information
1168. By Brendan Donegan

Added the new sleep job to the whitelist.

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

OK, looks good, merging.

Just don't forget that the sleep resource has to be added to all whitelists that require it (what with whitelists not being "recursive" and all that).

Thanks!

review: Approve
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Yeah. Check out the merge request of a similar name in checkbox-certification.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/whitelists/default.whitelist'
2--- data/whitelists/default.whitelist 2011-12-06 21:49:20 +0000
3+++ data/whitelists/default.whitelist 2012-01-09 17:33:25 +0000
4@@ -9,6 +9,7 @@
5 module
6 package
7 uname
8+sleep
9 __audio__
10 audio/alsa_record_playback_external
11 audio/alsa_record_playback_internal
12
13=== modified file 'debian/changelog'
14--- debian/changelog 2012-01-06 22:16:35 +0000
15+++ debian/changelog 2012-01-09 17:33:25 +0000
16@@ -13,6 +13,8 @@
17 * Fixed connect_wireless script which continued failing to correctly
18 identify wireless connections.
19 * Don't fail the sleep_test if the wake alarm is still set (LP: #911161)
20+ * Add requirement for mem sleep state to be supported to the
21+ suspend_advanced_auto job (LP: #804190)
22
23 [Gabor Kelemen]
24 * Fixed last two remaining strings with backslashes (LP: #868571)
25
26=== modified file 'jobs/resource.txt.in'
27--- jobs/resource.txt.in 2011-10-14 10:30:52 +0000
28+++ jobs/resource.txt.in 2012-01-09 17:33:25 +0000
29@@ -53,3 +53,8 @@
30 plugin: resource
31 command: uname_resource
32 description: Creates resource info from uname output
33+
34+name: sleep
35+plugin: resource
36+command: for state in `cat /sys/power/state`; do echo $state": supported"; done
37+description: Create resource info for supported sleep states
38
39=== modified file 'jobs/suspend.txt.in'
40--- jobs/suspend.txt.in 2012-01-05 16:20:12 +0000
41+++ jobs/suspend.txt.in 2012-01-09 17:33:25 +0000
42@@ -251,7 +251,9 @@
43 plugin: shell
44 name: suspend/suspend_advanced_auto
45 depends: power-management/rtc networking/detect suspend/cpu_before_suspend suspend/memory_before_suspend suspend/wireless_before_suspend_auto
46-requires: package.name == 'pm-utils'
47+requires:
48+ package.name == 'pm-utils'
49+ sleep.mem == 'supported'
50 _description:
51 This is the automated version of suspend/suspend_advanced.
52 user: root

Subscribers

People subscribed via source and target branches