pytest-xdist/testing
Aleksandr Mezin 9788f12e9e
Make 'steal' command atomic (#1144)
Either unschedule all requested tests, or none if it's not possible -
if some of the requested tests have already been processed by the time
the request arrives. It may happen if the worker runs tests faster than
the controller receives and processes status updates. But in this case
maybe it's just better to let the worker keep running.

This is a prerequisite for group/scope support in worksteal scheduler -
so they won't be broken up incorrectly.

This change could break schedulers that use "steal" command. However:

1) worksteal scheduler doesn't need any adjustments.

2) I'm not aware of any external schedulers relying on this command yet.

So I think it's better to keep the protocol simple, not complicate it for
imaginary compatibility with some unknown and likely non-existent
schedulers.

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2024-10-30 14:00:10 -03:00
..
acceptance_test.py Improve typing 2024-04-15 23:30:17 +03:00
conftest.py Improve typing 2024-04-15 23:30:17 +03:00
test_dsession.py Clarify error message to indicate that users should refer to the documentation of pytest-xdist (#1092) 2024-06-04 08:50:20 -03:00
test_looponfail.py Improve typing 2024-04-15 23:30:17 +03:00
test_newhooks.py Make docstring style more consistent 2024-04-03 00:19:31 +03:00
test_plugin.py Improve typing 2024-04-15 23:30:17 +03:00
test_remote.py Make 'steal' command atomic (#1144) 2024-10-30 14:00:10 -03:00
test_workermanage.py Use execnet main_thread_only execmodel (#1027) 2024-04-19 08:03:32 -03:00
util.py Improve typing 2024-04-15 23:30:17 +03:00