[Twisted-Python] Status of Twisted Tests

Python 2.2: =============================================================================== ERROR: testOurServerCmdLineClient (twisted.conch.test.test_conch.SSHTransportTestCase) ------------------------------------------------------------------------------- Traceback: twisted.trial.unittest.FailTest, unexpectedly lost connection <twisted.conch.test.test_conch.SSHTestServer instance at 0x8dc2a5c> [Failure instance: Traceback: twisted.internet.error.ConnectionDone, Connection was closed cleanly. ] /home/buildbot/run/full2.2/Twisted/twisted/python/log.py:53:callWithLogger /home/buildbot/run/full2.2/Twisted/twisted/python/log.py:40:callWithContext /home/buildbot/run/full2.2/Twisted/twisted/python/context.py:52:callWithContext /home/buildbot/run/full2.2/Twisted/twisted/python/context.py:31:callWithContext /home/buildbot/run/full2.2/Twisted/twisted/internet/default.py:521:_doReadOrWrite /home/buildbot/run/full2.2/Twisted/twisted/internet/tcp.py:296:connectionLost /home/buildbot/run/full2.2/Twisted/twisted/conch/test/test_conch.py:334:connectionLost /home/buildbot/run/full2.2/Twisted/twisted/trial/unittest.py:86:fail ------------------------------------------------------------------------------- Python 2.3: =============================================================================== FAILURE: testBasicFunction (twisted.test.test_task.LoopTestCase) ------------------------------------------------------------------------------- Traceback (most recent call last): File "/home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/trial/unittest.py", line 240, in _runPhase stage(*args, **kwargs) File "/home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/trial/unittest.py", line 262, in _main self.runner(self.method) File "/home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/trial/runner.py", line 95, in runTest method() File "/home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/test/test_task.py", line 25, in testBasicFunction self.failUnless(9 <= len(L) <= 11) File "/home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/trial/unittest.py", line 98, in failUnless raise FailTest, message FailTest =============================================================================== FAILURE: testIdleClientDoesDisconnect (twisted.mail.test.test_imap.Timeout) ------------------------------------------------------------------------------- Traceback (most recent call last): File "/home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/trial/unittest.py", line 240, in _runPhase stage(*args, **kwargs) File "/home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/trial/unittest.py", line 262, in _main self.runner(self.method) File "/home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/trial/runner.py", line 95, in runTest method() File "/home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/mail/test/test_imap.py", line 2348, in testIdleClientDoesDisconnect self.failUnless(time.time() - now < 0.4) File "/home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/trial/unittest.py", line 98, in failUnless raise FailTest, message FailTest =============================================================================== ERROR: testOurServerCmdLineClient (twisted.conch.test.test_conch.SSHTransportTestCase) ------------------------------------------------------------------------------- Traceback: twisted.trial.unittest.FailTest, unexpectedly lost connection <twisted.conch.test.test_conch.SSHTestServer instance at 0x40e1492c> [Failure instance: Traceback: twisted.internet.error.ConnectionDone, Connection was closed cleanly. ] /home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/python/log.py:53:callWithLogger /home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/python/log.py:40:callWithContext /home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/python/context.py:52:callWithContext /home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/python/context.py:31:callWithContext /home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/internet/default.py:521:_doReadOrWrite /home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/internet/tcp.py:296:connectionLost /home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/conch/test/test_conch.py:334:connectionLost /home/buildbot/BuildBot/slave/full2.3/Twisted/twisted/trial/unittest.py:86:fail ------------------------------------------------------------------------------- Python 2.4: testAPileOfThings (twisted.mail.test.test_imap.TLSTestCase) ... /home/buildbot/run/full2.4/Twisted/twisted/internet/tcp.py:531: exceptions.RuntimeWarning: startTLS with unwritten buffered data currently doesn't work right. See issue #686. Closing connection. command timed out: 1200 seconds without output, killing pid 10997 process killed by signal 9 program finished with exit code -1 OS X: =============================================================================== ERROR: testOurServerCmdLineClient (twisted.conch.test.test_conch.SSHTransportTestCase) ------------------------------------------------------------------------------- Traceback: twisted.trial.unittest.FailTest, unexpectedly lost connection <twisted.conch.test.test_conch.SSHTestServer instance at 0x220c3c8> [Failure instance: Traceback: twisted.internet.error.ConnectionDone, Connection was closed cleanly. ] /Users/buildbot/Buildbot/twisted/OSX-full2.3/Twisted/twisted/python/log.py:53:callWithLogger /Users/buildbot/Buildbot/twisted/OSX-full2.3/Twisted/twisted/python/log.py:40:callWithContext /Users/buildbot/Buildbot/twisted/OSX-full2.3/Twisted/twisted/python/context.py:52:callWithContext /Users/buildbot/Buildbot/twisted/OSX-full2.3/Twisted/twisted/python/context.py:31:callWithContext /Users/buildbot/Buildbot/twisted/OSX-full2.3/Twisted/twisted/internet/default.py:521:_doReadOrWrite /Users/buildbot/Buildbot/twisted/OSX-full2.3/Twisted/twisted/internet/tcp.py:296:connectionLost /Users/buildbot/Buildbot/twisted/OSX-full2.3/Twisted/twisted/conch/test/test_conch.py:334:connectionLost /Users/buildbot/Buildbot/twisted/OSX-full2.3/Twisted/twisted/trial/unittest.py:86:fail ------------------------------------------------------------------------------- Win32Reactor: =============================================================================== FAILURE: testWriter (twisted.test.test_tcp.LargeBufferTestCase) ------------------------------------------------------------------------------- Traceback (most recent call last): File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line 240, in _runPhase stage(*args, **kwargs) File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line 262, in _main self.runner(self.method) File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\runner.py", line 95, in runTest method() File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\test\test_tcp.py", line 696, in testWriter self.failUnless(clientF.done, "client didn't see connection dropped") File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line 98, in failUnless raise FailTest, message FailTest: client didn't see connection dropped =============================================================================== FAILURE: test_loseConnection (twisted.test.test_wprocess.ProcessOnWin32TestCase) ------------------------------------------------------------------------------- Traceback (most recent call last): File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line 240, in _runPhase stage(*args, **kwargs) File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line 262, in _main self.runner(self.method) File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\runner.py", line 95, in runTest method() File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\test\test_wprocess.py", line 103, in test_loseConnection self._dieDieDie(diefunc = 'loseConnection') File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\test\test_wprocess.py", line 122, in _dieDieDie self.failUnless(actual.startswith('1\r\n')) File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line 98, in failUnless raise FailTest, message FailTest =============================================================================== ERROR: test_bad_exit (twisted.test.test_wprocess.ProcessOnWin32TestCase) ------------------------------------------------------------------------------- Traceback (most recent call last): File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line 240, in _runPhase stage(*args, **kwargs) File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line 262, in _main self.runner(self.method) File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\runner.py", line 95, in runTest method() File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\test\test_wprocess.py", line 38, in test_bad_exit reason = util.wait(self.deferred)['reason'] File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\util.py", line 78, in wait result.raiseException() File "d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\python\failure.py", line 242, in raiseException raise self.value.__class__, self.value, self.tb TimeoutError: Callback timed out =============================================================================== ERROR: test_err_python (twisted.test.test_wprocess.ProcessOnWin32TestCase) ------------------------------------------------------------------------------- Traceback: twisted.internet.defer.AlreadyCalledError, d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\internet\defer.py:326:_runCallbacks d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\internet\wprocess.py:120:connectionLost d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\test\test_wprocess.py:21:processEnded d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\internet\defer.py:240:callback d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\internet\defer.py:287:_startRunCallbacks ------------------------------------------------------------------------------- Additionally, Could not import twisted.conch.test.test_sftp: Traceback: exceptions.ImportError, No module named fcntl d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py:344:addModule d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\python\reflect.py:344:namedModule d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\conch\test\test_sftp.py:1:? d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\conch\unix.py:8:? d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\internet\process.py:33:? d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\internet\fdesc.py:15:? This bodes ill of a 2.0 release in the foreseeable future. If you have recently committed broken code, please fix it or revert it (or I may do it for you). We have a sandbox and svn has reasonably good branch support. Use 'em. Jp

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The two below must be my broken test code. I will investigate. Someone should look at the sftp thing and make it .skip'd for Windows, since it imports fcntl. C Jp Calderone wrote: | | Win32Reactor: | | FAILURE: test_loseConnection | (twisted.test.test_wprocess.ProcessOnWin32TestCase) | ------------------------------------------------------------------------------- | | Traceback (most recent call last): | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line | 240, in _runPhase | stage(*args, **kwargs) | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line | 262, in _main | self.runner(self.method) | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\runner.py", line 95, | in runTest | method() | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\test\test_wprocess.py", | line 103, in test_loseConnection | self._dieDieDie(diefunc = 'loseConnection') | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\test\test_wprocess.py", | line 122, in _dieDieDie | self.failUnless(actual.startswith('1\r\n')) | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line | 98, in failUnless | raise FailTest, message | FailTest | =============================================================================== | | ERROR: test_bad_exit (twisted.test.test_wprocess.ProcessOnWin32TestCase) | ------------------------------------------------------------------------------- | | Traceback (most recent call last): | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line | 240, in _runPhase | stage(*args, **kwargs) | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line | 262, in _main | self.runner(self.method) | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\runner.py", line 95, | in runTest | method() | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\test\test_wprocess.py", | line 38, in test_bad_exit | reason = util.wait(self.deferred)['reason'] | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\util.py", line 78, in | wait | result.raiseException() | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\python\failure.py", line | 242, in raiseException | raise self.value.__class__, self.value, self.tb | TimeoutError: Callback timed out | =============================================================================== | | ERROR: test_err_python (twisted.test.test_wprocess.ProcessOnWin32TestCase) | ------------------------------------------------------------------------------- | | Traceback: twisted.internet.defer.AlreadyCalledError, | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\internet\defer.py:326:_runCallbacks | | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\internet\wprocess.py:120:connectionLost | | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\test\test_wprocess.py:21:processEnded | | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\internet\defer.py:240:callback | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\internet\defer.py:287:_startRunCallbacks | | ------------------------------------------------------------------------------- Someone please .skip this:.... | | Additionally, | | Could not import twisted.conch.test.test_sftp: Traceback: | exceptions.ImportError, No module named fcntl | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py:344:addModule | | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\python\reflect.py:344:namedModule | | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\conch\test\test_sftp.py:1:? | d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\conch\unix.py:8:? | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\internet\process.py:33:? | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\internet\fdesc.py:15:? | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBUzoq3A5SrXAiHQcRAv/uAJ41y7B3r1ZvKkF3Wq3lHOK8cA7R2wCdHXhM NomMhNIfvDKTeCcBCji2KHU= =My8x -----END PGP SIGNATURE-----

On Sep 23, 2004, at 3:00 PM, Jp Calderone wrote:
Since this one appeared to be my fault I investigated it, and found the following: The test is highly sensitive to what order events come back. It wants them in the following order: 1) The pipe from the SSH client subprocess has the data "goodbye" appear on it. 2) The ssh server's connection to the client gets closed. 3) The ssh client process dies However, with my buffering change, *sometimes* (not always) the following happens instead: 1) The ssh server's connection to the client gets closed. 2) The pipe from the SSH client subprocess has the data "goodbye" appear on it. 3) The ssh client process dies It seems to me that this ordering change could have happened before, as there is nothing that guarantees the ordering of data sent over different sockets. So, I think this is a bug in the test.
*No* idea why this would show up only in Py 2.4...if anyone could help out here.. James

On Sep 23, 2004, at 5:37 PM, James Y Knight wrote:
Okay, figured it out. Submitted as Python bug #1033720 <http://www.python.org/sf/1033720> print str(buffer(buffer("asdf", 0), 0, 131072)) On Python < 2.4, this prints 'asdf' as it should. On Python 2.4, this prints '', as it most certainly *should not*. It may have something to do with: Python 2.4a2 (#61, Sep 9 2004, 22:24:36)
vs. Python 2.3.4 (#2, Jul 5 2004, 09:15:05)
buffer("asdf", 0) <read-only buffer for 0x402194a0, ptr 0x402194b4, size 4 at 0x40219460>
James

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The two below must be my broken test code. I will investigate. Someone should look at the sftp thing and make it .skip'd for Windows, since it imports fcntl. C Jp Calderone wrote: | | Win32Reactor: | | FAILURE: test_loseConnection | (twisted.test.test_wprocess.ProcessOnWin32TestCase) | ------------------------------------------------------------------------------- | | Traceback (most recent call last): | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line | 240, in _runPhase | stage(*args, **kwargs) | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line | 262, in _main | self.runner(self.method) | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\runner.py", line 95, | in runTest | method() | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\test\test_wprocess.py", | line 103, in test_loseConnection | self._dieDieDie(diefunc = 'loseConnection') | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\test\test_wprocess.py", | line 122, in _dieDieDie | self.failUnless(actual.startswith('1\r\n')) | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line | 98, in failUnless | raise FailTest, message | FailTest | =============================================================================== | | ERROR: test_bad_exit (twisted.test.test_wprocess.ProcessOnWin32TestCase) | ------------------------------------------------------------------------------- | | Traceback (most recent call last): | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line | 240, in _runPhase | stage(*args, **kwargs) | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py", line | 262, in _main | self.runner(self.method) | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\runner.py", line 95, | in runTest | method() | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\test\test_wprocess.py", | line 38, in test_bad_exit | reason = util.wait(self.deferred)['reason'] | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\util.py", line 78, in | wait | result.raiseException() | File "d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\python\failure.py", line | 242, in raiseException | raise self.value.__class__, self.value, self.tb | TimeoutError: Callback timed out | =============================================================================== | | ERROR: test_err_python (twisted.test.test_wprocess.ProcessOnWin32TestCase) | ------------------------------------------------------------------------------- | | Traceback: twisted.internet.defer.AlreadyCalledError, | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\internet\defer.py:326:_runCallbacks | | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\internet\wprocess.py:120:connectionLost | | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\test\test_wprocess.py:21:processEnded | | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\internet\defer.py:240:callback | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\internet\defer.py:287:_startRunCallbacks | | ------------------------------------------------------------------------------- Someone please .skip this:.... | | Additionally, | | Could not import twisted.conch.test.test_sftp: Traceback: | exceptions.ImportError, No module named fcntl | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\trial\unittest.py:344:addModule | | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\python\reflect.py:344:namedModule | | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\conch\test\test_sftp.py:1:? | d:\Program Files\buildslave\W32-full2.2\Twisted\twisted\conch\unix.py:8:? | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\internet\process.py:33:? | d:\Program | Files\buildslave\W32-full2.2\Twisted\twisted\internet\fdesc.py:15:? | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBUzoq3A5SrXAiHQcRAv/uAJ41y7B3r1ZvKkF3Wq3lHOK8cA7R2wCdHXhM NomMhNIfvDKTeCcBCji2KHU= =My8x -----END PGP SIGNATURE-----

On Sep 23, 2004, at 3:00 PM, Jp Calderone wrote:
Since this one appeared to be my fault I investigated it, and found the following: The test is highly sensitive to what order events come back. It wants them in the following order: 1) The pipe from the SSH client subprocess has the data "goodbye" appear on it. 2) The ssh server's connection to the client gets closed. 3) The ssh client process dies However, with my buffering change, *sometimes* (not always) the following happens instead: 1) The ssh server's connection to the client gets closed. 2) The pipe from the SSH client subprocess has the data "goodbye" appear on it. 3) The ssh client process dies It seems to me that this ordering change could have happened before, as there is nothing that guarantees the ordering of data sent over different sockets. So, I think this is a bug in the test.
*No* idea why this would show up only in Py 2.4...if anyone could help out here.. James

On Sep 23, 2004, at 5:37 PM, James Y Knight wrote:
Okay, figured it out. Submitted as Python bug #1033720 <http://www.python.org/sf/1033720> print str(buffer(buffer("asdf", 0), 0, 131072)) On Python < 2.4, this prints 'asdf' as it should. On Python 2.4, this prints '', as it most certainly *should not*. It may have something to do with: Python 2.4a2 (#61, Sep 9 2004, 22:24:36)
vs. Python 2.3.4 (#2, Jul 5 2004, 09:15:05)
buffer("asdf", 0) <read-only buffer for 0x402194a0, ptr 0x402194b4, size 4 at 0x40219460>
James
participants (3)
-
Cory Dodt
-
James Y Knight
-
Jp Calderone