Merge lp:~roadmr/checkbox/no-log-in-stress-suspend into lp:checkbox

Proposed by Daniel Manrique
Status: Merged
Approved by: Jeff Lane 
Approved revision: 2162
Merged at revision: 2161
Proposed branch: lp:~roadmr/checkbox/no-log-in-stress-suspend
Merge into: lp:checkbox
Diff against target: 53 lines (+7/-4)
2 files modified
checkbox-old/debian/changelog (+3/-0)
checkbox-old/jobs/stress.txt.in (+4/-4)
To merge this branch: bzr merge lp:~roadmr/checkbox/no-log-in-stress-suspend
Reviewer Review Type Date Requested Status
Jeff Lane  Approve
Daniel Manrique (community) Needs Resubmitting
Review via email: mp+167142@code.launchpad.net

Commit message

fixes a few inconsistencies in how the sleep_test fallback command for suspend/hibernate stress tests is called.

Description of the change

This fixes a few inconsistencies in how the sleep_test fallback command for suspend/hibernate stress tests is called.

This won't fix the related bug (1186870) but makes things behave more consistently.

To post a comment you must log in.
Revision history for this message
Jeff Lane  (bladernr) wrote :

souds reasonable to me. as discussed, the proper fix is to fix the script to output the correct stuffs... perhaps we should demote the bug to Low and fix Jeffrey's bug as we have time.

review: Approve
Revision history for this message
Jeff Lane  (bladernr) wrote :

yikes... hold one... sigh... change the log file names to match the non _times_ log names.

The times names are used specifically for the sleep_time_check test as they are parsed. We are not saving the times for hibernate/resume as we dont care one bit how long that takes.

Hibernate/resume can take anywhere from a minute or two to 5 or more depending on how much ram is installed, how many pages had to be swapped to disk, how fast disk IO is, how much stuff the CPU has to do on resume, etc... it's just too wide to be reliable and too long to be of consequence, and no one cares about fixing hibernate resume time issues anyway.

review: Needs Fixing
2162. By Daniel Manrique

Fixed log file names since sleep_test does not generate timing information here

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

Fixed as requested, thanks!

review: Needs Resubmitting
Revision history for this message
Jeff Lane  (bladernr) wrote :

awesome!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'checkbox-old/debian/changelog'
2--- checkbox-old/debian/changelog 2013-06-03 15:01:37 +0000
3+++ checkbox-old/debian/changelog 2013-06-03 21:09:27 +0000
4@@ -15,6 +15,9 @@
5 appropriate radio button in showTest if the test already has a result set
6 rather than just defaulting to skip always (LP: #1181952)
7
8+ [ Daniel Manrique ]
9+ * jobs/stress.txt.in: fixed a few inconsistent invocations of sleep_test.
10+
11 -- Brendan Donegan <brendan.donegan@canonical.com> Fri, 31 May 2013 16:04:42 +0100
12
13 checkbox (0.16.3) saucy; urgency=low
14
15=== modified file 'checkbox-old/jobs/stress.txt.in'
16--- checkbox-old/jobs/stress.txt.in 2013-05-29 07:50:30 +0000
17+++ checkbox-old/jobs/stress.txt.in 2013-06-03 21:09:27 +0000
18@@ -19,7 +19,7 @@
19 fwts_test -l $CHECKBOX_DATA/hibernate_30_cycles -f none -s s4 --s4-device-check --s4-device-check-delay=45 --s4-sleep-delay=120 --s4-multiple=30
20 else
21 echo "Calling sleep_test"
22- sleep_test -s disk -i 30 -w 120
23+ set -o pipefail; sleep_test -s disk -i 30 -w 120 | tee $CHECKBOX_DATA/hibernate_30_cycles.log
24 fi
25 _description:
26 PURPOSE:
27@@ -48,7 +48,7 @@
28 set -o pipefail; fwts_test -l $CHECKBOX_DATA/suspend_30_cycles -f none -s s3 --s3-device-check --s3-device-check-delay=45 --s3-sleep-delay=30 --s3-multiple=30 | tee $CHECKBOX_DATA/suspend_30_cycles_times.log
29 else
30 echo "Calling sleep_test"
31- set -o pipefail; sleep_test -p s mem -i 30 | tee $CHECKBOX_DATA/suspend_30_cycles_times.log
32+ set -o pipefail; sleep_test -p -s mem -i 30 | tee $CHECKBOX_DATA/suspend_30_cycles.log
33 fi
34 _description:
35 PURPOSE:
36@@ -83,7 +83,7 @@
37 fwts_test -l $CHECKBOX_DATA/hibernate_250_cycles -s s4 --s4-device-check --s4-device-check-delay=45 --s4-sleep-delay=120 --s4-multiple=250
38 else
39 echo "Calling sleep_test"
40- sleep_test -s disk -i 250 -w 120
41+ set -o pipefail; sleep_test -s disk -i 250 -w 120 | tee $CHECKBOX_DATA/hibernate_250_cycles.log
42 fi
43 _description:
44 PURPOSE:
45@@ -106,7 +106,7 @@
46 set -o pipefail; fwts_test -l $CHECKBOX_DATA/suspend_250_cycles -s s3 --s3-device-check --s3-device-check-delay=45 --s3-sleep-delay=30 --s3-multiple=250 | tee $CHECKBOX_DATA/suspend_250_cycles_times.log
47 else
48 echo "Calling sleep_test"
49- set -o pipefail; sleep_test -p s mem -i 250 | tee $CHECKBOX_DATA/suspend_250_cycles_times.log
50+ set -o pipefail; sleep_test -p -s mem -i 250 | tee $CHECKBOX_DATA/suspend_250_cycles.log
51 fi
52 _description:
53 PURPOSE:

Subscribers

People subscribed via source and target branches