Bug#904785: python-xarray autopkg tests fail on arm64

2018-07-29 Thread Graham Inggs
Control: tags -1 + patch

The attached patch marks the failing tests 'xfail' on ARM.
Description: ARM xfail tests
 These tests are expected to fail on ARM due to the following issue in Numpy:
 https://github.com/numpy/numpy/issues/8325
Author: Graham Inggs 
Last-Update: 2018-07-29

--- a/xarray/tests/test_backends.py
+++ b/xarray/tests/test_backends.py
@@ -34,7 +34,7 @@
 requires_dask, requires_h5netcdf, requires_netCDF4, requires_pathlib,
 requires_pydap, requires_pynio, requires_rasterio, requires_scipy,
 requires_scipy_or_netCDF4, requires_zarr, requires_pseudonetcdf,
-requires_cftime)
+requires_cftime, arm_xfail)
 from .test_dataset import create_test_data
 
 try:
@@ -350,6 +350,7 @@
 assert_identical(expected, actual)
 self.assertEqual(actual['x'].encoding['_Encoding'], 'ascii')
 
+@arm_xfail
 def test_roundtrip_numpy_datetime_data(self):
 times = pd.to_datetime(['2000-01-01', '2000-01-02', 'NaT'])
 expected = Dataset({'t': ('t', times), 't0': times[0]})
--- a/xarray/tests/test_coding_times.py
+++ b/xarray/tests/test_coding_times.py
@@ -13,7 +13,7 @@
 from xarray.core.common import contains_cftime_datetimes
 
 from . import (assert_array_equal, has_cftime_or_netCDF4,
-   requires_cftime_or_netCDF4, has_cftime, has_dask)
+   requires_cftime_or_netCDF4, has_cftime, has_dask, arm_xfail)
 
 
 _NON_STANDARD_CALENDARS = {'noleap', '365_day', '360_day',
@@ -524,6 +524,7 @@
 assert_array_equal(actual, expected)
 
 
+@arm_xfail
 @pytest.mark.skipif(not has_cftime_or_netCDF4, reason='cftime not installed')
 @pytest.mark.parametrize(
 ['num_dates', 'units', 'expected_list'],
--- a/xarray/tests/__init__.py
+++ b/xarray/tests/__init__.py
@@ -44,6 +44,9 @@
 except ImportError:
 pass
 
+import platform
+arm_xfail = pytest.mark.xfail(platform.machine() == 'aarch64' or
+'arm' in platform.machine(), reason='expected failure on ARM')
 
 def _importorskip(modname, minversion=None):
 try:


Bug#904785: python-xarray autopkg tests fail on arm64

2018-07-28 Thread Graham Inggs
Control: user debian...@lists.debian.org
Control: usertags -1 regression

On 28 July 2018 at 04:43, Matthias Klose  wrote:
> the python-xarray autopkg tests fail on arm64, as seen in
> https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-cosmic/cosmic/arm64/p/python-xarray/20180728_004139_2ff97@/log.gz
>
> I assume you can reproduce these when building the package on an arm64 porter 
> box.

These tests only started to fail with the upload of python-array
0.10.2-1.  Previously, the NetCDF tests were not run.

The same failures occur on armhf, and I believe the cause is different
NaN behaviour on x86 and ARM CPUs [1].

If the problem isn't in python-xarray itself, perhaps the solution is
just to skip these failing tests on ARM.

[1] https://github.com/numpy/numpy/issues/8325



Bug#904785: python-xarray autopkg tests fail on arm64

2018-07-27 Thread Matthias Klose
Package: src:python-xarray
Version: 0.10.8-1

the python-xarray autopkg tests fail on arm64, as seen in
https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-cosmic/cosmic/arm64/p/python-xarray/20180728_004139_2ff97@/log.gz

I assume you can reproduce these when building the package on an arm64 porter 
box.