Merge lp:~josharenson/unity8/qa_helpers into lp:unity8
| Status: | Merged |
|---|---|
| Approved by: | Albert Astals Cid on 2015-05-12 |
| Approved revision: | 1767 |
| Merged at revision: | 1823 |
| Proposed branch: | lp:~josharenson/unity8/qa_helpers |
| Merge into: | lp:unity8 |
| Diff against target: |
620 lines (+238/-166) 12 files modified
qml/Greeter/ShimGreeter.qml (+45/-0) qml/Shell.qml (+56/-43) qml/Stages/ShimStage.qml (+44/-0) tests/autopilot/unity8/application_lifecycle/tests/__init__.py (+2/-2) tests/autopilot/unity8/greeter/__init__.py (+52/-0) tests/autopilot/unity8/indicators/tests/__init__.py (+1/-1) tests/autopilot/unity8/process_helpers.py (+9/-96) tests/autopilot/unity8/shell/tests/test_emulators.py (+2/-2) tests/autopilot/unity8/shell/tests/test_notifications.py (+22/-22) tests/qmltests/Tutorial/tst_Tutorial.qml (+1/-0) tests/qmltests/tst_Shell.qml (+2/-0) tests/qmltests/tst_ShellWithPin.qml (+2/-0) |
| To merge this branch: | bzr merge lp:~josharenson/unity8/qa_helpers |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Zanetti (community) | Abstain on 2015-06-19 | ||
| Albert Astals Cid (community) | 2015-05-06 | Abstain on 2015-05-12 | |
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-05-12 | |
| Leo Arias (community) | Approve on 2015-05-08 | ||
|
Review via email:
|
|||
Commit Message
Refactor greeter emulator to unlock the greeter via dbus
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
| Leo Arias (elopio) wrote : | # |
Thanks Josh.
A couple of things.
The idea is to use these helpers before autopilot comes to play, so it's better to keep them at the module level instead of getting them as methods in the greeter autopilot custom proxy object.
The namespace of helpers is currently a little mess, so I would put them in tests/autopilot
https:/
Next, I think we can remove the other part of unlock calling wait_for_greeter. But I'm not quite sure about this.
Take a look at my diff: http://
Be warned that I didn't have time to run it, so my assumptions might be wrong or I might have left a stupid mistake.
Last think, please make sure that the code you touch passes the static checks. Call:
python3 -m flake8 .
I'm leaving for lunch, but I'll have time later and tomorrow, in case you need me.
| Josh Arenson (josharenson) wrote : | # |
Added a way to lock the greeter via dbus too. Makes everything simpler and eliminates a bit of namespace pollution. The wait_for_greeter check is just run in reverse for the lock. The few manual test I ran seemed ok.
| Leo Arias (elopio) wrote : | # |
Cool! Even more than what I asked for.
You have these flake8 errors:
http://
And you can now remove the unity_proxy_obj argument from:
67 def unlock_
120 def lock_unity(
| Josh Arenson (josharenson) wrote : | # |
Fixed :-)
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1762
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1764
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Leo Arias (elopio) wrote : | # |
oh crap. Removing the argument from unlock caused a lot of failures from the tests that were passing it.
| Josh Arenson (josharenson) wrote : | # |
> oh crap. Removing the argument from unlock caused a lot of failures from the
> tests that were passing it.
Humm so add an unused arg or refactor everything... I'll try the refactor first and see how ugly it gets.
| Josh Arenson (josharenson) wrote : | # |
Refactored.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1766
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Josh Arenson (josharenson) wrote : | # |
> FAILED: Continuous integration, rev:1766
> http://
> Executed test runs:
> UNSTABLE: http://
> touch/2688
> SUCCESS: http://
> vivid/856
> SUCCESS: http://
> SUCCESS: http://
> UNSTABLE: http://
> vivid-mako/2325
> SUCCESS: http://
> vivid-armhf/2686
> deb: http://
> vivid-armhf/
> SUCCESS: http://
>
> Click here to trigger a rebuild:
> http://
The failed AP test runs just fine locally...
| Albert Astals Cid (aacid) wrote : | # |
* Did you perform an exploratory manual test run of the code change and any related functionality?
If it's good for Leo it's good for us
* Did CI run pass?
Known broken AP test
* Did you make sure that the branch does not contain spurious tags?
Yes
| Albert Astals Cid (aacid) wrote : | # |
Text conflict in tests/autopilot
Text conflict in tests/autopilot
2 conflicts encountered.
- 1767. By Josh Arenson on 2015-05-12
-
Resolved merge conflicts
[ Albert Astals Cid ]
* Make runtests fake a test error if make fails
* Make the test more stable
* Use dbus-test-runner instead of dbus-launch
* DirectionalDragArea: improvements & API grooming (LP: #1417920)
* Fix EdgeDragEvaluator when a drag can happen both ways
(Direction.Horizontal)
[ Josh Arenson ]
* Remove panelHeight property as it is unused.
[ Leo Arias ]
* Initial clean up of the autopilot tests set up. Removed the touch
device from the test case. Moved the restart of unity to a fixture.
Removed the unused DragMixin. Updated the setUpClass to use
process_helpers. Removed the workaround for bug #1238417, already
fixed. Use the toolkit helper to set the testability environment
variable. Fixed the indicators base class that was restarting unity
twice. (LP: #1238417, #1447206)
* Use the base class from the toolkit in autopilot tests.
[ Michael Zanetti ]
* emit application-stop when we're going down (LP: #1326513)
[ Michał Sawicz ]
* UNITY_SCOPES_LIST is no more
[ handsome_feng<email address hidden> ]
* When click the favorite scope in Dash Manager , it just return to
the corresponding scope page. (LP: #1447056)
| Josh Arenson (josharenson) wrote : | # |
Resolved and striped tags.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1767
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1767
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1768. By Josh Arenson on 2015-06-16
-
* No-change rebuild against Qt 5.4.2.
[ Michał Sawicz ]
* Implement full-shell rotation (LP: #1210199)
[ CI Train Bot ]
* New rebuild forced.
* Resync trunk.
[ Daniel d'Andrada ]
* Implemented autopilot-test and fake-sensors for shell-rotation.
[ Mirco Müller ]
* Implemented autopilot-test and fake-sensors for shell-rotation.
[ CI Train Bot ]
* New rebuild forced.
* Resync trunk.
[ Renato Araujo Oliveira Filho ]
* Set the device led color to green. (LP: #1450894)
[ Albert Astals Cid ]
* Add overrides to override functions
* Implement "rating-edit" preview widget (LP: #1318144)
* Make the DashContent::test_mainNavig ation test more stable (LP:
#1450809)
* Use art height as implicitHeight when the header is overlayed and
there's no summary
[ CI Train Bot ]
* New rebuild forced.
* Resync trunk.
[ Daniel d'Andrada ]
* Introducing FloatingFlickable
* Make Ubuntu.Gestures components install TouchRegistry by themselves
[ Michael Terry ]
* Fix a possible crash in our PAM threading code. (LP: #1425362) (LP:
#1425362)
* Fix the lockscreen becoming unresponsive after testing an app on the
device from QtCreator. (LP: #1435364)
[ Nick Dedekind ]
* Fixed desktop stage app focus.
* Fixed issue in laggy indicator autpilot tests (LP: #1446846)
[ Albert Astals Cid ]
* Workarounds for concierge mode.
[ CI Train Bot ]
* New rebuild forced.
* Resync trunk.

FAILED: Continuous integration, rev:1760 jenkins. qa.ubuntu. com/job/ unity8- ci/5681/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 2648 jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- vivid/846 jenkins. qa.ubuntu. com/job/ unity8- vivid-amd64- ci/846 jenkins. qa.ubuntu. com/job/ unity8- vivid-i386- ci/846 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 2289 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2646 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2646/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 20233
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/5681/ rebuild
http://