While performing unit tests on CAMDEN, I found that there were five failures that exist in the current version of the repo when running test_registry.py
on Cheyenne and Izumi that I am not sure how to fix, at least currently. These failures are:
======================================================================
ERROR: test_parameter (main.RegistryTest)
Test a registry with a parameter.
Traceback (most recent call last):
File "test_registry.py", line 244, in test_parameter
error_on_no_validate=True)
File "/glade/work/nusbaume/SE_projects/new_cam_sandbox/CAMDEN/src/data/generate_registry_data.py", line 1504, in gen_registry
write_registry_files(registry, dycore, config, outdir, indent, logger)
File "/glade/work/nusbaume/SE_projects/new_cam_sandbox/CAMDEN/src/data/generate_registry_data.py", line 1419, in write_registry_files
files.append(File(section, known_types, dycore, config, logger))
File "/glade/work/nusbaume/SE_projects/new_cam_sandbox/CAMDEN/src/data/generate_registry_data.py", line 1198, in init
logger)
File "/glade/work/nusbaume/SE_projects/new_cam_sandbox/CAMDEN/src/data/generate_registry_data.py", line 457, in init
raise CCPPError(emsg.format(local_name))
CCPPError: parameter, 'pver', does not have an initial value
======================================================================
FAIL: test_good_ddt_registry (main.RegistryTest)
Test code and metadata generation from a good registry with a DDT.
Traceback (most recent call last):
File "test_registry.py", line 160, in test_good_ddt_registry
shallow=False), msg=amsg)
AssertionError: /glade/work/nusbaume/SE_projects/new_cam_sandbox/CAMDEN/test/unit/tmp/physics_types_ddt_fv.F90 does not exist
======================================================================
FAIL: test_good_ddt_registry2 (main.RegistryTest)
Test code and metadata generation from a good registry with DDTs
Traceback (most recent call last):
File "test_registry.py", line 203, in test_good_ddt_registry2
shallow=False))
AssertionError: False is not true
======================================================================
FAIL: test_good_simple_registry (main.RegistryTest)
Test that a good registry with only variables validates.
Traceback (most recent call last):
File "test_registry.py", line 119, in test_good_simple_registry
self.assertTrue(filecmp.cmp(in_meta, out_meta, shallow=False))
AssertionError: False is not true
======================================================================
FAIL: test_unknown_dimensions (main.RegistryTest)
Test a registry with a variable with an unknown dimension.
Traceback (most recent call last):
File "test_registry.py", line 418, in test_unknown_dimensions
error_on_no_validate=True)
AssertionError: ValueError not raised
Ran 17 tests in 0.137s
FAILED (failures=4, errors=1)
Hopefully these tests will either be fixed or removed in a future PR.