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

[autoscaler] Fix test heartbeats single test #12513

Merged
merged 3 commits into from
Dec 1, 2020

Conversation

ericl
Copy link
Contributor

@ericl ericl commented Dec 1, 2020

Why are these changes needed?

Closes #9484

It turns out this test was always broken, and only sometimes passed due to a race condition where the heartbeats weren't updated yet. We no longer acquire resources on method execution, so the num_cpus have to be set in the class decorator for this test to pass. Adding the sleep(1) causes the test to fail deterministically without the decorator.

@ericl ericl changed the title [WIP] Debug test heartbeats single [autoscaler] Fix test heartbeats single test Dec 1, 2020
Copy link
Contributor

@wuisawesome wuisawesome left a comment

Choose a reason for hiding this comment

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

LOL nice catch.

@ericl ericl merged commit fd8ae06 into ray-project:master Dec 1, 2020
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.

[New scheduler] Pass test_multi_node_2::test_heartbeats_single
2 participants