open_scope frequently fails on vivid

Bug #1461059 reported by Brendan Donegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-system-tests
Fix Committed
Undecided
Sergio Cazzolato
unity8 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

It seems the open_scope('clickscope') calls are frequently failing in vivid. This appears to be due to bad timing, as the primary scope (Today) is not fully loaded when we start trying to swipe, so we end up with:

Traceback (most recent call last):
  File "/tmp/adt-run.X7uiLh/build.uaq/real-tree/ubuntu_system_tests/tests/test_camera.py", line 53, in setUp
    self.camera_app = self._launch_camera_app().main_window
  File "/tmp/adt-run.X7uiLh/build.uaq/real-tree/ubuntu_system_tests/tests/test_camera.py", line 58, in _launch_camera_app
    apps_scope = dash.open_scope('clickscope')
  File "/tmp/adt-run.X7uiLh/deps/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/tmp/adt-run.X7uiLh/deps/usr/lib/python3/dist-packages/unity8/shell/emulators/dash.py", line 88, in open_scope
    return self._open_scope_scrolling(scope_loader)
  File "/tmp/adt-run.X7uiLh/deps/usr/lib/python3/dist-packages/unity8/shell/emulators/dash.py", line 109, in _open_scope_scrolling
    scroll()
  File "/tmp/adt-run.X7uiLh/deps/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/tmp/adt-run.X7uiLh/deps/usr/lib/python3/dist-packages/unity8/shell/emulators/dash.py", line 156, in _scroll_to_right_scope
    self.dash_content_list.currentIndex.wait_for(original_index + 1)
  File "/tmp/adt-run.X7uiLh/deps/usr/lib/python3/dist-packages/autopilot/introspection/types.py", line 180, in wait_for
    failure_msg))
AssertionError: After 10.0 seconds test on QQuickListView.currentIndex failed: 2 != dbus.Int32(1, variant_level=1)

Probably there needs to be a delay or some check to make sure the scope is fully loaded before attempting to swipe.

Related branches

Changed in ubuntu-system-tests:
assignee: nobody → Sergio Cazzolato (sergio-j-cazzolato)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:ubuntu-system-tests at revision 124, scheduled for release in ubuntu-system-tests, milestone Unknown

Changed in ubuntu-system-tests:
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity8 - 8.10+15.10.20150616.1-0ubuntu1

---------------
unity8 (8.10+15.10.20150616.1-0ubuntu1) wily; urgency=medium

  [ Albert Astals Cid ]
  * Bind running to the proper object.visible
  * Do not use template in generated card creator code
  * Fix regression introduced by the concierge change
  * Take into account the extra margin on top when calculating the
    display margin
  * workaround oxide 1.7 issue (LP: #1459142)

  [ CI Train Bot ]
  * New rebuild forced.

  [ Federico Gimenez ]
  * On the autopilot helpers, swipe if the item to open from the dash is
    not visible. unity8-autopilot dependencies now require ubuntu-ui-
    toolkit-autopilot (>= 1.2.1485+15.04.20150417.1-0ubuntu1)

  [ Florian Boucault ]
  * Notifications: shaped icon was stretching the icon instead of
    respecting its aspect ratio and filling the whole shape. (LP:
    #1450229)

  [ Josh Arenson ]
  * Implement bare-bones shellMode=greeter and shellMode=shell

  [ Leo Arias ]
  * On the autopilot helpers, swipe if the item to open from the dash is
    not visible. unity8-autopilot dependencies now require ubuntu-ui-
    toolkit-autopilot (>= 1.2.1485+15.04.20150417.1-0ubuntu1)

  [ Leonardo Arias Fonseca ]
  * On the autopilot helpers, swipe if the item to open from the dash is
    not visible. unity8-autopilot dependencies now require ubuntu-ui-
    toolkit-autopilot (>= 1.2.1485+15.04.20150417.1-0ubuntu1)

  [ Michael Zanetti ]
  * add info on how to run a single function in make test

  [ Richard Huddie ]
  * Slow down the speed of autopilot helpers used to swipe to a
    different scope to improve the reliability. (LP: #1461059, #1457047)

 -- CI Train Bot <email address hidden> Tue, 16 Jun 2015 15:12:59 +0000

Changed in unity8 (Ubuntu):
status: New → Fix Released
Michał Sawicz (saviq)
no longer affects: unity8
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.