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

Do not run gilknocker in testsuite #8423

Merged
merged 3 commits into from Dec 21, 2023

Conversation

fjetter
Copy link
Member

@fjetter fjetter commented Dec 19, 2023

I noticed that stopping the gilknocker requires us to wait for a couple hundred ms here

self._gilknocker.stop()

cc @milesgranger

This isn't great for gen_cluster since the test logic within a unit test is typically much faster such that this waiting on the gilknocker is the most expensive part of a test startup, execution and teardown.

At least locally, this makes a big difference for me. When writing dask/dask#10722 this made a difference of 0.4s vs 0.1s per test iteration, i.e. the tests are four times faster without gilknocker.

Copy link
Contributor

@milesgranger milesgranger left a comment

Choose a reason for hiding this comment

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

Good for me, assuming tests are happy.

Makes sense, could have done a .stop(fast=True) or something in gilknocker that would flag it to not wait to join the underlying thread. But I think I like this better. 👍

@milesgranger
Copy link
Contributor

Oop, will have to enable it for the test_prometheus tests.
https://github.com/dask/distributed/actions/runs/7260897311/job/19781001789?pr=8423#step:19:2921

Copy link
Contributor

github-actions bot commented Dec 19, 2023

Unit Test Results

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

       27 files  ±0         27 suites  ±0   9h 39m 24s ⏱️ - 2h 14m 37s
  3 950 tests ±0    3 839 ✔️ +1     109 💤 ±0  2 ±0 
49 683 runs   - 1  47 392 ✔️ ±0  2 289 💤 ±0  2 ±0 

For more details on these failures, see this check.

Results for commit 2f5bf41. ± Comparison against base commit 5af14d6.

♻️ This comment has been updated with latest results.

@fjetter
Copy link
Member Author

fjetter commented Dec 21, 2023

Test runtimes of CI went down significantly. Just cherry picking a couple of runtimes, it looks like we could reduce the duration of individual jobs easily by 10-20%

@fjetter fjetter merged commit 1c74474 into dask:main Dec 21, 2023
32 of 36 checks passed
@fjetter fjetter deleted the do_not_run_gilknocker_testsuite branch December 21, 2023 12:37
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