Merge lp:~cypressyew/checkbox/fix-S3-S4-keys into lp:checkbox

Proposed by Po-Hsu Lin
Status: Merged
Approved by: Daniel Manrique
Approved revision: 3083
Merged at revision: 3088
Proposed branch: lp:~cypressyew/checkbox/fix-S3-S4-keys
Merge into: lp:checkbox
Diff against target: 149 lines (+16/-16)
3 files modified
providers/plainbox-provider-certification-client/whitelists/client-cert.whitelist (+8/-7)
providers/plainbox-provider-certification-client/whitelists/client-selftest.whitelist (+8/-7)
providers/plainbox-provider-checkbox/jobs/keys.txt.in (+0/-2)
To merge this branch: bzr merge lp:~cypressyew/checkbox/fix-S3-S4-keys
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Po-Hsu Lin Needs Resubmitting
Zygmunt Krynicki (community) Needs Information
Review via email: mp+223498@code.launchpad.net

Description of the change

Moved the S3 and S4 key tests to where S3 / S4 has already been tested, so we don't have to change their dependency.
Also we could avoid to start S3 test before the "media card before S3" tests

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I don't quite understand why we're reordering the whitelist and not removing the (IMHO bogus) dependency on suspend itself.

While it's true that suspend and hibernate keys may be special and may not be applicable for "does this key work" test that simply intercepts the key and prevents its special function from working I don't understand why that key test actually needs to depend on the suspend job.

review: Needs Information
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

I'm ok with removing the dependecny.
But for whitelist re-ordering,
if we're just removing the dependency without re-ordering the whitelist, the system will be suspended after you start testing the suspend key (if it works).
In that case, our following media card jobs will become the "media-card-test-after-suspend", not the "before-suspend" one that we expected.

The reason why I didn't remove it, is that after the re-ordering, these key tests could safely depends on them.

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

I think this is OK, we could remove the dependency on suspend but the move is still needed because, if the jobs try to honor whitelist ordering, they would run before suspend, effectively messing up a series of other tests as Sam mentioned.

Actually, there's one change I suggest making here: the keys/hibernate should run after all the *-after-suspend_* tests, otherwise it may create some strange conditions, as the before-suspend tests would run "after hibernate". Maybe we can put it before power-management/poweroff, so we cluster those jobs together (hibernate, poweroff, reboot) which should not affect anything in between.

Let me know if this makes sense.

review: Needs Information
3083. By Po-Hsu Lin

Remove the dependency of S3/S4 keys, re-ordering the S4 and Hybird-Sleep tests

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

I removed the dependency, also re-ordering the whitelist a little bit:
1. Move the __firmware__ back.
2. Move hybrid_sleep to after suspend
3. Move hibernate to run after all the *-after-suspend_* tests

I think the whitelist ordering is worthy of discussion, any suggestion is welcomed.
Thanks!

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

Thanks, this looks OK now.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'providers/plainbox-provider-certification-client/whitelists/client-cert.whitelist'
2--- providers/plainbox-provider-certification-client/whitelists/client-cert.whitelist 2014-06-11 10:05:41 +0000
3+++ providers/plainbox-provider-certification-client/whitelists/client-cert.whitelist 2014-06-19 02:14:20 +0000
4@@ -77,6 +77,8 @@
5 firewire/insert
6 firewire/storage-test
7 firewire/remove
8+__firmware__
9+# See Automated Tests section at the end of this file
10 __graphics__
11 graphics/generator_.*
12 graphics/1_glxgears_.*
13@@ -119,12 +121,10 @@
14 keys/media-control
15 keys/mute
16 keys/volume
17-keys/sleep
18 keys/video-out
19 keys/wireless
20 keys/keyboard-backlight
21 keys/keyboard-overhead-light
22-keys/hibernate
23 keys/microphone-mute
24 __led__
25 led/bluetooth
26@@ -201,10 +201,6 @@
27 power-management/tickless_idle
28 power-management/fwts_wakealarm
29 power-management/fwts_wakealarm-log-attach
30-power-management/hibernate_advanced
31-power-management/hibernate-single-log-attach
32-suspend/hybrid_sleep
33-suspend/hybrid-sleep-single-log-attach
34 __touchpad__
35 touchpad/basic
36 touchpad/horizontal
37@@ -256,6 +252,9 @@
38 suspend/suspend_advanced
39 suspend/suspend-time-check
40 suspend/suspend-single-log-attach
41+suspend/hybrid_sleep
42+suspend/hybrid-sleep-single-log-attach
43+keys/sleep
44 led/power-blink-suspend
45 led/suspend
46 suspend/network_after_suspend
47@@ -303,6 +302,9 @@
48 graphics/1_switch_card_.*
49 suspend/1_suspend_after_switch_to_card_.*
50 suspend/1_display_after_suspend.*
51+power-management/hibernate_advanced
52+power-management/hibernate-single-log-attach
53+keys/hibernate
54 # The following tests should run BEFORE the automated tests. The reboot and
55 # power off tests will also give us a clean system to start the stress run
56 # with.
57@@ -313,7 +315,6 @@
58 # Automated Tests
59 # The following tests are purely automated and/or lenghty stress tests. They
60 # have been moved to the end of the test run to improve the testing process.
61-__firmware__
62 firmware/fwts
63 firmware/fwts_logs
64 firmware/fwts_desktop_diagnosis
65
66=== modified file 'providers/plainbox-provider-certification-client/whitelists/client-selftest.whitelist'
67--- providers/plainbox-provider-certification-client/whitelists/client-selftest.whitelist 2014-06-11 10:05:41 +0000
68+++ providers/plainbox-provider-certification-client/whitelists/client-selftest.whitelist 2014-06-19 02:14:20 +0000
69@@ -74,6 +74,8 @@
70 firewire/insert
71 firewire/storage-test
72 firewire/remove
73+__firmware__
74+# See Automated Tests section at the end of this file
75 __graphics__
76 graphics/generator_.*
77 graphics/1_glxgears_.*
78@@ -116,12 +118,10 @@
79 keys/media-control
80 keys/mute
81 keys/volume
82-keys/sleep
83 keys/video-out
84 keys/wireless
85 keys/keyboard-backlight
86 keys/keyboard-overhead-light
87-keys/hibernate
88 keys/microphone-mute
89 __led__
90 led/wlan-disabled
91@@ -186,10 +186,6 @@
92 power-management/tickless_idle
93 power-management/fwts_wakealarm
94 power-management/fwts_wakealarm-log-attach
95-power-management/hibernate_advanced
96-power-management/hibernate-single-log-attach
97-suspend/hybrid_sleep
98-suspend/hybrid-sleep-single-log-attach
99 __touchpad__
100 touchpad/basic
101 touchpad/horizontal
102@@ -247,6 +243,9 @@
103 suspend/suspend_advanced
104 suspend/suspend-time-check
105 suspend/suspend-single-log-attach
106+suspend/hybrid_sleep
107+suspend/hybrid-sleep-single-log-attach
108+keys/sleep
109 led/power-blink-suspend
110 led/suspend
111 suspend/network_after_suspend
112@@ -291,6 +290,9 @@
113 suspend/wireless_connection_after_suspend_open_n_manual
114 suspend/wireless_connection_after_suspend_wpa_ac_manual
115 suspend/wireless_connection_after_suspend_open_ac_manual
116+power-management/hibernate_advanced
117+power-management/hibernate-single-log-attach
118+keys/hibernate
119 # The following tests should run BEFORE the automated tests. The reboot and
120 # power off tests will also give us a clean system to start the stress run
121 # with.
122@@ -301,7 +303,6 @@
123 # Automated Tests
124 # The following tests are purely automated and/or lenghty stress tests. They
125 # have been moved to the end of the test run to improve the testing process.
126-__firmware__
127 firmware/fwts
128 firmware/fwts_logs
129 firmware/fwts_desktop_diagnosis
130
131=== modified file 'providers/plainbox-provider-checkbox/jobs/keys.txt.in'
132--- providers/plainbox-provider-checkbox/jobs/keys.txt.in 2014-05-09 16:53:32 +0000
133+++ providers/plainbox-provider-checkbox/jobs/keys.txt.in 2014-06-19 02:14:20 +0000
134@@ -61,7 +61,6 @@
135 id: keys/sleep
136 requires:
137 device.category == 'KEYBOARD'
138-depends: suspend/suspend_advanced
139 _description:
140 PURPOSE:
141 This test will test the sleep key
142@@ -197,7 +196,6 @@
143 plugin: manual
144 id: keys/hibernate
145 requires: dmi.product in ['Notebook','Laptop','Portable']
146-depends: power-management/hibernate_advanced
147 _description:
148 PURPOSE:
149 This test will test the hibernate key

Subscribers

People subscribed via source and target branches