Debug statements and increase timeout for test array (#7713)

This commit is contained in:
Stephanie Wang
2020-03-23 13:02:14 -07:00
committed by GitHub
parent 9a590ac6a5
commit 7f38cc1d03
3 changed files with 25 additions and 7 deletions
+13
View File
@@ -3,6 +3,7 @@ import numpy as np
from numpy.testing import assert_equal, assert_almost_equal
import pytest
import sys
import json
import ray
import ray.experimental.array.remote as ra
@@ -55,6 +56,18 @@ def test_distributed_array_assemble(ray_start_2_cpus, reload_modules):
]))
@pytest.mark.parametrize(
"ray_start_cluster_2_nodes",
[{
"_internal_config": json.dumps({
# NOTE(swang): If plasma store notifications to the raylet for new
# objects are delayed by long enough, then this causes concurrent
# fetch calls to timeout and mistakenly mark the object as lost.
# Set the timeout very high to prevent this.
"initial_reconstruction_timeout_milliseconds": 60000,
})
}],
indirect=True)
def test_distributed_array_methods(ray_start_cluster_2_nodes, reload_modules):
x = da.zeros.remote([9, 25, 51], "float")
assert_equal(ray.get(da.assemble.remote(x)), np.zeros([9, 25, 51]))