[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
Sat Nov 10 01:45:58 UTC 2012


#1852: test suite: find a way to prevent unclean reactor errors causing subsequent
test failures
-------------------------------------------------+-------------------------
 Reporter:  davidsarah                           |          Owner:
     Type:  defect                               |  davidsarah
 Priority:  normal                               |         Status:  new
Component:  code                                 |      Milestone:
 Keywords:  test twisted-trial unclean reactor   |  undecided
  timeout hang                                   |        Version:  1.9.2
                                                 |  Launchpad Bug:
-------------------------------------------------+-------------------------
 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>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


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