mirror of
https://github.com/wassname/ray.git
synced 2026-09-12 12:51:15 +08:00
Use XRay backend by default. (#3020)
* Use XRay backend by default. * Remove irrelevant valgrind tests. * Fix * Move tests around. * Fix * Fix test * Fix test. * String/unicode fix. * Fix test * Fix unicode issue. * Minor changes * Fix bug in test_global_state.py. * Fix test. * Linting * Try arrow change and other object manager changes. * Use newer plasma client API * Small updates * Revert plasma client api change. * Update * Update arrow and allow SendObjectHeaders to fail. * Update arrow * Update python/ray/experimental/state.py Co-Authored-By: robertnishihara <robertnishihara@gmail.com> * Address comments.
This commit is contained in:
committed by
Philipp Moritz
parent
9d2e864caf
commit
9c1826ed69
@@ -36,7 +36,7 @@ def shutdown_only():
|
||||
# This test checks that when a worker dies in the middle of a get, the plasma
|
||||
# store and raylet will not die.
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_XRAY") != "1",
|
||||
os.environ.get("RAY_USE_XRAY") == "0",
|
||||
reason="This test only works with xray.")
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_NEW_GCS") == "on",
|
||||
@@ -89,7 +89,7 @@ def test_dying_worker_get_raylet(shutdown_only):
|
||||
# This test checks that when a driver dies in the middle of a get, the plasma
|
||||
# store and raylet will not die.
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_XRAY") != "1",
|
||||
os.environ.get("RAY_USE_XRAY") == "0",
|
||||
reason="This test only works with xray.")
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_NEW_GCS") == "on",
|
||||
@@ -107,8 +107,8 @@ def test_dying_driver_get(shutdown_only):
|
||||
driver = """
|
||||
import ray
|
||||
ray.init("{}")
|
||||
ray.get(ray.ObjectID({}))
|
||||
""".format(address_info["redis_address"], x_id.id())
|
||||
ray.get(ray.ObjectID(ray.utils.hex_to_binary("{}")))
|
||||
""".format(address_info["redis_address"], x_id.hex())
|
||||
|
||||
p = run_string_as_driver_nonblocking(driver)
|
||||
# Make sure the driver is running.
|
||||
@@ -135,7 +135,7 @@ ray.get(ray.ObjectID({}))
|
||||
# This test checks that when a worker dies in the middle of a get, the
|
||||
# plasma store and manager will not die.
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_XRAY", False),
|
||||
os.environ.get("RAY_USE_XRAY") != "0",
|
||||
reason="This test does not work with xray yet.")
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_NEW_GCS") == "on",
|
||||
@@ -171,7 +171,7 @@ def test_dying_worker_get(ray_start_workers_separate):
|
||||
# This test checks that when a worker dies in the middle of a wait, the plasma
|
||||
# store and raylet will not die.
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_XRAY") != "1",
|
||||
os.environ.get("RAY_USE_XRAY") == "0",
|
||||
reason="This test only works with xray.")
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_NEW_GCS") == "on",
|
||||
@@ -216,7 +216,7 @@ def test_dying_worker_wait_raylet(shutdown_only):
|
||||
# This test checks that when a driver dies in the middle of a wait, the plasma
|
||||
# store and raylet will not die.
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_XRAY") != "1",
|
||||
os.environ.get("RAY_USE_XRAY") == "0",
|
||||
reason="This test only works with xray.")
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_NEW_GCS") == "on",
|
||||
@@ -234,8 +234,8 @@ def test_dying_driver_wait(shutdown_only):
|
||||
driver = """
|
||||
import ray
|
||||
ray.init("{}")
|
||||
ray.wait([ray.ObjectID({})])
|
||||
""".format(address_info["redis_address"], x_id.id())
|
||||
ray.wait([ray.ObjectID(ray.utils.hex_to_binary("{}"))])
|
||||
""".format(address_info["redis_address"], x_id.hex())
|
||||
|
||||
p = run_string_as_driver_nonblocking(driver)
|
||||
# Make sure the driver is running.
|
||||
@@ -262,7 +262,7 @@ ray.wait([ray.ObjectID({})])
|
||||
# This test checks that when a worker dies in the middle of a wait, the
|
||||
# plasma store and manager will not die.
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_XRAY", False),
|
||||
os.environ.get("RAY_USE_XRAY") != "0",
|
||||
reason="This test does not work with xray yet.")
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_NEW_GCS") == "on",
|
||||
@@ -342,7 +342,7 @@ def test_worker_failed(ray_start_workers_separate_multinode):
|
||||
def _test_component_failed(component_type):
|
||||
"""Kill a component on all worker nodes and check workload succeeds."""
|
||||
# Raylet is able to pass a harder failure test than legacy ray.
|
||||
use_raylet = os.environ.get("RAY_USE_XRAY") == "1"
|
||||
use_raylet = os.environ.get("RAY_USE_XRAY") != "0"
|
||||
|
||||
# Start with 4 workers and 4 cores.
|
||||
num_local_schedulers = 4
|
||||
@@ -452,7 +452,7 @@ def check_components_alive(component_type, check_component_alive):
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_XRAY") != "1",
|
||||
os.environ.get("RAY_USE_XRAY") == "0",
|
||||
reason="This test only makes sense with xray.")
|
||||
def test_raylet_failed():
|
||||
# Kill all local schedulers on worker nodes.
|
||||
@@ -466,7 +466,7 @@ def test_raylet_failed():
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_XRAY") == "1",
|
||||
os.environ.get("RAY_USE_XRAY") != "0",
|
||||
reason="This test does not make sense with xray.")
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_NEW_GCS") == "on",
|
||||
@@ -485,7 +485,7 @@ def test_local_scheduler_failed():
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_XRAY") == "1",
|
||||
os.environ.get("RAY_USE_XRAY") != "0",
|
||||
reason="This test does not make sense with xray.")
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_NEW_GCS") == "on",
|
||||
|
||||
Reference in New Issue
Block a user