Skip to content

Use prerelease access-om2-bgc/pr22-4

f85815d
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Closed

1deg_jra55_ryf_bgc: test MOM5 spack-package changes #187

Use prerelease access-om2-bgc/pr22-4
f85815d
Select commit
Loading
Failed to load commit list.
GitHub Actions / QA Test Results failed Apr 23, 2025 in 0s

1 fail, 1 skipped, 31 pass in 0s

33 tests   31 ✅  0s ⏱️
 1 suites   1 💤
 1 files     1 ❌

Results for commit f85815d.

Annotations

Check warning on line 0 in qa.test_access_om2_config.TestAccessOM2

See this annotation in the file changed.

@github-actions github-actions / QA Test Results

test_access_om2_manifest_exe_in_release_spack_location (qa.test_access_om2_config.TestAccessOM2) failed

./test_report.xml [took 0s]
Raw output
AssertionError: Failed to download spack.location from https://github.com/ACCESS-NRI/ACCESS-OM2-BGC/releases/download/pr22-4/spack.location
assert 404 == 200
 +  where 404 = <Response [404]>.status_code
self = <test_access_om2_config.TestAccessOM2 object at 0x7f51ff5e9ad0>
config = {'collate': {'exe': 'mppnccombine.spack', 'mem': '30GB', 'ncpus': 4, 'queue': 'normal', ...}, 'env': {'UCX_LOG_LEVEL':.../access-om2/remapping_weights/JRA55/global.1deg/2020.05.30/rmp_jra55_cice_patch.nc'], 'jobname': '1deg_jra55_ryf', ...}
branch = <test_access_om2_config.AccessOM2Branch object at 0x7f5200c1c9d0>
control_path = PosixPath('/home/runner/work/access-om2-configs/access-om2-configs')

    def test_access_om2_manifest_exe_in_release_spack_location(
        self, config, branch, control_path
    ):
        # Infer module and repository name from branch - as different for the BGC configuration
>       check_manifest_exes_in_spack_location(
            model_module_name=branch.module_name,
            model_repo_name=branch.model_repository_name,
            control_path=control_path,
            config=config,
        )

/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/qa/test_access_om2_config.py:202: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

model_module_name = 'access-om2-bgc', model_repo_name = 'ACCESS-OM2-BGC'
control_path = PosixPath('/home/runner/work/access-om2-configs/access-om2-configs')
config = {'collate': {'exe': 'mppnccombine.spack', 'mem': '30GB', 'ncpus': 4, 'queue': 'normal', ...}, 'env': {'UCX_LOG_LEVEL':.../access-om2/remapping_weights/JRA55/global.1deg/2020.05.30/rmp_jra55_cice_patch.nc'], 'jobname': '1deg_jra55_ryf', ...}

    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-OM2-BGC/releases/download/pr22-4/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:311: AssertionError