Skip to content

gh-122581: Avoid data races when collecting parser statistics - #122694

Merged
lysnikolaou merged 2 commits into
python:mainfrom
lysnikolaou:lock-parser-statistics
Aug 6, 2024
Merged

gh-122581: Avoid data races when collecting parser statistics#122694
lysnikolaou merged 2 commits into
python:mainfrom
lysnikolaou:lock-parser-statistics

Conversation

@lysnikolaou

@lysnikolaoulysnikolaou commented Aug 5, 2024

Copy link
Copy Markdown
Member

Comment threadParser/pegen.c
Comment threadParser/pegen.c

@kumaraditya303kumaraditya303 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lysnikolaoulysnikolaou added the needs backport to 3.13 bugs and security fixes label Aug 6, 2024
@lysnikolaou
lysnikolaou merged commit ce0d66c into python:mainAug 6, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @lysnikolaou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 6, 2024
…ythonGH-122694)
(cherry picked from commit ce0d66c)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
@bedevere-app

Copy link
Copy Markdown

GH-122733 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label Aug 6, 2024
kumaraditya303 pushed a commit that referenced this pull request Aug 7, 2024
…H-122694) (#122733)
gh-122581: Avoid data races when collecting parser statistics (GH-122694)
(cherry picked from commit ce0d66c)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot PPC64LE RHEL8 LTO + PGO 3.13 has failed when building commit 9fb6bfb.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#builders/1444/builds/166) and take a look at the build logs.
  4. Check if the failure is related to this commit (9fb6bfb) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#builders/1444/builds/166

Failed tests:

  • test_urllib2net

Failed subtests:

  • test_ftp - test.test_urllib2net.OtherNetworkTests.test_ftp
  • test_ftp_timeout - test.test_urllib2net.TimeoutTest.test_ftp_timeout
  • test_ftp_basic - test.test_urllib2net.TimeoutTest.test_ftp_basic
  • test_ftp_no_timeout - test.test_urllib2net.TimeoutTest.test_ftp_no_timeout
  • test_ftp_default_timeout - test.test_urllib2net.TimeoutTest.test_ftp_default_timeout

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 349, in test_ftp_default_timeoutwith socket_helper.transient_internet(self.FTP_HOST):
...<6 lines>...self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 361, in test_ftp_no_timeoutwith socket_helper.transient_internet(self.FTP_HOST):
...<6 lines>...self.assertIsNone(u.fp.fp.raw._sock.gettimeout())
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 373, in test_ftp_timeout
u = _urlopen_with_retry(self.FTP_HOST, timeout=60)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 189, in urlopenreturn opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 372, in test_ftp_timeoutwith socket_helper.transient_internet(self.FTP_HOST):
...<2 lines>...self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 352, in test_ftp_default_timeout
u = _urlopen_with_retry(self.FTP_HOST)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 189, in urlopenreturn opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 1541, in ftp_open
fw =self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 1561, in connect_ftpreturn ftpwrapper(user, passwd, host, port, dirs, timeout,
persistent=False)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 2394, in __init__self.init()
~~~~~~~~~^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 2404, in initself.ftp.login(self.user, self.passwd)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/ftplib.py", line 414, in login
resp =self.sendcmd('PASS '+ passwd)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/ftplib.py", line 281, in sendcmdreturnself.getresp()
~~~~~~~~~~~~^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/ftplib.py", line 254, in getrespraise error_perm(resp)
ftplib.error_perm: 500 OOPS: cannot change directory:/nonexistent
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 259, in _test_urlswith socket_helper.transient_internet(url):
...<19 lines>...
f.close()
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 342, in test_ftp_basicwith socket_helper.transient_internet(self.FTP_HOST, timeout=None):
...<2 lines>...self.assertIsNone(u.fp.fp.raw._sock.gettimeout())
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 364, in test_ftp_no_timeout
u = _urlopen_with_retry(self.FTP_HOST, timeout=None)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 189, in urlopenreturn opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 343, in test_ftp_basic
u = _urlopen_with_retry(self.FTP_HOST)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 189, in urlopenreturn opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 1541, in ftp_open
fw =self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 1585, in connect_ftpself.cache[key] = ftpwrapper(user, passwd, host, port,
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
dirs, timeout)
^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 2394, in __init__self.init()
~~~~~~~~~^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 2404, in initself.ftp.login(self.user, self.passwd)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/ftplib.py", line 414, in login
resp =self.sendcmd('PASS '+ passwd)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/ftplib.py", line 281, in sendcmdreturnself.getresp()
~~~~~~~~~~~~^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/ftplib.py", line 254, in getrespraise error_perm(resp)
ftplib.error_perm: 500 OOPS: cannot change directory:/nonexistent
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 261, in _test_urls
f = urlopen(url, req, support.INTERNET_TIMEOUT)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>

@bedevere-bot

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot PPC64LE RHEL8 LTO 3.13 has failed when building commit 9fb6bfb.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#builders/1412/builds/165) and take a look at the build logs.
  4. Check if the failure is related to this commit (9fb6bfb) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#builders/1412/builds/165

Failed tests:

  • test_urllib2net

Failed subtests:

  • test_ftp - test.test_urllib2net.OtherNetworkTests.test_ftp
  • test_ftp_timeout - test.test_urllib2net.TimeoutTest.test_ftp_timeout
  • test_ftp_basic - test.test_urllib2net.TimeoutTest.test_ftp_basic
  • test_ftp_no_timeout - test.test_urllib2net.TimeoutTest.test_ftp_no_timeout
  • test_ftp_default_timeout - test.test_urllib2net.TimeoutTest.test_ftp_default_timeout

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 1541, in ftp_open
fw =self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 1585, in connect_ftpself.cache[key] = ftpwrapper(user, passwd, host, port,
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
dirs, timeout)
^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 2394, in __init__self.init()
~~~~~~~~~^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 2404, in initself.ftp.login(self.user, self.passwd)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/ftplib.py", line 414, in login
resp =self.sendcmd('PASS '+ passwd)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/ftplib.py", line 281, in sendcmdreturnself.getresp()
~~~~~~~~~~~~^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/ftplib.py", line 254, in getrespraise error_perm(resp)
ftplib.error_perm: 500 OOPS: cannot change directory:/nonexistent
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 352, in test_ftp_default_timeout
u = _urlopen_with_retry(self.FTP_HOST)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 189, in urlopenreturn opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 259, in _test_urlswith socket_helper.transient_internet(url):
...<19 lines>...
f.close()
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 364, in test_ftp_no_timeout
u = _urlopen_with_retry(self.FTP_HOST, timeout=None)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 189, in urlopenreturn opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 361, in test_ftp_no_timeoutwith socket_helper.transient_internet(self.FTP_HOST):
...<6 lines>...self.assertIsNone(u.fp.fp.raw._sock.gettimeout())
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 261, in _test_urls
f = urlopen(url, req, support.INTERNET_TIMEOUT)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 349, in test_ftp_default_timeoutwith socket_helper.transient_internet(self.FTP_HOST):
...<6 lines>...self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 343, in test_ftp_basic
u = _urlopen_with_retry(self.FTP_HOST)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 189, in urlopenreturn opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 342, in test_ftp_basicwith socket_helper.transient_internet(self.FTP_HOST, timeout=None):
...<2 lines>...self.assertIsNone(u.fp.fp.raw._sock.gettimeout())
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 372, in test_ftp_timeoutwith socket_helper.transient_internet(self.FTP_HOST):
...<2 lines>...self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 1541, in ftp_open
fw =self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 1561, in connect_ftpreturn ftpwrapper(user, passwd, host, port, dirs, timeout,
persistent=False)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 2394, in __init__self.init()
~~~~~~~~~^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 2404, in initself.ftp.login(self.user, self.passwd)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/ftplib.py", line 414, in login
resp =self.sendcmd('PASS '+ passwd)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/ftplib.py", line 281, in sendcmdreturnself.getresp()
~~~~~~~~~~~~^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/ftplib.py", line 254, in getrespraise error_perm(resp)
ftplib.error_perm: 500 OOPS: cannot change directory:/nonexistent
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 373, in test_ftp_timeout
u = _urlopen_with_retry(self.FTP_HOST, timeout=60)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 189, in urlopenreturn opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>

@bedevere-bot

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot PPC64LE Fedora Stable 3.13 has failed when building commit 9fb6bfb.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#builders/1388/builds/160) and take a look at the build logs.
  4. Check if the failure is related to this commit (9fb6bfb) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#builders/1388/builds/160

Failed tests:

  • test_urllib2net

Failed subtests:

  • test_ftp - test.test_urllib2net.OtherNetworkTests.test_ftp
  • test_ftp_timeout - test.test_urllib2net.TimeoutTest.test_ftp_timeout
  • test_ftp_basic - test.test_urllib2net.TimeoutTest.test_ftp_basic
  • test_ftp_no_timeout - test.test_urllib2net.TimeoutTest.test_ftp_no_timeout
  • test_ftp_default_timeout - test.test_urllib2net.TimeoutTest.test_ftp_default_timeout

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 259, in _test_urlswith socket_helper.transient_internet(url):
...<19 lines>...
f.close()
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 352, in test_ftp_default_timeout
u = _urlopen_with_retry(self.FTP_HOST)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 189, in urlopenreturn opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 349, in test_ftp_default_timeoutwith socket_helper.transient_internet(self.FTP_HOST):
...<6 lines>...self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 343, in test_ftp_basic
u = _urlopen_with_retry(self.FTP_HOST)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 189, in urlopenreturn opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 261, in _test_urls
f = urlopen(url, req, support.INTERNET_TIMEOUT)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 361, in test_ftp_no_timeoutwith socket_helper.transient_internet(self.FTP_HOST):
...<6 lines>...self.assertIsNone(u.fp.fp.raw._sock.gettimeout())
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 372, in test_ftp_timeoutwith socket_helper.transient_internet(self.FTP_HOST):
...<2 lines>...self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 364, in test_ftp_no_timeout
u = _urlopen_with_retry(self.FTP_HOST, timeout=None)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 189, in urlopenreturn opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 1541, in ftp_open
fw =self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 1585, in connect_ftpself.cache[key] = ftpwrapper(user, passwd, host, port,
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
dirs, timeout)
^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 2394, in __init__self.init()
~~~~~~~~~^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 2404, in initself.ftp.login(self.user, self.passwd)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/ftplib.py", line 414, in login
resp =self.sendcmd('PASS '+ passwd)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/ftplib.py", line 281, in sendcmdreturnself.getresp()
~~~~~~~~~~~~^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/ftplib.py", line 254, in getrespraise error_perm(resp)
ftplib.error_perm: 500 OOPS: cannot change directory:/nonexistent
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 342, in test_ftp_basicwith socket_helper.transient_internet(self.FTP_HOST, timeout=None):
...<2 lines>...self.assertIsNone(u.fp.fp.raw._sock.gettimeout())
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/contextlib.py", line 162, in __exit__self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 264, in transient_internet
filter_error(err)
~~~~~~~~~~~~^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 237, in filter_error
(("ConnectionRefusedError"in err.reason) or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: argument of type 'error_perm' is not iterable
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 1541, in ftp_open
fw =self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 1561, in connect_ftpreturn ftpwrapper(user, passwd, host, port, dirs, timeout,
persistent=False)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 2394, in __init__self.init()
~~~~~~~~~^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 2404, in initself.ftp.login(self.user, self.passwd)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/ftplib.py", line 414, in login
resp =self.sendcmd('PASS '+ passwd)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/ftplib.py", line 281, in sendcmdreturnself.getresp()
~~~~~~~~~~~~^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/ftplib.py", line 254, in getrespraise error_perm(resp)
ftplib.error_perm: 500 OOPS: cannot change directory:/nonexistent
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/support/socket_helper.py", line 249, in transient_internetyield
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 373, in test_ftp_timeout
u = _urlopen_with_retry(self.FTP_HOST, timeout=60)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 29, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 25, in _retry_thriceraise last_exc
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/test/test_urllib2net.py", line 21, in _retry_thricereturn func(*args, **kwargs)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 189, in urlopenreturn opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 489, in open
response =self._open(req, data)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 506, in _open
result =self._call_chain(self.handle_open, protocol, protocol +'_open', req)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le/build/Lib/urllib/request.py", line 1558, in ftp_openraise URLError(exp) from exp
urllib.error.URLError: <urlopen error 500 OOPS: cannot change directory:/nonexistent>

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@lysnikolaou@bedevere-bot@pablogsal@kumaraditya303