Skip to content

Commit d6cf2cb

Browse files
committed
Replaced old ray image with new 2.20.0 image
1 parent aafe52a commit d6cf2cb

8 files changed

+20
-20
lines changed

src/codeflare_sdk/templates/base-template.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ spec:
7878
containers:
7979
# The Ray head pod
8080
- name: ray-head
81-
image: quay.io/project-codeflare/ray:latest-py39-cu118
81+
image: quay.io/project-codeflare/ray:2.20.0-py39-cu118
8282
imagePullPolicy: Always
8383
ports:
8484
- containerPort: 6379
@@ -161,7 +161,7 @@ spec:
161161
spec:
162162
containers:
163163
- name: machine-learning # must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc'
164-
image: quay.io/project-codeflare/ray:latest-py39-cu118
164+
image: quay.io/project-codeflare/ray:2.20.0-py39-cu118
165165
# environment variables to set in the container.Optional.
166166
# Refer to https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
167167
lifecycle:

tests/e2e/support.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
def get_ray_image():
11-
default_ray_image = "quay.io/project-codeflare/ray:latest-py39-cu118"
11+
default_ray_image = "quay.io/project-codeflare/ray:2.20.0-py39-cu118"
1212
return os.getenv("RAY_IMAGE", default_ray_image)
1313

1414

tests/test-case-bad.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
valueFrom:
4343
fieldRef:
4444
fieldPath: status.podIP
45-
image: quay.io/project-codeflare/ray:latest-py39-cu118
45+
image: quay.io/project-codeflare/ray:2.20.0-py39-cu118
4646
imagePullPolicy: Always
4747
lifecycle:
4848
preStop:
@@ -90,7 +90,7 @@ spec:
9090
valueFrom:
9191
fieldRef:
9292
fieldPath: status.podIP
93-
image: quay.io/project-codeflare/ray:latest-py39-cu118
93+
image: quay.io/project-codeflare/ray:2.20.0-py39-cu118
9494
lifecycle:
9595
preStop:
9696
exec:

tests/test-case-no-mcad.yamls

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ spec:
3434
template:
3535
spec:
3636
containers:
37-
- image: quay.io/project-codeflare/ray:latest-py39-cu118
37+
- image: quay.io/project-codeflare/ray:2.20.0-py39-cu118
3838
imagePullPolicy: Always
3939
lifecycle:
4040
preStop:
@@ -107,7 +107,7 @@ spec:
107107
key: value
108108
spec:
109109
containers:
110-
- image: quay.io/project-codeflare/ray:latest-py39-cu118
110+
- image: quay.io/project-codeflare/ray:2.20.0-py39-cu118
111111
lifecycle:
112112
preStop:
113113
exec:

tests/test-case.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
template:
3939
spec:
4040
containers:
41-
- image: quay.io/project-codeflare/ray:latest-py39-cu118
41+
- image: quay.io/project-codeflare/ray:2.20.0-py39-cu118
4242
imagePullPolicy: Always
4343
lifecycle:
4444
preStop:
@@ -111,7 +111,7 @@ spec:
111111
key: value
112112
spec:
113113
containers:
114-
- image: quay.io/project-codeflare/ray:latest-py39-cu118
114+
- image: quay.io/project-codeflare/ray:2.20.0-py39-cu118
115115
lifecycle:
116116
preStop:
117117
exec:

tests/test-default-appwrapper.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
template:
3939
spec:
4040
containers:
41-
- image: quay.io/project-codeflare/ray:latest-py39-cu118
41+
- image: quay.io/project-codeflare/ray:2.20.0-py39-cu118
4242
imagePullPolicy: Always
4343
lifecycle:
4444
preStop:
@@ -110,7 +110,7 @@ spec:
110110
key: value
111111
spec:
112112
containers:
113-
- image: quay.io/project-codeflare/ray:latest-py39-cu118
113+
- image: quay.io/project-codeflare/ray:2.20.0-py39-cu118
114114
lifecycle:
115115
preStop:
116116
exec:

tests/unit_test.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def test_config_creation():
263263
assert config.min_cpus == 3 and config.max_cpus == 4
264264
assert config.min_memory == "5G" and config.max_memory == "6G"
265265
assert config.num_gpus == 7
266-
assert config.image == "quay.io/project-codeflare/ray:latest-py39-cu118"
266+
assert config.image == "quay.io/project-codeflare/ray:2.20.0-py39-cu118"
267267
assert config.template == f"{parent}/src/codeflare_sdk/templates/base-template.yaml"
268268
assert config.machine_types == ["cpu.small", "gpu.large"]
269269
assert config.image_pull_secrets == ["unit-test-pull-secret"]
@@ -402,7 +402,7 @@ def test_cluster_creation_no_mcad_local_queue(mocker):
402402
num_gpus=7,
403403
machine_types=["cpu.small", "gpu.large"],
404404
image_pull_secrets=["unit-test-pull-secret"],
405-
image="quay.io/project-codeflare/ray:latest-py39-cu118",
405+
image="quay.io/project-codeflare/ray:2.20.0-py39-cu118",
406406
write_to_file=True,
407407
appwrapper=False,
408408
local_queue="local-queue-default",
@@ -430,7 +430,7 @@ def test_default_cluster_creation(mocker):
430430
)
431431
default_config = ClusterConfiguration(
432432
name="unit-test-default-cluster",
433-
image="quay.io/project-codeflare/ray:latest-py39-cu118",
433+
image="quay.io/project-codeflare/ray:2.20.0-py39-cu118",
434434
appwrapper=True,
435435
)
436436
cluster = Cluster(default_config)
@@ -779,7 +779,7 @@ def test_ray_job_wrapping(mocker):
779779
return_value=get_local_queue("kueue.x-k8s.io", "v1beta1", "ns", "localqueues"),
780780
)
781781
cluster = cluster = createClusterWithConfig(mocker)
782-
cluster.config.image = "quay.io/project-codeflare/ray:latest-py39-cu118"
782+
cluster.config.image = "quay.io/project-codeflare/ray:2.20.0-py39-cu118"
783783
mocker.patch(
784784
"ray.job_submission.JobSubmissionClient._check_connection_and_version_with_url",
785785
return_value="None",
@@ -899,7 +899,7 @@ def test_ray_details(mocker, capsys):
899899
ClusterConfiguration(
900900
name="raytest2",
901901
namespace="ns",
902-
image="quay.io/project-codeflare/ray:latest-py39-cu118",
902+
image="quay.io/project-codeflare/ray:2.20.0-py39-cu118",
903903
write_to_file=True,
904904
appwrapper=True,
905905
local_queue="local_default_queue",
@@ -2292,7 +2292,7 @@ def test_cluster_status(mocker):
22922292
ClusterConfiguration(
22932293
name="test",
22942294
namespace="ns",
2295-
image="quay.io/project-codeflare/ray:latest-py39-cu118",
2295+
image="quay.io/project-codeflare/ray:2.20.0-py39-cu118",
22962296
write_to_file=True,
22972297
appwrapper=True,
22982298
local_queue="local_default_queue",
@@ -2387,7 +2387,7 @@ def test_wait_ready(mocker, capsys):
23872387
ClusterConfiguration(
23882388
name="test",
23892389
namespace="ns",
2390-
image="quay.io/project-codeflare/ray:latest-py39-cu118",
2390+
image="quay.io/project-codeflare/ray:2.20.0-py39-cu118",
23912391
write_to_file=True,
23922392
appwrapper=True,
23932393
local_queue="local-queue-default",
@@ -2614,7 +2614,7 @@ def throw_if_getting_raycluster(group, version, namespace, plural):
26142614
cluster = Cluster(
26152615
ClusterConfiguration(
26162616
"test_cluster",
2617-
image="quay.io/project-codeflare/ray:latest-py39-cu118",
2617+
image="quay.io/project-codeflare/ray:2.20.0-py39-cu118",
26182618
write_to_file=False,
26192619
)
26202620
)

tests/unit_test_support.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def createClusterConfig():
1717
appwrapper=True,
1818
machine_types=["cpu.small", "gpu.large"],
1919
image_pull_secrets=["unit-test-pull-secret"],
20-
image="quay.io/project-codeflare/ray:latest-py39-cu118",
20+
image="quay.io/project-codeflare/ray:2.20.0-py39-cu118",
2121
write_to_file=True,
2222
)
2323
return config

0 commit comments

Comments
 (0)