Debian Bug report logs - #838559
python-pex: tests started to fail on "Connection refused"

version graph

Package: python-pex; Maintainer for python-pex is Barry Warsaw <barry@debian.org>; Source for python-pex is src:python-pex (PTS, buildd, popcon).

Reported by: Martin Pitt <mpitt@debian.org>

Date: Thu, 22 Sep 2016 10:15:02 UTC

Severity: normal

Found in version python-pex/1.1.14-1

Fixed in version python-pex/1.1.14-2

Done: Barry Warsaw <barry@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Barry Warsaw <barry@debian.org>:
Bug#838559; Package python-pex. (Thu, 22 Sep 2016 10:15:06 GMT) (full text, mbox, link).


Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
New Bug report received and forwarded. Copy sent to Barry Warsaw <barry@debian.org>. (Thu, 22 Sep 2016 10:15:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <mpitt@debian.org>
To: Debian BTS Submit <submit@bugs.debian.org>
Subject: python-pex: tests started to fail on "Connection refused"
Date: Thu, 22 Sep 2016 12:10:35 +0200
[Message part 1 (text/plain, inline)]
Package: python-pex
Version: 1.1.14-1
User: autopkgtest-devel@lists.alioth.debian.org
Usertags: autopkgtest

Hello,

python-pex' "execute.sh" autopkgtest started failing:

  https://ci.debian.net/packages/p/python-pex/unstable/amd64/
  http://autopkgtest.ubuntu.com/packages/python-pex/xenial/amd64
  http://autopkgtest.ubuntu.com/packages/p/python-pex/yakkety/amd64

| adt-run [12:10:00]: test execute.sh: [-----------------------
| + export http_proxy=127.0.0.1:9
| + export https_proxy=127.0.0.1:9
| + pex -m textwrap -vv -o script
| pex: Building pex
| pex: Building pex :: Resolving interpreter
| pex: Building pex :: Resolving interpreter :: Setting up interpreter /usr/bin/python3.5
| pex: Warning, using a UrllibContext which is known to be flaky.
| pex: Please build pex with the requests module for more reliable downloads.
| pex: Unknown exception encountered: <urlopen error [Errno 111] Connection refused>
| pex: Traceback (most recent call last):
| pex:   File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
| pex:     h.request(req.get_method(), req.selector, req.data, headers)
| pex:   File "/usr/lib/python3.5/http/client.py", line 1107, in request
| pex:     self._send_request(method, url, body, headers)
| pex:   File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request
| pex:     self.endheaders(body)
| pex:   File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
| pex:     self._send_output(message_body)
| pex:   File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
| pex:     self.send(msg)
| pex:   File "/usr/lib/python3.5/http/client.py", line 877, in send
| pex:     self.connect()
| pex:   File "/usr/lib/python3.5/http/client.py", line 1253, in connect
| pex:     super().connect()
| pex:   File "/usr/lib/python3.5/http/client.py", line 849, in connect
| pex:     (self.host,self.port), self.timeout, self.source_address)
| pex:   File "/usr/lib/python3.5/socket.py", line 712, in create_connection
| pex:     raise err
| pex:   File "/usr/lib/python3.5/socket.py", line 703, in create_connection
| pex:     sock.connect(sa)
| pex: ConnectionRefusedError: [Errno 111] Connection refused

The test sets an invalid proxy, presumably to ensure that the test
does not actually download anything but gets along with what the
package ships. Apparently something changed there not too long ago.

This does not depend on Debian vs. Ubuntu or container vs. qemu or
whether the test environment uses a proxy by itself. It can trivially
be reproduced locally with the schroot runner:

  autopkgtest --testname execute.sh python-pex -- schroot sid

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#838559; Package python-pex. (Thu, 22 Sep 2016 14:33:08 GMT) (full text, mbox, link).


Acknowledgement sent to Barry Warsaw <barry@debian.org>:
Extra info received and forwarded to list. (Thu, 22 Sep 2016 14:33:08 GMT) (full text, mbox, link).


Message #10 received at 838559@bugs.debian.org (full text, mbox, reply):

From: Barry Warsaw <barry@debian.org>
To: 838559@bugs.debian.org
Subject: Re: Bug#838559: python-pex: tests started to fail on "Connection refused"
Date: Thu, 22 Sep 2016 10:24:10 -0400
[Message part 1 (text/plain, inline)]
On Sep 22, 2016, at 12:10 PM, Martin Pitt wrote:

>This does not depend on Debian vs. Ubuntu or container vs. qemu or
>whether the test environment uses a proxy by itself. It can trivially
>be reproduced locally with the schroot runner:
>
>  autopkgtest --testname execute.sh python-pex -- schroot sid

It's a bit worrysome that this *doesn't* fail in my normal dev box's sid-amd64
chroot.  I've reproduced it on other machines though.  I suspect that
something in setuptools 25.2.0 broke the assumptions that no network access
would occur if the module could be satisfied locally.  That's specifically why
textwrap is used (a stdlib module) and catching that is the reason why the
discard port proxies were added, so at least they've done their job. ;)

Anyway, failure confirmed.
[Message part 2 (application/pgp-signature, inline)]

Reply sent to Barry Warsaw <barry@debian.org>:
You have taken responsibility. (Thu, 22 Sep 2016 16:45:07 GMT) (full text, mbox, link).


Notification sent to Martin Pitt <mpitt@debian.org>:
Bug acknowledged by developer. (Thu, 22 Sep 2016 16:45:07 GMT) (full text, mbox, link).


Message #15 received at 838559-close@bugs.debian.org (full text, mbox, reply):

From: Barry Warsaw <barry@debian.org>
To: 838559-close@bugs.debian.org
Subject: Bug#838559: fixed in python-pex 1.1.14-2
Date: Thu, 22 Sep 2016 16:42:07 +0000
Source: python-pex
Source-Version: 1.1.14-2

We believe that the bug you reported is fixed in the latest version of
python-pex, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 838559@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Barry Warsaw <barry@debian.org> (supplier of updated python-pex package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 22 Sep 2016 11:43:40 -0400
Source: python-pex
Binary: python-pex python3-pex pex python-pex-doc python-pex-cli
Architecture: source all
Version: 1.1.14-2
Distribution: unstable
Urgency: medium
Maintainer: Barry Warsaw <barry@debian.org>
Changed-By: Barry Warsaw <barry@debian.org>
Description:
 pex        - library for generating Python executable zip files
 python-pex - library for generating Python executable zip files
 python-pex-cli - transitional dummy package for pex
 python-pex-doc - library for generating Python executable zip files
 python3-pex - library for generating Python executable zip files
Closes: 838559
Changes:
 python-pex (1.1.14-2) unstable; urgency=medium
 .
   * d/patches/update-dependencies.patch: Remove ceiling dependency
     versions since we have (or may eventually have) newer versions
     which are still compatible.  This prevents trying to hit PyPI for
     setuptools and wheel dependencies we still satisfy.
     (Closes: #838559)
   * d/control: pex works better with requests, so add python3-requests
     to Depends.
Checksums-Sha1:
 a54c61bcb1f5b69b84be20d2cde89e458c8e01e8 2356 python-pex_1.1.14-2.dsc
 c277ae83eddcc4fda9377cb605f542ec1613f584 4924 python-pex_1.1.14-2.debian.tar.xz
 91836859b419fefc978a93f6050c445c3b8eea39 13844 pex_1.1.14-2_all.deb
 7fd9c948a9f4f58325d8611e7037eb5eb271744e 11146 python-pex-cli_1.1.14-2_all.deb
 351c2847bb0d3240b6f522d817deb884662f5301 97654 python-pex-doc_1.1.14-2_all.deb
 2369d608d96b15712c49339b58fe66a46c3da8a4 76342 python-pex_1.1.14-2_all.deb
 7c6f4c851652c2dbd5fa51b39444b11f7d973e93 76464 python3-pex_1.1.14-2_all.deb
Checksums-Sha256:
 23fc2e4a7ba4d5667a69226ac1bcf0dca87eb214dfa41104330338d867627c8d 2356 python-pex_1.1.14-2.dsc
 cbd639c32c3a11aca8a277484bff4e649d068705c15121f8781a127df1db0446 4924 python-pex_1.1.14-2.debian.tar.xz
 a1608324156761ad28d5dea4792ba78fc1d7ddb250f211e0c02bab645693017c 13844 pex_1.1.14-2_all.deb
 c9a073045637e8b8206a4c9795d90950f67d108846fa7b17721ae08a804a9268 11146 python-pex-cli_1.1.14-2_all.deb
 3975183319eea1fe20654fd846865e84261f8c60a37904622abc7cfd0be0f525 97654 python-pex-doc_1.1.14-2_all.deb
 b5c0e94fb0868974b8c5572b0d92dbd3c06bfed3d1e139078d083de8f3daa05b 76342 python-pex_1.1.14-2_all.deb
 91015bdb09512345106db19fca6c6353cecbba963fc7c6e3414beeb5f0f6e177 76464 python3-pex_1.1.14-2_all.deb
Files:
 27fd45ee7555f9d9f4aaad0384996001 2356 python optional python-pex_1.1.14-2.dsc
 b7ed9803a07f35844f7febac59bcbbfb 4924 python optional python-pex_1.1.14-2.debian.tar.xz
 0b7788856902c2e29168c0f8a3b7e67e 13844 python optional pex_1.1.14-2_all.deb
 7bd8475c67b741f7439d9f974eb2e97d 11146 oldlibs extra python-pex-cli_1.1.14-2_all.deb
 3fb74c1344201ab103065a396c86122a 97654 doc optional python-pex-doc_1.1.14-2_all.deb
 0e0e7da6bbb0656442ab82b54a9ee395 76342 python optional python-pex_1.1.14-2_all.deb
 a0cde90afd5554c058d3b6dbd718557f 76464 python optional python3-pex_1.1.14-2_all.deb

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJX4/5eAAoJEBJutWOnSwa/8N8P/AgwkxfaWUE+NDDzNyuhOtpe
C+LcfwoXrUxwddm1UJ8uJReml8afoZvTpokJUWLyYBTuVpWptgG/qvhP8oMAn3Ru
EAK7zQOMXNNekiiLk1AgJh8yI0VPjMhMQt3x51IpLX+3719Y4mIBiJ/yw/mNmJ+v
g979NqXiRVTkoOheYArtgn1uYusBfzPZDdYTzp83THzJ1osWo7taNZPcW8euJEFM
j0OE7mxd22j/f8ynXOUd1ouyp3NHc82Y6Rj9toHO8lr/fzv5E81EeEhRW2SEu+KP
gsoErzUGnnMmmQ1kHMXJY4aQlWkupr27qgXHnVaEU0uK6Z5uPVaBMumbT0eWmDq2
B048ycCqKFHVSaK1fK/QEuWXDpbEaCzbuAAM6tdGM1XqQLtvEvbkuQOtq08Tl9Jh
GRl2eG0t1DPEnHzpaeCDvyBrxCSFL1c5MO4ezTbWiJRCC35huI+TVos4kpDGKwnj
IFDUgBSEoIzY+hOwLyzQtA2Vqxj9BNpSC60SHFPCE1LDt60DOJDmn/Lgb4HCs58b
vqcUEOWV/QyjzEnPyNMp+F9QXPXBHM6FOsWafYslpMNuZtaXE7JrXUg25CPD2QKF
1bRLxDn1ZkqHL6JKu7WLpW7Be0eZB3lLEYLXV+3XSa5fJY29hJUpMHm83QKaynFr
9h8Ouspp2X31d/uxn+SZ
=SFGa
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 26 Oct 2016 07:37:07 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jan 6 14:33:11 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.