debug call_ray_start failure (#24252)

Exploring #24251. The call to the `call_ray_start` fixture seems to be timing out in `test_ray_init`.
This commit is contained in:
Matti Picus 2022-05-09 21:28:28 +03:00 committed by GitHub
parent 07986349c6
commit ffb67203e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -276,9 +276,13 @@ def call_ray_start(request):
"--max-worker-port=0 --port 0",
)
command_args = parameter.split(" ")
out = ray._private.utils.decode(
subprocess.check_output(command_args, stderr=subprocess.STDOUT)
)
try:
out = ray._private.utils.decode(
subprocess.check_output(command_args, stderr=subprocess.STDOUT)
)
except Exception as e:
print(type(e), e)
raise
# Get the redis address from the output.
redis_substring_prefix = "--address='"
address_location = out.find(redis_substring_prefix) + len(redis_substring_prefix)