Skip to content

New CICE grid - 1deg ryf with bgc #96

New CICE grid - 1deg ryf with bgc

New CICE grid - 1deg ryf with bgc #96

GitHub Actions / QA Test Results failed Apr 17, 2024 in 0s

2 fail, 34 pass in 0s

36 tests   34 ✅  0s ⏱️
 1 suites   0 💤
 1 files     2 ❌

Results for commit f0268dd.

Annotations

Check warning on line 0 in pytest.test.test_access_om2_config.TestAccessOM2

See this annotation in the file changed.

@github-actions github-actions / QA Test Results

test_restart_period (pytest.test.test_access_om2_config.TestAccessOM2) failed

./pr/test_report.xml [took 0s]
Raw output
assert [0, 0, 10800] == [5, 0, 0]
  
  At index 0 diff: 0 != 5
  
  Full diff:
    [
  -     5,
        0,
        0,
  +     10800,
    ]
self = <test_access_om2_config.TestAccessOM2 object at 0x7fe403e3f550>
branch = <test_access_om2_config.AccessOM2Branch object at 0x7fe404fe76d0>
control_path = PosixPath('/home/runner/work/access-om2-configs/access-om2-configs/pr')

    def test_restart_period(self, branch, control_path):
        accessom2_nml_path = control_path / 'accessom2.nml'
        assert accessom2_nml_path.exists()
    
        accessom2_nml = f90nml.read(accessom2_nml_path)
        restart_period = accessom2_nml['date_manager_nml']['restart_period']
    
        if branch.resolution == '1deg':
            expected_period = [5, 0, 0]
        elif branch.resolution == '025deg':
            if branch.is_bgc:
                expected_period = [1, 0, 0]
            else:
                expected_period = [2, 0, 0]
        elif branch.resolution == '01deg':
            if branch.is_bgc:
                expected_period = [0, 1, 0]
            else:
                expected_period = [0, 3, 0]
        else:
            pytest.fail(
                f"The expected restart period is not defined for given "
                f"resolution: {branch.resolution}"
            )
>       assert restart_period == expected_period
E       assert [0, 0, 10800] == [5, 0, 0]
E         
E         At index 0 diff: 0 != 5
E         
E         Full diff:
E           [
E         -     5,
E               0,
E               0,
E         +     10800,
E           ]

../pytest/test/test_access_om2_config.py:136: AssertionError

Check warning on line 0 in pytest.test.test_config.TestConfig

See this annotation in the file changed.

@github-actions github-actions / QA Test Results

test_metadata_does_contain_UUID (pytest.test.test_config.TestConfig) failed

./pr/test_report.xml [took 0s]
Raw output
AssertionError: `experiment_uuid` should not be defined in metadata, as this is an configuration rather than an experiment. 
assert 'experiment_uuid' not in {'contact': 'anton-climate', 'email': 'anton.steketee@anu.edu.au', 'created': '2024-04-17', 'description': '1 degree A...uuid': 'b78182f7-7686-486c-87ff-a5d2db885b04', 'name': 'dev-025deg_jra55_ryf-update-1deg_jra55_ryf_bgc-iss92-b78182f7'}
self = <test_config.TestConfig object at 0x7fe40401c850>
metadata = {'contact': 'anton-climate', 'email': 'anton.steketee@anu.edu.au', 'created': '2024-04-17', 'description': '1 degree A...uuid': 'b78182f7-7686-486c-87ff-a5d2db885b04', 'name': 'dev-025deg_jra55_ryf-update-1deg_jra55_ryf_bgc-iss92-b78182f7'}

    def test_metadata_does_contain_UUID(self, metadata):
>       assert 'experiment_uuid' not in metadata, (
            "`experiment_uuid` should not be defined in metadata, " +
            "as this is an configuration rather than an experiment. "
        )
E       AssertionError: `experiment_uuid` should not be defined in metadata, as this is an configuration rather than an experiment. 
E       assert 'experiment_uuid' not in {'contact': 'anton-climate', 'email': 'anton.steketee@anu.edu.au', 'created': '2024-04-17', 'description': '1 degree A...uuid': 'b78182f7-7686-486c-87ff-a5d2db885b04', 'name': 'dev-025deg_jra55_ryf-update-1deg_jra55_ryf_bgc-iss92-b78182f7'}

../pytest/test/test_config.py:193: AssertionError