Merge lp:~dobey/pay-ui/adt-run-ap into lp:pay-ui
| Status: | Merged |
|---|---|
| Approved by: | dobey on 2015-02-13 |
| Approved revision: | 111 |
| Merged at revision: | 99 |
| Proposed branch: | lp:~dobey/pay-ui/adt-run-ap |
| Merge into: | lp:pay-ui |
| Diff against target: |
507 lines (+226/-106) 9 files modified
CMakeLists.txt (+83/-66) HACKING (+62/-5) backend/CMakeLists.txt (+4/-0) cmake/Click.cmake (+0/-17) manifest.json.in (+20/-3) payui_payui.desktop.in.in (+1/-1) tests/autopilot/pay_ui/tests/__init__.py (+50/-12) tests/autopilot/pay_ui/tests/mock_server.py (+3/-1) tests/autopilot/pay_ui/tests/test_pay_ui.py (+3/-1) |
| To merge this branch: | bzr merge lp:~dobey/pay-ui/adt-run-ap |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Leo Arias (community) | Approve on 2015-02-13 | ||
| PS Jenkins bot | continuous-integration | Approve on 2015-02-13 | |
| Charles Kerr (community) | 2015-02-11 | Approve on 2015-02-12 | |
|
Review via email:
|
|||
Commit Message
Enable autopkgtest integration for autopilot tests.
Description of the Change
This branch is a pretty big set of changes to accomplish the goal of running autopilot tests with autopkgtest. There are still some additional changes which need to happen, so the tests can be run on actual devices or emulators where Mir is running, and there are some issues still with a click event for the "Buy Now" button not making it through to the application. I will file separate bugs for these.
There are instructions for how to build and test this in the HACKING file.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:108
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Leo Arias (elopio) wrote : | # |
The HACKING file is gold, thanks for that.
I just don't understand why you need to get the deb from https:/
Wouldn't it be enough to apt-get update and upgrade?
436 + import logging
437 + logger = logging.getLogger()
438 + logger.error('Error getting arch triplet: %s' % e)
439 + return ''
Here I would make the logger a global variable, and use it more. It would be useful to log the method you are using to launch the app, for example.
You could use the autopilot decorator, like in http://
Also, I don't understand why are you returning '' instead of raising the exception. Will it work with '' instead of the arch?
I think I might found something useful related to the skipped tests. I removed the skip in one, and I got the same error when doing make autopilot as when running on the qemu with adt-run:
http://
When I do make autopilot, I have some seconds while the test is waiting for the expected results. There I hit the buy button many times, and nothing happens. So, maybe it has nothing to do with qemu. Does the same happen to you?
And finally, your branch is not passing flake8. Some of the errors come from before, so maybe that could be fixed in a different branch. And it would be useful to add the check as part of the build process.
I'm not good for reviewing the cmake files. I'll just take a look there to see if I can learn something.
Thanks dobey!
| dobey (dobey) wrote : | # |
On Thu, 2015-02-12 at 03:45 +0000, Leo Arias wrote:
> The HACKING file is gold, thanks for that.
> I just don't understand why you need to get the deb from
> https:/
> Wouldn't it be enough to apt-get update and upgrade?
If you are running the latest devel version of Ubuntu, then yes apt-get
update will work. But if you are on 14.04 for example, then you need to
grab it manually.
>
> 436 + import logging
> 437 + logger = logging.getLogger()
> 438 + logger.error('Error getting arch triplet: %s' % e)
> 439 + return ''
>
> Here I would make the logger a global variable, and use it more. It
> would be useful to log the method you are using to launch the app, for
> example.
Ended up just removing the logging in favor of just raising always in
the places where logging was used.
> You could use the autopilot decorator, like in
> http://
I don't quite understand what that is doing exactly. Seems perhaps not
needed here though.
> Also, I don't understand why are you returning '' instead of raising
> the exception. Will it work with '' instead of the arch?
Was just playing it safe because I don't want autopilot to explode when
plausible error conditions come up. But I just remembered unittest traps
the exception as a failure anyway, so I just got rid of the logging
there, and let it raise naturally.
> I think I might found something useful related to the skipped tests. I
> removed the skip in one, and I got the same error when doing make
> autopilot as when running on the qemu with adt-run:
>
> http://
>
> When I do make autopilot, I have some seconds while the test is
> waiting for the expected results. There I hit the buy button many
> times, and nothing happens. So, maybe it has nothing to do with qemu.
> Does the same happen to you?
Thanks for poking at this. I see what's happening there now, and have
filed bug #1421277 for this.
> And finally, your branch is not passing flake8. Some of the errors
> come from before, so maybe that could be fixed in a different branch.
> And it would be useful to add the check as part of the build process.
I've fixed the pep8/pyflakes warnings that came up from running the
versions I have installed.
[1421277] https:/
| dobey (dobey) wrote : | # |
Also just filed bug #1421343 about static checking not being done on the Python code. I think it should be fixed in another branch.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:110
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Leo Arias (elopio) wrote : | # |
237 +We output the image to ~/ rather than the current directory, so it will in
238 +a safer place to avoid rebuilding images every time. You can store it in any
There's a typo here. Should be:
so it will BE in a safer place
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:111
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

PASSED: Continuous integration, rev:106 jenkins. qa.ubuntu. com/job/ pay-ui- ci/119/ jenkins. qa.ubuntu. com/job/ generic- click-builder- vivid-armhf/ 306 jenkins. qa.ubuntu. com/job/ pay-ui- vivid-amd64- ci/16 jenkins. qa.ubuntu. com/job/ pay-ui- vivid-armhf- ci/16 jenkins. qa.ubuntu. com/job/ pay-ui- vivid-armhf- ci/16/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ pay-ui- vivid-i386- ci/16
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/pay- ui-ci/119/ rebuild
http://