AP test failure: unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_middle_click

Bug #1436095 reported by Stephen M. Webb
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Fix Released
Medium
Stephen M. Webb
7.2
Fix Committed
Medium
Stephen M. Webb
unity (Ubuntu)
Fix Released
Medium
Stephen M. Webb
Nominated for Trusty by Christopher Townsend
Trusty
Fix Released
Medium
Stephen M. Webb

Bug Description

[ Impact ]

Failed Autopilot tests are not good.

[ Test Case ]

1. Run 'autopilot run unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_middle_click'
2. Run 'autopilot run unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_close_button_click'
3. Observe that the tests don't fail.

[ Regression Potential ]

None observed.

Debdiff of the SRU is found here: https://bugs.launchpad.net/unity/+bug/886478/+attachment/4401967/+files/unity.7.2.5.debdiff

-----------------------------------------------------------------------------

Original Description:

The following two AP tests consistently ERROR during regular Unity testing.

======================================================================
ERROR: unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_middle_click
----------------------------------------------------------------------
Empty attachments:
  /var/log/syslog

unity-log: {{{WARN 2015-03-24 13:43:02 nux.inputmethod.ibus InputMethodIBus.cpp:63 Impossible to connect to connect to ibus}}}

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 128, in test_scaled_window_closes_on_middle_click
    self.assertWindowIsScaledEquals(target_xid, False)
  File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 68, in assertWindowIsScaledEquals
    self.assertThat(refresh_fn, Eventually(Equals(scaled)))
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 421, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 471, in _matchHelper
    mismatch = matcher.match(matchee)
  File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 113, in match
    wait_fun(self.matcher, self.timeout)
  File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 129, in _callable_wait_for
    new_value = refresh_fn()
  File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 67, in <lambda>
    refresh_fn = lambda: xid in [w.xid for w in self.unity.screen.scaled_windows]
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 520, in __getattr__
    self.refresh_state()
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 474, in refresh_state
    _, new_state = self.get_new_state()
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 564, in get_new_state
    raise StateNotFoundError(self.__class__.__name__, id=self.id)
StateNotFoundError: Object not found with name 'Window' and properties {'id': 148832}.
======================================================================
ERROR: unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_close_button_click
----------------------------------------------------------------------
Empty attachments:
  /var/log/syslog

unity-log: {{{WARN 2015-03-24 14:00:34 nux.inputmethod.ibus InputMethodIBus.cpp:63 Impossible to connect to connect to ibus}}}

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 148, in test_scaled_window_closes_on_close_button_click
    self.assertWindowIsScaledEquals(target_xid, False)
  File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 68, in assertWindowIsScaledEquals
    self.assertThat(refresh_fn, Eventually(Equals(scaled)))
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 421, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 471, in _matchHelper
    mismatch = matcher.match(matchee)
  File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 113, in match
    wait_fun(self.matcher, self.timeout)
  File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 129, in _callable_wait_for
    new_value = refresh_fn()
  File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 67, in <lambda>
    refresh_fn = lambda: xid in [w.xid for w in self.unity.screen.scaled_windows]
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 520, in __getattr__
    self.refresh_state()
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 474, in refresh_state
    _, new_state = self.get_new_state()
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 564, in get_new_state
    raise StateNotFoundError(self.__class__.__name__, id=self.id)
StateNotFoundError: Object not found with name 'Window' and properties {'id': 224517}.
======================================================================

Related branches

Stephen M. Webb (bregma)
Changed in unity:
milestone: none → 7.3.3
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity - 7.3.2+15.04.20150330-0ubuntu1

---------------
unity (7.3.2+15.04.20150330-0ubuntu1) vivid; urgency=medium

  [ Andrea Azzarone ]
  * Do not restore focus if a quicklist is opened during launcher key
    navigation. (LP: #932486)
  * Forward first key event that happens on top of the blank window to
    the lockscreen. (LP: #1308265)
  * Hide launcher to avoid damaging window when not needed. Also make
    sure that pressure effect works fine (previous fix has been reverted
    because of this!). (LP: #1301394)
  * Make sure scope_views_[filter.id] exists before using operator[] on
    it. (LP: #926979)
  * Make sure that signals are auto-desconnected when
    XdndStartStopNotifierImp is destroyed. (LP: #1432231)
  * Release pointer barrier if launcher is in lock_hide state. (LP:
    #1029114)

  [ Sebastien Bacher ]
  * use the new nautilus .desktop name (LP: #1436297)

  [ Stephen M. Webb ]
  * AP tests: accounted for arbitrarily-raised exceptions in checking
    scaled windows (LP: #1436095)
 -- CI Train Bot <email address hidden> Mon, 30 Mar 2015 15:48:47 +0000

Changed in unity (Ubuntu):
status: New → Fix Released
Stephen M. Webb (bregma)
Changed in unity:
status: In Progress → Fix Committed
Changed in unity (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Stephen M. Webb (bregma)
Changed in unity (Ubuntu Trusty):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Stephen M. Webb (bregma)
description: updated
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Stephen, or anyone else affected,

Accepted unity into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/unity/7.2.5+14.04.20150521.1-0ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in unity (Ubuntu Trusty):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Christopher Townsend (townsend) wrote :

I have run these Autopilot tests and do not see failures. Marking verification-done.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity - 7.2.5+14.04.20150521.1-0ubuntu1

---------------
unity (7.2.5+14.04.20150521.1-0ubuntu1) trusty; urgency=medium

  [ Chris Townsend ]
  * Releasing 7.2.5.
  * Bump version to 7.2.5.
  * Use a 2 second delay before showing the first run shortcut hints to
    workaround a race condition on input handling. (LP: #1313597)

  [ Andrea Azzarone ]
  * Add the possibility to specify the font size and the font weight
    without chaning the default font name. (LP: #886478)
  * Do not restore focus if a quicklist is opened during launcher key
    navigation. (LP: #932486)
  * Draw osk above unity shell. (LP: #1413165)
  * Forward first key event that happens on top of the blank window to
    the lockscreen. (LP: #1308265)
  * Make sure scope_views_[filter.id] exists before using operator[] on
    it. (LP: #926979)
  * Release pointer barrier if launcher is in lock_hide state. (LP:
    #1029114)

  [ Brandon Schaefer ]
  * When we quit the quicklist it would check if the mouse was over the
    launcher, if it wasn't it would fold the launcher. We don't need to
    check this if we are in keynav as we want all the icons to be
    unfolded. (LP: #1246891)

  [ CI Train Bot ]
  * New rebuild forced.

  [ Stephen M. Webb ]
  * AP tests: accounted for arbitrarily-raised exceptions in checking
    scaled windows (LP: #1436095)

 -- CI Train Bot <email address hidden> Thu, 21 May 2015 15:07:15 +0000

Changed in unity (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for unity has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Changed in unity:
status: Fix Committed → Fix Released
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.