pytest-xdist icon indicating copy to clipboard operation
pytest-xdist copied to clipboard

pytest plugin for distributed testing and loop-on-failures testing modes.

Results 136 pytest-xdist issues
Sort by recently updated
recently updated
newest added

The loadgroup scheduler used to modify the nodeids of tests that were placed manually in a specific scope. This was used as a side-channel from test collection (on the pytest-running...

We force test collection on the controller node, as we run some global setup there before starting the workers. That setup also depends on the test node IDs, but currently,...

I don't exactly have a minimal reproducer right now, but when tests improperly terminate (e.g. call `sys.exit(1)`) we find that the replacing worker will try to access `registered_collections` while it...

This adds a new 'singlecollect' distribution mode that only collects tests on the first worker node and skips redundant collection on other nodes. This can significantly improve startup time for...

test suite: ```py import time import multiprocessing class TestWhatever: def test_thing(self): def go(): time.sleep(2) ctx = multiprocessing.get_context("fork") proc = ctx.Process(target=go, args=()) proc.start() ``` Running as ``pytest test.py -n1``, output: ```...

bug

This happens rarely when the slave receives a signal. Doesn't seem to have anything to do with a specific test, but just randomly. It's possible that this is an interaction...

I am using pytest-xdist for parallel test execution, and I have grouped my test classes into two groups using the `@pytest.mark.xdist_group("group1")` and `@pytest.mark.xdist_group("group2")` decorators. I then use the `-n 2...

`pytest-xdist` currently doesn't handle a `StrEnum` obj as `str` [when it is serialized](https://github.com/pytest-dev/execnet/blob/v2.1.1/src/execnet/gateway_base.py#L1655-L1665), which causes a "execnet.gateway_base.DumpError" error. The issue is seen when a `StrEnum` obj is passed as `pytest-subtests`...

On the https://pytest-xdist.readthedocs.io/en/stable/how-to.html#xdist.is_xdist_master url, for me the description is: **Return True if this is the xdist controller, False otherwise.** ![image](https://github.com/user-attachments/assets/c2e7cc4f-937a-45ea-8903-d0232c497f6b) Based on the original ticket: https://github.com/pytest-dev/pytest-xdist/issues/504 It should be: **Return...

Hi, I am currently utilizing pytest-xdist to execute a test suite that includes subgraph tests. Sporadically, I encounter an IndexError when attempting to load a large model, which results in...

bug