Spurious test failure in TestCaptureOops.test_two_oops_gives_two_detail

Bug #908799 reported by Curtis Hovey
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

test_two_oops_gives_two_details will fail intermittently.

I ran the following command repeatedly in my locate environment and saw 1/3 failures.
    ./bin/test -vvc --layer='[^de]FunctionalLayer' -t TestCaptureOops -t canonical.testing.ftests

I discovered this after moving webapp to lp.services and got an error I could only reproduce by creating a similar test order.
I see that webapp tests are still played before the failing test (lp.services.webapp and lp.testing), I do not think the interaction problem is between webapp and testing, maybe this this webapp playing after other test?

======================================================================
FAILURE: lp.testing.tests.test_testcase.TestCaptureOops.test_two_oops_gives_two_details (subunit.RemotedTestCase)
----------------------------------------------------------------------
_StringException: Text attachment: traceback
------------
Traceback (most recent call last):
_StringException: oops-0: {{{
Oops-Id: OOPS-9fc00ba1b2ecd2e36ee745ce8b7c2a21
Exception-Type: AssertionError
Exception-Value: Exception to get a traceback.
Date: 2011-12-26T04:23:45.524505+00:00
Branch: test
Revision: 14602
Duration: -1
Oops-Reporter: T

Traceback (most recent call last):
  Module lp.testing.tests.test_testcase, line 77, in trigger_oops
    raise AssertionError("Exception to get a traceback.")
AssertionError: Exception to get a traceback.
}}}

Traceback (most recent call last):
  File "/var/launchpad/test/lib/lp/testing/tests/test_testcase.py", line 101, in test_two_oops_gives_two_details
    sorted([a for a in self.getDetails() if "oops" in a]))
AssertionError: ['oops-0', 'oops-1'] != ['oops-0']

Revision history for this message
Curtis Hovey (sinzui) wrote :
tags: added: build-infrastructure
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.