Skip to content

flaky test_no_reconnect[--no-nanny] TimeoutError: Operation timed out after None seconds #5680

Closed

Description

@graingert

failure on the last main build: https://github.com/dask/distributed/runs/4888280793?check_suite_focus=true#step:12:1358

=================================== FAILURES ===================================
________________________ test_no_reconnect[--no-nanny] _________________________

nanny = '--no-nanny'
loop = <tornado.platform.asyncio.AsyncIOLoop object at 0x7fbee0de8400>

    @pytest.mark.slow
    @pytest.mark.parametrize("nanny", ["--nanny", "--no-nanny"])
    def test_no_reconnect(nanny, loop):
        with popen(["dask-scheduler", "--no-dashboard"]) as sched:
>           wait_for_port(("127.0.0.1", 8786))

distributed/cli/tests/test_dask_worker.py:154: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

address = ('127.0.0.1', 8786), timeout = -0.08133506774902344

    def wait_for_port(address, timeout=5):
        assert isinstance(address, tuple)
        deadline = time() + timeout
    
        while True:
            timeout = deadline - time()
            if timeout < 0:
>               raise RuntimeError(f"Failed to connect to {address}")
E               RuntimeError: Failed to connect to ('127.0.0.1', 8786)

distributed/utils_test.py:1185: RuntimeError
----------------------------- Captured stdout call -----------------------------


Print from stderr
  /
=================

distributed.scheduler - INFO - -----------------------------------------------
distributed.http.proxy - INFO - To route to workers diagnostics web server please install jupyter-server-proxy: python -m pip install jupyter-server-proxy
distributed.scheduler - INFO - -----------------------------------------------
distributed.scheduler - INFO - Clear task state
distributed.scheduler - INFO -   Scheduler at:  tcp://10.212.11.235:8786
distributed.scheduler - INFO -   dashboard at:                     :8787
distributed.scheduler - INFO - End scheduler at 'tcp://10.212.11.235:8786'
Traceback (most recent call last):
  File "/Users/runner/miniconda3/envs/dask-distributed/bin/dask-scheduler", line 33, in <module>
    sys.exit(load_entry_point('distributed', 'console_scripts', 'dask-scheduler')())
  File "/Users/runner/work/distributed/distributed/distributed/cli/dask_scheduler.py", line 217, in go
    main()
  File "/Users/runner/miniconda3/envs/dask-distributed/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/Users/runner/miniconda3/envs/dask-distributed/lib/python3.8/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/Users/runner/miniconda3/envs/dask-distributed/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/runner/miniconda3/envs/dask-distributed/lib/python3.8/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Users/runner/work/distributed/distributed/distributed/cli/dask_scheduler.py", line 208, in main
    loop.run_sync(run)
  File "/Users/runner/miniconda3/envs/dask-distributed/lib/python3.8/site-packages/tornado/ioloop.py", line 529, in run_sync
    raise TimeoutError("Operation timed out after %s seconds" % timeout)
tornado.util.TimeoutError: Operation timed out after None seconds

the TimeoutError: Operation timed out after None seconds is due to the scheduler task being cancelled or propagating a CancelledError incorrectly even though run_sync has no timeout.

Activity

  1. changed the title [-]flakey test_no_reconnect[--no-nanny] TimeoutError: Operation timed out after None seconds[/-] [+]flaky test_no_reconnect[--no-nanny] TimeoutError: Operation timed out after None seconds[/+] on Jan 21, 2022
  2. added
    flaky test
    on Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

flaky test

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions