SharedWakelock test unstable

Bug #1541854 reported by Michał Sawicz on 2016-02-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtmir (Ubuntu)
High
Gerry Boland

Bug Description

The SharedWakelock test is unstable, leading to FTBFS all to often:

https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/landing-057/+build/8964129

Excerpts from the above:

[ RUN ] SharedWakelockTest.acquireCreatesAWakelock
unknown file: Failure
C++ exception with description "Process [python3] for service [com.canonical.powerd] failed to appear on bus" thrown in the test fixture's constructor.
[ FAILED ] SharedWakelockTest.acquireCreatesAWakelock (6026 ms)

[==========] 14 tests from 1 test case ran. (23928 ms total)
[ PASSED ] 13 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] SharedWakelockTest.acquireCreatesAWakelock

Related branches

Gerry Boland (gerboland) wrote :

Link points to a passing build.

That test was reliable on the old s-jenkins CI system, and hasn't changed in months. It's using dbusmock-qt5 in an uncontroversial way. No idea why it fails now. dbusmock-qt5 issue?

Michał Sawicz (saviq) wrote :

Fixed the link. The test doesn't fail on CI, but rather on builders, so it might be simply a timing issue.

description: updated
description: updated
Gerry Boland (gerboland) wrote :

Link still pointing to good build.

"Process [python3] for service [com.canonical.powerd] failed to appear on bus" - dbustest-qt5 tries to bring up a mock dbus server, and the unit test sits and waits for it to appear. The wait time is 30 seconds, which should be more than enough (like, a second or 2 is needed at most).

I'll ask Pete Woods to comment further, in case he has ideas

Gerry Boland (gerboland) wrote :

I mis-spoke, wait time is 5 seconds. That might be too short, will propose MP increasing it

Gerry Boland (gerboland) on 2016-02-08
Changed in qtmir:
assignee: nobody → Gerry Boland (gerboland)
status: Triaged → In Progress
Gerry Boland (gerboland) wrote :

Fix landed, closing

Changed in qtmir:
status: In Progress → Fix Released
Michał Sawicz (saviq) on 2017-03-13
affects: qtmir → qtmir (Ubuntu)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers