Mir

Merge lp:~robertcarr/mir/android-test-powerd-cli into lp:mir

Proposed by Robert Carr
Status: Rejected
Rejected by: Robert Carr
Proposed branch: lp:~robertcarr/mir/android-test-powerd-cli
Merge into: lp:mir
Diff against target: 36 lines (+6/-2)
2 files modified
debian/control (+1/-0)
debian/rules (+5/-2)
To merge this branch: bzr merge lp:~robertcarr/mir/android-test-powerd-cli
Reviewer Review Type Date Requested Status
Daniel van Vugt Disapprove
Alan Griffiths Abstain
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+193167@code.launchpad.net

This proposal supersedes a proposal from 2013-10-28.

Commit message

Use powerd-cli to ensure the screen is powered during packaging test runs on armhf.

Description of the change

A pragmatic fix for: https://bugs.launchpad.net/mir/+bug/1239955 in light of https://code.launchpad.net/~chris.gagnon/mir/enabled-arm-tests/+merge/191991

As documented in the bug, in some sense this is not a mir bug, merely mir fails when the system has been put in to earlysuspend mode by some other component. See the bug for more detailed documentation.

This isn't a problem in the Unity8 scenario, as Unity8 speaks with powerd (it seems, unity-system-compositor will need to do the same).

I think as such, it's reasonable to simply ensure the system is active during our packaging test runs.

It's still potentially confusing for developers: adb shell in to phablet, but everything is off (because you stopped unity8 while the screen was blanked) and mir doesn't work. Maybe this is best solved at a different level.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal

Please target for development-branch.

review: Needs Resubmitting
Revision history for this message
Kevin DuBois (kdub) wrote : Posted in a previous version of this proposal

We're adding a dependency in order to make sure that another program doesn't come and mess up the environment we need for adding a test? seems like we should set up pbuilder to do this, or negotiate something in the system architecture to talk to powerd directly.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

OK, so it's not really a fix for bug 1239955 as much as a workaround.

I share Kevin's concern and wonder if this workaround applies to any relevant case where we really need it. I mean, don't our armhf builds run on headless or at least non-Android systems anyway? And if it's for developers then it doesn't help them either because they will run the tests directly (not debian/rules).

P.S. The final chunk looks like it's doing nothing effectively.

review: Needs Information
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> Maybe this is best solved at a different level.

Amen

review: Abstain
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Apparently our armhf builds are on Calexda nodes [1], which I assume are headless or at least don't suffer from (Android) bug 1239955. That means this proposal won't help CI. And it also won't help developers.

[1] https://code.launchpad.net/~chris.gagnon/mir/development-branch-disable-trace-children-android/+merge/192391/comments/445717

review: Disapprove
Revision history for this message
Robert Carr (robertcarr) wrote :

It's a shame that we still aren't running our android graphics tests.

Unmerged revisions

1166. By Robert Carr

Do not enable android tests yet

1165. By Robert Carr

Fix spacing

1164. By Robert Carr

Only depend on powerd-cli on armhf

1163. By Robert Carr

Build android gtest discovery

1162. By Robert Carr

Build tests on android

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2013-10-21 16:02:28 +0000
3+++ debian/control 2013-10-30 00:08:39 +0000
4@@ -35,6 +35,7 @@
5 libudev-dev,
6 google-mock (>= 1.6.0+svn437),
7 valgrind [!arm64],
8+ powerd [armhf]
9 Standards-Version: 3.9.4
10 Homepage: https://launchpad.net/mir
11 # If you aren't a member of ~mir-team but need to upload packaging changes,
12
13=== modified file 'debian/rules'
14--- debian/rules 2013-09-23 13:52:58 +0000
15+++ debian/rules 2013-10-30 00:08:39 +0000
16@@ -11,6 +11,9 @@
17
18 #overrding dh_auto_test to get rid of --parallel during testing
19 override_dh_auto_test:
20+ifeq ($(DEB_HOST_ARCH),armhf)
21+ powerd-cli active &
22+endif
23 GTEST_OUTPUT=xml:./ dh_auto_test --max-parallel=1
24
25 COMMON_CONFIGURE_OPTIONS = \
26@@ -23,8 +26,8 @@
27 $(COMMON_CONFIGURE_OPTIONS) \
28 -DMIR_PLATFORM=android \
29 -DMIR_ENABLE_UNIT_TESTS=NO \
30- -DMIR_ENABLE_ACCEPTANCE_TESTS=NO \
31- -DMIR_ENABLE_INTEGRATION_TESTS=NO
32+ -DMIR_ENABLE_INTEGRATION_TESTS=NO \
33+ -DMIR_ENABLE_ACCEPTANCE_TESTS=NO
34 else
35 ifeq ($(DEB_HOST_ARCH),powerpc)
36 dh_auto_configure -- \

Subscribers

People subscribed via source and target branches