Created attachment 848279 [details] build.log.xz [...] FAILED xarray/tests/test_backends.py::TestScipyInMemoryData::test_roundtrip_numpy_datetime_data - AssertionError: Left and r ight Dataset objects are not identical FAILED xarray/tests/test_backends.py::TestScipyFileObject::test_roundtrip_numpy_datetime_data - AssertionError: Left and rig ht Dataset objects are not identical FAILED xarray/tests/test_backends.py::TestScipyFilePath::test_roundtrip_numpy_datetime_data - AssertionError: Left and right Dataset objects are not identical FAILED xarray/tests/test_backends.py::TestGenericNetCDFData::test_roundtrip_numpy_datetime_data - AssertionError: Left and r ight Dataset objects are not identical FAILED xarray/tests/test_dataarray.py::TestDataArray::test_curvefit[False] - ImportError: /usr/lib/python3.9/site-packages/s cipy/optimize/_highs/_highs_wrapper.cpython-39-powerpc-linux-gnu.s... FAILED xarray/tests/test_dataset.py::test_cumulative_integrate[True] - ImportError: /usr/lib/python3.9/site-packages/scipy/o ptimize/_highs/_highs_wrapper.cpython-39-powerpc-linux-gnu.s... FAILED xarray/tests/test_dataset.py::test_cumulative_integrate[False] - ImportError: /usr/lib/python3.9/site-packages/scipy/ optimize/_highs/_highs_wrapper.cpython-39-powerpc-linux-gnu.s... ===== 7 failed, 5381 passed, 5397 skipped, 1 deselected, 23 xfailed, 22 xpassed, 5 warnings in 410.50s (0:06:50) ===== * ERROR: dev-python/xarray-2022.12.0::gentoo failed (test phase): * pytest failed with python3.9
Created attachment 848281 [details] emerge --info
Created attachment 848309 [details] build.log.xz (ppc, 2022.11.0) No regression over 2022.11.0 which fails exactly the same tests.
FWICS there are two problems involved: one is misbehaving datetime64[ns] and the other is some missing atomic, and both seem to stem from scipy itself. The latter you've already seen in #872959 but the former I don't see in your scipy log but maybe I'm looking poorly or it was hidden by ImportErrors.
Created attachment 857083 [details] build.log.xz (ppc, 2023.2.0) No regression over 2022.11.0 which fails the same tests.
Feels like https://github.com/pydata/xarray/issues/6906 maybe.