Repository navigation
Closed
Description
This issue has been plaguing us for months since we started using xdist. We have a big test suite that extremely rarely fails with ValueError: signal only works in main thread. I have managed to get the full traceback of all threads in a normal run and in this case where it crashes.
Normal:
Thread 0x000070000fd66000 (most recent call first):
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/kazoo/handlers/threading.py", line 192 in _select
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/kazoo/handlers/threading.py", line 178 in select
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/kazoo/protocol/connection.py", line 553 in _connect_attempt
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/kazoo/protocol/connection.py", line 512 in _connect_loop
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/kazoo/retry.py", line 124 in __call__
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/kazoo/protocol/connection.py", line 473 in zk_loop
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864 in run
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916 in _bootstrap_inner
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 884 in _bootstrap
Thread 0x000070000f863000 (most recent call first):
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 295 in wait
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/queue.py", line 164 in get
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/kazoo/handlers/threading.py", line 120 in _thread_worker
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864 in run
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916 in _bootstrap_inner
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 884 in _bootstrap
Thread 0x000070000f360000 (most recent call first):
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 295 in wait
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/queue.py", line 164 in get
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/kazoo/handlers/threading.py", line 120 in _thread_worker
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864 in run
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916 in _bootstrap_inner
File "/usr/local/Cellar/python@3.6.5/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 884 in _bootstrap
Thread 0x000070000ee5d000 (most recent call first):
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 386 in read
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 418 in from_io
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 954 in _thread_receiver
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 213 in run
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 277 in _perform_spawn
Current thread 0x000000011088f5c0 (most recent call first):
File "/Users/andersh/triresolve/triresolve/matcher/matcher.py", line 1128 in go
File "/Users/andersh/triresolve/triresolve/matcher/matcher.py", line 3717 in match
File "/Users/andersh/triresolve/triresolve/matcher/cmdline.py", line 58 in update_match_view
File "/Users/andersh/triresolve/triresolve/matcher/test/integrationtest/test_3w_linking.py", line 304 in run_end_to_end_3w_linking_one_to_one
File "/Users/andersh/triresolve/triresolve/matcher/test/integrationtest/test_3w_linking.py", line 271 in test_end_to_end_3w_linking_one_to_one_normal_rec_trades_on_sub_entity
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/_pytest/python.py", line 166 in pytest_pyfunc_call
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/manager.py", line 61 in <lambda>
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/manager.py", line 67 in _hookexec
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/hooks.py", line 284 in __call__
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/_pytest/python.py", line 1425 in runtest
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/_pytest/runner.py", line 122 in pytest_runtest_call
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/manager.py", line 61 in <lambda>
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/manager.py", line 67 in _hookexec
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/hooks.py", line 284 in __call__
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/_pytest/runner.py", line 194 in <lambda>
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/_pytest/runner.py", line 212 in __init__
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/_pytest/runner.py", line 196 in call_runtest_hook
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/_pytest/runner.py", line 172 in call_and_report
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/_pytest/runner.py", line 92 in runtestprotocol
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/_pytest/runner.py", line 77 in pytest_runtest_protocol
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/manager.py", line 61 in <lambda>
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/manager.py", line 67 in _hookexec
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/hooks.py", line 284 in __call__
File "<remote exec>", line 83 in run_one_test
File "<remote exec>", line 69 in pytest_runtestloop
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/manager.py", line 61 in <lambda>
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/manager.py", line 67 in _hookexec
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/hooks.py", line 284 in __call__
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/_pytest/main.py", line 225 in _main
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/_pytest/main.py", line 185 in wrap_session
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/_pytest/main.py", line 218 in pytest_cmdline_main
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/manager.py", line 61 in <lambda>
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/manager.py", line 67 in _hookexec
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/pluggy/hooks.py", line 284 in __call__
File "<remote exec>", line 270 in <module>
File "<string>", line 1 in do_exec
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 1072 in executetask
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 213 in run
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 277 in _perform_spawn
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 259 in integrate_as_primary_thread
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 1047 in serve
File "/Users/andersh/triresolve/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 1534 in serve
File "<string>", line 8 in <module>
File "<string>", line 1 in <module>
Incorrect:
Thread 0x00007fc9108ba700 (most recent call first)://
File "/tmp/venv/lib/python3.6/site-packages/kazoo/handlers/threading.py", line 192 in _select//
File "/tmp/venv/lib/python3.6/site-packages/kazoo/handlers/threading.py", line 178 in select//
File "/tmp/venv/lib/python3.6/site-packages/kazoo/protocol/connection.py", line 553 in _connect_attempt//
File "/tmp/venv/lib/python3.6/site-packages/kazoo/protocol/connection.py", line 512 in _connect_loop//
File "/tmp/venv/lib/python3.6/site-packages/kazoo/retry.py", line 124 in __call__//
File "/tmp/venv/lib/python3.6/site-packages/kazoo/protocol/connection.py", line 473 in zk_loop//
File "/usr/lib64/python3.6/threading.py", line 864 in run//
File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner//
File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap
Thread 0x00007fc9110bb700 (most recent call first)://
File "/usr/lib64/python3.6/threading.py", line 295 in wait//
File "/usr/lib64/python3.6/queue.py", line 164 in get//
File "/tmp/venv/lib/python3.6/site-packages/kazoo/handlers/threading.py", line 120 in _thread_worker//
File "/usr/lib64/python3.6/threading.py", line 864 in run//
File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner//
File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap
Thread 0x00007fc9118bc700 (most recent call first)://
File "/usr/lib64/python3.6/threading.py", line 295 in wait//
File "/usr/lib64/python3.6/queue.py", line 164 in get//
File "/tmp/venv/lib/python3.6/site-packages/kazoo/handlers/threading.py", line 120 in _thread_worker//
File "/usr/lib64/python3.6/threading.py", line 864 in run//
File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner//
File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap
Thread 0x00007fc912ffd700 (most recent call first)://
File "/usr/lib64/python3.6/threading.py", line 295 in wait//
File "/usr/lib64/python3.6/queue.py", line 164 in get//
File "/usr/lib64/python3.6/concurrent/futures/thread.py", line 67 in _worker//
File "/usr/lib64/python3.6/threading.py", line 864 in run//
File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner//
File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap
Thread 0x00007fc9137fe700 (most recent call first)://
File "/usr/lib64/python3.6/threading.py", line 295 in wait//
File "/usr/lib64/python3.6/queue.py", line 164 in get//
File "/usr/lib64/python3.6/concurrent/futures/thread.py", line 67 in _worker//
File "/usr/lib64/python3.6/threading.py", line 864 in run//
File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner//
File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap
Thread 0x00007fc913fff700 (most recent call first)://
File "/usr/lib64/python3.6/threading.py", line 299 in wait//
File "/usr/lib64/python3.6/threading.py", line 551 in wait//
File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner//
File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap
Thread 0x00007fc918d1e700 (most recent call first)://
File "/usr/lib64/python3.6/asyncore.py", line 183 in poll2//
File "/usr/lib64/python3.6/asyncore.py", line 207 in loop//
File "/tmp/venv/lib/python3.6/site-packages/cassandra/io/asyncorereactor.py", line 119 in loop//
File "/tmp/venv/lib/python3.6/site-packages/cassandra/io/asyncorereactor.py", line 258 in _run_loop//
File "/usr/lib64/python3.6/threading.py", line 864 in run//
File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner//
File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap
Thread 0x00007fc921a79700 (most recent call first)://
File "/usr/lib64/python3.6/threading.py", line 295 in wait//
File "/usr/lib64/python3.6/queue.py", line 164 in get//
File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner//
File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap
Current thread 0x00007fc94637f700 (most recent call first)://
File "/opt/trioptima/triresolve/triresolve/matcher/matcher.py", line 1124 in go//
File "/opt/trioptima/triresolve/triresolve/matcher/matcher.py", line 3713 in match//
File "/opt/trioptima/triresolve/triresolve/matcher/cmdline.py", line 58 in update_match_view//
File "/opt/trioptima/triresolve/triresolve/matcher/test/integrationtest/test_3w_linking.py", line 304 in run_end_to_end_3w_linking_one_to_one
File "/opt/trioptima/triresolve/triresolve/matcher/test/integrationtest/test_3w_linking.py", line 271 in// test_end_to_end_3w_linking_one_to_one_normal_rec_trades_on_sub_entity//
File "/tmp/venv/lib/python3.6/site-packages/_pytest/python.py", line 166 in pytest_pyfunc_call//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/manager.py", line 61 in <lambda>//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/manager.py", line 67 in _hookexec//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/hooks.py", line 284 in __call__//
File "/tmp/venv/lib/python3.6/site-packages/_pytest/python.py", line 1425 in runtest//
File "/tmp/venv/lib/python3.6/site-packages/_pytest/runner.py", line 122 in pytest_runtest_call//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/manager.py", line 61 in <lambda>//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/manager.py", line 67 in _hookexec//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/hooks.py", line 284 in __call__//
File "/tmp/venv/lib/python3.6/site-packages/_pytest/runner.py", line 194 in <lambda>//
File "/tmp/venv/lib/python3.6/site-packages/_pytest/runner.py", line 212 in __init__//
File "/tmp/venv/lib/python3.6/site-packages/_pytest/runner.py", line 196 in call_runtest_hook//
File "/tmp/venv/lib/python3.6/site-packages/_pytest/runner.py", line 172 in call_and_report//
File "/tmp/venv/lib/python3.6/site-packages/_pytest/runner.py", line 92 in runtestprotocol//
File "/tmp/venv/lib/python3.6/site-packages/_pytest/runner.py", line 77 in pytest_runtest_protocol//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/manager.py", line 61 in <lambda>//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/manager.py", line 67 in _hookexec//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/hooks.py", line 284 in __call__//
File "<remote exec>", line 83 in run_one_test//
File "<remote exec>", line 66 in pytest_runtestloop//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/manager.py", line 61 in <lambda>//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/manager.py", line 67 in _hookexec//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/hooks.py", line 284 in __call__//
File "/tmp/venv/lib/python3.6/site-packages/_pytest/main.py", line 225 in _main//
File "/tmp/venv/lib/python3.6/site-packages/_pytest/main.py", line 185 in wrap_session//
File "/tmp/venv/lib/python3.6/site-packages/_pytest/main.py", line 218 in pytest_cmdline_main//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/manager.py", line 61 in <lambda>//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/manager.py", line 67 in _hookexec//
File "/tmp/venv/lib/python3.6/site-packages/pluggy/hooks.py", line 284 in __call__//
File "<remote exec>", line 270 in <module>//
File "<string>", line 1 in do_exec//
File "/tmp/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 1072 in executetask//
File "/tmp/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 213 in run//
File "/tmp/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 277 in _perform_spawn
Thread 0x00007fc946bc0700 (most recent call first)://
File "/tmp/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 386 in read//
File "/tmp/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 418 in from_io//
File "/tmp/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 954 in _thread_receiver//
File "/tmp/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 213 in run//
File "/tmp/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 277 in _perform_spawn
Thread 0x00007fc9484c0740 (most recent call first)://
File "/usr/lib64/python3.6/threading.py", line 295 in wait//
File "/usr/lib64/python3.6/threading.py", line 551 in wait//
File "/tmp/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 255 in integrate_as_primary_thread//
File "/tmp/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 1047 in serve//
File "/tmp/venv/lib/python3.6/site-packages/execnet/gateway_base.py", line 1534 in serve//
File "<string>", line 8 in <module>
File "<string>", line 1 in <module>mysql strict mode! at least in tests://
Digging through the code it looks to me like _try_send_to_primary_thread fails for some reason, even though we are running in process mode. This is obviously a guess though, as I don't understand this code very well.
Help! :)
Reacted by Alex Ted
Metadata
Metadata
Assignees
Labels
No labels
Activity
robholt commentedon Oct 15, 2019
I'm having this same issue and I think I figured it out. It happens for me when I add extra environment variables to a spec. If
spec.chdir,spec.nice, orspec.envare set it triggers an extraremote_execbefore the xdist remote function is run. This can trigger a race in theWorkerPool(where the_try_send_to_primary_threadis). The race is this:remote_execis received. The main thread is not busy so it picks this up_primary_thread_task_readyevent.remote_execwith the xdist remote module._primary_thread_task_readyevent has not been unset yet it won't be assigned to the main thread.The problem lies here:
execnet/execnet/gateway_base.py
Lines 267 to 272 in f923a3e
The
_perform_spawnmethod sends the reply back, but theprimary_thread_task_readyevent is not unset until later, and requires the_running_locklock to unset it. Processing incoming exec requests also uses the_running_locklock, and if that thread acquires the lock before the main thread does (so it could unset the event) then the incoming exec is guaranteed to not run on the main thread. I confirmed this by addingtime.sleep(1)right after_perform_spawn, with that the issue triggers every time.I think I know how to fix this, hopefully I will have a PR soon.
robholt commentedon Oct 15, 2019
This turned out to be a lot more complicated. What really happens is that the master uses the channel closing to indicate the worker is done executing, and that happens well before the
WorkerPoolsees the main thread as done. Some changes could be made to decrease this gap, but I don't think it could be eliminated without a significant refactor.I've been testing out the eventlet execmodel and I believe it will eliminate the problem (since everything will run on the main thread) and signals will work. To use it with xdist you can replace
-n NUMwith--dist=load --tx='NUM*popen//execmodel=eventlet'boxed commentedon Oct 16, 2019
Great investigating!
mattgodbolt commentedon Mar 25, 2021
Hey folks. This is a fairly dormant-looking thread, but I wondered if it might explain a super-intermittant issue we see.
We're using xdist 1.32, and execnet 1.7.1.
In async tests super rarely we get errors saying
RuntimeError: There is no current event loop in thread 'Dummy-1'- which I've traced back to the tests not running on the main thread (and thus not having a default event loop). It seems like this is the same issue - a rare case where tests get run on the "wrong" thread.Would you concur, and do you have any advice for how to work around it? Thanks in advance.
nicoddemus commentedon Mar 26, 2021
@mattgodbolt please try updating to
1.8.0: #118 seems to tackle exactly that problem.nicoddemus commentedon Mar 26, 2021
I just confirmed: before
1.8.0, we would get this an error related to dummy threads a few times per week. Since updating to1.8.0in late January, we never got the error again.Closing this as solved now then. All credits go to @graingert for finding the problem and providing a PR. 👍
nicoddemus commentedon May 16, 2023
Reopening given the problem still persists:
pytest-xdistbreaks asyncio-based code expecting to be run in the main thread pytest-xdist#620nicoddemus commentedon May 16, 2023
I wonder if we can create a new configuration option which would cause the remote worker to never open a new thread for remote execution, always executing them serially in the main thread? I think this would solve the problem, at least for pytest-xdist's use case.
zzzeek commentedon May 16, 2023
yeah why is this spinning up threads, just turning that off would solve the issue we are having
RonnyPfannschmidt commentedon May 16, 2023
The threads came in when exec Model got introduced in execnet
Before main thread was the default
nicoddemus commentedon May 16, 2023
You mean it would always execute the requests serially?
I looked at the other execution models, perhaps it is possible to implement a "dumb" (as in "dumb threads") execution model that executes things immediately, blocking.
RonnyPfannschmidt commentedon May 16, 2023
problem isnt where the threads are, but configured startup behaviour
aka
execnet/execnet/gateway_base.py
Line 381 in f343505
bascially if more than one remote_exec is active due to how xdist starts, then the main thread may or may not be used
its a timing game and every time its lost, xdist runs the worker in a random thread instead of the main thread
RonnyPfannschmidt commentedon May 16, 2023
rather than changing execmodel again with even more hacks, i'd like to completely remove it instead
before execmodel was introduced, one had to explicitly start up the workerpool
with exexmodel it was started implicitly, and it hasa hack that kinda makes xdist work, but not reliably
10 remaining items
[MNT] [Dependabot](deps-dev): Update pytest-xdist requirement from <3…
Update pytest-xdist requirement from <3.4,>=2.1.0 to >=2.1.0,<3.6 (#6517
actions: Use pytest-rerunfailures for pytest-xdist worker crash
WorkerPool: Wait for previous task in _try_send_to_primary_thread
WorkerPool: Wait for previous task in _try_send_to_primary_thread
WorkerPool: Wait for previous task in _try_send_to_primary_thread
Add main_thread_only execmodel
Add main_thread_only execmodel
Add main_thread_only execmodel
Add main_thread_only execmodel
Bump execnet from 2.0.2 to 2.1.0 (#1021)
work around pytest-dev/execnet#96 in one hypothesis test
work around pytest-dev/execnet#96 in one hypothesis test
chore(deps): update dependency pytest-xdist to v3 (main) (elastic#8045)