dask / dask/distributed

[CI] Warnings about used ports

Open
#4,806 9 comments 0 reactions 0 assignees View on GitHub
good second issue
Dominant language
Python
Stars
1.7k
Forks
778
Avg merge
2h 50m
Merged PRs (30d)
3

Description

Lately we are observing hundreds of warnings about the dashboard ports being occupied. While I understand that we occasionally may have an overlap, I would expect every test to close the HTTP server properly such that these overlaps happen only infrequently.
I can't help but wonder if this connects to our recent CI instabilities and/or CI performance.

Example https://github.com/dask/distributed/pull/4805/checks?check_run_id=2556648953

```
distributed/tests/test_multi_locks.py::test_multiple_locks
/home/runner/work/distributed/distributed/distributed/node.py:160: UserWarning: Port 8787 is already in use.
Perhaps you already have a cluster running?
Hosting the HTTP server on port 46611 instead
warnings.warn(

distributed/tests/test_multi_locks.py::test_num_locks
/home/runner/work/distributed/distributed/distributed/node.py:160: UserWarning: Port 8787 is already in use.
Perhaps you already have a cluster running?
Hosting the HTTP server on port 46079 instead
warnings.warn(

distributed/tests/test_nanny.py::test_lifetime
/home/runner/work/distributed/distributed/distributed/node.py:160: UserWarning: Port 8787 is already in use.
Perhaps you already have a cluster running?
Hosting the HTTP server on port 37239 instead
warnings.warn(

distributed/tests/test_nanny.py::test_nanny_closes_cleanly

```

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.