ukaea/PROCESS

pytest fails on CSD3. Two stress tests fail on a login node.

Opened this issue · 1 comments

FAILED tests/unit/test_sctfcoil.py::test_plane_stress[planestressparam0] - assert array([-2.442...61051384e+04]) == approx([0.0 ±...48 ± 3.6e-02])
FAILED tests/unit/test_sctfcoil.py::test_plane_stress[planestressparam1] - assert array([-2.442...61051384e+04]) == approx([0.0 ±...48 ± 3.6e-02])
================================================================= 2 failed, 426 passed, 1 skipped, 18 warnings in 1232.48s (0:20:32) ===<!--- Please consider whether this issue will be better suited to the Discussion section of this GitHub repository --->

Additional info:-

  assert sigr == pytest.approx(planestressparam.expected_sigr)

E assert array([-2.442...61051384e+04]) == approx([0.0 ±...48 ± 3.6e-02])
E comparison failed. Mismatched elements: 1 / 300:
E Max absolute difference: 2.4424334654893232e-08
E Max relative difference: 1.0
E Index | Obtained | Expected
E 0 | -2.4424334654893232e-08 | 0.0 ± 1.0e-12

/home/ir-grie1/conda/Unruns/process_ADev1/PROCESS/tests/unit/test_sctfcoil.py:7683: AssertionError
========================================================================================== warnings summary ==========================================================================================
:241
:241: RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility. Expected 16 from C header, got 96 from PyObject

tests/integration/test_blanket_library_int.py::test_hydraulic_diameter
/home/ir-grie1/conda/Unruns/process_ADev1/PROCESS/tests/conftest.py:124: UserWarning:
You are running the PROCESS test suite on an outdated system.
This can cause floating point rounding errors in regression tests.

There is also a warning about running PROCESS on an outdated system so maybe that just needs updating????

From the output above when running the pytest on CSD3 all passes apart from two tests (test_plane_stress). Possibly might be fixed by updating the system? But not sure? Tried to update conda but stubbornly refused to?

Also occurs on CSD3 login without using conda