Bug#836733: pyresample FTBFS on mips*: test suite issues

Daniel Knezevic Daniel.Knezevic at imgtec.com
Mon Sep 5 10:14:38 UTC 2016


Package: pyresample
Version: 1.2.5-1
Severity: important
Tags: sid + patch
Justification: FTBFS
User: debian-mips at lists.debian.org
Usertags: mips-patch
Forwarded: https://github.com/pytroll/pyresample/issues/43

Hi,

Package pyresample FTBFS on mips* with following error:
> ======================================================================
> FAIL: test_custom_uncert (pyresample.test.test_kd_tree.Test)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/pyresample/test/test_kd_tree.py", line 102, in test_custom_uncert
>     len(w) != 1, 'Failed to create neighbour warning')
> AssertionError: Failed to create neighbour warning
>
> ======================================================================
> FAIL: test_gauss_uncert (pyresample.test.test_kd_tree.Test)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/«PKGBUILDDIR»/pyresample/test/test_kd_tree.py", line 79, in test_gauss_uncert
>     len(w) != 1, 'Failed to create neighbour warning')
> AssertionError: Failed to create neighbour warning
>
> ----------------------------------------------------------------------
> Ran 115 tests in 582.910s
>
> FAILED (failures=2)

build logs:
https://buildd.debian.org/status/fetch.php?pkg=pyresample&arch=mipsel&ver=1.2.5-1&stamp=1470596543

Tests are failing because there are more warnings than expected on mips*.
With added debug prints the following warnings are raised:
> DBG: test_custom_uncert w[0] = {message : UserWarning('Searching for 8 neighbours in 3 data points',), category : 'UserWarning', filename : '/build/pyresample-X1AqqR/pyresample-1.2.5/pyresample/kd_tree.py', lineno : 314, line : None}
> DBG: test_custom_uncert w[1] = {message : RuntimeWarning('invalid value encountered in multiply',), category : 'RuntimeWarning', filename : '/build/pyresample-X1AqqR/pyresample-1.2.5/pyresample/kd_tree.py', lineno : 834, line : None}
>
> DBG: test_gauss_uncert w[0] = {message : UserWarning('Searching for 8 neighbours in 3 data points',), category : 'UserWarn>ing', filename : '/build/pyresample-X1AqqR/pyresample-1.2.5/pyresample/kd_tree.py', lineno : 314, line : None}
> DBG: test_gauss_uncert w[1] = {message : RuntimeWarning('invalid value encountered in multiply',), category : 'RuntimeWarning', filename : '/build/pyresample-X1AqqR/pyresample-1.2.5/pyresample/kd_tree.py', lineno : 834, line : None}

Tests are fixed by changing the asserts to handle more warnings than expected.
This solution was proposed upstream.

With attached patch I was able to build pyresample successfully for mips*.

Thanks,
Daniel




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20160905/6a5d6883/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-fix-tests-for-mips.patch
Type: text/x-patch
Size: 2088 bytes
Desc: 0003-fix-tests-for-mips.patch
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20160905/6a5d6883/attachment.bin>


More information about the Pkg-grass-devel mailing list