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

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 98485755eae9690347809cdb1da2d98a5622495c
Merged at revision: 2403270daff7c9292be7e2411a8eab5857241c24
Proposed branch: ~sylvain-pineau/plainbox-provider-checkbox:fix-1794644
Merge into: plainbox-provider-checkbox:master
Diff against target: 86 lines (+16/-7)
2 files modified
bin/pm_test (+2/-2)
units/stress/jobs.pxu (+14/-5)
Reviewer Review Type Date Requested Status
Devices Certification Bot Needs Fixing
Sylvain Pineau (community) Approve
Review via email: mp+377283@code.launchpad.net

Description of the change

Fixes linked bug (if suspend30_with_reboots is failing both poweroff_30 and reboot_30 are failing too)

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

self-approved

review: Approve
Revision history for this message
Devices Certification Bot (ce-certification-qa) wrote :

The merge was fine but running tests failed.

[xenial] [11:01:07] starting container
[bionic] [11:01:07] starting container
Device project added to xenial-testing
Device project added to bionic-testing
[xenial] [11:01:18] provisioning container
[bionic] [11:01:22] provisioning container
[bionic] [11:01:38] Unable to provision requirements in container!
[bionic] output: https://paste.ubuntu.com/p/6rfWnJ2Dzz/
[bionic] [11:01:41] Fixing file permissions in source directory
[bionic] Destroying failed container to reclaim resources
[xenial] [11:02:05] Starting tests...
[xenial] Found a test script: ./requirements/container-tests-provider-checkbox
[xenial] [11:03:18] container-tests-provider-checkbox: PASS
[xenial] [11:03:18] Fixing file permissions in source directory
[xenial] [11:03:18] Destroying container

review: Needs Fixing

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/bin/pm_test b/bin/pm_test
2index f455858..1ac0c53 100755
3--- a/bin/pm_test
4+++ b/bin/pm_test
5@@ -68,7 +68,7 @@ def main():
6 operation.teardown()
7 result = {
8 'outcome': 'fail',
9- 'comment': message,
10+ 'comments': message,
11 }
12 with open(os.path.join(args.log_dir, '__result'), 'wt') as f:
13 json.dump(result, f)
14@@ -268,7 +268,7 @@ class PowerManagementOperation():
15 if problems:
16 result = {
17 'outcome': 'fail' if problems else 'pass',
18- 'comment': problems,
19+ 'comments': problems,
20 }
21 result_filename = os.path.join(self.args.log_dir, '__result')
22 with open(result_filename, 'wt') as f:
23diff --git a/units/stress/jobs.pxu b/units/stress/jobs.pxu
24index a5ef86a..cf44c6c 100644
25--- a/units/stress/jobs.pxu
26+++ b/units/stress/jobs.pxu
27@@ -86,13 +86,14 @@ flags: noreturn
28 user: root
29 environ: PM_TEST_DRY_RUN
30 command:
31+ rm -f $PLAINBOX_SESSION_SHARE/__result
32 pm_test reboot --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox --fwts --log-level=debug --log-dir=$PLAINBOX_SESSION_SHARE --suspends-before-reboot=30 -r 3 --silent --check-hardware-list
33 _summary: 30 suspend/resume cycles and 1 reboot, 3 times (automated stress test)
34 _description:
35 This is an automated stress test that will run a sequence of '30 suspend/resume cycles and one reboot' 3 times.
36 _siblings: [
37 { "id": "power-management/suspend_30_cycles_with_coldboots",
38- "command": "pm_test poweroff --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox --fwts --log-level=debug --log-dir=$PLAINBOX_SESSION_SHARE --suspends-before-reboot=30 -r 3 --silent --check-hardware-list",
39+ "command": "rm -f $PLAINBOX_SESSION_SHARE/__result; pm_test poweroff --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox --fwts --log-level=debug --log-dir=$PLAINBOX_SESSION_SHARE --suspends-before-reboot=30 -r 3 --silent --check-hardware-list",
40 "_description": "This is an automated stress test that will run a sequence of '30 suspend/resume cycles and one poweroff' 3 times.",
41 "_summary": "30 suspend/resume cycles and 1 poweroff, 3 times (automated stress test)"
42 }
43@@ -267,7 +268,9 @@ category_id: com.canonical.plainbox::stress
44 id: stress/reboot
45 estimated_duration: 4500.0
46 requires: executable.name == 'fwts'
47-command: pm_test --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox -r 100 --silent --log-level=notset reboot --log-dir=$PLAINBOX_SESSION_SHARE
48+command:
49+ rm -f $PLAINBOX_SESSION_SHARE/__result
50+ pm_test --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox -r 100 --silent --log-level=notset reboot --log-dir=$PLAINBOX_SESSION_SHARE
51 flags: noreturn
52 user: root
53 environ: PLAINBOX_SESSION_SHARE PM_TEST_DRY_RUN
54@@ -288,7 +291,9 @@ category_id: com.canonical.plainbox::stress
55 id: stress/reboot_30
56 requires: executable.name == 'fwts'
57 executable.name == 'x-terminal-emulator'
58-command: pm_test --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox -r 30 --silent --log-level=notset reboot --log-dir=$PLAINBOX_SESSION_SHARE
59+command:
60+ rm -f $PLAINBOX_SESSION_SHARE/__result
61+ pm_test --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox -r 30 --silent --log-level=notset reboot --log-dir=$PLAINBOX_SESSION_SHARE
62 flags: noreturn
63 estimated_duration: 2700
64 user: root
65@@ -311,7 +316,9 @@ estimated_duration: 4500.0
66 requires:
67 executable.name == 'fwts'
68 executable.name == 'x-terminal-emulator'
69-command: pm_test --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox -r 100 --silent --log-level=notset poweroff --log-dir=$PLAINBOX_SESSION_SHARE
70+command:
71+ rm -f $PLAINBOX_SESSION_SHARE/__result
72+ pm_test --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox -r 100 --silent --log-level=notset poweroff --log-dir=$PLAINBOX_SESSION_SHARE
73 flags: noreturn
74 user: root
75 environ: PLAINBOX_SESSION_SHARE PM_TEST_DRY_RUN
76@@ -333,7 +340,9 @@ id: stress/poweroff_30
77 requires:
78 executable.name == 'fwts'
79 executable.name == 'x-terminal-emulator'
80-command: pm_test --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox -r 30 --wakeup 150 --silent --log-level=notset poweroff --log-dir=$PLAINBOX_SESSION_SHARE
81+command:
82+ rm -f $PLAINBOX_SESSION_SHARE/__result
83+ pm_test --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox -r 30 --wakeup 150 --silent --log-level=notset poweroff --log-dir=$PLAINBOX_SESSION_SHARE
84 flags: noreturn
85 estimated_duration: 3600
86 user: root

Subscribers

People subscribed via source and target branches