Bruno Oliveira
7a0bc4c1c9
Let users configure dist mode in the configuration file
...
Fix #789
2022-11-30 13:57:48 -03:00
pre-commit-ci[bot]
c6bcd204ea
[pre-commit.ci] pre-commit autoupdate ( #849 )
...
updates:
- [github.com/PyCQA/autoflake: v1.7.7 → v2.0.0](https://github.com/PyCQA/autoflake/compare/v1.7.7...v2.0.0 )
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0 )
- [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-29 17:10:17 -03:00
Bread Genie
99c80c37a4
Fix typo psutils -> psutil ( #848 )
2022-11-24 09:50:25 -03:00
pre-commit-ci[bot]
e14895a96e
[pre-commit.ci] pre-commit autoupdate ( #846 )
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.990 → v0.991](https://github.com/pre-commit/mirrors-mypy/compare/v0.990...v0.991 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-21 21:37:52 -03:00
Bruno Oliveira
bb27210cf9
Merge pull request #844 from pytest-dev/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-11-14 23:35:32 -03:00
Bruno Oliveira
4a33933e30
Use ternary operator to remove mypy error
...
Otherwise we would get this error:
```
error: Function "Callable[[Any, bool, Optional[float]], None]" could always be true in boolean context [truthy-function]
```
2022-11-14 23:13:38 -03:00
pre-commit-ci[bot]
41620d2f46
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.2.0 → v3.2.2](https://github.com/asottile/pyupgrade/compare/v3.2.0...v3.2.2 )
- [github.com/pre-commit/mirrors-mypy: v0.982 → v0.990](https://github.com/pre-commit/mirrors-mypy/compare/v0.982...v0.990 )
2022-11-15 00:17:50 +00:00
Bruno Oliveira
6b6f133850
Merge pull request #842 from nicoddemus/drop-py36-add-py311
...
Drop Python 3.6 and add Python 3.11
2022-11-05 14:36:30 -03:00
Bruno Oliveira
0316baf3ec
Add CHANGELOG for py36 drop and py311 support
2022-11-05 12:24:00 -03:00
Bruno Oliveira
aee850a121
Add official support for Python 3.11
2022-11-05 12:24:00 -03:00
Bruno Oliveira
66993ecada
Split workflows into test and deploy
2022-11-05 12:24:00 -03:00
Bruno Oliveira
2ffb426178
Drop Python 3.6 and use Python 3.10 for secondary builds
2022-11-05 12:05:30 -03:00
Bruno Oliveira
d7d396a7f9
Run pyupgrade --py37-plus
2022-11-05 12:01:07 -03:00
Thomas Grainger
59457cc1bd
Update pre-commit
...
Also:
* Configure flake8 to ignore formatting-related problems (let black worry about them).
* Fix reference to Python 3.10 in CI,
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2022-11-05 11:58:57 -03:00
Bruno Oliveira
e232b7886a
Merge pull request #838 from pytest-dev/hroncok-patch-1
...
Remove deprecated stuff from the package description
2022-10-28 13:52:42 -03:00
Miro Hrončok
873c1fdd5e
Remove deprecated stuff from the package description
...
Fixes https://github.com/pytest-dev/pytest-xdist/issues/835
2022-10-28 16:29:45 +02:00
Bruno Oliveira
7949c14f67
Merge pull request #830 from nicoddemus/release-3.0.0
...
Release 3.0.2
2022-10-25 12:58:44 -03:00
Bruno Oliveira
eed37d4771
Update CHANGELOG
build / build (ubuntu-latest, 3.10-dev, py310-pytestlatest) (push) Failing after 1s
build / build (ubuntu-latest, 3.6, py36-pytestlatest) (push) Failing after 1s
build / build (ubuntu-latest, 3.7, py37-pytestlatest) (push) Failing after 1s
build / build (ubuntu-latest, 3.8, py38-psutil) (push) Failing after 1s
build / build (ubuntu-latest, 3.8, py38-pytestlatest) (push) Failing after 1s
build / build (ubuntu-latest, 3.8, py38-pytestmain) (push) Failing after 1s
build / build (ubuntu-latest, 3.8, py38-setproctitle) (push) Failing after 1s
build / build (ubuntu-latest, 3.9, py39-pytestlatest) (push) Failing after 1s
build / build (windows-latest, 3.10-dev, py310-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.6, py36-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.7, py37-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-psutil) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-pytestmain) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-setproctitle) (push) Has been cancelled
build / build (windows-latest, 3.9, py39-pytestlatest) (push) Has been cancelled
build / deploy (push) Has been cancelled
v3.0.2
2022-10-25 12:36:11 -03:00
Bruno Oliveira
3e9284b6e0
Merge remote-tracking branch 'upstream/master' into release-3.0.0
2022-10-25 12:35:32 -03:00
Bruno Oliveira
ccdab727a2
Merge pull request #831 from pytest-dev/fix-setup
...
fix and update packaging
2022-10-25 12:32:31 -03:00
Ronny Pfannschmidt
0c981d3547
fix and update packaging
...
* drop empty setup.py which "breaks" on incomplete build envs
* use the build package to build the dist
* update the gh workflow to use it
fixup noise from pre-commit
2022-10-25 17:07:47 +02:00
Bruno Oliveira
38dcf52ae6
Release 3.0.1
build / build (ubuntu-latest, 3.10-dev, py310-pytestlatest) (push) Failing after 1s
build / build (ubuntu-latest, 3.6, py36-pytestlatest) (push) Failing after 1s
build / build (ubuntu-latest, 3.7, py37-pytestlatest) (push) Failing after 1s
build / build (ubuntu-latest, 3.8, py38-psutil) (push) Failing after 1s
build / build (ubuntu-latest, 3.8, py38-pytestlatest) (push) Failing after 1s
build / build (ubuntu-latest, 3.8, py38-pytestmain) (push) Failing after 1s
build / build (ubuntu-latest, 3.8, py38-setproctitle) (push) Failing after 1s
build / build (ubuntu-latest, 3.9, py39-pytestlatest) (push) Failing after 2s
build / build (windows-latest, 3.10-dev, py310-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.6, py36-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.7, py37-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-psutil) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-pytestmain) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-setproctitle) (push) Has been cancelled
build / build (windows-latest, 3.9, py39-pytestlatest) (push) Has been cancelled
build / deploy (push) Has been cancelled
v3.0.1
2022-10-25 11:10:07 -03:00
Bruno Oliveira
f2633f1b37
Fetch all tags, as required by setuptools-scm
2022-10-25 11:09:53 -03:00
Bruno Oliveira
192193197b
Update CHANGELOG for 3.0
build / build (ubuntu-latest, 3.10-dev, py310-pytestlatest) (push) Failing after 3s
build / build (ubuntu-latest, 3.6, py36-pytestlatest) (push) Failing after 2s
build / build (ubuntu-latest, 3.7, py37-pytestlatest) (push) Failing after 3s
build / build (ubuntu-latest, 3.8, py38-psutil) (push) Failing after 2s
build / build (ubuntu-latest, 3.8, py38-pytestlatest) (push) Failing after 2s
build / build (ubuntu-latest, 3.8, py38-pytestmain) (push) Failing after 2s
build / build (ubuntu-latest, 3.8, py38-setproctitle) (push) Failing after 3s
build / build (ubuntu-latest, 3.9, py39-pytestlatest) (push) Failing after 3s
build / build (windows-latest, 3.10-dev, py310-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.6, py36-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.7, py37-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-psutil) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-pytestlatest) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-pytestmain) (push) Has been cancelled
build / build (windows-latest, 3.8, py38-setproctitle) (push) Has been cancelled
build / build (windows-latest, 3.9, py39-pytestlatest) (push) Has been cancelled
build / deploy (push) Has been cancelled
v3.0.0
2022-10-24 13:44:11 -03:00
Bruno Oliveira
0f58a14def
Fix towncrier command for latest version
2022-10-24 13:43:03 -03:00
Bruno Oliveira
bd23c2460f
Fix changelog fragments
2022-10-24 13:43:03 -03:00
Bruno Oliveira
794f28bcf4
Use modern syntax for towncrier
2022-10-24 13:43:03 -03:00
Bruno Oliveira
31e80c8c6a
Merge pull request #828 from nicoddemus/deprecate-rsync-825
...
Deprecate rsync support
2022-10-24 13:02:58 -03:00
Bruno Oliveira
1e9f6a7c3c
Fix type annotation for pytest 6.2
2022-10-24 12:03:14 -03:00
Bruno Oliveira
ed65e888cf
Deprecate rsync support
...
Fix #825
2022-10-24 11:53:15 -03:00
Petr Viktorin
c168706fbe
Get -nauto default from PYTEST_XDIST_AUTO_NUM_WORKERS ( #829 )
...
* Get `-nauto` default from `PYTEST_XDIST_AUTO_NUM_WORKERS`
A few additional tests for existing functionality are added too.
And the ``-n logical`` option is documented.
Fixes: https://github.com/pytest-dev/pytest-xdist/issues/792
2022-10-24 09:33:19 -03:00
Bruno Oliveira
ab95a4b45d
Merge pull request #827 from nicoddemus/deprecate-looponfail
...
Deprecate looponfail plugin
2022-10-22 13:31:06 -03:00
Bruno Oliveira
8b0856a986
Deprecate looponfail plugin
...
Fix #826
2022-10-22 10:43:02 -03:00
Bruno Oliveira
f2064873fd
Merge pull request #821 from nicoddemus/drop-forked
...
Remove --boxed and pytest-forked dependency
2022-10-22 10:04:40 -03:00
Bruno Oliveira
1fbf49909f
Remove --boxed and pytest-forked dependency
...
Fixes #468
Fixes #543
2022-10-22 07:31:34 -03:00
Anthony Sottile
1471164197
Replace usages of py.log by custom implementation ( #822 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2022-10-22 07:26:01 -03:00
Aleksandr Mezin
80130d59ea
Restore old initial batch distribution logic in LoadScheduling ( #812 )
...
* Restore old initial batch distribution logic in LoadScheduling
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.
Commit 09d79ace35 optimized test distribution for
the corner case, when the number of tests is less than 2 * number of nodes.
At the same time, it made initial test distribution worse for all other cases.
If some tests use some fixture, and these tests fit into the initial batch,
the fixture will be created min(n_tests, n_workers) times, no matter how many
other tests there are. With the old algorithm (before
09d79ace35 ), if there are enough tests not using
the fixture, the fixture was created only once.
So restore the old behavior for typical cases where the number of tests is
much greater than the number of workers (or, strictly speaking, when there
are at least 2 tests for every node).
In my test suite, where fixtures create Docker containers, this change reduces
total run time by 10-15%.
This is a partial revert of commit 09d79ace35
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2022-10-22 07:12:16 -03:00
Bruno Oliveira
a1785b539c
Merge pull request #824 from nicoddemus/drop-py-path
...
Replace py.path.local usages by pathlib.Path
2022-10-22 07:00:42 -03:00
Bruno Oliveira
25cc1a4119
Replace py.path.local usages by pathlib.Path
2022-10-21 22:54:17 -03:00
Anthony Sottile
f04cd22fd6
Merge pull request #823 from pytest-dev/remove-pydir
...
remove py._pydir as rsync candidate
2022-10-21 20:38:22 -04:00
Anthony Sottile
42024f374a
remove py._pydir as rsync candidate
2022-10-21 16:09:14 -07:00
Aleksandr Mezin
e407a3377e
Cancel shutdown when crashed worker is restarted ( #813 )
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2022-09-06 17:37:38 -03:00
Bruno Oliveira
6169d494a4
Merge pull request #516 from blueyed/test_collection_crash
2022-09-06 17:29:28 -03:00
Daniel Hahler
d137384315
Add test_collection_crash
...
Reproduces:
INTERNALERROR> TypeError: unhashable type: 'ExceptionChainRepr'
Ref: https://github.com/pytest-dev/pytest-xdist/issues/515
Ref: https://github.com/pytest-dev/pytest/pull/6988
2022-09-06 17:20:44 -03:00
Bruno Oliveira
23992d874e
Merge pull request #807 from pytest-dev/no-capture-docs
2022-09-06 17:20:20 -03:00
Bruno Oliveira
2ec4f407f5
Add known limitation about -s not working
2022-08-24 12:52:36 -03:00
Sylvain Marié
9236f11757
Added a couple tests for #404 ( #766 )
...
* Added a couple tests for #404
Co-authored-by: Sylvain MARIE <sylvain.marie@se.com >
2022-08-23 21:41:23 +01:00
Pepa
61132777f8
Added known limitation section to the docs ( #796 )
...
Co-authored-by: Josef <sorry.i-keep@it.private >
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com >
2022-07-22 10:44:17 -03:00
Bruno Oliveira
8616ff368c
Merge pull request #793 from pytest-dev/fix-setuptools-scm
2022-07-13 15:55:17 -03:00
Petr Viktorin
1a5e680e91
Document the pytest_xdist_auto_num_workers hook ( #791 )
2022-07-13 15:54:26 -03:00