[Selftest BUG] bzrlib.selftest.testremotebranch.TestFetch fails on Cygwin

John Arbash Meinel john at arbash-meinel.com
Thu Sep 22 16:38:50 BST 2005


Alexander Belchenko wrote:
> Test bzrlib.selftest.testremotebranch.TestFetch fail on Cygwin with
> following traceback. Am I missing some modules on Cygwin?
> 
> $ ./bzr selftest > test.log
> bzr: running tests...
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/SocketServer.py", line 222, in handle_request
>     self.process_request(request, client_address)
>   File "/usr/lib/python2.4/SocketServer.py", line 241, in process_request
>     self.finish_request(request, client_address)
>   File "/usr/lib/python2.4/SocketServer.py", line 254, in finish_request
>     self.RequestHandlerClass(request, client_address, self)
>   File "/usr/lib/python2.4/SocketServer.py", line 521, in __init__
>     self.handle()
>   File "/usr/lib/python2.4/BaseHTTPServer.py", line 314, in handle
>     self.handle_one_request()
>   File "/usr/lib/python2.4/BaseHTTPServer.py", line 297, in
> handle_one_request
>     self.raw_requestline = self.rfile.readline()
>   File "/usr/lib/python2.4/socket.py", line 340, in readline
>     data = self._sock.recv(self._rbufsize)
> error: (11, 'Resource temporarily unavailable')
> bzr: tests failed
> 

It isn't just cygwin, it also happens with Mac OSX. What happens is that
you are getting the EAGAIN flag from the operating system, which is not
handled by the SimpleHTTPRequestHandler.
In my split-storage-2 branch, I rewrote the handler slightly so that it
will retry EAGAIN failures.

I also decreased the socket timeout value, because in my split-storage
branch, I have enough tests that I spawn about 30+ web servers, and
waiting 30sec for timeouts is longer than the rest of the tests take.

John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http_test_util.diff
Type: text/x-patch
Size: 3333 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050922/5a8f316b/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050922/5a8f316b/attachment.pgp 


More information about the bazaar mailing list