Summary: | dev-python/eventlet-0.30.2-r1: fails tests.patcher_test.test_fork_after_monkey_patch test | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam James <sam> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kingjon3377, mgorny |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 790881 | ||
Attachments: | build.log |
Description
Sam James
2021-05-24 02:39:24 UTC
Could you try without sandbox? Note that you need to disable both sandbox and usersandbox. Same with 0.31.0 on sparc. Same with 0.31.1 on riscv. Disabling sandbox and usersandbox doesn't help. (In reply to Michał Górny from comment #1) > Could you try without sandbox? Note that you need to disable both sandbox > and usersandbox. Yeah, this avoids all the static ELF spam (which upsets the test looking for specific output). (Related: https://github.com/gentoo/sandbox/commit/99e318c1a2640091204f970a2e9ff4bdc238980d.) But the failure still occurs. tests.patcher_test.test_fork_after_monkey_patch ... Program /var/tmp/portage/dev-python/eventlet-0.32.0/work/eventlet-0.32.0/tests/isolated/patcher_fork_after_monkey_patch.py output: --- Traceback (most recent call last): File "/var/tmp/portage/dev-python/eventlet-0.32.0/work/eventlet-0.32.0/tests/isolated/patcher_fork_after_monkey_patch.py", line 49, in <module> check(2, threading, 'post-fork patched') File "/var/tmp/portage/dev-python/eventlet-0.32.0/work/eventlet-0.32.0/tests/isolated/patcher_fork_after_monkey_patch.py", line 7, in check assert len(mod._active) == n, 'Expected {} {} threads, got {}'.format(n, tag, mod._active) AssertionError: Expected 2 post-fork patched threads, got {281473441758544: <_MainThread(MainThread, started 281473441758544)>} --- FAIL ====================================================================== FAIL: tests.patcher_test.test_fork_after_monkey_patch ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/var/tmp/portage/dev-python/eventlet-0.32.0/work/eventlet-0.32.0/tests/patcher_test.py", line 521, in test_fork_after_monkey_patch tests.run_isolated('patcher_fork_after_monkey_patch.py') File "/var/tmp/portage/dev-python/eventlet-0.32.0/work/eventlet-0.32.0/tests/__init__.py", line 381, in run_isolated run_python(prefix + path, **kwargs) File "/var/tmp/portage/dev-python/eventlet-0.32.0/work/eventlet-0.32.0/tests/__init__.py", line 374, in run_python assert ok, 'Expected single line "pass" in stdout' AssertionError: Expected single line "pass" in stdout ---------------------------------------------------------------------- Ran 424 tests in 232.023s FAILED (SKIP=94, failures=1) * ERROR: dev-python/eventlet-0.32.0::gentoo fail still happen in 0.32.0-r1
> AssertionError: Expected 2 post-fork patched threads, got {281473724506128: <_MainThread(MainThread, started 281473724506128)>}
This seems to be caused by timeout. the threads don't have enough time to proceed.
in tests/isolated/patcher_fork_after_monkey_patch.py
16 import threading
17 _threading = eventlet.patcher.original('threading')
18 import eventlet.green.threading
19
20 def target():
21> eventlet.sleep(0.1)
changing eventlet.sleep(0.1) to eventlet.sleep(0.5) will make test pass
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e79e0ffb4eea5af7be454acf860421357ce8e2c9 commit e79e0ffb4eea5af7be454acf860421357ce8e2c9 Author: Arthur Zamarin <arthurzam@gentoo.org> AuthorDate: 2021-11-29 17:08:29 +0000 Commit: Arthur Zamarin <arthurzam@gentoo.org> CommitDate: 2021-11-29 17:15:19 +0000 dev-python/eventlet: increase test timeout Thanks to Alex Fan for finding the issue By Dakon's request, timeout increased to 5.0 No revbump as change is for test only file Closes: https://bugs.gentoo.org/791748 Suggested-by: Alex Fan <alex.fan.q@gmail.com> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> dev-python/eventlet/eventlet-0.32.0-r1.ebuild | 7 +++++++ dev-python/eventlet/eventlet-0.33.0.ebuild | 7 +++++++ 2 files changed, 14 insertions(+) |