This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: buildbot: support.transient_internet() doesn't catch DNS socket.gaierror
Type: Stage:
Components: Tests Versions: Python 3.2, Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: vstinner Nosy List: pitrou, vstinner
Priority: normal Keywords: patch

Created on 2010-05-27 21:47 by vstinner, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
transilient_internet_dns.patch vstinner, 2010-05-27 22:23
Messages (6)
msg106617 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-05-27 21:47
The nameserver responsible of sha2.hboeck.de is down and this hostname is used in test_ssl. The result is that all trunk buildbots are red (error).

support.transient_internet() should catch socket.gaierror.

--

One example: http://www.python.org/dev/buildbot/all/builders/amd64%20gentoo%20trunk/builds/1007

Traceback (most recent call last):
  File ".../Lib/test/test_ssl.py", line 261, in test_algorithms
    s.connect(remote)
  ...
gaierror: [Errno -2] Name or service not known
msg106619 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-05-27 22:23
Patch to catch gaierror(EAI_NODATA) and gaierror(EAI_NONAME).
msg106620 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-05-27 22:25
Looks ok to me.
msg106622 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-05-27 22:30
I commited the patch as r81571 in trunk. Wait for the buildbot before porting it to other branches.
msg106646 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-05-28 11:21
There is another error:

test test_ssl failed -- Traceback (most recent call last):
  File "/scratch/pybot-buildarea/trunk.klose-ubuntu-i386/build/Lib/test/test_ssl.py", line 261, in test_algorithms
    s.connect(remote)
  File "/scratch/pybot-buildarea/trunk.klose-ubuntu-i386/build/Lib/ssl.py", line 292, in connect
    socket.connect(self, addr)
  File "/scratch/pybot-buildarea/trunk.klose-ubuntu-i386/build/Lib/socket.py", line 222, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 110] Connection timed out

transient_internet() should also catch socket.error(errno.ETIMEDOUT).

--

See also #8455, #8499 and #8574.
msg106682 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-05-28 17:49
> I commited the patch as r81571 in trunk.

Apparently it's ok.
History
Date User Action Args
2022-04-11 14:57:01adminsetgithub: 53081
2010-09-10 22:08:31pitrousetstatus: open -> closed
resolution: out of date
2010-05-28 17:49:34pitrousetassignee: vstinner
messages: + msg106682
2010-05-28 11:21:47vstinnersetmessages: + msg106646
2010-05-27 22:30:45vstinnersetmessages: + msg106622
2010-05-27 22:25:07pitrousetnosy: + pitrou
messages: + msg106620
2010-05-27 22:23:34vstinnersetfiles: + transilient_internet_dns.patch
keywords: + patch
messages: + msg106619
2010-05-27 21:47:35vstinnercreate