Skip to content

Test process hanging forever #43

@pytestbot

Description

@pytestbot

We have a test job that uses pytest, xdist, execnet and it has been hanging forever on a regular basis.

Attaching in gdb it looks like it is waiting for a child but there is no child process. The relevant gdb python snippet:

threading.py: wait: 309
threading.py: wait: 603
execnet/gateway_base.py: waitall: 292
execnet/multi.py: safe_terminate: 277

In safe_terminate:

#!python
def safe_terminate(execmodel, timeout, list_of_paired_functions):
    # Snip some code
    workerpool.waitall()

If the timeout value that is passed into safe_terminate is passed into waitall then it will timeout and exit the pytest test run.

This is working for us.

pytest 2.6.4, xdist 1.11, execnet 1.2.0

We haven't used execnet 1.3.0 yet, but that version hasn't modified the above code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions