Merge lp:~aacid/unity8/enableDisabledOrientedShellTest into lp:unity8

Proposed by Albert Astals Cid on 2016-03-17
Status: Merged
Approved by: Michael Zanetti on 2016-03-30
Approved revision: 2282
Merged at revision: 2355
Proposed branch: lp:~aacid/unity8/enableDisabledOrientedShellTest
Merge into: lp:unity8
Prerequisite: lp:~unity-team/unity8/disable-flaky-adt
Diff against target: 43 lines (+5/-7)
1 file modified
tests/qmltests/tst_OrientedShell.qml (+5/-7)
To merge this branch: bzr merge lp:~aacid/unity8/enableDisabledOrientedShellTest
Reviewer Review Type Date Requested Status
Michael Zanetti (community) 2016-03-17 Approve on 2016-03-30
Unity8 CI Bot continuous-integration Needs Fixing on 2016-03-24
Review via email: mp+289336@code.launchpad.net

Commit Message

Turn verify intro tryCompareFunction

Description of the Change

 * Are there any related MPs required for this MP to build/function as expected?
Prereq

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Test passes here now while i could make it fail before

 * Did you make sure that your branch does not contain spurious tags?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2282
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/838/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1084
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1093
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/1093
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1091
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1091/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1091/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1091
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1091/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1091/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1091
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1091/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1091/console

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/838/rebuild

review: Needs Fixing (continuous-integration)
Michael Zanetti (mzanetti) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?

yes. tests passing here. I could not reproduce the failure locally but reading through the change it is very likely this fixes the failures in adt. We'll see. So far the jenkins run looks fine.

 * Did CI run pass? If not, please explain why.

system failure. the test runs look fine.

 * Did you make sure that the branch does not contain spurious tags?

yes

review: Approve
2283. By Albert Astals Cid on 2016-04-26

Merge

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/qmltests/tst_OrientedShell.qml'
2--- tests/qmltests/tst_OrientedShell.qml 2016-04-21 13:47:29 +0000
3+++ tests/qmltests/tst_OrientedShell.qml 2016-04-26 07:23:28 +0000
4@@ -536,8 +536,6 @@
5 compare(shell.transformRotationAngle, root.primaryOrientationAngle);
6 }
7
8-/* Flaky in adt and cannot reproduce locally. Given the deadline I won't risk this getting stuck in proposed.
9- Adding a skip() seems to fail this nevertheless for accessing a null object
10 function test_appSupportingOnlyPrimaryOrientationWillOnlyRotateInLandscape_data() {
11 return [
12 {tag: "manta", deviceName: "manta"},
13@@ -561,25 +559,25 @@
14 compare(dashApp.stage, ApplicationInfoInterface.MainStage);
15
16 tryCompareFunction(function(){return dashApp.surfaceList.count > 0;}, true);
17- verify(checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle));
18
19+ tryCompareFunction(function(){return checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle)}, true);
20 compare(shell.transformRotationAngle, root.primaryOrientationAngle);
21+
22 rotateTo(90);
23
24- verify(checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle));
25+ tryCompareFunction(function(){return checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle)}, true);
26 compare(shell.transformRotationAngle, root.primaryOrientationAngle);
27
28 rotateTo(180);
29
30- verify(checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle + 180));
31+ tryCompareFunction(function(){return checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle + 180)}, true);
32 compare(shell.transformRotationAngle, root.primaryOrientationAngle + 180);
33
34 rotateTo(270);
35
36- verify(checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle + 180));
37+ tryCompareFunction(function(){return checkAppSurfaceOrientation(dashAppWindow, dashApp, root.primaryOrientationAngle + 180)}, true);
38 compare(shell.transformRotationAngle, root.primaryOrientationAngle + 180);
39 }
40-*/
41
42 function test_greeterRemainsInPrimaryOrientation_data() {
43 return [

Subscribers

People subscribed via source and target branches