FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

FTP tests of test_urllib2net fail on Travis CI: 425 Security: Bad IP connecting. · Issue #79592 · python/cpython · GitHub

Repository navigation

FTP tests of test_urllib2net fail on Travis CI: 425 Security: Bad IP connecting. #79592

Closed

Description

BPO 35411
Nosy @orsenthil, @vstinner, @larryhastings, @benjaminp, @ned-deily, @ambv, @serhiy-storchaka, @miss-islington
PRs
  • WIP: bpo-35411: debug test_urllib2net failure #10906
  • bpo-35411: FTP tests of test_urllib2net on Travis CI #10907
  • [3.7] bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) #10908
  • [3.6] bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) #10909
  • [2.7] bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) #10910
  • [WIP] bpo-35411: Debug Travis CI #11016
  • [3.5] bpo-34656: Avoid relying on signed overflow in _pickle memos (GH-9261) #11869
  • [3.5] bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) #11874
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-12-07.11:40:06.292>
    created_at = <Date 2018-12-04.22:08:09.727>
    labels = ['3.8', '3.7', 'tests', 'release-blocker']
    title = 'FTP tests of test_urllib2net fail on Travis CI: 425 Security: Bad IP connecting.'
    updated_at = <Date 2019-12-31.05:15:00.903>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2019-12-31.05:15:00.903>
    actor = 'orsenthil'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-12-07.11:40:06.292>
    closer = 'serhiy.storchaka'
    components = ['Tests']
    creation = <Date 2018-12-04.22:08:09.727>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35411
    keywords = ['patch']
    message_count = 13.0
    messages = ['331078', '331079', '331081', '331082', '331083', '331084', '331085', '331174', '331243', '331282', '331297', '336572', '359100']
    nosy_count = 8.0
    nosy_names = ['orsenthil', 'vstinner', 'larry', 'benjamin.peterson', 'ned.deily', 'lukasz.langa', 'serhiy.storchaka', 'miss-islington']
    pr_nums = ['10906', '10907', '10908', '10909', '10910', '11016', '11869', '11874']
    priority = 'release blocker'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue35411'
    versions = ['Python 2.7', 'Python 3.6', 'Python 3.7', 'Python 3.8']

    Activity

    1. vstinner commented on Dec 4, 2018

      MemberAuthor

      ERROR: test_ftp (test.test_urllib2net.OtherNetworkTests) (url='ftp://www.pythontest.net/README')
      ERROR: test_ftp_basic (test.test_urllib2net.TimeoutTest)
      ERROR: test_ftp_default_timeout (test.test_urllib2net.TimeoutTest)
      ERROR: test_ftp_no_timeout (test.test_urllib2net.TimeoutTest)
      ERROR: test_ftp_timeout (test.test_urllib2net.TimeoutTest)

      It seems like Jython has a similar issue:
      http://bugs.jython.org/issue2708

      Logs from Travis CI job of #10898:

      https://travis-ci.org/python/cpython/jobs/463422586

      Re-running test 'test_urllib2net' in verbose mode
      test_close (test.test_urllib2net.CloseSocketTest) ... ok
      test_custom_headers (test.test_urllib2net.OtherNetworkTests) ... ok
      test_file (test.test_urllib2net.OtherNetworkTests) ... ok
      test_ftp (test.test_urllib2net.OtherNetworkTests) ... test_redirect_url_withfrag (test.test_urllib2net.OtherNetworkTests) ... ok
      test_sites_no_connection_close (test.test_urllib2net.OtherNetworkTests) ... skipped 'XXX: http://www.imdb.com is gone'
      test_urlwithfrag (test.test_urllib2net.OtherNetworkTests) ... ok
      test_ftp_basic (test.test_urllib2net.TimeoutTest) ... ERROR
      test_ftp_default_timeout (test.test_urllib2net.TimeoutTest) ... /home/travis/build/python/cpython/Lib/urllib/request.py:222: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33700), raddr=('104.236.16.9', 21)>
      return opener.open(url, data, timeout)
      /home/travis/build/python/cpython/Lib/urllib/request.py:222: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33704), raddr=('104.236.16.9', 21)>
      return opener.open(url, data, timeout)
      /home/travis/build/python/cpython/Lib/urllib/request.py:222: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33708), raddr=('104.236.16.9', 21)>
      return opener.open(url, data, timeout)
      ERROR
      test_ftp_no_timeout (test.test_urllib2net.TimeoutTest) ... ERROR
      test_ftp_timeout (test.test_urllib2net.TimeoutTest) ... ERROR
      test_http_basic (test.test_urllib2net.TimeoutTest) ... ok
      test_http_default_timeout (test.test_urllib2net.TimeoutTest) ... ok
      test_http_no_timeout (test.test_urllib2net.TimeoutTest) ... ok
      test_http_timeout (test.test_urllib2net.TimeoutTest) ... ok
      ======================================================================
      ERROR: test_ftp (test.test_urllib2net.OtherNetworkTests) (url='ftp://www.pythontest.net/README')
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
          fp, retrlen = fw.retrfile(file, type)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2404, in retrfile
          conn, retrlen = self.ftp.ntransfercmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
          resp = self.sendcmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmd
          return self.getresp()
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getresp
          raise error_temp(resp)
      ftplib.error_temp: 425 Security: Bad IP connecting.
      During handling of the above exception, another exception occurred:
      Traceback (most recent call last):
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 219, in _test_urls
          f = urlopen(url, req, TIMEOUT)
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 27, in wrapped
          return _retry_thrice(func, exc, *args, **kwargs)
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 23, in _retry_thrice
          raise last_exc
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 19, in _retry_thrice
          return func(*args, **kwargs)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 525, in open
          response = self._open(req, data)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 543, in _open
          '_open', req)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 503, in _call_chain
          result = func(*args)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1551, in ftp_open
          raise exc.with_traceback(sys.exc_info()[2])
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
          fp, retrlen = fw.retrfile(file, type)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2404, in retrfile
          conn, retrlen = self.ftp.ntransfercmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
          resp = self.sendcmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmd
          return self.getresp()
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getresp
          raise error_temp(resp)
      urllib.error.URLError: <urlopen error ftp error: error_temp('425 Security: Bad IP connecting.')>

      ======================================================================
      ERROR: test_ftp_basic (test.test_urllib2net.TimeoutTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
          fp, retrlen = fw.retrfile(file, type)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
          conn, retrlen = self.ftp.ntransfercmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
          resp = self.sendcmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmd
          return self.getresp()
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getresp
          raise error_temp(resp)
      ftplib.error_temp: 425 Security: Bad IP connecting.
      During handling of the above exception, another exception occurred:
      Traceback (most recent call last):
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 296, in test_ftp_basic
          u = _urlopen_with_retry(self.FTP_HOST)
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 27, in wrapped
          return _retry_thrice(func, exc, *args, **kwargs)
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 23, in _retry_thrice
          raise last_exc
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 19, in _retry_thrice
          return func(*args, **kwargs)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 222, in urlopen
          return opener.open(url, data, timeout)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 525, in open
          response = self._open(req, data)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 543, in _open
          '_open', req)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 503, in _call_chain
          result = func(*args)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1551, in ftp_open
          raise exc.with_traceback(sys.exc_info()[2])
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
          fp, retrlen = fw.retrfile(file, type)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
          conn, retrlen = self.ftp.ntransfercmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
          resp = self.sendcmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmd
          return self.getresp()
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getresp
          raise error_temp(resp)
      urllib.error.URLError: <urlopen error ftp error: error_temp('425 Security: Bad IP connecting.')>

      ======================================================================
      ERROR: test_ftp_default_timeout (test.test_urllib2net.TimeoutTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
          fp, retrlen = fw.retrfile(file, type)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
          conn, retrlen = self.ftp.ntransfercmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
          resp = self.sendcmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmd
          return self.getresp()
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getresp
          raise error_temp(resp)
      ftplib.error_temp: 425 Security: Bad IP connecting.
      During handling of the above exception, another exception occurred:
      Traceback (most recent call last):
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 305, in test_ftp_default_timeout
          u = _urlopen_with_retry(self.FTP_HOST)
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 27, in wrapped
          return _retry_thrice(func, exc, *args, **kwargs)
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 23, in _retry_thrice
          raise last_exc
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 19, in _retry_thrice
          return func(*args, **kwargs)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 222, in urlopen
          return opener.open(url, data, timeout)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 525, in open
          response = self._open(req, data)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 543, in _open
          '_open', req)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 503, in _call_chain
          result = func(*args)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1551, in ftp_open
          raise exc.with_traceback(sys.exc_info()[2])
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
          fp, retrlen = fw.retrfile(file, type)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
          conn, retrlen = self.ftp.ntransfercmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
          resp = self.sendcmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmd
          return self.getresp()
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getresp
          raise error_temp(resp)
      urllib.error.URLError: <urlopen error ftp error: error_temp('425 Security: Bad IP connecting.')>

      ======================================================================
      ERROR: test_ftp_no_timeout (test.test_urllib2net.TimeoutTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
          fp, retrlen = fw.retrfile(file, type)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
          conn, retrlen = self.ftp.ntransfercmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
          resp = self.sendcmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmd
          return self.getresp()
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getresp
          raise error_temp(resp)
      ftplib.error_temp: 425 Security: Bad IP connecting.
      During handling of the above exception, another exception occurred:
      Traceback (most recent call last):
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 316, in test_ftp_no_timeout
          u = _urlopen_with_retry(self.FTP_HOST, timeout=None)
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 27, in wrapped
          return _retry_thrice(func, exc, *args, **kwargs)
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 23, in _retry_thrice
          raise last_exc
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 19, in _retry_thrice
          return func(*args, **kwargs)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 222, in urlopen
          return opener.open(url, data, timeout)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 525, in open
          response = self._open(req, data)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 543, in _open
          '_open', req)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 503, in _call_chain
          result = func(*args)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1551, in ftp_open
          raise exc.with_traceback(sys.exc_info()[2])
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
          fp, retrlen = fw.retrfile(file, type)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
          conn, retrlen = self.ftp.ntransfercmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
          resp = self.sendcmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmd
          return self.getresp()
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getresp
          raise error_temp(resp)
      urllib.error.URLError: <urlopen error ftp error: error_temp('425 Security: Bad IP connecting.')>

      ======================================================================
      ERROR: test_ftp_timeout (test.test_urllib2net.TimeoutTest)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
          fp, retrlen = fw.retrfile(file, type)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
          conn, retrlen = self.ftp.ntransfercmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
          resp = self.sendcmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmd
          return self.getresp()
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getresp
          raise error_temp(resp)
      ftplib.error_temp: 425 Security: Bad IP connecting.
      During handling of the above exception, another exception occurred:
      Traceback (most recent call last):
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 324, in test_ftp_timeout
          u = _urlopen_with_retry(self.FTP_HOST, timeout=60)
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 27, in wrapped
          return _retry_thrice(func, exc, *args, **kwargs)
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 23, in _retry_thrice
          raise last_exc
        File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 19, in _retry_thrice
          return func(*args, **kwargs)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 222, in urlopen
          return opener.open(url, data, timeout)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 525, in open
          response = self._open(req, data)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 543, in _open
          '_open', req)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 503, in _call_chain
          result = func(*args)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1551, in ftp_open
          raise exc.with_traceback(sys.exc_info()[2])
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
          fp, retrlen = fw.retrfile(file, type)
        File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
          conn, retrlen = self.ftp.ntransfercmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
          resp = self.sendcmd(cmd)
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmd
          return self.getresp()
        File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getresp
          raise error_temp(resp)
      urllib.error.URLError: <urlopen error ftp error: error_temp('425 Security: Bad IP connecting.')>

      Ran 15 tests in 5.693s
      FAILED (errors=5, skipped=1)
      /home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33712), raddr=('104.236.16.9', 21)>
      gc.collect()
      /home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33716), raddr=('104.236.16.9', 21)>
      gc.collect()
      /home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33720), raddr=('104.236.16.9', 21)>
      gc.collect()
      /home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33724), raddr=('104.236.16.9', 21)>
      gc.collect()
      /home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33728), raddr=('104.236.16.9', 21)>
      gc.collect()
      /home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33732), raddr=('104.236.16.9', 21)>
      gc.collect()
      /home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33736), raddr=('104.236.16.9', 21)>
      gc.collect()
      /home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33740), raddr=('104.236.16.9', 21)>
      gc.collect()
      /home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=13, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33744), raddr=('104.236.16.9', 21)>
      gc.collect()
      test test_urllib2net failed
      1 test failed again:
      test_urllib2net

    2. vstinner commented on Dec 4, 2018

      MemberAuthor
    3. vstinner commented on Dec 4, 2018

      MemberAuthor

      According to my PR 10906, FTP tests of test_urllib2net now also fail each time on master (not all of them, at least two tests fail).

      I wrote PR 10907 to skip the tests on Travis CI. We have AppVeyor to run these tests in pre-commit, and the buildbot farm to test in post-commit.

    4. vstinner commented on Dec 5, 2018

      MemberAuthor

      New changeset c11b3b1 by Victor Stinner in branch 'master':
      bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907)
      c11b3b1

    5. miss-islington commented on Dec 5, 2018

      Contributor

      New changeset 74a80e1 by Miss Islington (bot) in branch '3.7':
      bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907)
      74a80e1

    6. vstinner commented on Dec 5, 2018

      MemberAuthor

      New changeset 65a5eff by Victor Stinner (Miss Islington (bot)) in branch '3.6':
      bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) (GH-10909)
      65a5eff

    7. miss-islington commented on Dec 5, 2018

      Contributor

      New changeset c7976da by Miss Islington (bot) in branch '2.7':
      bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907)
      c7976da

    8. vstinner commented on Dec 5, 2018

      MemberAuthor

      Nathaniel Smith has an explanation.

      [Python-Dev] test_urllib2net fixed to repair Travis CI
      https://mail.python.org/pipermail/python-dev/2018-December/155929.html

      Travis is in the middle of moving everything from AWS to GCE, which is
      probably related:

      https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration

      As noted there, GCE has different IP addresses. But I suspect it's not the
      new IP address that's the problem, but rather the fact that the GCE setup
      is known to break outgoing ftp:

      https://blog.travis-ci.com/2018-07-23-the-tale-of-ftp-at-travis-ci

      -n

    9. serhiy-storchaka commented on Dec 6, 2018

      Member

      test_urllib2net still fails on Travis CI. See for example https://api.travis-ci.org/v3/job/464509821/log.txt.

    10. vstinner commented on Dec 7, 2018

      MemberAuthor

      test_urllib2net still fails on Travis CI. See for example https://api.travis-ci.org/v3/job/464509821/log.txt.

      Do you have a reference to the pull request?

      "ERROR: test_ftp_default_timeout (test.test_urllib2net.TimeoutTest)"

      It seems like Travis CI ran an outdated version of date. Likely a pull request that hasn't been merged into master. See my email:
      https://mail.python.org/pipermail/python-dev/2018-December/155928.html

      If your wrote the PR before my fix and the test fails, you have to update your PR.

    11. serhiy-storchaka commented on Dec 7, 2018

      Member

      Seems this is a glitch of Travis CI. PR 794 was created long time ago, and while it was regularly merged with master, tests become failing after recent updated. I expect that similar issues can be repeated with other old PRs.

      After creating a copy of that PR (see PR 11017), all tests are passed.

    12. larryhastings commented on Feb 25, 2019

      Contributor

      New changeset 8bcbc78 by larryhastings (Victor Stinner) in branch '3.5':
      bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) (bpo-11874)
      8bcbc78

    13. orsenthil commented on Dec 31, 2019

      Member

      New changeset f82e59a by Senthil Kumaran in branch '2.7':
      [2.7] bpo-27973 - Fix for urllib.urlretrieve() failing on second ftp transfer (bpo-1040)
      f82e59a

    14. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions


        Back | FazBrowse Home | New Git URL