Skip to content

Flaky tests: coroutine 'InProc.write' was never awaited#6551

@gjoseph92

Description

@gjoseph92

Catch-all issue for flaky tests with tracebacks like

defunraisable_exception_runtest_hook() ->Generator[None, None, None]: withcatch_unraisable_exception() ascm: yieldifcm.unraisable: ifcm.unraisable.err_msgisnotNone: err_msg=cm.unraisable.err_msgelse: 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)) Epytest.PytestUnraisableExceptionWarning: Exceptionignoredin: <coroutineobjectInProc.writeat0x7fd864183ec0>EETraceback (mostrecentcalllast): EFile"/usr/share/miniconda3/envs/dask-distributed/lib/python3.8/warnings.py", line506, in_warn_unawaited_coroutineEwarn(msg, category=RuntimeWarning, stacklevel=2, source=coro) ERuntimeWarning: coroutine'InProc.write'wasneverawaited

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):

@graingert do you have any ideas? Weren't you looking at this at some point?

Metadata

Metadata

Labels

flaky testIntermittent failures on CI.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions