Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
410 changes: 236 additions & 174 deletions .github/workflows/update-versions.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/codeflare_sdk/common/utils/unit_test_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def get_expected_image():
def get_template_variables():
return {
"image": get_expected_image(),
"ray_version": constants.RAY_VERSION,
}


Expand Down
9 changes: 5 additions & 4 deletions src/codeflare_sdk/ray/cluster/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import filecmp
import os
from pathlib import Path

Expand Down Expand Up @@ -96,11 +95,13 @@ def test_config_creation_all_parameters(mocker):
assert cluster.config.volumes == volumes
assert cluster.config.volume_mounts == volume_mounts

assert filecmp.cmp(
f"{cluster_dir}test-all-params.yaml",
with open(f"{cluster_dir}test-all-params.yaml", "r") as f:
actual = yaml.load(f, Loader=yaml.FullLoader)
expected = apply_template(
f"{expected_clusters_dir}/ray/unit-test-all-params.yaml",
shallow=True,
get_template_variables(),
)
assert actual == expected


def test_config_creation_wrong_type():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/kueue/ray_cluster_kueue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.52.1
rayVersion: ${ray_version}
workerGroupSpecs:
- groupName: small-group-unit-test-cluster-kueue
maxReplicas: 2
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/ray/default-ray-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.52.1
rayVersion: ${ray_version}
workerGroupSpecs:
- groupName: small-group-default-cluster
maxReplicas: 1
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/ray/unit-test-all-params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.52.1
rayVersion: ${ray_version}
workerGroupSpecs:
- groupName: small-group-test-all-params
maxReplicas: 10
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/support_clusters/test-rc-a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.52.1
rayVersion: ${ray_version}
workerGroupSpecs:
- groupName: small-group-test-cluster-a
maxReplicas: 1
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cluster_yamls/support_clusters/test-rc-b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
name: odh-trusted-ca-bundle
optional: true
name: odh-ca-cert
rayVersion: 2.52.1
rayVersion: ${ray_version}
workerGroupSpecs:
- groupName: small-group-test-rc-b
maxReplicas: 1
Expand Down
Loading