Changelog
### 1.22.5
```
================================
Bug Fixes
---------
- `321 <https://github.com/pytest-dev/pytest-xdist/issues/321>`_: Revert change that dropped support for ``pytest<3.4`` and require ``six``.
This change caused problems in some installations, and was a mistaken
in the first place as we should not change version requirements
in bug-fix releases unless they fix an actual bug.
```
### 1.22.4
```
================================
Bug Fixes
---------
- `305 <https://github.com/pytest-dev/pytest-xdist/issues/305>`_: Remove last references to obsolete ``py.code``.
Remove some unnecessary references to ``py.builtin``.
- `316 <https://github.com/pytest-dev/pytest-xdist/issues/316>`_: Workaround cpu detection on Travis CI.
```
### 1.22.3
```
================================
Bug Fixes
---------
- Fix issue of virtualized or containerized environments not reporting the number of CPUs correctly. (`9 <https://github.com/pytest-dev/pytest-xdist/issues/9>`_)
Trivial Changes
---------------
- Make all classes subclass from ``object`` and fix ``super()`` call in ``LoadFileScheduling``; (`297 <https://github.com/pytest-dev/pytest-xdist/issues/297>`_)
```
### 1.22.2
```
================================
Bug Fixes
---------
- Add backward compatibility for ``slaveoutput`` attribute to
``WorkerController`` instances. (`285
<https://github.com/pytest-dev/pytest-xdist/issues/285>`_)
```
### 1.22.1
```
================================
Bug Fixes
---------
- Fix issue when using ``loadscope`` or ``loadfile`` where tests would fail to
start if the first scope had only one test. (`257
<https://github.com/pytest-dev/pytest-xdist/issues/257>`_)
Trivial Changes
---------------
- Change terminology used by ``pytest-xdist`` to *master* and *worker* in
arguments and messages (for example ``--max-worker-reset``). (`234
<https://github.com/pytest-dev/pytest-xdist/issues/234>`_)
```
### 1.22.0
```
================================
Features
--------
- Add support for the ``pytest_runtest_logfinish`` hook which will be released
in pytest 3.4. (`266
<https://github.com/pytest-dev/pytest-xdist/issues/266>`_)
```
### 1.21.0
```
================================
Deprecations and Removals
-------------------------
- Drop support for EOL Python 2.6. (`259
<https://github.com/pytest-dev/pytest-xdist/issues/259>`_)
Features
--------
- New ``--dist=loadfile`` option which load-distributes test to workers grouped
by the file the tests live in. (`242
<https://github.com/pytest-dev/pytest-xdist/issues/242>`_)
Bug Fixes
---------
- Fix accidental mutation of test report during serialization causing longrepr
string-ification to break. (`241
<https://github.com/pytest-dev/pytest-xdist/issues/241>`_)
```
### 1.20.1
```
================================
Bug Fixes
---------
- Fix hang when all worker nodes crash and restart limit is reached (`45
<https://github.com/pytest-dev/pytest-xdist/issues/45>`_)
- Fix issue where the -n option would still run distributed tests when pytest
was run with the --collect-only option (`5
<https://github.com/pytest-dev/pytest-xdist/issues/5>`_)
```
### 1.20.0
```
================================
Features
--------
- ``xdist`` now supports tests to log results multiple times, improving
integration with plugins which require it like `pytest-rerunfailures
<https://github.com/gocept/pytest-rerunfailures>`_ and `flaky
<https://pypi.python.org/pypi/flaky>`_. (`206 <https://github.com/pytest-
dev/pytest-xdist/issues/206>`_)
Bug Fixes
---------
- Fix issue where tests were being incorrectly identified if a worker crashed
during the ``teardown`` stage of the test. (`124 <https://github.com/pytest-
dev/pytest-xdist/issues/124>`_)
```
### 1.19.1
```
================================
Bug Fixes
---------
- Fix crash when transferring internal pytest warnings from workers to the
master node. (`214 <https://github.com/pytest-dev/pytest-
xdist/issues/214>`_)
```
### 1.19.0
```
================================
Deprecations and Removals
-------------------------
- ``--boxed`` functionality has been moved to a separate plugin, `pytest-forked
<https://github.com/pytest-dev/pytest-forked>`_. This release now depends on
`` pytest-forked`` and provides ``--boxed`` as a backward compatibility
option. (`1 <https://github.com/pytest-dev/pytest-xdist/issues/1>`_)
Features
--------
- New ``--dist=loadscope`` option: sends group of related tests to the same
worker. Tests are grouped by module for test functions and by class for test
methods. See ``README.rst`` for more information. (`191 <https://github.com
/pytest-dev/pytest-xdist/issues/191>`_)
- Warnings are now properly transferred from workers to the master node. (`92
<https://github.com/pytest-dev/pytest-xdist/issues/92>`_)
Bug Fixes
---------
- Fix serialization of native tracebacks (``--tb=native``). (`196
<https://github.com/pytest-dev/pytest-xdist/issues/196>`_)
```
### 1.18.2
```
================================
Bug Fixes
---------
- Removal of unnecessary dependency on incorrect version of py. (`105
<https://github.com/pytest-dev/pytest-xdist/issues/105>`_)
- Fix bug in internal event-loop error handler in the master node. This bug
would shadow the original errors making extremely hard/impossible for users
to diagnose the problem properly. (`175 <https://github.com/pytest-
dev/pytest-xdist/issues/175>`_)
```
### 1.18.1
```
================================
Bug Fixes
---------
- Fixed serialization of ``longrepr.sections`` during error reporting from
workers. (`171 <https://github.com/pytest-dev/pytest-xdist/issues/171>`_)
- Fix ``ReprLocal`` not being unserialized breaking --showlocals usages. (`176
<https://github.com/pytest-dev/pytest-xdist/issues/176>`_)
```
### 1.18.0
```
================================
- ``pytest-xdist`` now requires ``pytest>=3.0.0``.
Features
--------
- Add long option `--numprocesses` as alternative for `-n`. (168)
Bug Fixes
---------
- Fix serialization and deserialization dropping longrepr details. (133)
```
### 1.17.1
```
================================
Bug Fixes
---------
- Hot fix release reverting the change introduced by 124, unfortunately it
broke a number of test suites so we are reversing this change while we
investigate the problem. (157)
Improved Documentation
----------------------
- Introduced ``towncrier`` for ``CHANGELOG`` management. (154)
- Added ``HOWTORELEASE`` documentation. (155)
..
You should *NOT* be adding new change log entries to this file, this
file is managed by towncrier. You *may* edit previous change logs to
fix problems like typo corrections or such.
To add a new change log entry, please see
https://pip.pypa.io/en/latest/development/adding-a-news-entry
We named the news folder ``changelog``
.. towncrier release notes start
```
### 1.17.0
```
------
- fix 124: xdist would mark test as complete after 'call' step. As a result,
xdist could identify the wrong test as failing when test crashes at teardown.
To address this issue, xdist now marks test as complete at teardown.
```
### 1.16.0
```
------
- ``pytest-xdist`` now requires pytest 2.7 or later.
- Add ``worker_id`` attribute in the TestReport
- new hook: ``pytest_xdist_make_scheduler(config, log)``, can return custom tests items
distribution logic implementation. You can take a look at built-in ``LoadScheduling``
and ``EachScheduling`` implementations. Note that required scheduler class public
API may change in next ``pytest-xdist`` versions.
```
### 1.15.0
```
------
- new ``worker_id`` fixture, returns the id of the worker in a test or fixture.
Thanks Jared Hellman for the PR.
- display progress during collection only when in a terminal, similar to pytest 1397 issue.
Thanks Bruno Oliveira for the PR.
- fix internal error message when ``--maxfail`` is used (62, 65).
Thanks Collin RM Stocks and Bryan A. Jones for reports and Bruno Oliveira for the PR.
```
Links
- PyPI: https://pypi.org/project/pytest-xdist
- Changelog: https://pyup.io/changelogs/pytest-xdist/
- Repo: https://github.com/pytest-dev/pytest-xdist
This PR updates pytest-xdist from 1.14 to 1.22.5.
Changelog
### 1.22.5 ``` ================================ Bug Fixes --------- - `321 <https://github.com/pytest-dev/pytest-xdist/issues/321>`_: Revert change that dropped support for ``pytest<3.4`` and require ``six``. This change caused problems in some installations, and was a mistaken in the first place as we should not change version requirements in bug-fix releases unless they fix an actual bug. ``` ### 1.22.4 ``` ================================ Bug Fixes --------- - `305 <https://github.com/pytest-dev/pytest-xdist/issues/305>`_: Remove last references to obsolete ``py.code``. Remove some unnecessary references to ``py.builtin``. - `316 <https://github.com/pytest-dev/pytest-xdist/issues/316>`_: Workaround cpu detection on Travis CI. ``` ### 1.22.3 ``` ================================ Bug Fixes --------- - Fix issue of virtualized or containerized environments not reporting the number of CPUs correctly. (`9 <https://github.com/pytest-dev/pytest-xdist/issues/9>`_) Trivial Changes --------------- - Make all classes subclass from ``object`` and fix ``super()`` call in ``LoadFileScheduling``; (`297 <https://github.com/pytest-dev/pytest-xdist/issues/297>`_) ``` ### 1.22.2 ``` ================================ Bug Fixes --------- - Add backward compatibility for ``slaveoutput`` attribute to ``WorkerController`` instances. (`285 <https://github.com/pytest-dev/pytest-xdist/issues/285>`_) ``` ### 1.22.1 ``` ================================ Bug Fixes --------- - Fix issue when using ``loadscope`` or ``loadfile`` where tests would fail to start if the first scope had only one test. (`257 <https://github.com/pytest-dev/pytest-xdist/issues/257>`_) Trivial Changes --------------- - Change terminology used by ``pytest-xdist`` to *master* and *worker* in arguments and messages (for example ``--max-worker-reset``). (`234 <https://github.com/pytest-dev/pytest-xdist/issues/234>`_) ``` ### 1.22.0 ``` ================================ Features -------- - Add support for the ``pytest_runtest_logfinish`` hook which will be released in pytest 3.4. (`266 <https://github.com/pytest-dev/pytest-xdist/issues/266>`_) ``` ### 1.21.0 ``` ================================ Deprecations and Removals ------------------------- - Drop support for EOL Python 2.6. (`259 <https://github.com/pytest-dev/pytest-xdist/issues/259>`_) Features -------- - New ``--dist=loadfile`` option which load-distributes test to workers grouped by the file the tests live in. (`242 <https://github.com/pytest-dev/pytest-xdist/issues/242>`_) Bug Fixes --------- - Fix accidental mutation of test report during serialization causing longrepr string-ification to break. (`241 <https://github.com/pytest-dev/pytest-xdist/issues/241>`_) ``` ### 1.20.1 ``` ================================ Bug Fixes --------- - Fix hang when all worker nodes crash and restart limit is reached (`45 <https://github.com/pytest-dev/pytest-xdist/issues/45>`_) - Fix issue where the -n option would still run distributed tests when pytest was run with the --collect-only option (`5 <https://github.com/pytest-dev/pytest-xdist/issues/5>`_) ``` ### 1.20.0 ``` ================================ Features -------- - ``xdist`` now supports tests to log results multiple times, improving integration with plugins which require it like `pytest-rerunfailures <https://github.com/gocept/pytest-rerunfailures>`_ and `flaky <https://pypi.python.org/pypi/flaky>`_. (`206 <https://github.com/pytest- dev/pytest-xdist/issues/206>`_) Bug Fixes --------- - Fix issue where tests were being incorrectly identified if a worker crashed during the ``teardown`` stage of the test. (`124 <https://github.com/pytest- dev/pytest-xdist/issues/124>`_) ``` ### 1.19.1 ``` ================================ Bug Fixes --------- - Fix crash when transferring internal pytest warnings from workers to the master node. (`214 <https://github.com/pytest-dev/pytest- xdist/issues/214>`_) ``` ### 1.19.0 ``` ================================ Deprecations and Removals ------------------------- - ``--boxed`` functionality has been moved to a separate plugin, `pytest-forked <https://github.com/pytest-dev/pytest-forked>`_. This release now depends on `` pytest-forked`` and provides ``--boxed`` as a backward compatibility option. (`1 <https://github.com/pytest-dev/pytest-xdist/issues/1>`_) Features -------- - New ``--dist=loadscope`` option: sends group of related tests to the same worker. Tests are grouped by module for test functions and by class for test methods. See ``README.rst`` for more information. (`191 <https://github.com /pytest-dev/pytest-xdist/issues/191>`_) - Warnings are now properly transferred from workers to the master node. (`92 <https://github.com/pytest-dev/pytest-xdist/issues/92>`_) Bug Fixes --------- - Fix serialization of native tracebacks (``--tb=native``). (`196 <https://github.com/pytest-dev/pytest-xdist/issues/196>`_) ``` ### 1.18.2 ``` ================================ Bug Fixes --------- - Removal of unnecessary dependency on incorrect version of py. (`105 <https://github.com/pytest-dev/pytest-xdist/issues/105>`_) - Fix bug in internal event-loop error handler in the master node. This bug would shadow the original errors making extremely hard/impossible for users to diagnose the problem properly. (`175 <https://github.com/pytest- dev/pytest-xdist/issues/175>`_) ``` ### 1.18.1 ``` ================================ Bug Fixes --------- - Fixed serialization of ``longrepr.sections`` during error reporting from workers. (`171 <https://github.com/pytest-dev/pytest-xdist/issues/171>`_) - Fix ``ReprLocal`` not being unserialized breaking --showlocals usages. (`176 <https://github.com/pytest-dev/pytest-xdist/issues/176>`_) ``` ### 1.18.0 ``` ================================ - ``pytest-xdist`` now requires ``pytest>=3.0.0``. Features -------- - Add long option `--numprocesses` as alternative for `-n`. (168) Bug Fixes --------- - Fix serialization and deserialization dropping longrepr details. (133) ``` ### 1.17.1 ``` ================================ Bug Fixes --------- - Hot fix release reverting the change introduced by 124, unfortunately it broke a number of test suites so we are reversing this change while we investigate the problem. (157) Improved Documentation ---------------------- - Introduced ``towncrier`` for ``CHANGELOG`` management. (154) - Added ``HOWTORELEASE`` documentation. (155) .. You should *NOT* be adding new change log entries to this file, this file is managed by towncrier. You *may* edit previous change logs to fix problems like typo corrections or such. To add a new change log entry, please see https://pip.pypa.io/en/latest/development/adding-a-news-entry We named the news folder ``changelog`` .. towncrier release notes start ``` ### 1.17.0 ``` ------ - fix 124: xdist would mark test as complete after 'call' step. As a result, xdist could identify the wrong test as failing when test crashes at teardown. To address this issue, xdist now marks test as complete at teardown. ``` ### 1.16.0 ``` ------ - ``pytest-xdist`` now requires pytest 2.7 or later. - Add ``worker_id`` attribute in the TestReport - new hook: ``pytest_xdist_make_scheduler(config, log)``, can return custom tests items distribution logic implementation. You can take a look at built-in ``LoadScheduling`` and ``EachScheduling`` implementations. Note that required scheduler class public API may change in next ``pytest-xdist`` versions. ``` ### 1.15.0 ``` ------ - new ``worker_id`` fixture, returns the id of the worker in a test or fixture. Thanks Jared Hellman for the PR. - display progress during collection only when in a terminal, similar to pytest 1397 issue. Thanks Bruno Oliveira for the PR. - fix internal error message when ``--maxfail`` is used (62, 65). Thanks Collin RM Stocks and Bryan A. Jones for reports and Bruno Oliveira for the PR. ```Links
- PyPI: https://pypi.org/project/pytest-xdist - Changelog: https://pyup.io/changelogs/pytest-xdist/ - Repo: https://github.com/pytest-dev/pytest-xdist