Merge lp:~mterry/unity8/relock-during-tutorial into lp:unity8

Proposed by Michael Terry
Status: Rejected
Rejected by: Michael Terry
Proposed branch: lp:~mterry/unity8/relock-during-tutorial
Merge into: lp:unity8
Diff against target: 282 lines (+63/-47)
9 files modified
qml/Greeter/Greeter.qml (+14/-7)
qml/Shell.qml (+2/-2)
qml/Tutorial/TutorialContent.qml (+1/-0)
qml/Tutorial/TutorialLeft.qml (+5/-3)
qml/Tutorial/TutorialLeftFinish.qml (+5/-0)
tests/qmltests/Greeter/tst_Greeter.qml (+7/-1)
tests/qmltests/Tutorial/tst_Tutorial.qml (+9/-5)
tests/qmltests/tst_Shell.qml (+20/-7)
tests/qmltests/tst_ShellWithPin.qml (+0/-22)
To merge this branch: bzr merge lp:~mterry/unity8/relock-during-tutorial
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Needs Fixing
MichaƂ Sawicz Needs Fixing
PS Jenkins bot (community) continuous-integration Needs Fixing
Albert Astals Cid (community) Approve
Review via email: mp+285631@code.launchpad.net

Commit message

Don't keep greeter unlocked while tutorial is running, only while wizard is running. This lets you lock your screen again during the tutorial.

Description of the change

This is a backported fix from the stuck-in-development-hell tutorial-redesign branch.

- The Greeter.qml changes are to actually hide the lockscreen & greeter when forced to unlock. This makes sure it stays hidden even after the forcedUnlock hold is released. This also involves a UI change -- the cover page is no longer shown after the wizard. But that's desired by Design (part of the tutorial redesign). So I'm just pulling it forward a bit before the rest of the design:
  https://docs.google.com/document/d/1pZ-Ro--2eaRzjZKNRoYAeDvQHMkCuyvVuPFWFQfPW4s/edit#heading=h.63dlt3i5leh

- The Shell.qml changes are to allow the screen to be locked even though the tutorial is running (but still not when the wizard is running).

- The TutorialLeft.qml changes are to avoid the launcher being stuck in a pulled-out state when the greeter is locked during the tutorial.

 * 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

 * 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?
 NA

 * If you changed the UI, has there been a design review?
 No, but it's a simple change requested by them.

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

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

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

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2178
http://jenkins.qa.ubuntu.com/job/unity8-ci/7251/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/6403
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/666/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1956
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/659
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1851
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1851
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/658
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/657
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4908
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6414
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6414/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/27459
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/343/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/664
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/664/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/27458

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7251/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

What's the reason for the changes in qml/Tutorial/TutorialLeft.qml ? Seem a bit unrelated to me at first sight?

Also, lots of failing tests.

review: Needs Information
Revision history for this message
Michael Terry (mterry) wrote :

The reason for the TutorialLeft changes is that now that a user can lock the screen, if the launcher is bouncing out when the user locks it, it can get stuck that way (visible on lockscreen). This just makes sure that when the tutorial is paused (i.e. the lockscreen is up), we reset the animation to 0.

Failing tests due to this branch? I'll investigate and see what's up.

Revision history for this message
Michael Terry (mterry) wrote :

OK, I think I fixed the tests (they had previously used a user with a pin set which hadn't mattered since the lockscreen was skipped during the tutorial, but now it does matter, so I switched to a user without a pin).

Plus, I fixed one test and some logic to keep the animation correctly paused while a user drags the launcher.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

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

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

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2179
http://jenkins.qa.ubuntu.com/job/unity8-ci/7271/
Executed test runs:
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/6437/console
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/686/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1976
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/679
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1871
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1871
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/678
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/677
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4927/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6448
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6448/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/27521
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/354/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/684
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/684/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/27520

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7271/rebuild

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

OK, pulled a little bit more from the tutorial-redesign, in order to fix the rest of the tests and keep internal Greeter state more consistent after the wizard closes.

See the MP description for a bit more explanation of the changes.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

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

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

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2181
http://jenkins.qa.ubuntu.com/job/unity8-ci/7282/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/6458
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/697/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1987
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/690
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1882
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1882
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/689
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/688
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4940
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6469
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6469/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/27555
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/359/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/695
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/695/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/27554

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7282/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

If i lock the screen after doing the pull of the launcher i.e. in the "There are the shortcuts to favorite apps" step, the launcher is not shown after unlokcing, i guess we should fix this? What do you think?

review: Needs Fixing
Revision history for this message
Michael Terry (mterry) wrote :

Great point, didn't notice that. Fixed in this branch by re-showing the launcher in this case.

May look *slightly* odd to see it animating in, but it looked better to me than instantly showing it on the screen. And (a) this whole tutorial is temporary, to be replaced soon and (b) this is an odd case.

So I didn't feel like optimizing.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2182
https://unity8-jenkins.ubuntu.com/job/lp-unity8-1-ci/413/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/559
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay/181
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial/181
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/582
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/600
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/600
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/595
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/595/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/595
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/595/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/595
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/595/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/595
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/595/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/595
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/595/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/595
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/595/artifact/output/*zip*/output.zip

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

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2182
http://jenkins.qa.ubuntu.com/job/unity8-ci/7348/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/6541
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/763/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/2053
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/756
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1948
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1948
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/755
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/754
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4992
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6552
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6552/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/27718
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/399/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/761
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/761/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/27719

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7348/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

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

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

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

review: Approve
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2183
https://unity8-jenkins.ubuntu.com/job/lp-unity8-1-ci/457/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/612
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay/193
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial/193
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/635
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/653
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/653
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/649
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/649/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/649
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/649/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/649
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/649/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/649
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/649/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/649
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/649/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/649
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/649/artifact/output/*zip*/output.zip

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

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

FAILED: Continuous integration, rev:2183
http://jenkins.qa.ubuntu.com/job/unity8-ci/7389/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/6593
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/804/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/2094
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/797
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1989
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1989
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/796
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/795
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/5013
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6604
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/6604/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/27790
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/412/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/802
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/802/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/27791

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7389/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
MichaƂ Sawicz (saviq) wrote :

This breaks:
unity8.shell.tests.test_tutorial.TutorialTestCase.test_complete_tutorial

https://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/5013/

review: Needs Fixing
Revision history for this message
Albert Astals Cid (aacid) wrote :

Text conflict in qml/Greeter/Greeter.qml
Text conflict in qml/Tutorial/TutorialContent.qml
Text conflict in qml/Tutorial/TutorialLeft.qml
Contents conflict in qml/Tutorial/TutorialLeftFinish.qml
Text conflict in tests/qmltests/Tutorial/tst_Tutorial.qml
5 conflicts encountered.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Terry (mterry) wrote :

Oh, we don't need this anymore, since tutorial-redesign landed. I'll mark this MP rejected.

Unmerged revisions

2183. By Michael Terry

Merge from trunk

2182. By Michael Terry

Show launcher in LeftFinish screen after a lock/unlock

2181. By Michael Terry

Fix whitespace

2180. By Michael Terry

Actually tear down greeter when force unlocked (to keep it unlocked until shown)

2179. By Michael Terry

Fix tests

2178. By Michael Terry

Allow re-locking screen even if tutorial is running

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/Greeter/Greeter.qml'
--- qml/Greeter/Greeter.qml 2016-01-11 17:37:02 +0000
+++ qml/Greeter/Greeter.qml 2016-02-22 13:27:59 +0000
@@ -160,6 +160,14 @@
160 return false;160 return false;
161 }161 }
162 }162 }
163
164 function checkForcedUnlock() {
165 if (forcedUnlock && shown && loader.item) {
166 // pretend we were just authenticated
167 loader.item.notifyAuthenticationSucceeded();
168 loader.item.hide();
169 }
170 }
163 }171 }
164172
165 onLauncherOffsetChanged: {173 onLauncherOffsetChanged: {
@@ -168,13 +176,6 @@
168 }176 }
169 }177 }
170178
171 onForcedUnlockChanged: {
172 if (forcedUnlock && shown) {
173 // pretend we were just authenticated
174 loader.item.notifyAuthenticationSucceeded();
175 }
176 }
177
178 onRequiredChanged: {179 onRequiredChanged: {
179 if (required) {180 if (required) {
180 d.waiting = true;181 d.waiting = true;
@@ -182,6 +183,12 @@
182 }183 }
183 }184 }
184185
186 onForcedUnlockChanged: d.checkForcedUnlock()
187
188 Component.onCompleted: {
189 d.checkForcedUnlock();
190 }
191
185 GSettings {192 GSettings {
186 id: greeterSettings193 id: greeterSettings
187 schema.id: "com.canonical.Unity8.Greeter"194 schema.id: "com.canonical.Unity8.Greeter"
188195
=== modified file 'qml/Shell.qml'
--- qml/Shell.qml 2016-01-28 18:25:14 +0000
+++ qml/Shell.qml 2016-02-22 13:27:59 +0000
@@ -405,7 +405,7 @@
405 hides: [launcher, panel.indicators]405 hides: [launcher, panel.indicators]
406 tabletMode: shell.usageScenario != "phone"406 tabletMode: shell.usageScenario != "phone"
407 launcherOffset: launcher.progress407 launcherOffset: launcher.progress
408 forcedUnlock: tutorial.running408 forcedUnlock: wizard.active
409 background: wallpaperResolver.background409 background: wallpaperResolver.background
410410
411 // avoid overlapping with Launcher's edge drag area411 // avoid overlapping with Launcher's edge drag area
@@ -462,7 +462,7 @@
462462
463 onStatusChanged: {463 onStatusChanged: {
464 if (Powerd.status === Powerd.Off && reason !== Powerd.Proximity &&464 if (Powerd.status === Powerd.Off && reason !== Powerd.Proximity &&
465 !callManager.hasCalls && !tutorial.running) {465 !callManager.hasCalls && !wizard.active) {
466 // We don't want to simply call greeter.showNow() here, because466 // We don't want to simply call greeter.showNow() here, because
467 // that will take too long. Qt will delay button event467 // that will take too long. Qt will delay button event
468 // handling until the greeter is done loading and may think the468 // handling until the greeter is done loading and may think the
469469
=== modified file 'qml/Tutorial/TutorialContent.qml'
--- qml/Tutorial/TutorialContent.qml 2015-08-25 07:25:26 +0000
+++ qml/Tutorial/TutorialContent.qml 2016-02-22 13:27:59 +0000
@@ -76,6 +76,7 @@
76 objectName: "tutorialLeftFinish"76 objectName: "tutorialLeftFinish"
77 anchors.fill: parent77 anchors.fill: parent
78 textXOffset: root.launcher.panelWidth78 textXOffset: root.launcher.panelWidth
79 launcher: root.launcher
79 paused: !shown || root.paused80 paused: !shown || root.paused
80 text: i18n.tr("Tap here to continue.")81 text: i18n.tr("Tap here to continue.")
8182
8283
=== modified file 'qml/Tutorial/TutorialLeft.qml'
--- qml/Tutorial/TutorialLeft.qml 2015-07-21 14:38:35 +0000
+++ qml/Tutorial/TutorialLeft.qml 2016-02-22 13:27:59 +0000
@@ -29,7 +29,7 @@
29 textXOffset: root.launcher.x + root.launcher.visibleWidth29 textXOffset: root.launcher.x + root.launcher.visibleWidth
3030
31 Connections {31 Connections {
32 target: root.launcher32 target: root.shown ? root.launcher : null
3333
34 onStateChanged: {34 onStateChanged: {
35 if (root.launcher.state === "visible") {35 if (root.launcher.state === "visible") {
@@ -47,12 +47,14 @@
47 SequentialAnimation {47 SequentialAnimation {
48 id: teaseAnimation48 id: teaseAnimation
49 objectName: "teaseAnimation"49 objectName: "teaseAnimation"
50 paused: running && root.paused50 paused: running && (slider.active || root.launcher.visibleWidth > 0)
51 running: !slider.active && root.launcher.visibleWidth === 0 && root.shown51 running: !root.paused && root.shown
52 loops: Animation.Infinite52 loops: Animation.Infinite
53 property real bounce: 053 property real bounce: 0
54 readonly property real maxBounce: units.gu(2)54 readonly property real maxBounce: units.gu(2)
5555
56 onRunningChanged: bounce = 0
57
56 UbuntuNumberAnimation {58 UbuntuNumberAnimation {
57 target: teaseAnimation59 target: teaseAnimation
58 property: "bounce"60 property: "bounce"
5961
=== modified file 'qml/Tutorial/TutorialLeftFinish.qml'
--- qml/Tutorial/TutorialLeftFinish.qml 2015-07-15 15:07:19 +0000
+++ qml/Tutorial/TutorialLeftFinish.qml 2016-02-22 13:27:59 +0000
@@ -21,10 +21,15 @@
21TutorialPage {21TutorialPage {
22 id: root22 id: root
2323
24 property var launcher
25
24 title: i18n.tr("These are the shortcuts to favorite apps")26 title: i18n.tr("These are the shortcuts to favorite apps")
25 text: i18n.tr("Tap here to continue.")27 text: i18n.tr("Tap here to continue.")
26 fullTextWidth: true28 fullTextWidth: true
2729
30 // Make sure launcher is shown, even after screen is locked/unlocked
31 onPausedChanged: if (!paused) launcher.switchToNextState("visible")
32
28 foreground {33 foreground {
29 children: [34 children: [
30 LocalComponents.Tick {35 LocalComponents.Tick {
3136
=== modified file 'tests/qmltests/Greeter/tst_Greeter.qml'
--- tests/qmltests/Greeter/tst_Greeter.qml 2016-01-11 17:37:02 +0000
+++ tests/qmltests/Greeter/tst_Greeter.qml 2016-02-22 13:27:59 +0000
@@ -328,9 +328,15 @@
328 LightDM.Greeter.active = true;328 LightDM.Greeter.active = true;
329329
330 greeter.forcedUnlock = true;330 greeter.forcedUnlock = true;
331 compare(view.locked, false);331 compare(greeter.required, false);
332 greeter.forcedUnlock = false;332 greeter.forcedUnlock = false;
333333
334 // Now recover from tearing down the view above
335 LightDM.Greeter.showGreeter();
336 tryCompare(greeter, "required", true);
337 tryCompare(greeter, "waiting", false);
338 view = findChild(greeter, "testView");
339
334 selectUser("no-password");340 selectUser("no-password");
335 tryCompare(view, "locked", false);341 tryCompare(view, "locked", false);
336 selectUser("has-password");342 selectUser("has-password");
337343
=== modified file 'tests/qmltests/Tutorial/tst_Tutorial.qml'
--- tests/qmltests/Tutorial/tst_Tutorial.qml 2015-09-02 07:42:27 +0000
+++ tests/qmltests/Tutorial/tst_Tutorial.qml 2016-02-22 13:27:59 +0000
@@ -47,8 +47,8 @@
4747
48 Component.onCompleted: {48 Component.onCompleted: {
49 // must set the mock mode before loading the Shell49 // must set the mock mode before loading the Shell
50 LightDM.Greeter.mockMode = "single-pin";50 LightDM.Greeter.mockMode = "single";
51 LightDM.Users.mockMode = "single-pin";51 LightDM.Users.mockMode = "single";
52 shellLoader.active = true;52 shellLoader.active = true;
53 }53 }
5454
@@ -331,24 +331,28 @@
331331
332 // Wait for launcher to be really out there332 // Wait for launcher to be really out there
333 tryCompareFunction(function() {return launcher.x > teaseAnimation.maxBounce/2}, true);333 tryCompareFunction(function() {return launcher.x > teaseAnimation.maxBounce/2}, true);
334 verify(!teaseAnimation.paused);
334 verify(teaseAnimation.running);335 verify(teaseAnimation.running);
335336
336 // Start a drag, make sure animation stops337 // Start a drag, make sure animation stops
337 touchFlick(shell, 0, halfHeight, units.gu(4), halfHeight, true, false);338 touchFlick(shell, 0, halfHeight, units.gu(4), halfHeight, true, false);
338 verify(!teaseAnimation.running);339 verify(teaseAnimation.paused);
340 verify(teaseAnimation.running);
339 verify(launcher.visibleWidth > 0);341 verify(launcher.visibleWidth > 0);
340 verify(launcher.x > 0);342 verify(launcher.x > 0);
341 compare(launcher.x, teaseAnimation.bounce);343 compare(launcher.x, teaseAnimation.bounce);
342344
343 // Continue drag, make sure we don't create a gap on the left hand side345 // Continue drag, make sure we don't create a gap on the left hand side
344 touchFlick(shell, units.gu(4), halfHeight, shell.width, halfHeight, false, false);346 touchFlick(shell, units.gu(4), halfHeight, shell.width, halfHeight, false, false);
345 verify(!teaseAnimation.running);347 verify(teaseAnimation.paused);
348 verify(teaseAnimation.running);
346 compare(launcher.visibleWidth, launcher.panelWidth);349 compare(launcher.visibleWidth, launcher.panelWidth);
347 compare(launcher.x, 0);350 compare(launcher.x, 0);
348351
349 // Finish and make sure we continue animation352 // Finish and make sure we continue animation
350 touchFlick(shell, shell.width, halfHeight, shell.width, halfHeight, false, true);353 touchFlick(shell, shell.width, halfHeight, shell.width, halfHeight, false, true);
351 tryCompare(teaseAnimation, "running", true);354 tryCompare(teaseAnimation, "paused", false);
355 verify(teaseAnimation.running);
352 }356 }
353357
354 function test_spread() {358 function test_spread() {
355359
=== modified file 'tests/qmltests/tst_Shell.qml'
--- tests/qmltests/tst_Shell.qml 2016-02-12 00:11:28 +0000
+++ tests/qmltests/tst_Shell.qml 2016-02-22 13:27:59 +0000
@@ -565,9 +565,8 @@
565565
566 function test_tabletLeftEdgeDrag_data() {566 function test_tabletLeftEdgeDrag_data() {
567 return [567 return [
568 {tag: "without password", user: "no-password", loggedIn: true, demo: false},568 {tag: "without password", user: "no-password", loggedIn: true},
569 {tag: "with password", user: "has-password", loggedIn: false, demo: false},569 {tag: "with password", user: "has-password", loggedIn: false},
570 {tag: "with demo", user: "has-password", loggedIn: true, demo: true},
571 ]570 ]
572 }571 }
573572
@@ -577,10 +576,6 @@
577576
578 selectUser(data.user)577 selectUser(data.user)
579578
580 AccountsService.demoEdges = data.demo
581 var tutorial = findChild(shell, "tutorial");
582 tryCompare(tutorial, "running", data.demo);
583
584 swipeFromLeftEdge(shell.width * 0.75)579 swipeFromLeftEdge(shell.width * 0.75)
585 wait(500) // to give time to handle dash() signal from Launcher580 wait(500) // to give time to handle dash() signal from Launcher
586 confirmLoggedIn(data.loggedIn)581 confirmLoggedIn(data.loggedIn)
@@ -1170,6 +1165,24 @@
1170 compare(tutorialLeft, null); // should be destroyed with tutorial1165 compare(tutorialLeft, null); // should be destroyed with tutorial
1171 }1166 }
11721167
1168 function test_wizardHidesGreeter() {
1169 setLightDMMockMode("single-pin");
1170 loadShell("phone");
1171
1172 var wizard = findChild(shell, "wizard");
1173 var greeter = findChild(shell, "greeter");
1174
1175 Wizard.System.wizardEnabled = true;
1176 verify(wizard.active);
1177 tryCompare(greeter, "shown", false);
1178
1179 Wizard.System.wizardEnabled = false;
1180 verify(!wizard.active);
1181 verify(!greeter.shown); // stays hidden
1182
1183 compare(sessionSpy.count, 1);
1184 }
1185
1173 function test_tutorialPausedDuringGreeter() {1186 function test_tutorialPausedDuringGreeter() {
1174 loadShell("phone");1187 loadShell("phone");
11751188
11761189
=== modified file 'tests/qmltests/tst_ShellWithPin.qml'
--- tests/qmltests/tst_ShellWithPin.qml 2016-01-19 19:46:01 +0000
+++ tests/qmltests/tst_ShellWithPin.qml 2016-02-22 13:27:59 +0000
@@ -270,28 +270,6 @@
270 tryCompare(sessionSpy, "count", 1)270 tryCompare(sessionSpy, "count", 1)
271 }271 }
272272
273 function test_edgeDemoHidesLockscreen() {
274 LightDM.Greeter.showGreeter()
275 sessionSpy.clear()
276 var lockscreen = findChild(shell, "lockscreen")
277
278 tryCompare(lockscreen, "shown", true)
279 AccountsService.demoEdges = true
280 tryCompare(lockscreen, "shown", false)
281
282 var greeter = findChild(shell, "greeter");
283 swipeAwayGreeter(false);
284 tryCompare(greeter, "shown", false);
285 tryCompare(sessionSpy, "count", 1)
286
287 // Lockscreen is only hidden by the edge demo, so if we turn that
288 // off and show greeter again, lockscreen should appear
289 AccountsService.demoEdges = false
290 LightDM.Greeter.showGreeter()
291 lockscreen = findChild(shell, "lockscreen");
292 tryCompare(lockscreen, "shown", true)
293 }
294
295 function test_disabledEdges() {273 function test_disabledEdges() {
296 var launcher = findChild(shell, "launcher")274 var launcher = findChild(shell, "launcher")
297 tryCompare(launcher, "available", true)275 tryCompare(launcher, "available", true)

Subscribers

People subscribed via source and target branches