[Zope3-dev] ZEO test failing under Cygwin

Godefroid Chapelle gotcha at swing.be
Wed Aug 13 15:16:15 EDT 2003


It's a long time that I did not pursue the research to make tests run fully 
on Cygwin.


if I use the following code in /src/zodb/zeo/zrpc/client.py,
with two supplementary lines

             try:
                 r, w, x = select.select([], connecting, connecting, 1.0)
                 log.info("CT: select() %d, %d, %d" % tuple(map(len, (r,w,x))))
             except select.error, msg:
                 # XXX Is error the right level?
                 log.error("CT: select failed; msg=%s", msg)
                 continue
             # Exceptable wrappers are in trouble; close these suckers
             for wrap in x:
                 if wrap in w:                             #added by GC 
following Tim advice
                     w.remove(wrap)                   #added by GC 
following Tim advice
                 log.info("CT: closing troubled socket %s", str(wrap.addr))
                 del wrappers[wrap]
                 wrap.close()



all but 1 zodb/zeo tests pass as you can see hereunder :

======================================================================
FAIL: testSecondBeginFails (<class 
'zodb.zeo.tests.test_zeo.MappingStorageTests'
 >)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/cygdrive/c/zope3/src/zodb/zeo/tests/threadtests.py", line 143, in 
testS
econdBeginFails
     thread2.join()
   File "/cygdrive/c/zope3/src/zodb/zeo/tests/threadtests.py", line 39, in join
     assert not self.isAlive()
AssertionError

----------------------------------------------------------------------
Ran 114 tests in 999.123s

FAILED (failures=1)


The log for the test which does not pass is hereunder :

2003-08-13T14:04:24 INFO root testZEO: setUp() <class 
'zodb.zeo.tests.test_zeo.MappingStorageTests'>.testSecondBeginFails
------
2003-08-13T14:04:31 WARNING ZCS.1444 ClientStorage (pid=1444) created 
RW/normal for storage: '1'
------
2003-08-13T14:04:31 WARNING ZEC.1 ClientCache: storage='1', size=20000000; 
file[0]=None
------
2003-08-13T14:04:31 INFO root zrpc:1444: CM.connect(): starting ConnectThread
------
2003-08-13T14:04:31 INFO root zrpc:1444: CT: attempting to connect on 1 sockets
------
2003-08-13T14:04:31 INFO root zrpc:1444: CW: attempt to connect to 
('localhost', 26895)
------
2003-08-13T14:04:31 INFO root zrpc:1444: CW: connect_ex(('localhost', 
26895)) returned EINPROGRESS
------
2003-08-13T14:04:31 INFO root zrpc:1444: CT: select() 0, 1, 0
------
2003-08-13T14:04:31 INFO root zrpc:1444: CW: connect_ex(('localhost', 
26895)) returned EISCONN
------
2003-08-13T14:04:31 WARNING ZCS.1444 Testing connection <ManagedConnection 
('127.0.0.1', 26895)>
------
2003-08-13T14:04:31 WARNING root zrpc:1444: zrpc-conn:localhost:26895: 
received handshake 'Z400'
------
2003-08-13T14:04:31 INFO ZCS.1444 Client authentication successful
------
2003-08-13T14:04:31 WARNING ZCS.1444 Connected to storage: 
('bubblen-hts-800', 26895)
------
2003-08-13T14:04:31 INFO ZCS.1444 Verifying cache
------
2003-08-13T14:04:31 WARNING ZEC.1 _read_header: short record at 12 in (fdopen)
------
2003-08-13T14:04:31 WARNING ZCS.1444 Waiting for cache verification to finish
------
2003-08-13T14:04:31 WARNING ZCS.1444 Wait for cache verification to finish
------
2003-08-13T14:04:31 INFO root zrpc:1444: zrpc-conn:localhost:26895: calling 
endVerify()
------
2003-08-13T14:04:31 INFO ZCS.1444 endVerify finishing
------
2003-08-13T14:04:31 INFO ZCS.1444 endVerify finished
------
2003-08-13T14:04:31 INFO root zrpc:1444: CM.connect_done(preferred=1)
------
2003-08-13T14:04:31 INFO root zrpc:1444: CT: exiting thread: Connect([(2, 
('localhost', 26895))])
------
2003-08-13T14:04:33 INFO root zrpc:1444: CM.close_conn()
------
2003-08-13T14:04:33 ERROR ZCS.1444 Disconnected from storage
------

As the z3 community is getting bigger, some people with windows only like 
me begin to join.
It would help a lot to have the full test suite running under Cygwin as 
this would allow us
to say them to use this convenient setup (cfr for example, make clean, 
make, make test).
--

Godefroid Chapelle

BubbleNet sprl
rue Victor Horta, 18 / 202
1348 Louvain-la-Neuve
Belgium

Tel + 32 (10) 459901

TVA 467 093 008
RC Niv 49849




More information about the Zope3-dev mailing list