Closed
Description
Catch-all issue for flaky tests with tracebacks like
def unraisable_exception_runtest_hook() -> Generator[None, None, None]:
with catch_unraisable_exception() as cm:
yield
if cm.unraisable:
if cm.unraisable.err_msg is not None:
err_msg = cm.unraisable.err_msg
else:
err_msg = "Exception ignored in"
msg = f"{err_msg}: {cm.unraisable.object!r}\n\n"
msg += "".join(
traceback.format_exception(
cm.unraisable.exc_type,
cm.unraisable.exc_value,
cm.unraisable.exc_traceback,
)
)
> warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
E pytest.PytestUnraisableExceptionWarning: Exception ignored in: <coroutine object InProc.write at 0x7fd864183ec0>
E
E Traceback (most recent call last):
E File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.8/warnings.py", line 506, in _warn_unawaited_coroutine
E warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
E RuntimeWarning: coroutine 'InProc.write' was never awaited
I would imagine there's some core problem that could be fixed to make all these tests work.
Some known failures (feel free to add more in comments):
test_dont_select_closed_worker
flaky #6507test_local_cluster_redundant_kwarg[True]
flaky #6506test_cleanup
leaked #6451- Flaky
test_run_spec
#6549 (this one is interesting because it's with a TCP comm, which indicates the problem isn't with InProc but rather with comm handling) - Flaky
test_localcluster_start_exception
#6769
@graingert do you have any ideas? Weren't you looking at this at some point?