[tahoe-dev] Test failure with 1.6.1

Ludovic Courtès ludo at gnu.org
Tue Mar 2 13:44:29 UTC 2010


Hi David-Sarah,

David-Sarah Hopwood
<david-sarah at jacaranda.org> writes:

> Ludovic Courtès wrote:
>> Hello,
>> 
>> I’m seeing this test failure with 1.6.1:
>> 
>> --8<---------------cut here---------------start------------->8---
>> [ERROR]: allmydata.test.test_immutable.Test.test_download_abort_if_too_many_corrupted_shares
>> 
>> Traceback (most recent call last):
>>   File "/nix/store/bjyli4vn66xdr1iy4nd0macgf2qszlrk-python-twisted-8.2.0/lib/python2.6/site-packages/Twisted-8.2.0-py2.6-linux-x86_64.egg/twisted/internet/defer.py", line 106, in maybeDeferred
>>     result = f(*args, **kw)
>>   File "/tmp/nix-build-r96hdx3aqflfpz3n42ahnxr3h47pgb99-tahoe-lafs-1.6.1.drv-0/allmydata-tahoe-1.6.1/src/allmydata/util/pollmixin.py", line 34, in _poll
>>     raise TimeoutError("PollMixin never saw %s return True" % check_f)
>> allmydata.util.pollmixin.TimeoutError: PollMixin never saw <bound method Test._check_connections of <allmydata.test.test_immutable.Test testMethod=test_download_abort_if_too_many_corrupted_shares>> return True
>> ===============================================================================
>> [ERROR]: allmydata.test.test_immutable.Test.test_download_abort_if_too_many_corrupted_shares
>
> Please increase the timeout in test_immutable.py: at line 9 (after the
> 'class Test' declaration and before the test_test_code method), insert
>
>     timeout = 240
>
> and retry the test.

That seems to do the trick [0], but I don’t quite understand why.  Can
you briefly explain?

  [0] http://hydra.nixos.org/job/nixpkgs/trunk/tahoelafs/

> If it works, try using --until-failure, i.e.
>
>     python trial.py --until-failure allmydata.test.test_immutable
>
> (The tests in test_immutable are mostly redundant with those in
> test_hung_server, so if the latter is not failing, it's likely to be
> that the timeout is too short, or there is some other problem just
> with the test code.)

I’m actually testing non-interactively in a Nix build process, so this
approach would be inconvenient for me.

Thanks,
Ludo’.




More information about the tahoe-dev mailing list