mailman.rest.tests.test_lists.TestListPagination.test_zeroth_page hangs
On a particular host of mine (older x86 host running Debian testing, Linux 4.7.0, when running just "tox" (either from the command line or from a script), test_zeroth_page consistently hangs in the py35-nocov environment. This does not happen to other developers (Florian, Terri), and it does not happen when I run tox -e py35-ncov -- mailman.rest.tests.test_lists.
Experimenting with timeout_decorator.timeout I got tracebacks like this when interrupting the test, but I have no idea whether they're relevant. Sorry for the mess.
steve@turnbull:~/src/Mailman/test/mailman$ tox -e py35-nocov -- mailman.rest.tests.test_lists
py35-nocov develop-inst-nodeps: /home/steve/src/Mailman/test/mailman
py35-nocov installed: aiosmtpd==1.0a4,alembic==0.8.10,appdirs==1.4.0,atpublic==0.5,dnspython==1.15.0,falcon==1.1.0,flufl.bounce==3.0,flufl.i18n==1.1.3,flufl.lock==2.4.1,flufl.testing==0.7,lazr.config==2.2,lazr.delegates==2.0.3,-e git+/home/steve/src/Mailman/test/../suite/mailman@ed253bd153e77d3182ba00521e819b25c0f6dba0#egg=mailman,Mako==1.0.6,MarkupSafe==0.23,nose==1.3.7,nose2==0.6.5,packaging==16.8,passlib==1.7.1,pkg-resources==0.0.0,python-editor==1.0.3,python-mimeparse==1.6.0,requests==2.13.0,six==1.10.0,SQLAlchemy==1.1.5,timeout-decorator==0.3.3,zope.component==4.3.0,zope.configuration==4.0.3,zope.event==4.2.0,zope.i18nmessageid==4.0.3,zope.interface==4.3.3,zope.schema==4.4.2
py35-nocov runtests: PYTHONHASHSEED='4234497351'
py35-nocov runtests: commands[0] | python -m nose2 -v mailman.rest.tests.test_lists
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/aiosmtpd/controller.py", line 43, in _run
sock.bind((self.hostname, self.port))
OSError: [Errno 98] Address already in use
^CERROR: KEYBOARDINTERRUPT
steve@turnbull:~/src/Mailman/test/mailman$ tox -e py35-nocov -- mailman.rest.tests.test_lists
py35-nocov develop-inst-nodeps: /home/steve/src/Mailman/test/mailman
py35-nocov installed: aiosmtpd==1.0a4,alembic==0.8.10,appdirs==1.4.0,atpublic==0.5,dnspython==1.15.0,falcon==1.1.0,flufl.bounce==3.0,flufl.i18n==1.1.3,flufl.lock==2.4.1,flufl.testing==0.7,lazr.config==2.2,lazr.delegates==2.0.3,-e git+/home/steve/src/Mailman/test/../suite/mailman@ed253bd153e77d3182ba00521e819b25c0f6dba0#egg=mailman,Mako==1.0.6,MarkupSafe==0.23,nose==1.3.7,nose2==0.6.5,packaging==16.8,passlib==1.7.1,pkg-resources==0.0.0,python-editor==1.0.3,python-mimeparse==1.6.0,requests==2.13.0,six==1.10.0,SQLAlchemy==1.1.5,timeout-decorator==0.3.3,zope.component==4.3.0,zope.configuration==4.0.3,zope.event==4.2.0,zope.i18nmessageid==4.0.3,zope.interface==4.3.3,zope.schema==4.4.2
py35-nocov runtests: PYTHONHASHSEED='1492042662'
py35-nocov runtests: commands[0] | python -m nose2 -v mailman.rest.tests.test_lists
test_archiver_statuses (mailman.rest.tests.test_lists.TestListArchivers) ... ok
test_archiver_statuses_on_missing_lists (mailman.rest.tests.test_lists.TestListArchivers) ... ok
test_patch_bogus_archiver (mailman.rest.tests.test_lists.TestListArchivers) ... ok
test_patch_bogus_status (mailman.rest.tests.test_lists.TestListArchivers) ... ok
test_put_bogus_archiver (mailman.rest.tests.test_lists.TestListArchivers) ... ok
test_put_incomplete_statuses (mailman.rest.tests.test_lists.TestListArchivers) ... ok
test_bad_digest_url (mailman.rest.tests.test_lists.TestListDigests) ... ok
test_bump_before_send (mailman.rest.tests.test_lists.TestListDigests) ... ok
test_post_bad_request (mailman.rest.tests.test_lists.TestListDigests) ... ok
test_post_nothing_to_do (mailman.rest.tests.test_lists.TestListDigests) ... ok
test_post_something_to_do (mailman.rest.tests.test_lists.TestListDigests) ... ok
test_first_page (mailman.rest.tests.test_lists.TestListPagination) ... ok
test_last_page (mailman.rest.tests.test_lists.TestListPagination) ... ok
test_negative_page (mailman.rest.tests.test_lists.TestListPagination) ... ok
test_past_last_page (mailman.rest.tests.test_lists.TestListPagination) ... ok
test_second_page (mailman.rest.tests.test_lists.TestListPagination) ... ok
test_zeroth_page (mailman.rest.tests.test_lists.TestListPagination) ... Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/home/steve/src/Mailman/test/mailman/src/mailman/testing/helpers.py", line 199, in loop
super().loop()
File "/home/steve/src/Mailman/test/mailman/src/mailman/bin/master.py", line 462, in loop
rname, slice_number, count, restarts = self._kids.pop(pid)
File "/home/steve/src/Mailman/test/mailman/src/mailman/bin/master.py", line 268, in pop
return self._pids.pop(pid)
KeyError: 12818
ERROR
steve@turnbull:~/src/Mailman/test/mailman$ tox -e py35-nocov -- mailman.rest.tests.test_lists
py35-nocov develop-inst-nodeps: /home/steve/src/Mailman/test/mailman
py35-nocov installed: aiosmtpd==1.0a4,alembic==0.8.10,appdirs==1.4.0,atpublic==0.5,dnspython==1.15.0,falcon==1.1.0,flufl.bounce==3.0,flufl.i18n==1.1.3,flufl.lock==2.4.1,flufl.testing==0.7,lazr.config==2.2,lazr.delegates==2.0.3,-e git+/home/steve/src/Mailman/test/../suite/mailman@ed253bd153e77d3182ba00521e819b25c0f6dba0#egg=mailman,Mako==1.0.6,MarkupSafe==0.23,nose==1.3.7,nose2==0.6.5,packaging==16.8,passlib==1.7.1,pkg-resources==0.0.0,python-editor==1.0.3,python-mimeparse==1.6.0,requests==2.13.0,six==1.10.0,SQLAlchemy==1.1.5,timeout-decorator==0.3.3,zope.component==4.3.0,zope.configuration==4.0.3,zope.event==4.2.0,zope.i18nmessageid==4.0.3,zope.interface==4.3.3,zope.schema==4.4.2
py35-nocov runtests: PYTHONHASHSEED='925712344'
py35-nocov runtests: commands[0] | python -m nose2 -v mailman.rest.tests.test_lists
test_archiver_statuses (mailman.rest.tests.test_lists.TestListArchivers) ... ok
test_archiver_statuses_on_missing_lists (mailman.rest.tests.test_lists.TestListArchivers) ... ok
test_patch_bogus_archiver (mailman.rest.tests.test_lists.TestListArchivers) ... ok
test_patch_bogus_status (mailman.rest.tests.test_lists.TestListArchivers) ... ok
test_put_bogus_archiver (mailman.rest.tests.test_lists.TestListArchivers) ... ok
test_put_incomplete_statuses (mailman.rest.tests.test_lists.TestListArchivers) ... ok
test_bad_digest_url (mailman.rest.tests.test_lists.TestListDigests) ... ok
test_bump_before_send (mailman.rest.tests.test_lists.TestListDigests) ... ok
test_post_bad_request (mailman.rest.tests.test_lists.TestListDigests) ... ok
test_post_nothing_to_do (mailman.rest.tests.test_lists.TestListDigests) ... ok
test_post_something_to_do (mailman.rest.tests.test_lists.TestListDigests) ... ok
test_first_page (mailman.rest.tests.test_lists.TestListPagination) ... ok
test_last_page (mailman.rest.tests.test_lists.TestListPagination) ... ok
test_negative_page (mailman.rest.tests.test_lists.TestListPagination) ... ok
test_past_last_page (mailman.rest.tests.test_lists.TestListPagination) ... ok
test_second_page (mailman.rest.tests.test_lists.TestListPagination) ... ok
test_zeroth_page (mailman.rest.tests.test_lists.TestListPagination) ... Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/home/steve/src/Mailman/test/mailman/src/mailman/testing/helpers.py", line 199, in loop
super().loop()
File "/home/steve/src/Mailman/test/mailman/src/mailman/bin/master.py", line 462, in loop
rname, slice_number, count, restarts = self._kids.pop(pid)
File "/home/steve/src/Mailman/test/mailman/src/mailman/bin/master.py", line 268, in pop
return self._pids.pop(pid)
KeyError: 12967
steve@turnbull:~/src/Mailman/test/mailman$ tox -e py35-nocov -- mailman.rest.tests.test_lists.TestListPagination
py35-nocov develop-inst-nodeps: /home/steve/src/Mailman/test/mailman
py35-nocov installed: aiosmtpd==1.0a4,alembic==0.8.10,appdirs==1.4.0,atpublic==0.5,dnspython==1.15.0,falcon==1.1.0,flufl.bounce==3.0,flufl.i18n==1.1.3,flufl.lock==2.4.1,flufl.testing==0.7,lazr.config==2.2,lazr.delegates==2.0.3,-e git+/home/steve/src/Mailman/test/../suite/mailman@ed253bd153e77d3182ba00521e819b25c0f6dba0#egg=mailman,Mako==1.0.6,MarkupSafe==0.23,nose==1.3.7,nose2==0.6.5,packaging==16.8,passlib==1.7.1,pkg-resources==0.0.0,python-editor==1.0.3,python-mimeparse==1.6.0,requests==2.13.0,six==1.10.0,SQLAlchemy==1.1.5,timeout-decorator==0.3.3,zope.component==4.3.0,zope.configuration==4.0.3,zope.event==4.2.0,zope.i18nmessageid==4.0.3,zope.interface==4.3.3,zope.schema==4.4.2
py35-nocov runtests: PYTHONHASHSEED='182284323'
py35-nocov runtests: commands[0] | python -m nose2 -v mailman.rest.tests.test_lists.TestListPagination
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/aiosmtpd/controller.py", line 43, in _run
sock.bind((self.hostname, self.port))
OSError: [Errno 98] Address already in use
^CERROR: KEYBOARDINTERRUPT
----------------------------------------------------------------------
Ran 0 tests in 25.520s
OK
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/nose2/__main__.py", line 12, in <module>
discover()
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/nose2/main.py", line 306, in discover
return main(*args, **kwargs)
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/nose2/main.py", line 100, in __init__
super(PluggableTestProgram, self).__init__(**kw)
File "/usr/lib/python3.5/unittest/main.py", line 94, in __init__
self.runTests()
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/nose2/main.py", line 271, in runTests
self.result = runner.run(self.test)
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/nose2/runner.py", line 53, in run
executor(test, result)
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/nose2/runner.py", line 41, in <lambda>
executor = lambda suite, result: suite(result)
File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python3.5/unittest/suite.py", line 122, in run
test(result)
File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/nose2/suite.py", line 33, in run
test(result)
File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/nose2/suite.py", line 33, in run
test(result)
File "/usr/lib/python3.5/unittest/suite.py", line 84, in __call__
return self.run(*args, **kwds)
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/nose2/suite.py", line 25, in run
if not self._safeMethodCall(self.setUp, result):
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/nose2/suite.py", line 88, in _safeMethodCall
method(*args)
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/nose2/suite.py", line 46, in setUp
setup()
File "/home/steve/src/Mailman/test/mailman/src/mailman/testing/layers.py", line 240, in setUp
cls.smtpd.start()
File "/home/steve/src/Mailman/test/mailman/src/mailman/testing/mta.py", line 184, in start
super().start()
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/aiosmtpd/controller.py", line 60, in start
ready_event.wait()
File "/usr/lib/python3.5/threading.py", line 549, in wait
signaled = self._cond.wait(timeout)
File "/usr/lib/python3.5/threading.py", line 293, in wait
waiter.acquire()
KeyboardInterrupt
ERROR: keyboardinterrupt
steve@turnbull:~/src/Mailman/test/mailman$ tox -e py35-nocov -- mailman.rest.tests.test_lists.TestListPagination
py35-nocov develop-inst-nodeps: /home/steve/src/Mailman/test/mailman
py35-nocov installed: aiosmtpd==1.0a4,alembic==0.8.10,appdirs==1.4.0,atpublic==0.5,dnspython==1.15.0,falcon==1.1.0,flufl.bounce==3.0,flufl.i18n==1.1.3,flufl.lock==2.4.1,flufl.testing==0.7,lazr.config==2.2,lazr.delegates==2.0.3,-e git+/home/steve/src/Mailman/test/../suite/mailman@ed253bd153e77d3182ba00521e819b25c0f6dba0#egg=mailman,Mako==1.0.6,MarkupSafe==0.23,nose==1.3.7,nose2==0.6.5,packaging==16.8,passlib==1.7.1,pkg-resources==0.0.0,python-editor==1.0.3,python-mimeparse==1.6.0,requests==2.13.0,six==1.10.0,SQLAlchemy==1.1.5,timeout-decorator==0.3.3,zope.component==4.3.0,zope.configuration==4.0.3,zope.event==4.2.0,zope.i18nmessageid==4.0.3,zope.interface==4.3.3,zope.schema==4.4.2
py35-nocov runtests: PYTHONHASHSEED='2194838723'
py35-nocov runtests: commands[0] | python -m nose2 -v mailman.rest.tests.test_lists.TestListPagination
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/home/steve/src/Mailman/test/mailman/.tox/py35-nocov/lib/python3.5/site-packages/aiosmtpd/controller.py", line 43, in _run
sock.bind((self.hostname, self.port))
OSError: [Errno 98] Address already in use
^CERROR: KEYBOARDINTERRUPT
----------------------------------------------------------------------
Ran 0 tests in 13.527s