-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Make wait_for_condition raise exception when timing out. #9710
Changes from all commits
297504d
50f7262
aba0a09
b2551e2
bc38aa0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ def dependent_task(x): | |
cluster.remove_node(node_to_kill, allow_graceful=False) | ||
cluster.add_node( | ||
num_cpus=1, resources={"node1": 1}, object_store_memory=10**8) | ||
assert wait_for_condition( | ||
wait_for_condition( | ||
lambda: not all(node["Alive"] for node in ray.nodes()), timeout=10) | ||
|
||
for _ in range(20): | ||
|
@@ -101,7 +101,7 @@ def dependent_task(x): | |
cluster.remove_node(node_to_kill, allow_graceful=False) | ||
cluster.add_node( | ||
num_cpus=1, resources={"node1": 1}, object_store_memory=10**8) | ||
assert wait_for_condition( | ||
wait_for_condition( | ||
lambda: not all(node["Alive"] for node in ray.nodes()), timeout=10) | ||
|
||
for _ in range(20): | ||
|
@@ -296,6 +296,7 @@ def dependent_task(x): | |
pid = ray.get(a.pid.remote()) | ||
|
||
|
||
@pytest.mark.skipif(sys.platform == "win32", reason="Test failing on Windows.") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Skipping because I saw this fail with the following error (not sure if it's just Windows or everywhere, but I only saw it on Windows).
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No apparent connection to Windows to me, but not sure. |
||
@pytest.mark.parametrize("reconstruction_enabled", [False, True]) | ||
def test_basic_reconstruction_actor_constructor(ray_start_cluster, | ||
reconstruction_enabled): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the key change.