Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1381206 - [netcdf4-python] test failures on big endian platforms
Summary: [netcdf4-python] test failures on big endian platforms
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: netcdf4-python
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker PPCTracker
TreeView+ depends on / blocked
 
Reported: 2016-10-03 12:15 UTC by Dan Horák
Modified: 2016-12-27 23:07 UTC (History)
1 user (show)

Fixed In Version: netcdf4-python-1.2.6-1.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-27 23:07:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dan Horák 2016-10-03 12:15:40 UTC
Few tests are failing during the build of netcdf4-python on big endian platforms (ppc64, s390x), see below for details

Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.j0pm7J
+ umask 022
+ cd /builddir/build/BUILD
+ cd netcdf4-python-1.2.4rel
+ cd test
++ echo ../build/lib.linux-s390x-2.7
+ PYTHONPATH=../build/lib.linux-s390x-2.7
+ /usr/bin/python2 run_all.py
..F.....FE.....................................................................
======================================================================
not running tst_unicode3.py ...
netcdf4-python version: 1.2.4
HDF5 lib version:       1.8.17
netcdf lib version:     4.4.1
numpy version           1.11.1
ERROR: runTest (tst_enum.EnumTestCase)
testing enum data type
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/netcdf4-python-1.2.4rel/test/tst_enum.py", line 36, in setUp
    cloud_var[:] = datain_masked
  File "netCDF4/_netCDF4.pyx", line 4053, in netCDF4._netCDF4.Variable.__setitem__ (netCDF4/_netCDF4.c:44294)
  File "netCDF4/_netCDF4.pyx", line 4258, in netCDF4._netCDF4.Variable._put (netCDF4/_netCDF4.c:45839)
RuntimeError: NetCDF: HDF error
======================================================================
FAIL: runTest (tst_compound_alignment.CompoundAlignTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/netcdf4-python-1.2.4rel/test/tst_compound_alignment.py", line 104, in runTest
    assert cells[name].dtype == new_cells[name].dtype
AssertionError
======================================================================
FAIL: runTest (tst_endian.EndianTestCase)
testing endian conversion capability
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/netcdf4-python-1.2.4rel/test/tst_endian.py", line 142, in runTest
    issue310(self.file)
  File "/builddir/build/BUILD/netcdf4-python-1.2.4rel/test/tst_endian.py", line 99, in issue310
    var_big_endian[:].filled())
  File "/usr/lib64/python2.7/site-packages/numpy/testing/utils.py", line 916, in assert_array_almost_equal
    precision=decimal)
  File "/usr/lib64/python2.7/site-packages/numpy/testing/utils.py", line 737, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 6 decimals
(mismatch 80.0%)
 x: array([  3.207376e-192,   1.831347e-317,  -9.990000e+002,  -9.990000e+002,
        -9.990000e+002,  -9.990000e+002,  -9.990000e+002,  -9.990000e+002,
        -9.990000e+002,  -9.990000e+002])
 y: array([  3.207376e-192,   1.831347e-317,   1.831410e-317,   1.831410e-317,
         1.831410e-317,   1.831410e-317,   1.831410e-317,   1.831410e-317,
         1.831410e-317,   1.831410e-317])
----------------------------------------------------------------------
Ran 79 tests in 95.172s
FAILED (failures=2, errors=1)


For full logs please see http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3774639 or http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=2363603

Version-Release number of selected component (if applicable):
netcdf4-python-1.2.4-2.fc25

Comment 1 Dan Horák 2016-10-03 12:30:03 UTC
for the record - ppc64le scratch build succeeds - http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3774992


Note You need to log in before you can comment on or make changes to this bug.