← Back to team overview

launchpad-dev team mailing list archive

Re: test_min_time_to_next_builder failing

 

Fails for me too, but with a much bigger number.

Aaron suggested it may be a time zone issue.


Running tests at level 1                                                                                                                                                       
Running canonical.testing.layers.LaunchpadZopelessLayer tests:                                                                                                                 
  Set up canonical.testing.layers.BaseLayer in 0.001 seconds.                                                                                                                  
  Set up canonical.testing.layers.ZopelessLayer in 3.228 seconds.                                                                                                              
  Set up canonical.testing.layers.DatabaseLayer in 0.289 seconds.                                                                                                              
  Set up canonical.testing.layers.LibrarianLayer in 0.002 seconds.                                                                                                             
  Set up canonical.testing.layers.MemcachedLayer in 0.005 seconds.                                                                                                             
  Set up canonical.testing.layers.LaunchpadLayer in 0.000 seconds.                                                                                                             
  Set up canonical.testing.layers.LaunchpadScriptLayer in 0.001 seconds.                                                                                                       
  Set up canonical.testing.layers.LaunchpadZopelessLayer in 0.000 seconds.                                                                                                     
  Running:                                                                                                                                                                     
 test_min_time_to_next_builder 
(lp.buildmaster.tests.test_buildqueue.TestMinTimeToNextBuilder)                                                                                 

Failure in test test_min_time_to_next_builder 
(lp.buildmaster.tests.test_buildqueue.TestMinTimeToNextBuilder)
Traceback (most recent call last):                                                                           
_StringException: Text attachment: traceback                                                                 
------------                                                                                                 
Traceback (most recent call last):                                                                           
  File "/home/tim/src/lp/devel/eggs/testtools-0.9.2-
py2.5.egg/testtools/runtest.py", line 128, in _run_user  
    return fn(*args)                                                                                         
  File "/home/tim/src/lp/devel/eggs/testtools-0.9.2-
py2.5.egg/testtools/testcase.py", line 368, in _run_test_method
    testMethod()                                                                                                   
  File "/home/tim/src/lp/devel/lib/lp/buildmaster/tests/test_buildqueue.py", 
line 559, in test_min_time_to_next_builder
    check_mintime_to_builder(self, apg_job, 300)                                                                       
  File "/home/tim/src/lp/devel/lib/lp/buildmaster/tests/test_buildqueue.py", 
line 109, in check_mintime_to_builder     
    % (delay, min_time))                                                                                               
  File "/usr/lib/python2.5/unittest.py", line 309, in failUnless                                                       
    if not expr: raise self.failureException, msg
AssertionError: Wrong min time to next available builder (47099 > 300)
------------



 test_min_time_to_next_builder 
(lp.buildmaster.tests.test_buildqueue.TestMinTimeToNextBuilderMulti)

Failure in test test_min_time_to_next_builder 
(lp.buildmaster.tests.test_buildqueue.TestMinTimeToNextBuilderMulti)
Traceback (most recent call last):
_StringException: Text attachment: traceback
------------
Traceback (most recent call last):
  File "/home/tim/src/lp/devel/eggs/testtools-0.9.2-
py2.5.egg/testtools/runtest.py", line 128, in _run_user
    return fn(*args)
  File "/home/tim/src/lp/devel/eggs/testtools-0.9.2-
py2.5.egg/testtools/testcase.py", line 368, in _run_test_method
    testMethod()
  File "/home/tim/src/lp/devel/lib/lp/buildmaster/tests/test_buildqueue.py", 
line 726, in test_min_time_to_next_builder
    check_mintime_to_builder(self, apg_job, 660)
  File "/home/tim/src/lp/devel/lib/lp/buildmaster/tests/test_buildqueue.py", 
line 109, in check_mintime_to_builder
    % (delay, min_time))
  File "/usr/lib/python2.5/unittest.py", line 309, in failUnless
    if not expr: raise self.failureException, msg
AssertionError: Wrong min time to next available builder (47459 > 660)
------------



  Ran 2 tests with 2 failures and 0 errors in 4.342 seconds.
Tearing down left over layers:
  Tear down canonical.testing.layers.LaunchpadZopelessLayer in 0.000 seconds.
  Tear down canonical.testing.layers.LaunchpadScriptLayer ... not supported
  Tear down canonical.testing.layers.ZopelessLayer ... not supported
  Tear down canonical.testing.layers.LaunchpadLayer in 0.000 seconds.
  Tear down canonical.testing.layers.LibrarianLayer in 0.002 seconds.
  Tear down canonical.testing.layers.MemcachedLayer in 0.000 seconds.
  Tear down canonical.testing.layers.DatabaseLayer in 0.017 seconds.
  Tear down canonical.testing.layers.BaseLayer in 0.000 seconds.

Tests with failures:
   test_min_time_to_next_builder 
(lp.buildmaster.tests.test_buildqueue.TestMinTimeToNextBuilder)
   test_min_time_to_next_builder 
(lp.buildmaster.tests.test_buildqueue.TestMinTimeToNextBuilderMulti)



References