You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get to this information I first created a set of all test names, pytest --collect-only parsed the content for the functions name. Then I logged the pytest -n auto --dist loadfile of executed tests until it gets stuck.
I did several runs, always waiting until it stucks, then I compared both sets.
It gives more or less a random result. It is likly not a test the reason for the problems.
keyboard interrupt shows always something
^CTraceback (most recent call last):
File "/Users/reimarbauer/miniforge3/envs/mssdev/bin/pytest", line 10, in <module>
sys.exit(console_main())
^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/_pytest/config/__init__.py", line 201, in console_main
code = main()
^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/_pytest/config/__init__.py", line 175, in main
ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/pluggy/_callers.py", line 139, in _multicall
raise exception.with_traceback(exception.__traceback__)
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main
return wrap_session(config, _main)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/_pytest/main.py", line 318, in wrap_session
config.hook.pytest_sessionfinish(
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/pluggy/_callers.py", line 139, in _multicall
raise exception.with_traceback(exception.__traceback__)
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/_pytest/logging.py", line 868, in pytest_sessionfinish
return (yield)
^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/_pytest/terminal.py", line 893, in pytest_sessionfinish
result = yield
^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/pluggy/_callers.py", line 122, in _multicall
teardown.throw(exception) # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/_pytest/warnings.py", line 141, in pytest_sessionfinish
return (yield)
^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/xdist/dsession.py", line 99, in pytest_sessionfinish
nm.teardown_nodes()
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/xdist/workermanage.py", line 108, in teardown_nodes
self.group.terminate(self.EXIT_TIMEOUT)
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/execnet/multi.py", line 237, in terminate
safe_terminate(
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/execnet/multi.py", line 348, in safe_terminate
reply.get()
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/execnet/gateway_base.py", line 327, in get
self.waitfinish(timeout)
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/execnet/gateway_base.py", line 334, in waitfinish
if not self._result_ready.wait(timeout):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/threading.py", line 629, in wait
signaled = self._cond.wait(timeout)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/threading.py", line 327, in wait
waiter.acquire()
KeyboardInterrupt
/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/_pytest/main.py:318: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
Plugin: 4371712080, Hook: pytest_sessionfinish
OSError: cannot send (already closed?)
For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
config.hook.pytest_sessionfinish(
/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/_pytest/main.py:318: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
Plugin: 4471325136, Hook: pytest_sessionfinish
OSError: cannot send (already closed?)
For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
config.hook.pytest_sessionfinish(
/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/_pytest/main.py:318: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
Plugin: 4440489744, Hook: pytest_sessionfinish
OSError: cannot send (already closed?)
For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
config.hook.pytest_sessionfinish(
/Users/reimarbauer/miniforge3/envs/mssdev/lib/python3.11/site-packages/_pytest/main.py:318: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
Plugin: 14107635856, Hook: pytest_sessionfinish
OSError: cannot send (already closed?)
For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
config.hook.pytest_sessionfinish(``
The text was updated successfully, but these errors were encountered:
hi @ReimarBauer
I think the failing test cases are due to race conditions and shared state issues when running tests in parallel using pytest -n auto --dist loadfile.
i think we should add more @pytest.mark tags to better categorise the parrallel test execution
To get to this information I first created a set of all test names,
pytest --collect-only
parsed the content for the functions name. Then I logged thepytest -n auto --dist loadfile
of executed tests until it gets stuck.I did several runs, always waiting until it stucks, then I compared both sets.
It gives more or less a random result. It is likly not a test the reason for the problems.
keyboard interrupt shows always something
The text was updated successfully, but these errors were encountered: