Dev config test #3
4 errors, 2 fail, 30 pass in 0s
36 tests 30 ✅ 0s ⏱️
1 suites 0 💤
1 files 2 ❌ 4 🔥
Results for commit ccbb1c7.
Annotations
Check failure on line 0 in test_access_om2_config.TestAccessOM2
github-actions / QA Test Results
test_mppncombine_fast_collate_exe (test_access_om2_config.TestAccessOM2) with error
./test_report.xml [took 0s]
Raw output
failed on setup with "Failed: Branch name release-config has an unknown resolution. Current supported resolutions: 025deg, 01deg, 1deg"
control_path = PosixPath('/home/runner/work/a-model-configs/a-model-configs')
target_branch = 'release-config'
@pytest.fixture(scope="class")
def branch(control_path, target_branch):
branch_name = target_branch
if branch_name is None:
# Default to current branch name
branch_name = get_git_branch_name(control_path)
assert (
branch_name is not None
), f"Failed getting git branch name of control path: {control_path}"
warnings.warn(
"Target branch is not specifed, defaulting to current git branch: "
f"{branch_name}. As some ACCESS-OM2 tests infer information, "
"such as resolution, from the target branch name, some tests may "
"not be run. To set use --target-branch flag in pytest call"
)
> return AccessOM2Branch(branch_name)
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_access_om2_config.py:77:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_access_om2_config.py:41: in __init__
self.set_resolution()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <model_config_tests.test_access_om2_config.AccessOM2Branch object at 0x7f8a65a4e0d0>
def set_resolution(self):
# Resolutions are ordered, so the start of the list are matched first
resolutions = ["025deg", "01deg", "1deg"]
self.resolution = None
for res in resolutions:
if res in self.branch_name:
self.resolution = res
return
> pytest.fail(
f"Branch name {self.branch_name} has an unknown resolution. "
+ f"Current supported resolutions: {', '.join(resolutions)}"
)
E Failed: Branch name release-config has an unknown resolution. Current supported resolutions: 025deg, 01deg, 1deg
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_access_om2_config.py:55: Failed
Check failure on line 0 in test_access_om2_config.TestAccessOM2
github-actions / QA Test Results
test_metadata_realm (test_access_om2_config.TestAccessOM2) with error
./test_report.xml [took 0s]
Raw output
failed on setup with "Failed: Branch name release-config has an unknown resolution. Current supported resolutions: 025deg, 01deg, 1deg"
control_path = PosixPath('/home/runner/work/a-model-configs/a-model-configs')
target_branch = 'release-config'
@pytest.fixture(scope="class")
def branch(control_path, target_branch):
branch_name = target_branch
if branch_name is None:
# Default to current branch name
branch_name = get_git_branch_name(control_path)
assert (
branch_name is not None
), f"Failed getting git branch name of control path: {control_path}"
warnings.warn(
"Target branch is not specifed, defaulting to current git branch: "
f"{branch_name}. As some ACCESS-OM2 tests infer information, "
"such as resolution, from the target branch name, some tests may "
"not be run. To set use --target-branch flag in pytest call"
)
> return AccessOM2Branch(branch_name)
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_access_om2_config.py:77:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_access_om2_config.py:41: in __init__
self.set_resolution()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <model_config_tests.test_access_om2_config.AccessOM2Branch object at 0x7f8a65a4e0d0>
def set_resolution(self):
# Resolutions are ordered, so the start of the list are matched first
resolutions = ["025deg", "01deg", "1deg"]
self.resolution = None
for res in resolutions:
if res in self.branch_name:
self.resolution = res
return
> pytest.fail(
f"Branch name {self.branch_name} has an unknown resolution. "
+ f"Current supported resolutions: {', '.join(resolutions)}"
)
E Failed: Branch name release-config has an unknown resolution. Current supported resolutions: 025deg, 01deg, 1deg
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_access_om2_config.py:55: Failed
Check failure on line 0 in test_access_om2_config.TestAccessOM2
github-actions / QA Test Results
test_restart_period (test_access_om2_config.TestAccessOM2) with error
./test_report.xml [took 0s]
Raw output
failed on setup with "Failed: Branch name release-config has an unknown resolution. Current supported resolutions: 025deg, 01deg, 1deg"
control_path = PosixPath('/home/runner/work/a-model-configs/a-model-configs')
target_branch = 'release-config'
@pytest.fixture(scope="class")
def branch(control_path, target_branch):
branch_name = target_branch
if branch_name is None:
# Default to current branch name
branch_name = get_git_branch_name(control_path)
assert (
branch_name is not None
), f"Failed getting git branch name of control path: {control_path}"
warnings.warn(
"Target branch is not specifed, defaulting to current git branch: "
f"{branch_name}. As some ACCESS-OM2 tests infer information, "
"such as resolution, from the target branch name, some tests may "
"not be run. To set use --target-branch flag in pytest call"
)
> return AccessOM2Branch(branch_name)
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_access_om2_config.py:77:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_access_om2_config.py:41: in __init__
self.set_resolution()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <model_config_tests.test_access_om2_config.AccessOM2Branch object at 0x7f8a65a4e0d0>
def set_resolution(self):
# Resolutions are ordered, so the start of the list are matched first
resolutions = ["025deg", "01deg", "1deg"]
self.resolution = None
for res in resolutions:
if res in self.branch_name:
self.resolution = res
return
> pytest.fail(
f"Branch name {self.branch_name} has an unknown resolution. "
+ f"Current supported resolutions: {', '.join(resolutions)}"
)
E Failed: Branch name release-config has an unknown resolution. Current supported resolutions: 025deg, 01deg, 1deg
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_access_om2_config.py:55: Failed
Check failure on line 0 in test_access_om2_config.TestAccessOM2
github-actions / QA Test Results
test_metadata_nominal_resolution (test_access_om2_config.TestAccessOM2) with error
./test_report.xml [took 0s]
Raw output
failed on setup with "Failed: Branch name release-config has an unknown resolution. Current supported resolutions: 025deg, 01deg, 1deg"
control_path = PosixPath('/home/runner/work/a-model-configs/a-model-configs')
target_branch = 'release-config'
@pytest.fixture(scope="class")
def branch(control_path, target_branch):
branch_name = target_branch
if branch_name is None:
# Default to current branch name
branch_name = get_git_branch_name(control_path)
assert (
branch_name is not None
), f"Failed getting git branch name of control path: {control_path}"
warnings.warn(
"Target branch is not specifed, defaulting to current git branch: "
f"{branch_name}. As some ACCESS-OM2 tests infer information, "
"such as resolution, from the target branch name, some tests may "
"not be run. To set use --target-branch flag in pytest call"
)
> return AccessOM2Branch(branch_name)
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_access_om2_config.py:77:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_access_om2_config.py:41: in __init__
self.set_resolution()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <model_config_tests.test_access_om2_config.AccessOM2Branch object at 0x7f8a65a4e0d0>
def set_resolution(self):
# Resolutions are ordered, so the start of the list are matched first
resolutions = ["025deg", "01deg", "1deg"]
self.resolution = None
for res in resolutions:
if res in self.branch_name:
self.resolution = res
return
> pytest.fail(
f"Branch name {self.branch_name} has an unknown resolution. "
+ f"Current supported resolutions: {', '.join(resolutions)}"
)
E Failed: Branch name release-config has an unknown resolution. Current supported resolutions: 025deg, 01deg, 1deg
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_access_om2_config.py:55: Failed
Check warning on line 0 in test_config.TestConfig
github-actions / QA Test Results
test_metadata_contains_fields[version] (test_config.TestConfig) failed
./test_report.xml [took 0s]
Raw output
AssertionError: version field shoud be defined in metadata
assert 'version' in {'contact': 'Add your name here', 'email': 'Add your email address here', 'created': 'Add the date you started the exp...-BY-4.0', 'model': 'access-om2', 'url': 'https://github.com/ACCESS-NRI/access-om2-configs/tree/release-1deg_jra55_iaf'}
self = <model_config_tests.test_config.TestConfig object at 0x7f8a581a8710>
field = 'version'
metadata = {'contact': 'Add your name here', 'email': 'Add your email address here', 'created': 'Add the date you started the exp...-BY-4.0', 'model': 'access-om2', 'url': 'https://github.com/ACCESS-NRI/access-om2-configs/tree/release-1deg_jra55_iaf'}
@pytest.mark.parametrize(
"field",
[
"description",
"notes",
"keywords",
"nominal_resolution",
"version",
"reference",
"url",
"model",
"realm",
],
)
def test_metadata_contains_fields(self, field, metadata):
> assert field in metadata, f"{field} field shoud be defined in metadata"
E AssertionError: version field shoud be defined in metadata
E assert 'version' in {'contact': 'Add your name here', 'email': 'Add your email address here', 'created': 'Add the date you started the exp...-BY-4.0', 'model': 'access-om2', 'url': 'https://github.com/ACCESS-NRI/access-om2-configs/tree/release-1deg_jra55_iaf'}
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_config.py:196: AssertionError
Check warning on line 0 in test_config.TestConfig
github-actions / QA Test Results
test_license_file (test_config.TestConfig) failed
./test_report.xml [took 0s]
Raw output
AssertionError: LICENSE file should exist and equal to CC-BY-4.0 found here: https://creativecommons.org/licenses/by/4.0/legalcode.txt
assert False
+ where False = <bound method Path.exists of PosixPath('/home/runner/work/a-model-configs/a-model-configs/LICENSE')>()
+ where <bound method Path.exists of PosixPath('/home/runner/work/a-model-configs/a-model-configs/LICENSE')> = PosixPath('/home/runner/work/a-model-configs/a-model-configs/LICENSE').exists
self = <model_config_tests.test_config.TestConfig object at 0x7f8a581a9a10>
control_path = PosixPath('/home/runner/work/a-model-configs/a-model-configs')
def test_license_file(self, control_path):
license_path = control_path / "LICENSE"
> assert license_path.exists(), (
f"LICENSE file should exist and equal to {LICENSE} found here: "
+ LICENSE_URL
)
E AssertionError: LICENSE file should exist and equal to CC-BY-4.0 found here: https://creativecommons.org/licenses/by/4.0/legalcode.txt
E assert False
E + where False = <bound method Path.exists of PosixPath('/home/runner/work/a-model-configs/a-model-configs/LICENSE')>()
E + where <bound method Path.exists of PosixPath('/home/runner/work/a-model-configs/a-model-configs/LICENSE')> = PosixPath('/home/runner/work/a-model-configs/a-model-configs/LICENSE').exists
/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/site-packages/model_config_tests/test_config.py:211: AssertionError