Closed soxofaan closed 15 minutes ago
problem of https://github.com/ESA-APEx/apex_algorithms/actions/runs/11642884038/job/32422979921 is weird S3 access issue which I can not reproduce anymore.
I just updated the reference data of the benchmark to latest results, hopefully that resolves the problem
next run https://github.com/ESA-APEx/apex_algorithms/actions/runs/11743961110/job/32717962982 now also failed with
FAILED tests/test_benchmarks.py::test_run_benchmark[bap_composite] - AssertionError: Issues for file 'openEO_2022-05-01Z.tif':
Left and right DataArray objects are not close
Differing values:
L
array([[[-32768, -32768, ..., -32768, -32768],
[-32768, -32768, ..., -32768, -32768],
...,
[-32768, -32768, ..., -32768, -32768],
[-32768, -32768, ..., -32768, -32768]],
[[-32768, -32768, ..., -32768, -32768],
[-32768, -32768, ..., -32768, -32768],
...,
[-32768, -32768, ..., -32768, -32768],
[-32768, -32768, ..., -32768, -32768]],
[[-32768, -32768, ..., -32768, -32768],
[-32768, -32768, ..., -32768, -32768],
...,
[-32768, -32768, ..., -32768, -32768],
[-32768, -32768, ..., -32768, -32768]]], dtype=int16)
R
array([[[-32768, -32768, ..., -32768, -32768],
[-32768, -32768, ..., -32768, -32768],
...,
[-32768, -32768, ..., -32768, -32768],
[-32768, -32768, ..., -32768, -32768]],
[[-32768, -32768, ..., -32768, -32768],
[-32768, -32768, ..., -32768, -32768],
...,
[-32768, -32768, ..., -32768, -32768],
[-32768, -32768, ..., -32768, -32768]],
[[-32768, -32768, ..., -32768, -32768],
[-32768, -32768, ..., -32768, -32768],
...,
[-32768, -32768, ..., -32768, -32768],
[-32768, -32768, ..., -32768, -32768]]], dtype=int16)
On visual inspection, there seem to be very small differences at the borders of the extent. The (default) tolerances at this point are rtol=1e-6 and atol=1e-6 which is not ideal in this case of integer values in the range [0-4000] which is a known issue, as noted in this todo note: https://github.com/ESA-APEx/apex_algorithms/blob/1b889b2c028a00a3cdc4db7572f959bbd46052bf/qa/benchmarks/tests/test_benchmarks.py#L66-L68 -> #60
@HansVRP , I saw @soxofaan already committed a fix before this was assigned to me. Any action required from my side, or can we close this?
bap_composite benchmark is indeed passing at the moment last run at the moment was https://github.com/ESA-APEx/apex_algorithms/actions/runs/11997884322/job/33444012774
last failed run at this time: https://github.com/ESA-APEx/apex_algorithms/actions/runs/11642884038/job/32422979921
job finished, but benchmark failure due to result comparison: