mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 06:30:33 +08:00
Debug statements and increase timeout for test array (#7713)
This commit is contained in:
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user