Commit Graph

53 Commits

Author SHA1 Message Date
Nikolay Korotkiy
34c8451309 python3Packages.pytest-xdist: 3.2.1 → 3.3.1 2023-07-28 12:15:32 +02:00
Robert Schütz
78d55e8a89 python310Packages.pytest-xdist: 3.2.0 -> 3.2.1
Changelog: https://github.com/pytest-dev/pytest-xdist/blob/v3.2.1/CHANGELOG.rst
2023-03-26 19:10:28 -07:00
Robert Schütz
03b73034ed python310Packages.pytest-xdist: 3.1.0 -> 3.2.0
Changelog: https://github.com/pytest-dev/pytest-xdist/blob/v3.2.0/CHANGELOG.rst
2023-03-03 23:56:30 +01:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Robert Schütz
44f365a931 python310Packages.pytest-xdist: 2.5.0 -> 3.1.0
https://github.com/pytest-dev/pytest-xdist/blob/v3.1.0/CHANGELOG.rst
2023-01-05 01:08:47 +01:00
Martin Weinelt
2ba40b5669
python3Packages.pytest-xdist: Disable fork safety on darwin
We run pytest with `--forked` in nixpkgs, to reduce side effects that
can occur when multiple tests mutate their environment in incompatible
ways.

Forking on macOS 10.13 and later is unsafe when an application does work
between calls to fork() and its followup exec(). This may lead to
crashes when calls into the Objective-C runtime are issued, which will
in turn coredump the Python interpreter.

One good reproducer for this scenario is when the urllib module tries
to lookup proxy configurations in `urllib.request.getproxies()` through
`get_proxies_macos_sysconf` into the native `_scproxy` module.

This is a class of issues that is of course not limited to the urllib
module. The general recommendation is to use `spawn` instead of `fork`,
but we don't have any influence on upstream developers to do one or the
other.

One often cited workaround would be to disable fork safety entirely on
calls to `initialize()`, which is probably a better solution than
running without multithreading (slow) or without the `--forked` (prone
to side effects) mode.

This currently happens on aarch64-linux only, where we use more recent
11.0 SDK version, while x86_64-darwin has been stuck on 10.12 for a
while now.

https://github.com/python/cpython/issues/77906#issuecomment-1093788352
http://www.sealiesoftware.com/blog/archive/2017/6/5/Objective-C_and_fork_in_macOS_1013.html

Closes: #194290
2022-10-04 14:50:21 +02:00
Artturin
b5facab1ef python39Packages.pytest-xdist: run xdist hook before pytestCheckPhase 2022-04-15 01:39:52 +02:00
Martin Weinelt
008fbda841 python3Packages.pytest-xdist: fix hook being applied multiple times 2022-04-15 01:39:49 +02:00
Artturin
50402f8839 python39Packages.pytest-xdist: add hook to add flags
many of our packages have pytest-xdist in their inputs however
oftentimes the required flags aren't added to pytest flags
since we dont use tox and other frameworks

some examples of improvements
(my pc has ryzen 9 5900x)
hypothesis 11m:15s on hydra -> <1m on my pc
hypothesmith 8m on my pc -> <1m on my pc

the whole graph from pytest-xdist (tested by adding postPatch with true to xdist)
time nix build ".#python3Packages.hypothesmith"
19m:57s -> 9m:13s
2022-04-15 01:39:45 +02:00
Artturin
3b3bf22264 python39Packages.pytest-xdist: add pexpect to run more tests 2022-04-15 01:39:45 +02:00
Frederik Rietdijk
ae18d68b6b python2.pkgs: move expressions into python2-modules/ folder
Another step in further separating python2 from python3.
2022-01-16 10:00:16 +01:00
Robert Schütz
cbee9da7f8 python3Packages.pytest-xdist: 2.4.0 -> 2.5.0
https://github.com/pytest-dev/pytest-xdist/blob/v2.5.0/CHANGELOG.rst
2021-12-14 14:51:44 -08:00
Jonathan Ringer
5d63bf250e
python3Packages.xdist: disable flakey test 2021-11-30 18:52:49 -08:00
Martin Weinelt
fd31491068 python3Packages.pytest-xdist: 2.3.0 -> 2.4.0 2021-10-11 01:22:06 +02:00
Robert Schütz
b3c54f5c07
python3Packages.pytest-xdist: 2.2.1 -> 2.3.0
https://github.com/pytest-dev/pytest-xdist/blob/v2.3.0/CHANGELOG.rst
2021-06-21 16:48:40 -07:00
Sandro Jäckel
89d5f4b3d0
treewide: setuptools_scm -> setuptools-scm 2021-06-03 12:44:33 +02:00
Frederik Rietdijk
1ceaf03f8a python3Packages.pytest-xdist: don't propagate pytest
pytest extensions should not propagate pytest. Doing so makes it
impossible to combine the package with another version of pytest, which
sometimes is needed.
2021-03-08 17:57:14 +01:00
Frederik Rietdijk
9153f42316 python3Packages.pytest-xdist: 2.2.0 -> 2.2.1 2021-02-26 11:01:53 +01:00
Robert Schütz
3d19493fa5 python3Packages.pytest_xdist: 2.1.0 -> 2.2.0
Also update inputs to match setup.py.
2021-01-29 18:28:39 +01:00
Pavol Rusnak
a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
TredwellGit
46714a37b8 pythonPackages.pytest_xdist: fix build 2020-12-04 09:12:04 -05:00
Frederik Rietdijk
6c1eec9838 python3Packages.pytest-xdist: 1.34.0 -> 2.1.0 2020-12-01 14:44:18 +01:00
Jonathan Ringer
871cd876a1 python3Packages.pytest_xdist_2: fix tests with latest pytest6 2020-10-16 09:52:55 -07:00
R. RyanTM
97c10ee027 python37Packages.pytest_xdist_2: 2.0.0 -> 2.1.0 2020-10-03 07:30:07 -07:00
Jonathan Ringer
a704c777f9
python3Packages.pytest_xdist_2: init at 2.0.0, pin xdist_1 2020-08-16 18:02:06 -07:00
Jonathan Ringer
e7ab21bdaf
python3Packages.pytest-xdist: fix missing psutil dep 2020-08-16 12:53:35 -07:00
Frederik Rietdijk
a4cd885639 python: pytest-xdist: 1.32.0 -> 2.0.0 2020-08-16 19:31:13 +02:00
Frederik Rietdijk
a05015d631 python: pytest-xdist: 1.30.0 -> 1.32.0 2020-06-11 10:00:20 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Frederik Rietdijk
9538725642 python: pytest-xdist: 1.28.0 -> 1.30.0 2019-10-27 16:26:51 +01:00
Frederik Rietdijk
f3a74b9c99 python3Packages.pytest_xdist: disable tests 2019-08-18 11:48:40 +02:00
Mario Rodas
3f9e3810f9 pythonPackages.pytest-xdist: 1.26.1 -> 1.28.0 2019-06-18 11:11:16 +02:00
Frederik Rietdijk
a5bf2d0f68 python: pytest-xdist: 1.24.1 -> 1.26.1 2019-02-17 14:40:38 +01:00
Frederik Rietdijk
364c59dd94 python.pkgs.pytest_xdist: pytest-forked is needed during runtime, fixes #45060 2018-12-27 15:26:22 +01:00
Frederik Rietdijk
023319dbad python: pytest-xdist: 1.24.0 -> 1.24.1 2018-12-03 16:50:39 +01:00
Robert Schütz
399425b9ee python.pkgs.pytest_xdist: add filelock to checkInputs 2018-12-03 16:50:38 +01:00
Frederik Rietdijk
11f5037408 python: pytest-xdist: 1.23.2 -> 1.24.0 2018-12-03 16:50:34 +01:00
Frederik Rietdijk
d2e51e1185 python: pytest-xdist: 1.23.0 -> 1.23.2 2018-10-13 09:50:16 +02:00
Frederik Rietdijk
2f9a3664a4 python: pytest-xdist: 1.22.5 -> 1.23.0 2018-08-25 18:07:15 +02:00
Frederik Rietdijk
bc8131047e python: pytest-xdist: 1.22.3 -> 1.22.5 2018-08-25 07:38:23 +02:00
Frederik Rietdijk
b456989181 python: pytest-xdist: 1.22.2 -> 1.22.3 2018-07-26 13:09:49 +02:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Robert Schütz
a2bc30c94d pythonPackages.pytest-xdist: 1.22.1 -> 1.22.2 2018-02-27 22:57:38 +01:00
Robert Schütz
958bd34ea4 pythonPackages.pytest_xdist: 1.22.0 -> 1.22.1 2018-02-22 01:46:11 +01:00
Robert Schütz
520eaac3c3 pythonPackages.pytest_xdist: enable tests for python2 2018-02-10 11:37:12 +01:00
Frederik Rietdijk
06b1ecdf5f python: pytest-xdist: 1.21.0 -> 1.22.0 2018-01-20 12:05:27 +01:00
Frederik Rietdijk
6246762c70 python: pytest-xdist: 1.20.1 -> 1.21.0 2017-12-31 10:55:16 +01:00
Frederik Rietdijk
7ce848309e python.pkgs: updates 2017-10-27 21:34:42 +02:00
Frederik Rietdijk
d58e1f1c7b python.pkgs: many updates 2017-08-25 19:36:14 +02:00