GNU bug report logs - #35311
Python 2 test failures: test_httplib test_urllib2_localnet

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Thu, 18 Apr 2019 01:50:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35311 in the body.
You can then email your comments to 35311 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#35311; Package guix. (Thu, 18 Apr 2019 01:50:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 18 Apr 2019 01:50:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: Python 2 test failures: test_httplib test_urllib2_localnet
Date: Wed, 17 Apr 2019 21:49:12 -0400
Building 'python2' on the core-updates branch, I've seen these two test
failures (non-deterministic), although the first one comes up quite
steadily on my system:

--8<---------------cut here---------------start------------->8---
;; This buffer is for text that is not saved, and for Lisp evaluation.
;; To create a file, visit it with C-x C-f and enter text in its buffer.

test test_urllib2_localnet produced unexpected output:
**********************************************************************
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 35092)
----------------------------------------

**********************************************************************
Traceback (most recent call last):
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", linek
    self.process_request(request, client_address)
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", linet
    self.finish_request(request, client_address)
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", linet
    self.RequestHandlerClass(request, client_address, self)
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", line_
    self.handle()
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/BaseHTTPServer.py", lie
    self.handle_one_request()
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/BaseHTTPServer.py", lit
    self.raw_requestline = self.rfile.readline(65537)
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/socket.py", line 480, e
    data = self._sock.recv(self._rbufsize)
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/ssl.py", line 754, in v
    return self.read(buflen)
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/ssl.py", line 641, in d
    v = self._sslobj.read(len)
error: [Errno 104] Connection reset by peer

# This one is much harder to get:

test test_httplib produced unexpected output:
**********************************************************************
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 60648)
----------------------------------------

**********************************************************************
Traceback (most recent call last):
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", linek
    self.process_request(request, client_address)
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", linet
    self.finish_request(request, client_address)
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", linet
    self.RequestHandlerClass(request, client_address, self)
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/SocketServer.py", line_
    self.handle()
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/BaseHTTPServer.py", lie
    self.handle_one_request()
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/BaseHTTPServer.py", lit
    self.raw_requestline = self.rfile.readline(65537)
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/socket.py", line 480, e
    data = self._sock.recv(self._rbufsize)
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/ssl.py", line 754, in v
    return self.read(buflen)
  File "/tmp/guix-build-python2-2.7.16.drv-0/Python-2.7.16/Lib/ssl.py", line 641, in d
    v = self._sslobj.read(len)
error: [Errno 104] Connection reset by peer
--8<---------------cut here---------------end--------------->8---

It seems to be related to OpenSSL bump to 1.1.1b, although strangely
Python 3 seems unaffected.  It is potentially fixed by:
https://github.com/python/cpython/commit/529525fb5a8fd9b96ab4021311a598c77588b918,
but hasn't been backported to Python 2 as of 2019/04/17.

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#35311; Package guix. (Fri, 19 Apr 2019 08:34:02 GMT) Full text and rfc822 format available.

Message #8 received at 35311 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 35311 <at> debbugs.gnu.org
Subject: Re: bug#35311: Python 2 test failures: test_httplib
 test_urllib2_localnet
Date: Fri, 19 Apr 2019 10:33:29 +0200
Hi Maxim,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:

> Building 'python2' on the core-updates branch, I've seen these two test
> failures (non-deterministic), although the first one comes up quite
> steadily on my system:

I confirm that this has been preventing ‘core-updates’ evaluations from
happening for a while (apparently
circa dd7ce8643a28f5d633c5f3124de6be897cd5065f):

  https://berlin.guixsd.org/jobset/core-updates-core-updates

Ludo’.




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Fri, 19 Apr 2019 13:46:03 GMT) Full text and rfc822 format available.

Notification sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
bug acknowledged by developer. (Fri, 19 Apr 2019 13:46:03 GMT) Full text and rfc822 format available.

Message #13 received at 35311-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 35311-done <at> debbugs.gnu.org
Subject: Re: bug#35311: Python 2 test failures: test_httplib
 test_urllib2_localnet
Date: Fri, 19 Apr 2019 09:45:41 -0400
Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi Maxim,
>
> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:
>
>> Building 'python2' on the core-updates branch, I've seen these two test
>> failures (non-deterministic), although the first one comes up quite
>> steadily on my system:
>
> I confirm that this has been preventing ‘core-updates’ evaluations from
> happening for a while (apparently
> circa dd7ce8643a28f5d633c5f3124de6be897cd5065f):
>
>   https://berlin.guixsd.org/jobset/core-updates-core-updates
>
> Ludo’.

Hello, I pushed commit e337061b3a on core-updates, which fixes this.

Closing.

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#35311; Package guix. (Fri, 19 Apr 2019 14:55:02 GMT) Full text and rfc822 format available.

Message #16 received at 35311-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 35311-done <at> debbugs.gnu.org
Subject: Re: bug#35311: Python 2 test failures: test_httplib
 test_urllib2_localnet
Date: Fri, 19 Apr 2019 16:54:24 +0200
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> Hi Maxim,
>>
>> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:
>>
>>> Building 'python2' on the core-updates branch, I've seen these two test
>>> failures (non-deterministic), although the first one comes up quite
>>> steadily on my system:
>>
>> I confirm that this has been preventing ‘core-updates’ evaluations from
>> happening for a while (apparently
>> circa dd7ce8643a28f5d633c5f3124de6be897cd5065f):
>>
>>   https://berlin.guixsd.org/jobset/core-updates-core-updates
>>
>> Ludo’.
>
> Hello, I pushed commit e337061b3a on core-updates, which fixes this.

Awesome, thank you!

The build farm is busy building this right now.  :-)

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 18 May 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 338 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.