pytest-xdist 3.0.2 (2022-10-25)
Bug Fixes
[#813](https://github.com/pytest-dev/pytest-xdist/issues/813) <https://github.com/pytest-dev/pytest-xdist/issues/813>_: Cancel shutdown when a crashed worker is restarted.
Deprecations
-
[#825](https://github.com/pytest-dev/pytest-xdist/issues/825) <https://github.com/pytest-dev/pytest-xdist/issues/825>_: The--rsyncdircommand line argument andrsyncdirsconfig variable are deprecated.The rsync feature will be removed in pytest-xdist 4.0.
-
[#826](https://github.com/pytest-dev/pytest-xdist/issues/826) <https://github.com/pytest-dev/pytest-xdist/issues/826>_: The--looponfailcommand line argument andlooponfailrootsconfig variable are deprecated.The loop-on-fail feature will be removed in pytest-xdist 4.0.
Improved Documentation
-
[#791](https://github.com/pytest-dev/pytest-xdist/issues/791) <https://github.com/pytest-dev/pytest-xdist/issues/791>_: Document thepytest_xdist_auto_num_workershook. -
[#796](https://github.com/pytest-dev/pytest-xdist/issues/796) <https://github.com/pytest-dev/pytest-xdist/issues/796>_: Added known limitations section to documentation. -
[#829](https://github.com/pytest-dev/pytest-xdist/issues/829) <https://github.com/pytest-dev/pytest-xdist/issues/829>_: Document the-n logicaloption.
Features
-
[#792](https://github.com/pytest-dev/pytest-xdist/issues/792) <https://github.com/pytest-dev/pytest-xdist/issues/792>_: The environment variablePYTEST_XDIST_AUTO_NUM_WORKERScan now be used to specify the default for-n autoand-n logical. -
[#812](https://github.com/pytest-dev/pytest-xdist/issues/812) <https://github.com/pytest-dev/pytest-xdist/issues/812>_: Partially restore old initial batch distribution algorithm inLoadScheduling.pytest orders tests for optimal sequential execution - i. e. avoiding unnecessary setup and teardown of fixtures. So executing tests in consecutive chunks is important for optimal performance.
In v1.14, initial test distribution in
LoadSchedulingwas changed to round-robin, optimized for the corner case, when the number of tests is less than2 * number of nodes. At the same time, it became worse for all other cases.For example: if some tests use some "heavy" fixture, and these tests fit into the initial batch, with round-robin distribution the fixture will be created
... (truncated)