CI (pull_request) for 196/merge #388
GitHub Actions / QA Test Results
failed
Feb 26, 2025 in 0s
1 errors, 1 fail, 1 skipped, 9 pass in 0s
12 tests 9 ✅ 0s ⏱️
1 suites 1 💤
1 files 1 ❌ 1 🔥
Results for commit 4a261ad.
Annotations
Check warning on line 0 in qa.test_access_om3_config.TestAccessOM3
github-actions / QA Test Results
test_access_om3_manifest_exe_in_release_spack_location (qa.test_access_om3_config.TestAccessOM3) failed
./test_report.xml [took 0s]
Raw output
AssertionError: Failed to download spack.location from https://github.com/ACCESS-NRI/ACCESS-OM3/releases/download/pr37-5/spack.location
assert 404 == 200
+ where 404 = <Response [404]>.status_code
self = <test_access_om3_config.TestAccessOM3 object at 0x7f86bd6d6b10>
config = {'collate': False, 'exe': 'access-om3-MOM6-CICE6', 'input': ['/g/data/vk83/configurations/inputs/access-om3/share/mesh...3/configurations/inputs/access-om3/mom/grids/mosaic/global.1deg/2020.05.30/ocean_hgrid.nc', ...], 'jobfs': '10GB', ...}
control_path = PosixPath('/home/runner/work/access-om3-configs/access-om3-configs')
def test_access_om3_manifest_exe_in_release_spack_location(
self, config, control_path
):
> check_manifest_exes_in_spack_location(
model_module_name="access-om3",
model_repo_name="ACCESS-OM3",
control_path=control_path,
config=config,
)
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/qa/test_access_om3_config.py:19:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
model_module_name = 'access-om3', model_repo_name = 'ACCESS-OM3'
control_path = PosixPath('/home/runner/work/access-om3-configs/access-om3-configs')
config = {'collate': False, 'exe': 'access-om3-MOM6-CICE6', 'input': ['/g/data/vk83/configurations/inputs/access-om3/share/mesh...3/configurations/inputs/access-om3/mom/grids/mosaic/global.1deg/2020.05.30/ocean_hgrid.nc', ...], 'jobfs': '10GB', ...}
def check_manifest_exes_in_spack_location(
model_module_name, model_repo_name, control_path, config
):
"""This compares executable paths in the executable manifest, and checks
they match an install path in the spack.location release artefact. The
version defined in the module configuration in config.yaml, is used
to find the relevant release version.
This is called in model-specific config tests.
Parameters
----------
model_module_name: str
Expected module name in the config.yaml file. This is used to find the version of the model
model_repo_name: str
Name of the ACCESS-NRI model repository. This is used to retrieve released spack.location
control_path: Path
The path to configuration directory
config: Dict[str, Any]
The contents of the config.yaml file
"""
help_msg = (
"Expected module for the model is added to loaded modules in config.yaml. "
"The module also requires a released version. E.g.\n"
" modules:\n"
" use:\n"
f" - {RELEASE_MODULE_LOCATION}\n"
" load:\n"
f" - {model_module_name}/<version>\n"
"Model executable paths can then be filenames that found in paths added by loaded module"
)
# Check module is defined in configuration file
assert "modules" in config and "load" in config["modules"], help_msg
loaded_modules = config["modules"]["load"]
modules = [m for m in loaded_modules if m.startswith(f"{model_module_name}/")]
assert len(modules) == 1, help_msg
# Extract out the version
_, module_version = modules[0].split("/")
# Use the module version to download spack.location file
url = (
f"https://github.com/ACCESS-NRI/{model_repo_name}/"
f"releases/download/{module_version}/spack.location"
)
# Check there is a released spack.location file for the module version
response = requests.get(url)
> assert response.status_code == 200, f"Failed to download spack.location from {url}"
E AssertionError: Failed to download spack.location from https://github.com/ACCESS-NRI/ACCESS-OM3/releases/download/pr37-5/spack.location
E assert 404 == 200
E + where 404 = <Response [404]>.status_code
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/qa/test_config.py:310: AssertionError
Check failure on line 0 in qa.test_config.TestConfig
github-actions / QA Test Results
test_metadata_does_not_contain_UUID (qa.test_config.TestConfig) with error
./test_report.xml [took 0s]
Raw output
failed on setup with "FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/access-om3-configs/access-om3-configs/metadata.yaml'"
control_path = PosixPath('/home/runner/work/access-om3-configs/access-om3-configs')
@pytest.fixture(scope="session")
def metadata(control_path: Path):
"""Read the metadata file in the control directory"""
metadata_path = control_path / "metadata.yaml"
# Use ruamel.yaml as that is what is used to read metadata files in Payu
# It also errors out if there are duplicate keys in metadata
> content = YAML().load(metadata_path)
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/conftest.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/ruamel/yaml/main.py:445: in load
with stream.open('rb') as fp:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = PosixPath('/home/runner/work/access-om3-configs/access-om3-configs/metadata.yaml')
mode = 'rb', buffering = -1, encoding = None, errors = None, newline = None
def open(self, mode='r', buffering=-1, encoding=None,
errors=None, newline=None):
"""
Open the file pointed by this path and return a file object, as
the built-in open() function does.
"""
if "b" not in mode:
encoding = io.text_encoding(encoding)
> return io.open(self, mode, buffering, encoding, errors, newline)
E FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/access-om3-configs/access-om3-configs/metadata.yaml'
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/pathlib.py:1044: FileNotFoundError
Loading