8
8
from runhouse .resources .images .image import Image
9
9
from tests .conftest import init_args
10
10
11
- from tests .constants import TEST_ENV_VARS
12
- from tests .utils import test_env
11
+ from tests .constants import TEST_ENV_VARS , TEST_REQS
12
+ from tests .utils import setup_test_base
13
13
14
14
NUM_OF_NODES = 2
15
15
@@ -19,7 +19,7 @@ def restart_server(request):
19
19
return request .config .getoption ("--restart-server" )
20
20
21
21
22
- def setup_test_cluster (args , request , create_env = False ):
22
+ def setup_test_cluster (args , request , setup_base = False ):
23
23
cluster = rh .ondemand_cluster (** args )
24
24
init_args [id (cluster )] = args
25
25
cluster .up_if_not ()
@@ -28,8 +28,8 @@ def setup_test_cluster(args, request, create_env=False):
28
28
29
29
cluster .save ()
30
30
31
- if create_env or not cluster .image :
32
- test_env (). to (cluster )
31
+ if setup_base or not cluster .image :
32
+ setup_test_base (cluster )
33
33
return cluster
34
34
35
35
@@ -52,7 +52,7 @@ def ondemand_cluster(request):
52
52
@pytest .fixture (scope = "session" )
53
53
def ondemand_aws_docker_cluster (request ):
54
54
"""
55
- Note: Also used to test docker and default env with alternate Ray version.
55
+ Note: Also used to test docker and default process with alternate Ray version.
56
56
"""
57
57
image = (
58
58
Image (name = "default_image" )
@@ -67,7 +67,7 @@ def ondemand_aws_docker_cluster(request):
67
67
"image" : image ,
68
68
"sky_kwargs" : {"launch" : {"retry_until_up" : True }},
69
69
}
70
- cluster = setup_test_cluster (args , request , create_env = True )
70
+ cluster = setup_test_cluster (args , request , setup_base = True )
71
71
return cluster
72
72
73
73
@@ -99,7 +99,7 @@ def ondemand_gcp_cluster(request):
99
99
conda_env_name = "base_env" ,
100
100
conda_yaml = {"dependencies" : ["python=3.11" ], "name" : "base_env" },
101
101
)
102
- .install_packages (test_env (). reqs + ["ray==2.30.0" ], conda_env_name = "base_env" )
102
+ .install_packages (TEST_REQS + ["ray==2.30.0" ], conda_env_name = "base_env" )
103
103
.set_env_vars (env_vars = TEST_ENV_VARS )
104
104
)
105
105
args = {
@@ -203,7 +203,7 @@ def multinode_cpu_docker_conda_cluster(request):
203
203
conda_env_name = "base_env" ,
204
204
conda_yaml = {"dependencies" : ["python=3.11" ], "name" : "base_env" },
205
205
)
206
- .install_packages (test_env (). reqs + ["ray==2.30.0" ], conda_env_name = "base_env" )
206
+ .install_packages (TEST_REQS + ["ray==2.30.0" ], conda_env_name = "base_env" )
207
207
)
208
208
args = {
209
209
"name" : "rh-cpu-multinode" ,
0 commit comments