[ray_client] Implement optional arguments to ray.remote() and f.options() (#12985)

This commit is contained in:
Barak Michener
2020-12-20 15:43:48 -08:00
committed by GitHub
parent 11f34f72d8
commit 80f6dd16b2
12 changed files with 336 additions and 90 deletions
+4 -4
View File
@@ -25,7 +25,9 @@ else:
import setproctitle # noqa
@pytest.mark.skipif(client_test_enabled(), reason="test setup order")
@pytest.mark.skipif(
client_test_enabled(),
reason="defining early, no ray package injection yet")
def test_caching_actors(shutdown_only):
# Test defining actors before ray.init() has been called.
@@ -564,7 +566,6 @@ def test_actor_static_attributes(ray_start_regular_shared):
assert ray.get(t.g.remote()) == 3
@pytest.mark.skipif(client_test_enabled(), reason="remote args")
def test_decorator_args(ray_start_regular_shared):
# This is an invalid way of using the actor decorator.
with pytest.raises(Exception):
@@ -655,7 +656,7 @@ def test_actor_inheritance(ray_start_regular_shared):
pass
@pytest.mark.skipif(client_test_enabled(), reason="remote args")
@pytest.mark.skipif(client_test_enabled(), reason="ray.method unimplemented")
def test_multiple_return_values(ray_start_regular_shared):
@ray.remote
class Foo:
@@ -689,7 +690,6 @@ def test_multiple_return_values(ray_start_regular_shared):
assert ray.get([id3a, id3b, id3c]) == [1, 2, 3]
@pytest.mark.skipif(client_test_enabled(), reason="remote args")
def test_options_num_returns(ray_start_regular_shared):
@ray.remote
class Foo: