Merge lp:~carla-sella/ubuntu-rssreader-app/fixing-flaky-test into lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Nicholas Skaggs on 2015-01-30 | ||||
| Approved revision: | 364 | ||||
| Merged at revision: | 360 | ||||
| Proposed branch: | lp:~carla-sella/ubuntu-rssreader-app/fixing-flaky-test | ||||
| Merge into: | lp:~ubuntu-shorts-dev/ubuntu-rssreader-app/trunk | ||||
| Diff against target: |
130 lines (+28/-32) 2 files modified
tests/autopilot/shorts_app/__init__.py (+5/-5) tests/autopilot/shorts_app/tests/test_rssreader.py (+23/-27) |
||||
| To merge this branch: | bzr merge lp:~carla-sella/ubuntu-rssreader-app/fixing-flaky-test | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve on 2015-01-30 | |
| Nicholas Skaggs | 2015-01-23 | Approve on 2015-01-29 | |
|
Review via email:
|
|||
Commit Message
Autopilot test for rssreader app.
Description of the Change
| Roman Shchekin (mrqtros) wrote : | # |
So simple solution :)
I'll try to "top approve" it, but I don't believe in success...
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
| Carla Sella (carla-sella) wrote : | # |
:) Roman I am working on it, wanted to see what Jenkins would do after my change. I will tell you when I think I have fixed the flaky tests so you can merge, meanwhile wait it's just work in progress, but I need Jenkins to run the changes I make.
| Carla Sella (carla-sella) wrote : | # |
This is just another try, let's see what Jenkins says about it :).
FAILED: Continuous integration, rev:359
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Carla Sella (carla-sella) wrote : | # |
@ Nicholas: What is happening is quite weird, if you look at the video of the failed test: http://
you can see that in Edit feeds page, when changing topic, the test does not click on the new topic "Ubuntu" but clicks on the valueselector thus non changing the topic, so the test fails.
Looks like it does not find the LabelVisual object "Ubuntu", but on desktop the test works fine, so I am a bit puzzled.
I have tried some workarounds thinking it was a timing issue, but looks like it's not so.
What do you think about this ?
Thanks.
Carla
| Carla Sella (carla-sella) wrote : | # |
You can see the problem here: https:/
| Nicholas Skaggs (nskaggs) wrote : | # |
This fails on the desktop for me still, when run in the sandbox. you need to set the screen size to 400x600. By default on your desktop the screen size is larger and the display is different. You could also just run it on the phone to see, but use autopilot3-sandbox, specifying the small screen size to see it.
PASSED: Continuous integration, rev:359
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Nicholas Skaggs (nskaggs) wrote : | # |
Carla, I'm re-running it over and over to see if it's consistent in passing / failing.
FAILED: Continuous integration, rev:359
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PASSED: Continuous integration, rev:359
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
FAILED: Continuous integration, rev:359
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
FAILED: Continuous integration, rev:359
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Nicholas Skaggs (nskaggs) wrote : | # |
Are you able to figure out why this still occasionally fails?
FAILED: Continuous integration, rev:359
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Nicholas Skaggs (nskaggs) wrote : | # |
I see it's consistent with:
Traceback (most recent call last):
File "/usr/lib/
"FeedCompon
File "/usr/lib/
return self.select_
File "/usr/lib/
raise StateNotFoundEr
autopilot.
| Roman Shchekin (mrqtros) wrote : | # |
Nick, we already solved it (in little bit hacky way), take a look:
https:/
PASSED: Continuous integration, rev:361
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Nicholas Skaggs (nskaggs) wrote : | # |
Going to re-run this several more times.
FAILED: Continuous integration, rev:361
http://
Executed test runs:
UNSTABLE: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Nicholas Skaggs (nskaggs) wrote : | # |
LGTM! You've solved the timing issue with the waitfor.
PASSED: Continuous integration, rev:361
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PASSED: Continuous integration, rev:361
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PASSED: Continuous integration, rev:361
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Nicholas Skaggs (nskaggs) wrote : | # |
Last little bit is working now. I approve (again, hehe).
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILED: Continuous integration, rev:363
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Nicholas Skaggs (nskaggs) wrote : | # |
Carla, bah flake8 failures. Can you fix and I or Roman will re-approve?
- 364. By Carla Sella on 2015-01-30
-
Fixed pyflakes and pep8.
| Carla Sella (carla-sella) wrote : | # |
Nicholas, should be ok now.
PASSED: Continuous integration, rev:364
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://


PASSED: Continuous integration, rev:358 91.189. 93.70:8080/ job/ubuntu- rssreader- app-ci/ 305/ 91.189. 93.70:8080/ job/generic- mediumtests- vivid/822 91.189. 93.70:8080/ job/generic- mediumtests- vivid/822/ artifact/ work/output/ *zip*/output. zip 91.189. 93.70:8080/ job/ubuntu- rssreader- app-vivid- amd64-ci/ 30
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/ubuntu- rssreader- app-ci/ 305/rebuild
http://