dask / dask/distributed

Tests can't run in parallel because of fixed ports

Open
#5,186 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
778
Avg merge
2h 50m
Merged PRs (30d)
3

Description

**What happened**:
Tests take a rather long time to run. So it would be nice to run them in parallel with pytest-xdist. However, they randomly fail to start, because they use the same port, and a second test is unable to open a port while another listens on a port. Thus you sometimes get a test error like:
```
OSError: [Errno 98] Address already in use
```

**What you expected to happen**:
Tests all run in parallel

**Minimal Complete Verifiable Example**:

```
pytest -n auto
```

**Environment**:

- Dask version: 2021.07.2
- Python version: 3.9.6
- Operating System: Fedora 34
- Install method (conda, pip, source): Source

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.