[tahoe-lafs-trac-stream] [Tahoe-LAFS] #1852: test suite: find a way to prevent unclean reactor errors causing subsequent test failures

Tahoe-LAFS trac at tahoe-lafs.org
Wed Jun 25 19:46:43 UTC 2014


#1852: test suite: find a way to prevent unclean reactor errors causing subsequent
test failures
-------------------------+-------------------------------------------------
     Reporter:           |      Owner:  zooko
  davidsarah             |     Status:  new
         Type:  defect   |  Milestone:  soon
     Priority:  normal   |    Version:  1.9.2
    Component:  code     |   Keywords:  test twisted-trial unclean reactor
   Resolution:           |  timeout hang
Launchpad Bug:           |
-------------------------+-------------------------------------------------
Description changed by zooko:

Old description:

> For example, in the 666-accounting branch, if
> {{{test_mutable.Filenode.test_modify_backoffer}}} is reenabled, it will
> fail with an unclean reactor error and subsequent tests will time out.
>
> Probably this is due to some non-obvious sharing of global state between
> tests (it doesn't '''always''' happen that an unclean reactor error
> causes subsequent timeouts).
>
> In any case, it makes it difficult to run the test suite the whole way
> through when some tests cause this problem. One rather brute-force
> solution would be to exit on an unclean reactor error and restart the
> test process from the next test. I can't see a way to do that without
> forking trial, though. Another possibility is to try to use
> [http://twistedmatrix.com/trac/browser/trunk/twisted/test/proto_helpers.py?rev=35925#L364
> twisted.test.proto_helpers.MemoryReactor].

New description:

 For example, in the 666-accounting branch, if
 {{{test_mutable.Filenode.test_modify_backoffer}}} is reenabled, it will
 fail with an unclean reactor error and subsequent tests will time out.

 Probably this is due to some non-obvious sharing of global state between
 tests (it doesn't '''always''' happen that an unclean reactor error causes
 subsequent timeouts).

 In any case, it makes it difficult to run the test suite the whole way
 through when some tests cause this problem. One rather brute-force
 solution would be to exit on an unclean reactor error and restart the test
 process from the next test. I can't see a way to do that without forking
 trial, though. Another possibility is to try to use
 [http://twistedmatrix.com/trac/browser/trunk/twisted/test/proto_helpers.py?rev=35925#L364
 twisted.test.proto_helpers.MemoryReactor].

--

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1852#comment:13>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list