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

Proposed by Albert Astals Cid
Status: Merged
Approved by: Michael Zanetti
Approved revision: 2597
Merged at revision: 2626
Proposed branch: lp:~aacid/unity8/moreStableTestTabletStage
Merge into: lp:unity8
Diff against target: 33 lines (+7/-5)
1 file modified
qml/Stages/TabletStage.qml (+7/-5)
To merge this branch: bzr merge lp:~aacid/unity8/moreStableTestTabletStage
Reviewer Review Type Date Requested Status
Michael Zanetti (community) Approve
Unity8 CI Bot continuous-integration Needs Fixing
Review via email: mp+303377@code.launchpad.net

Commit message

Adapt onShiftedContentXChanged to work when the content changes very abruptly

This happens in CI quite a bit (and locally when run under xvfb)

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
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.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2597
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1984/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/2603
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/1418
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/1418
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=yakkety,testname=qmluitests.sh/1418
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/2631
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/2510
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/2510
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/2510
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2504
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2504/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2504
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2504/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2504
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2504/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2504
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2504/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2504
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2504/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2504
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2504/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2504
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2504/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2504
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2504/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2504
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2504/artifact/output/*zip*/output.zip

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

review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Zanetti (mzanetti) wrote :

ok... this code is about to be dropped anyways, but if it gets us more stable tests for now... looks ok to me

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/Stages/TabletStage.qml'
--- qml/Stages/TabletStage.qml 2016-08-11 06:26:26 +0000
+++ qml/Stages/TabletStage.qml 2016-08-19 08:38:44 +0000
@@ -485,8 +485,7 @@
485 return;485 return;
486 }486 }
487487
488 switch (phase) {488 if (phase === 0) {
489 case 0:
490 // the "spreadEnabled" part is because when code does "phase = 0; contentX = -shift" to489 // the "spreadEnabled" part is because when code does "phase = 0; contentX = -shift" to
491 // dismiss the spread because spreadEnabled went to false, for some reason, during tests,490 // dismiss the spread because spreadEnabled went to false, for some reason, during tests,
492 // Flickable might jump in and change contentX value back, causing the code below to do491 // Flickable might jump in and change contentX value back, causing the code below to do
@@ -496,14 +495,17 @@
496 if (root.spreadEnabled && shiftedContentX > width * positionMarker2) {495 if (root.spreadEnabled && shiftedContentX > width * positionMarker2) {
497 phase = 1;496 phase = 1;
498 }497 }
499 break;498 }
500 case 1:499
500 // Do not turn to else if
501 // Sometimes the animation of shiftedContentX is very fast and we need to jump from phase 0 to 1 to 2
502 // in the same onShiftedContentXChanged
503 if (phase === 1) {
501 if (shiftedContentX < width * positionMarker2) {504 if (shiftedContentX < width * positionMarker2) {
502 phase = 0;505 phase = 0;
503 } else if (shiftedContentX >= width * positionMarker4 && !spreadDragArea.dragging) {506 } else if (shiftedContentX >= width * positionMarker4 && !spreadDragArea.dragging) {
504 phase = 2;507 phase = 2;
505 }508 }
506 break;
507 }509 }
508 }510 }
509511

Subscribers

People subscribed via source and target branches