Replace --redis-address with --address in test, docs, tune, rllib (#5602)

* wip

* add tests and tune

* add ci

* test fix

* lint

* fix tests

* wip

* sugar dep
This commit is contained in:
Eric Liang
2019-09-01 16:53:02 -07:00
committed by GitHub
parent c49b98cfc4
commit a101812b9f
49 changed files with 183 additions and 177 deletions
+3 -3
View File
@@ -25,7 +25,7 @@ def _test_cleanup_on_driver_exit(num_redis_shards):
lines = [m.strip() for m in output.split("\n")]
init_cmd = [m for m in lines if m.startswith("ray.init")]
assert 1 == len(init_cmd)
redis_address = init_cmd[0].split("redis_address=\"")[-1][:-2]
address = init_cmd[0].split("address=\"")[-1][:-2]
max_attempts_before_failing = 100
# Wait for monitor.py to start working.
time.sleep(2)
@@ -38,7 +38,7 @@ def _test_cleanup_on_driver_exit(num_redis_shards):
def Driver(success):
success.value = True
# Start driver.
ray.init(redis_address=redis_address)
ray.init(address=address)
summary_start = StateSummary()
if (0, 1) != summary_start:
success.value = False
@@ -81,7 +81,7 @@ def _test_cleanup_on_driver_exit(num_redis_shards):
# Just make sure Driver() is run and succeeded.
assert success.value
# Check that objects, tasks, and functions are cleaned up.
ray.init(redis_address=redis_address)
ray.init(address=address)
attempts = 0
while (0, 1) != StateSummary():
time.sleep(0.1)