← Back to team overview

launchpad-dev team mailing list archive

Re: test_min_time_to_next_builder failing

 

On 03/09/2010 08:48 PM, Aaron Bentley wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm getting test failures in stable.  Both my devel and test machine are
affected.

I've done make clean and make schema, updated my download-cache and my
sourcecode, and still I get test failures.  Can anyone help?  See below:
Hello Aaron,

I am sorry for the trouble you're having with this test. The only reason
I can think of is that the lines that directly precede both failing
tests

        build, bq = find_job(self, 'postgres')
        set_remaining_time_for_running_job(bq, 30)

for some reason did not take effect. I am at a loss to explain why this
would be the case though.

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/abentley/launchpad/stable/eggs/testtools-0.9.2-py2.5.egg/testtools/runtest.py",
line 128, in _run_user
     return fn(*args)
   File
"/home/abentley/launchpad/stable/eggs/testtools-0.9.2-py2.5.egg/testtools/testcase.py",
line 368, in _run_test_method
     testMethod()
   File
"/home/abentley/launchpad/stable/lib/lp/buildmaster/tests/test_buildqueue.py",
line 580, in test_min_time_to_next_builder
     check_mintime_to_builder(self, apg_job, 30)
   File
"/home/abentley/launchpad/stable/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 (120>  30)
- ------------


.

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/abentley/launchpad/stable/eggs/testtools-0.9.2-py2.5.egg/testtools/runtest.py",
line 128, in _run_user
     return fn(*args)
   File
"/home/abentley/launchpad/stable/eggs/testtools-0.9.2-py2.5.egg/testtools/testcase.py",
line 368, in _run_test_method
     testMethod()
   File
"/home/abentley/launchpad/stable/lib/lp/buildmaster/tests/test_buildqueue.py",
line 747, in test_min_time_to_next_builder
     check_mintime_to_builder(self, apg_job, 30)
   File
"/home/abentley/launchpad/stable/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 (120>  30)
- ------------



   Ran 2 tests with 2 failures and 0 errors in 6.800 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.518 seconds.
   Tear down canonical.testing.layers.MemcachedLayer in 5.014 seconds.
   Tear down canonical.testing.layers.DatabaseLayer in 0.193 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)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuWpiEACgkQ0F+nu1YWqI19GACfdFF7X9m9SD0wfIQN7zs4ak99
HlAAn1UuGkji3222Zt5+91DiLO72ko0g
=J1g2
-----END PGP SIGNATURE-----
[..]

Best regards

--
Muharem Hrnjadovic <muharem@xxxxxxxxxx>
Public key id   : B2BBFCFC
Key fingerprint : A5A3 CC67 2B87 D641 103F  5602 219F 6B60 B2BB FCFC



Follow ups

References