Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_logout() of test_imaplib.RemoteIMAP_STARTTLSTest failed randomly on s390x Debian 3.x #74833

Closed
vstinner opened this issue Jun 13, 2017 · 3 comments
Labels
3.7 (EOL) end of life tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

BPO 30648
Nosy @vstinner

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 2017-09-15.16:33:24.036>
created_at = <Date 2017-06-13.09:14:50.004>
labels = ['3.7', 'tests']
title = 'test_logout() of test_imaplib.RemoteIMAP_STARTTLSTest failed randomly on s390x Debian 3.x'
updated_at = <Date 2017-09-15.16:33:24.035>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2017-09-15.16:33:24.035>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2017-09-15.16:33:24.036>
closer = 'vstinner'
components = ['Tests']
creation = <Date 2017-06-13.09:14:50.004>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 30648
keywords = []
message_count = 3.0
messages = ['295874', '295877', '302267']
nosy_count = 1.0
nosy_names = ['vstinner']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue30648'
versions = ['Python 3.7']

@vstinner
Copy link
Member Author

The test failed on s390x Debian 3.x but then passed when run again.

http://buildbot.python.org/all/builders/s390x%20Debian%203.x/builds/868/steps/test/logs/stdio

0:07:58 load avg: 1.15 [286/406/1] test_imaplib failed -- running: test_multiprocessing_spawn (76 sec)
...
test_logincapa (test.test_imaplib.RemoteIMAPTest) ... ok
test_logout (test.test_imaplib.RemoteIMAPTest) ... ok
test_logincapa (test.test_imaplib.RemoteIMAP_SSLTest) ... ok
test_logincapa_with_client_certfile (test.test_imaplib.RemoteIMAP_SSLTest) ... skipped "bpo-30175: FIXME: cyrus.andrew.cmu.edu doesn't accept our randomly generated client x509 certificate anymore"
test_logincapa_with_client_ssl_context (test.test_imaplib.RemoteIMAP_SSLTest) ... skipped "bpo-30175: FIXME: cyrus.andrew.cmu.edu doesn't accept our randomly generated client x509 certificate anymore"
test_logout (test.test_imaplib.RemoteIMAP_SSLTest) ... ok
test_ssl_context_certfile_exclusive (test.test_imaplib.RemoteIMAP_SSLTest) ... ok
test_ssl_context_keyfile_exclusive (test.test_imaplib.RemoteIMAP_SSLTest) ... ok
test_logincapa (test.test_imaplib.RemoteIMAP_STARTTLSTest) ... ok
test_logout (test.test_imaplib.RemoteIMAP_STARTTLSTest) ... FAIL
...
======================================================================
FAIL: test_logout (test.test_imaplib.RemoteIMAP_STARTTLSTest)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-debian-z/build/Lib/test/test_imaplib.py", line 916, in test_logout
    self.assertEqual(rs[0], 'BYE')
AssertionError: 'NO' != 'BYE'
- NO
+ BYE

(...)

Re-running test 'test_imaplib' in verbose mode
(...)
Ran 95 tests in 15.863s
OK (skipped=2)

@vstinner vstinner added 3.7 (EOL) end of life tests Tests in the Lib/test dir labels Jun 13, 2017
@vstinner
Copy link
Member Author

Similar failure on AMD64 FreeBSD CURRENT Non-Debug 3.6:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Non-Debug%203.6/builds/229/steps/test/logs/stdio

(...)

test_enable_raises_error_if_no_capability (test.test_imaplib.ThreadedNetworkedTests) ... creating server
server created
ADDR = ('127.0.0.1', 0)
CLASS = <class 'socketserver.TCPServer'>
HDLR = <class 'test.test_imaplib.ThreadedNetworkedTests.test_enable_raises_error_if_no_capability.<locals>.NoEnableServer'>
server running
SENT: b'* OK IMAP4rev1'
waiting for server
done
ERROR

(...)

======================================================================
ERROR: test_enable_raises_error_if_no_capability (test.test_imaplib.ThreadedNetworkedTests)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/test/support/__init__.py", line 2035, in decorator
    return func(*args)
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/test/test_imaplib.py", line 673, in test_enable_raises_error_if_no_capability
    with self.reaped_pair(NoEnableServer) as (server, client):
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/test/test_imaplib.py", line 563, in reaped_pair
    client = self.imap_class(*server.server_address)
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/imaplib.py", line 200, in __init__
    self._connect()
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/imaplib.py", line 250, in _connect
    self._get_capabilities()
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/imaplib.py", line 1027, in _get_capabilities
    typ, dat = self.capability()
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/imaplib.py", line 435, in capability
    typ, dat = self._simple_command(name)
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/imaplib.py", line 1191, in _simple_command
    return self._command_complete(name, self._command(name, *args))
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/imaplib.py", line 1014, in _command_complete
    typ, data = self._get_tagged_response(tag)
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/imaplib.py", line 1134, in _get_tagged_response
    self._get_response()
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/imaplib.py", line 1042, in _get_response
    resp = self._get_line()
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/imaplib.py", line 1144, in _get_line
    line = self.readline()
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/imaplib.py", line 305, in readline
    line = self.file.readline(_MAXLINE + 1)
  File "/usr/home/buildbot/python/3.6.koobs-freebsd-current.nondebug/build/Lib/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 54] Connection reset by peer

(...)
Re-running test 'test_imaplib' in verbose mode
(...)

test_enable_raises_error_if_no_capability (test.test_imaplib.ThreadedNetworkedTests) ... creating server
server created
ADDR = ('127.0.0.1', 0)
CLASS = <class 'socketserver.TCPServer'>
HDLR = <class 'test.test_imaplib.ThreadedNetworkedTests.test_enable_raises_error_if_no_capability.<locals>.NoEnableServer'>
server running
SENT: b'* OK IMAP4rev1'
GOT: b'NMFJ0 CAPABILITY'
SENT: b'* CAPABILITY IMAP4rev1 AUTH'
SENT: b'NMFJ0 OK CAPABILITY completed'
GOT: b'NMFJ1 LOGOUT'
SENT: b'* BYE IMAP4ref1 Server logging out'
SENT: b'NMFJ1 OK LOGOUT completed'
waiting for server
done
ok

@vstinner
Copy link
Member Author

I didn't see this error recently, so I close it. It seems like a random network issue :-/

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.7 (EOL) end of life tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

1 participant