possibly non-deterministic test juju.unit.tests.test_lifecycle.UnitRelationLifecycleTest.test_join_hook_error

Bug #963931 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Triaged
Low
Unassigned

Bug Description

Have seen this test fail (on natty) a few times and then succeed later:

[FAIL]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
    result = g.send(result)
  File "/build/buildd/juju-0.5+bzr494/juju/unit/tests/test_lifecycle.py", line 1075, in test_join_hook_error
    self.assertEqual(len(errors), 1)
twisted.trial.unittest.FailTest: not equal:
a = 0
b = 1

juju.unit.tests.test_lifecycle.UnitRelationLifecycleTest.test_join_hook_error
-------------------------------------------------------------------------------
Ran 1799 tests in 189.465s

FAILED (skips=12, failures=1, successes=1786)

Revision history for this message
Kapil Thangavelu (hazmat) wrote : Re: [Bug 963931] [NEW] possibly non-deterministic test juju.unit.tests.test_lifecycle.UnitRelationLifecycleTest.test_join_hook_error

Excerpts from Clint Byrum's message of 2012-03-24 14:35:51 UTC:
> Public bug reported:
>
> Have seen this test fail (on natty) a few times and then succeed later:
>
> [FAIL]
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
> result = g.send(result)
> File "/build/buildd/juju-0.5+bzr494/juju/unit/tests/test_lifecycle.py", line 1075, in test_join_hook_error
> self.assertEqual(len(errors), 1)
> twisted.trial.unittest.FailTest: not equal:
> a = 0
> b = 1
>
>
> juju.unit.tests.test_lifecycle.UnitRelationLifecycleTest.test_join_hook_error
> -------------------------------------------------------------------------------
> Ran 1799 tests in 189.465s
>
> FAILED (skips=12, failures=1, successes=1786)
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>

I've looked over this test to verify its correctness and race free, and run it
10k times on precise without error.

-k

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

It only seems to fail on Natty, and actually I misspoke, it has not succeeded on Natty, hence the PPA being out of date.

Changed in juju:
importance: Undecided → Low
Revision history for this message
Martin Packman (gz) wrote :

From recent 0.5 ppa build, precise worked, oneiric and quantal failed with this error and some other hook related issues.

Precise: <https://code.launchpad.net/~juju/+archive/0.5/+build/4462572>

Quantal: <https://code.launchpad.net/~juju/+archive/0.5/+build/4462573>
Oneiric: <https://code.launchpad.net/~juju/+archive/0.5/+build/4462578>

Changed in juju:
status: New → Confirmed
Curtis Hovey (sinzui)
Changed in juju:
status: Confirmed → Triaged
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.