TestTwistedJobRunner.test_timeout fails intermittently
Bug #505913 reported by
Guilherme Salgado
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Jonathan Lange |
Bug Description
As seen on https:/
Locally, I managed to get it to fail just by running 'make build' on a separate LP branch while running that test.
Related branches
lp:~jml/launchpad/test-timeout-505913
- Aaron Bentley (community): Approve
- j.c.sackett (community): Approve
-
Diff: 373 lines (+143/-62)4 files modifiedlib/lp/services/job/runner.py (+45/-11)
lib/lp/services/job/tests/test_job.py (+4/-9)
lib/lp/services/job/tests/test_runner.py (+93/-40)
lib/lp/testing/__init__.py (+1/-2)
tags: | added: spurious-test-failure |
affects: | launchpad → launchpad-foundations |
Changed in launchpad-foundations: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in launchpad: | |
status: | Triaged → In Progress |
assignee: | nobody → Jonathan Lange (jml) |
Changed in launchpad: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
For the record, the error is:
Failure in test lp.services. job.tests. test_runner. TestTwistedJobR unner.test_ timeout slaves/ launchpad/ db-devel/ build/lib/ lp/testing/ __init_ _.py", line 449, in run slaves/ launchpad/ db-devel/ build/lib/ lp/services/ job/tests/ test_runner. py", line 314, in test_timeout assertEqual( 'TimeoutError' , oops.type) slaves/ launchpad/ db-devel/ build/lib/ lp/testing/ __init_ _.py", line 338, in assertEqual python2. 5/unittest. py", line 301, in fail eption, msg
Traceback (most recent call last):
File "/srv/buildbot/
testMethod()
File "/srv/buildbot/
self.
File "/srv/buildbot/
% (message, pformat(a), pformat(b)))
File "/usr/lib/
raise self.failureExc
AssertionError: not equal:
a = 'TimeoutError'
b = 'ProcessTerminated'