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 leak in test_localcluster_get_client #6817

Merged

Conversation

hendrikmakait
Copy link
Member

@hendrikmakait hendrikmakait commented Aug 1, 2022

@hendrikmakait
Copy link
Member Author

Note: We may want to add an autouse fixture that checks all tests for leaks (#6498).

@hendrikmakait hendrikmakait self-assigned this Aug 1, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Aug 1, 2022

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

       15 files  ±0         15 suites  ±0   6h 49m 29s ⏱️ + 22m 11s
  2 983 tests ±0    2 890 ✔️ +1       88 💤 +1  3  - 2  2 🔥 ±0 
22 114 runs  ±0  21 077 ✔️ +2  1 031 💤 +3  4  - 5  2 🔥 ±0 

For more details on these failures and errors, see this check.

Results for commit 4489298. ± Comparison against base commit 9267a21.

Copy link
Collaborator

@gjoseph92 gjoseph92 left a comment

Choose a reason for hiding this comment

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

This looks like a good change to me. But I'm not sure how it would affect other tests besides test_localcluster_get_client? Are you saying it would address the RuntimeError: cannot schedule new futures after shutdown issue from #6745 (comment)? Because I'm not sure how it would affect #6796 (but I may be missing something).

@gjoseph92
Copy link
Collaborator

Going to merge this now regardless since test_localcluster_get_client is causing failures.

@gjoseph92 gjoseph92 merged commit af14937 into dask:main Aug 1, 2022
@gjoseph92 gjoseph92 mentioned this pull request Aug 1, 2022
2 tasks
@hendrikmakait
Copy link
Member Author

hendrikmakait commented Aug 2, 2022

But I'm not sure how it would affect other tests besides test_localcluster_get_client?

To be honest, my assumption was based on correlation rather than an understanding of causality. What I observed was an oddly behaving test that kept the test suite busy for a while after passing and then returned a pretty long error output as well as a sudden uptick in CI failures once this test had been merged into main. Once I had fixed this test, those failures seemed to have disappeared on my branch. Should this really fix the linked CI issues, this might warrant a more thorough investigation of what was going on that this test affected seemingly unrelated ones.

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.

3 participants