WIP GRIB2 table3.2 earth radius 6,371,229m #369
Cirrus CI / linux tests: iris=conda-release python=3.10
failed
Dec 13, 2023 in 2m 5s
Task Summary
Instruction tests failed in 00:58
Details
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks
✅ 00:01 clone
✅ 00:50 conda
✅ 00:09 nox
✅ 00:04 data
❌ 00:58 tests
test (iris_grib.tests.unit.test_load_cubes.Test) ... ok
test_save_append (iris_grib.tests.unit.test_save_grib2.TestSaveGrib2) ... ok
test_save_no_append (iris_grib.tests.unit.test_save_grib2.TestSaveGrib2) ... ok
/tmp/cirrus-ci-build/.nox/tests-iris_source-conda-forge/lib/python3.10/site-packages/iris/fileformats/rules.py:353: UserWarning: Unable to create instance of HybridPressureFactory. The source data contains no field(s) for 'ref_surface_pressure'.
warnings.warn(msg.format(factory=factory_name))
test_save (iris_grib.tests.unit.test_save_messages.TestSaveMessages) ... ok
test_save_append (iris_grib.tests.unit.test_save_messages.TestSaveMessages) ... ok
test_as_pairs (iris_grib.tests.unit.test_load_pairs_from_fields.TestAsCubes) ... ok
test_year_filter (iris_grib.tests.unit.test_load_pairs_from_fields.TestAsCubes) ... ok
test_year_filter_none (iris_grib.tests.unit.test_load_pairs_from_fields.TestAsCubes) ... ok
test_reduced_raw (iris_grib.tests.unit.test_load_cubes.Test_load_cubes) ... ok
/tmp/cirrus-ci-build/iris_grib/_save_rules.py:813: UserWarning: Unable to determine Grib2 parameter code for cube.
discipline, parameterCategory and parameterNumber have been set to "missing".
warnings.warn('Unable to determine Grib2 parameter code for cube.\n'
/tmp/cirrus-ci-build/iris_grib/_save_rules.py:1585: UserWarning: Unable to determine Grib2 parameter code for cube.
Message data may not be correctly scaled.
warnings.warn('Unable to determine Grib2 parameter code for cube.\n'
test_license_headers (iris_grib.tests.test_license_headers.TestLicenseHeaders) ... ERROR
test_float32 (iris_grib.tests.unit.save_rules.test_data_section.TestNonDoubleData) ... ok
test_int32 (iris_grib.tests.unit.save_rules.test_data_section.TestNonDoubleData) ... ok
test_int64 (iris_grib.tests.unit.save_rules.test_data_section.TestNonDoubleData) ... ok
test_time_and_forecast_period_round_trip (iris_grib.tests.integration.format_interop.test_pp_grib.TestBoundedTime) ... ok
test_pep8_conformance (iris_grib.tests.test_pep8.Test) ... FAIL
======================================================================
ERROR: test_license_headers (iris_grib.tests.test_license_headers.TestLicenseHeaders)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/cirrus-ci-build/iris_grib/tests/test_license_headers.py", line 114, in test_license_headers
raise ValueError('There were license header failures. See stdout.')
ValueError: There were license header failures. See stdout.
-------------------- >> begin captured stdout << ---------------------
The file iris_grib/tests/unit/save_rules/test_grid_definition_template_140.py does not start with the required license header.
--------------------- >> end captured stdout << ----------------------
======================================================================
FAIL: test_pep8_conformance (iris_grib.tests.test_pep8.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/cirrus-ci-build/iris_grib/tests/test_pep8.py", line 37, in test_pep8_conformance
self.assertEqual(result.total_errors, 0, emsg)
AssertionError: 3 != 0 : Found code pep8 errors (and warnings).
-------------------- >> begin captured stdout << ---------------------
/tmp/cirrus-ci-build/iris_grib/_save_rules.py:215:39: E222 multiple spaces after operator
/tmp/cirrus-ci-build/iris_grib/_save_rules.py:215:80: E501 line too long (97 > 79 characters)
/tmp/cirrus-ci-build/iris_grib/_save_rules.py:215:85: E222 multiple spaces after operator
--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------
Ran 551 tests in 2.064s
FAILED (errors=1, failures=1)
nox > Command python -m iris_grib.tests.runner --default-tests failed with exit code 1
nox > Session tests(iris_source='conda-forge') failed.
Loading