[GCS]Open test_gcs_fault_tolerance testcase (#9677)

* enable test_gcs_fault_tolerance

* fix lint error

Co-authored-by: 灵洵 <fengbin.ffb@antfin.com>
This commit is contained in:
fangfengbin
2020-07-26 11:26:45 +08:00
committed by GitHub
parent a8efb214de
commit ff1d7a6b36
2 changed files with 11 additions and 2 deletions
+1 -2
View File
@@ -468,8 +468,7 @@ py_test(
name = "test_gcs_fault_tolerance",
size = "medium",
srcs = SRCS + ["test_gcs_fault_tolerance.py"],
# TODO(swang): Enable again once pubsub client supports GCS server restart.
tags = ["exclusive", "manual"],
tags = ["exclusive"],
deps = ["//:ray_lib"],
)
@@ -1,3 +1,4 @@
import os
import sys
import ray
@@ -20,6 +21,9 @@ def increase(x):
return x + 1
@pytest.mark.skipif(
os.environ.get("RAY_GCS_ACTOR_SERVICE_ENABLED") != "true",
reason=("This testcase can only be run when GCS actor management is on."))
def test_gcs_server_restart(ray_start_regular):
actor1 = Increase.remote()
result = ray.get(actor1.method.remote(1))
@@ -39,6 +43,9 @@ def test_gcs_server_restart(ray_start_regular):
assert result == 2
@pytest.mark.skipif(
os.environ.get("RAY_GCS_ACTOR_SERVICE_ENABLED") != "true",
reason=("This testcase can only be run when GCS actor management is on."))
def test_gcs_server_restart_during_actor_creation(ray_start_regular):
ids = []
for i in range(0, 100):
@@ -54,6 +61,9 @@ def test_gcs_server_restart_during_actor_creation(ray_start_regular):
assert len(unready) == 0
@pytest.mark.skipif(
os.environ.get("RAY_GCS_ACTOR_SERVICE_ENABLED") != "true",
reason=("This testcase can only be run when GCS actor management is on."))
@pytest.mark.parametrize(
"ray_start_cluster_head",
[generate_internal_config_map(num_heartbeats_timeout=20)],