Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky test_threaded.py::test_interrupt #9827

Merged
merged 2 commits into from
Jan 13, 2023

Conversation

hendrikmakait
Copy link
Member

@hendrikmakait hendrikmakait commented Jan 12, 2023

This PR rewrites test_threaded.py::test_interrupt using events instead of time-based actions to avoid flakiness on CI and speedup the test in general.

  • Partially addresses CI Failures #9793
  • Tests added / passed
  • Passes pre-commit run --all-files

@@ -7,6 +7,8 @@

import pytest

from distributed.utils_test import cleanup # noqa: F401
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

distributed is actually only an optional dependency of dask. This is why the mindeps build fails

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a separate PR that checks for leaked threads at the end of every test would be good here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think checking for leaks might generally be a good idea.

@hendrikmakait hendrikmakait self-assigned this Jan 12, 2023
@fjetter fjetter merged commit f09b089 into dask:main Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants