[issue34092] test_logging: SMTPHandlerTest.test_basic() fails randomly on x86 Gentoo Refleaks 3.7

2018-07-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 0a1db32949b4813e9ac04e672fcb5bc97072a428 by Victor Stinner (Miss 
Islington (bot)) in branch '3.7':
bpo-34092, test_logging: increase SMTPHandlerTest timeout (GH-8245) (GH-8247)
https://github.com/python/cpython/commit/0a1db32949b4813e9ac04e672fcb5bc97072a428


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34092] test_logging: SMTPHandlerTest.test_basic() fails randomly on x86 Gentoo Refleaks 3.7

2018-07-11 Thread STINNER Victor


STINNER Victor  added the comment:

I hope that the issue was just that the buildbot was slow, and that the failure 
didn't hide a real bug.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34092] test_logging: SMTPHandlerTest.test_basic() fails randomly on x86 Gentoo Refleaks 3.7

2018-07-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset d68cb9d62c3671dd9aee5cdecb02fcb3268dacf0 by Victor Stinner in 
branch '3.6':
bpo-34092, test_logging: increase SMTPHandlerTest timeout (GH-8245) (GH-8249)
https://github.com/python/cpython/commit/d68cb9d62c3671dd9aee5cdecb02fcb3268dacf0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34092] test_logging: SMTPHandlerTest.test_basic() fails randomly on x86 Gentoo Refleaks 3.7

2018-07-11 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +7781

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34092] test_logging: SMTPHandlerTest.test_basic() fails randomly on x86 Gentoo Refleaks 3.7

2018-07-11 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7778

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34092] test_logging: SMTPHandlerTest.test_basic() fails randomly on x86 Gentoo Refleaks 3.7

2018-07-11 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 31b50b8cbfbf49d5fc17c612cf0dfaa4d0c24983 by Victor Stinner in 
branch 'master':
bpo-34092, test_logging: increase SMTPHandlerTest timeout (GH-8245)
https://github.com/python/cpython/commit/31b50b8cbfbf49d5fc17c612cf0dfaa4d0c24983


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34092] test_logging: SMTPHandlerTest.test_basic() fails randomly on x86 Gentoo Refleaks 3.7

2018-07-11 Thread STINNER Victor


STINNER Victor  added the comment:

Python 2.7 is not affected: it has no test for the SMTPHandler.

--
versions: +Python 3.6, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34092] test_logging: SMTPHandlerTest.test_basic() fails randomly on x86 Gentoo Refleaks 3.7

2018-07-11 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +7776
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34092] test_logging: SMTPHandlerTest.test_basic() fails randomly on x86 Gentoo Refleaks 3.7

2018-07-11 Thread STINNER Victor


STINNER Victor  added the comment:

bpo-14314 added a timeout of 5 seconds in the test:

-self.handled.wait()p
+self.handled.wait(5.0)  # 14314: don't wait forever

commit 17160fd6d6d7850294a9a465a3e5e399e5028bb6
Author: Vinay Sajip 
Date:   Thu Mar 15 12:02:08 2012 +

Fixes #14314: Improved SMTP timeout handling.


The timeout has been increased to 8 seconds by:

commit 827f5d35e592c21e4bb82afb702c6496cf77c2ad
Author: Vinay Sajip 
Date:   Tue Dec 3 11:28:55 2013 +

Issue #19665: Increased timeout for SMTPHandler test.


I suggest to just increase the timeout to 60 seconds.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34092] test_logging: SMTPHandlerTest.test_basic() fails randomly on x86 Gentoo Refleaks 3.7

2018-07-11 Thread STINNER Victor

New submission from STINNER Victor :

https://buildbot.python.org/all/#builders/114/builds/163

1:26:51 load avg: 4.83 [117/415/1] test_logging failed -- running: 
test_multiprocessing_forkserver (8 min 18 sec)
beginning 6 repetitions
123456
.--- Logging error ---
Traceback (most recent call last):
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/smtplib.py", 
line 387, in getreply
line = self.file.readline(_MAXLINE + 1)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/socket.py", 
line 589, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/logging/handlers.py",
 line 1007, in emit
smtp = smtplib.SMTP(self.mailhost, port, timeout=self.timeout)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/smtplib.py", 
line 251, in __init__
(code, msg) = self.connect(host, port)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/smtplib.py", 
line 338, in connect
(code, msg) = self.getreply()
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/smtplib.py", 
line 391, in getreply
+ str(e))
smtplib.SMTPServerDisconnected: Connection unexpectedly closed: timed out
Call stack:
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/runpy.py", 
line 193, in _run_module_as_main
"__main__", mod_spec)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/runpy.py", 
line 85, in _run_code
exec(code, run_globals)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/regrtest.py",
 line 50, in 
_main()
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/regrtest.py",
 line 46, in _main
main()
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/main.py",
 line 584, in main
Regrtest().main(tests=tests, **kwargs)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/main.py",
 line 531, in main
self._main(tests, kwargs)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/main.py",
 line 547, in _main
run_tests_slave(self.ns.slaveargs)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/runtest_mp.py",
 line 68, in run_tests_slave
result = runtest(ns, testname)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/runtest.py",
 line 140, in runtest
result = runtest_inner(ns, test, display_failure=not ns.verbose)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/runtest.py",
 line 177, in runtest_inner
refleak = dash_R(the_module, test, test_runner, ns.huntrleaks)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/refleak.py",
 line 69, in dash_R
indirect_test()
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/support/__init__.py",
 line 1606, in inner
return func(*args, **kwds)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/test_logging.py",
 line 4641, in test_main
support.run_unittest(*tests)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/support/__init__.py",
 line 1972, in run_unittest
_run_suite(suite)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/support/__init__.py",
 line 1882, in _run_suite
result = runner.run(suite)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/support/__init__.py",
 line 1781, in run
test(result)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py",
 line 84, in __call__
return self.run(*args, **kwds)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py",
 line 122, in run
test(result)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py",
 line 84, in __call__
return self.run(*args, **kwds)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/unittest/suite.py",
 line 122, in run
test(result)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/unittest/case.py",
 line 663, in __call__
return self.run(*args, **kwds)
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/unittest/case.py",
 line 615, in run
testMethod()
  File 
"/buildbot/buildarea/cpython/3.7.ware-gentoo-x86.refleak/build/Lib/test/test_logging.py",
 line 988, in test_basic
h.handle(r)
Message: 'Hello ✓'
Arguments: ()
test test_logging failed -- Traceback (most recent call last):
  File