Skip to content

Commit e63e800

Browse files
committed
Update tests for PR Comment and Release Note Generation
1 parent 8257842 commit e63e800

3 files changed

Lines changed: 30 additions & 10 deletions

File tree

tests/scripts/jinja_template/inputs/deploy-outputs.Gadi

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
{
2+
"model_name": "ACCESS-ISSM",
3+
"model_deployment_repository": "https://github.com/ACCESS-NRI/ACCESS-ISSM",
4+
"model_deployment_repository_spack_manifest_path": "./spack.yaml",
25
"spack_version": "0.22",
6+
"spack_git_hash": "ee9a10e5cafdcd3224b436d3f477a73ef8669b4b",
37
"spack_config_version": "2024.11.27",
4-
"spack_packages_version": "2024.09.20",
8+
"spack_config_git_hash": "a69211111414bd53fab72333f6340811fc52dbec",
9+
"builtin_spack_packages_version": "2024.09.20",
10+
"builtin_spack_packages_git_hash": "86c97e8078ab7a7dbc3497b7c937082ac5bc7c5f",
11+
"access_spack_packages_version": "2025.10.000",
12+
"access_spack_packages_git_hash": "86c97e8078ab7a7dbc3497b7c937082ac5bc7c5f",
513
"ci_configuration_check_failure": false,
6-
"release_deployment_version": "2024.11.16",
7-
"spack_environment_name": "access-test-pr15-11",
14+
"release_deployment_version": "2025.03.0",
15+
"spack_environment_name": "access-issm-pr28-4",
16+
"root_spec_pkg_hash": "qzveqwadasdmgrlp5k3zjxo7wovi5635",
817
"deployment_result": "success",
918
"deployment_modules_location": "/g/data/vk83/prerelease/modules",
1019
"deployment_spack_location": "/g/data/vk83/prerelease/apps/spack/0.22/spack"

tests/scripts/jinja_template/inputs/deploy-outputs.Setonix

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
{
2+
"model_name": "ACCESS-ISSM",
3+
"model_deployment_repository": "https://github.com/ACCESS-NRI/ACCESS-ISSM",
4+
"model_deployment_repository_spack_manifest_path": "./spack.yaml",
25
"spack_version": "0.22",
6+
"spack_git_hash": "ee9a10e5cafdcd3224b436d3f477a73ef8669b4b",
37
"spack_config_version": "2024.11.27",
4-
"spack_packages_version": "2024.09.20",
8+
"spack_config_git_hash": "a69211111414bd53fab72333f6340811fc52dbec",
9+
"builtin_spack_packages_version": "2024.09.20",
10+
"builtin_spack_packages_git_hash": "86c97e8078ab7a7dbc3497b7c937082ac5bc7c5f",
11+
"access_spack_packages_version": "2025.10.000",
12+
"access_spack_packages_git_hash": "86c97e8078ab7a7dbc3497b7c937082ac5bc7c5f",
513
"ci_configuration_check_failure": false,
6-
"release_deployment_version": "2024.11.16",
7-
"spack_environment_name": "access-test-pr15-11",
14+
"release_deployment_version": "2025.03.0",
15+
"spack_environment_name": "access-issm-pr28-4",
16+
"root_spec_pkg_hash": "qzveqwadasdmgrlp5k3zjxo7wovi5635",
817
"deployment_result": "success",
918
"deployment_modules_location": "/some/dir/with/modules",
1019
"deployment_spack_location": "/some/apps/spack/0.22/spack"

tests/scripts/jinja_template/test_render_deployment_info.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,20 @@ def test_build_deployments_context_from_folder(deployments_folder):
5151

5252
assert context[0]["name"] == "Gadi"
5353
assert context[0]["result"] == "success"
54-
assert context[0]["release_version"] == "2024.11.16"
54+
assert context[0]["release_version"] == "2025.03.0"
5555
assert context[0]["spack_version"] == "0.22"
5656
assert context[0]["spack_config_version"] == "2024.11.27"
57-
assert context[0]["spack_packages_version"] == "2024.09.20"
57+
assert context[0]["builtin_spack_packages_version"] == "2024.09.20"
58+
assert context[0]["access_spack_packages_version"] == "2025.10.000"
5859
assert context[0]["modules_location"] == "/g/data/vk83/prerelease/modules"
5960
assert context[0]["spack_location"] == "/g/data/vk83/prerelease/apps/spack/0.22/spack"
6061

6162
assert context[1]["name"] == "Setonix"
6263
assert context[1]["result"] == "success"
63-
assert context[1]["release_version"] == "2024.11.16"
64+
assert context[1]["release_version"] == "2025.03.0"
6465
assert context[1]["spack_version"] == "0.22"
6566
assert context[1]["spack_config_version"] == "2024.11.27"
66-
assert context[1]["spack_packages_version"] == "2024.09.20"
67+
assert context[1]["builtin_spack_packages_version"] == "2024.09.20"
68+
assert context[1]["access_spack_packages_version"] == "2025.10.000"
6769
assert context[1]["modules_location"] == "/some/dir/with/modules"
6870
assert context[1]["spack_location"] == "/some/apps/spack/0.22/spack"

0 commit comments

Comments
 (0)