Autopilot sometimes fail to open the toolbar
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu File Manager App |
Incomplete
|
Undecided
|
Unassigned | ||
Ubuntu UI Toolkit |
Won't Fix
|
Undecided
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Saucy |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
After some more weirds error by jenkins, we noticed that the failed tests tend to have in their log that they failed to open the toolbar.
I ran the toolbar test around 300 times on saucy with no error. Then I ran them on my mako phone and it failed like 1 out of 30 times. The failure is really weird. I set a breakpoint when the toolbar failed to open and I got something like this:
02:54:15.621 DEBUG _uinput:365 - Dragging from 384,1279 to 384,1218
(didn't open)
> /home/phablet/
-> return toolbar
(Pdb) self.pointing_
02:54:45.867 DEBUG _uinput:365 - Dragging from 384,1279 to 384,1218
(didn't open)
(Pdb) self.pointing_
02:54:48.701 DEBUG _uinput:365 - Dragging from 384,1279 to 384,1218
(didn't open)
(Pdb) self.pointing_
02:54:50.672 DEBUG _uinput:365 - Dragging from 384,1279 to 384,1218
(didn't open)
(Pdb) self.pointing_
02:54:52.139 DEBUG _uinput:365 - Dragging from 384,1279 to 384,1218
(opened)
So, there's something non-deterministic happening. I repeated the same action a number of times, until it finally worked. And the required number of times was never the same.
The problem might be on the toolkit, on unity or on autopilot.
The test is deterministic, what is flaky is the environment.
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Ubuntu SDK team: Pending requested
-
Diff: 21 lines (+2/-2)1 file modifiedtests/autopilot/ubuntuuitoolkit/emulators.py (+2/-2)
description: | updated |
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Confirmed |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Fix Released → Confirmed |
Changed in ubuntu-filemanager-app: | |
status: | New → Incomplete |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Confirmed → Won't Fix |
Changed in ubuntu-ui-toolkit: | |
status: | Confirmed → Won't Fix |
I found a way to improve this, and now the failure is a lot less often on my device, and also the code looks more correct. /code.launchpad .net/~elopio/ ubuntu- ui-toolkit/ drag_toolbar/ +merge/ 189206
https:/
Still, the real problem is open and it will keep biting us at random times.