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 test nanny timeout #8847

Merged
merged 7 commits into from
Sep 3, 2024
Merged

Fix test nanny timeout #8847

merged 7 commits into from
Sep 3, 2024

Conversation

fjetter
Copy link
Member

@fjetter fjetter commented Aug 30, 2024

This should be fixing distributed.tests.test_nanny.test_nanny_timeout which appears to be caused by a race condition between startup and kill.

That condition is now tested in a dedicated test test_worker_start_exception_while_killing

Copy link
Contributor

github-actions bot commented Aug 30, 2024

Unit Test Results

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

    25 files  ± 0      25 suites  ±0   10h 9m 45s ⏱️ - 7m 53s
 4 125 tests + 3   4 008 ✅ + 3    111 💤 ±0  6 ❌ +1 
47 651 runs  +35  45 540 ✅ +37  2 105 💤  - 2  6 ❌ +1 

For more details on these failures, see this check.

Results for commit a325253. ± Comparison against base commit ac7a24e.

This pull request removes 1 and adds 4 tests. Note that renamed tests count towards both.
distributed.tests.test_nanny ‑ test_nanny_timeout
distributed.tests.test_nanny ‑ test_nanny_restart
distributed.tests.test_nanny ‑ test_nanny_restart_timeout
distributed.tests.test_nanny ‑ test_nanny_restart_timeout_stress
distributed.tests.test_nanny ‑ test_worker_start_exception_while_killing

♻️ This comment has been updated with latest results.

Copy link
Member

@hendrikmakait hendrikmakait left a comment

Choose a reason for hiding this comment

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

Thanks, @fjetter!

async def try_to_kill_nanny():
while not nanny.process or nanny.process.status not in (
Status.starting, # this is what we want
# Status.failed # we might've missed it already
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# Status.failed # we might've missed it already

@fjetter
Copy link
Member Author

fjetter commented Sep 2, 2024

This still has a problem...

@hendrikmakait
Copy link
Member

This still has a problem...

Alright, just let me know once it's ready for a final review. CI looked good though 🙈

@fjetter
Copy link
Member Author

fjetter commented Sep 2, 2024

@hendrikmakait should be good to go now

@fjetter fjetter merged commit d728052 into dask:main Sep 3, 2024
20 of 29 checks passed
@fjetter fjetter deleted the fix_test_nanny_timeout branch September 3, 2024 15:36
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.

2 participants