[Bug 1780767] Re: Some tests are flaky due to timeout
Launchpad Bug Tracker
1780767 at bugs.launchpad.net
Mon Nov 12 17:27:14 UTC 2018
This bug was fixed in the package apport - 2.20.9-0ubuntu7.5
---------------
apport (2.20.9-0ubuntu7.5) bionic; urgency=medium
* apport/ui.py: when using ubuntu-bug properly handle executables which
start with /snap/bin. (LP: #1760220)
* test/test_ui_gtk.py: Increase the timeout so that when the autopkgtest
infrastructure is busy the tests should not fail. (LP: #1780767)
-- Brian Murray <brian at ubuntu.com> Fri, 02 Nov 2018 08:19:37 -0700
** Changed in: apport (Ubuntu Bionic)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1780767
Title:
Some tests are flaky due to timeout
Status in apport package in Ubuntu:
Fix Released
Status in apport source package in Bionic:
Fix Released
Bug description:
The autopkgtests are sometimes passing, sometimes stuck for more than 2h:
http://autopkgtest.ubuntu.com/packages/apport/cosmic/amd64.
It's blocking randomly on different tests.
All tests that are stucked, implements closing a request via a timeout
(and then, executing "run"). The bet is that the timeout is short
enough (1s) so that, when autopkgtests infra is busy, time to execute
the bash subcommand is taking more than a second, and so "dismissing"
is ran before execution happens and the whole testsuite hangs.
There are few instances of setting this timeout function:
$ grep eout_add_sec test/*
test/test_ui_gtk.py: GLib.timeout_add_seconds(1, cont)
test/test_ui_gtk.py: GLib.timeout_add_seconds(1, cont)
test/test_ui_gtk.py: GLib.timeout_add_seconds(1, cont)
test/test_ui_gtk.py: GLib.timeout_add_seconds(1, c)
test/test_ui_gtk.py: GLib.timeout_add_seconds(1, c)
Short term solution could be to increase the timeout. Long term would
be to eliminate this potential race implementing cancelling
differently.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1780767/+subscriptions
More information about the foundations-bugs
mailing list