Your message dated Mon, 05 Sep 2016 12:26:25 +0000
with message-id <[email protected]>
and subject line Bug#836733: fixed in pyresample 1.2.5-2
has caused the Debian Bug report #836733,
regarding pyresample FTBFS on mips*: test suite issues
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
836733: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836733
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pyresample
Version: 1.2.5-1
Severity: important
Tags: sid + patch
Justification: FTBFS
User: [email protected]
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




--- pyresample-1.2.5.orig/pyresample/test/test_kd_tree.py
+++ pyresample-1.2.5/pyresample/test/test_kd_tree.py
@@ -75,13 +75,13 @@ class Test(unittest.TestCase):
             res, stddev, count = kd_tree.resample_gauss(self.tswath, self.tdata,
                                                         self.tgrid, 100000, sigma,
                                                         with_uncert=True)
-            self.assertFalse(
-                len(w) != 1, 'Failed to create neighbour warning')
-            self.assertFalse(('Searching' not in str(
-                w[0].message)), 'Failed to create correct neighbour warning')
+            self.assertTrue(
+                len(w) > 0, 'Failed to create neighbour warning')
+            self.assertTrue((any('Searching' in str(_w.message) for _w in w)),
+                'Failed to create correct neighbour warning')

         expected_res = 2.20206560694
-        expected_stddev = 0.707115076173
+        exprcted_stddev = 0.707115076173
         expected_count = 3
         self.assertAlmostEqual(res[0], expected_res, 5,
                                'Failed to calculate gaussian weighting with uncertainty')
@@ -98,10 +98,10 @@ class Test(unittest.TestCase):
             res, stddev, counts = kd_tree.resample_custom(self.tswath,
                                                           self.tdata, self.tgrid,
                                                           100000, wf, with_uncert=True)
-            self.assertFalse(
-                len(w) != 1, 'Failed to create neighbour warning')
-            self.assertFalse(('Searching' not in str(
-                w[0].message)), 'Failed to create correct neighbour warning')
+            self.assertTrue(
+                len(w) > 0, 'Failed to create neighbour warning')
+            self.assertTrue((any('Searching' in str(_w.message) for _w in w)),
+                'Failed to create correct neighbour warning')

         self.assertAlmostEqual(res[0], 2.32193149, 5,
                                'Failed to calculate custom weighting with uncertainty')

--- End Message ---
--- Begin Message ---
Source: pyresample
Source-Version: 1.2.5-2

We believe that the bug you reported is fixed in the latest version of
pyresample, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bas Couwenberg <[email protected]> (supplier of updated pyresample package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 05 Sep 2016 13:18:07 +0200
Source: pyresample
Binary: python-pyresample python3-pyresample python-pyresample-doc 
python-pyresample-test
Architecture: source amd64 all
Version: 1.2.5-2
Distribution: unstable
Urgency: medium
Maintainer: Debian GIS Project <[email protected]>
Changed-By: Bas Couwenberg <[email protected]>
Description:
 python-pyresample - Resampling of remote sensing data in Python 2
 python-pyresample-doc - Resampling of remote sensing data in Python 
(documentation)
 python-pyresample-test - Resampling of remote sensing data in Python (test 
suite)
 python3-pyresample - Resampling of remote sensing data in Python 3
Closes: 836733
Changes:
 pyresample (1.2.5-2) unstable; urgency=medium
 .
   * Team upload.
   * Add patch to fix test_custom_uncert and test_gauss_uncert for mips*.
     Thanks to Daniel Knezevic for the patch.
     (closes: #836733)
Checksums-Sha1:
 6250abb92a2a83d55eb0db08d8cba1f685119d84 2606 pyresample_1.2.5-2.dsc
 efc19ca168ecde935c479a38c695bf2b826d56c2 8700 pyresample_1.2.5-2.debian.tar.xz
 bd8f512319aee29c879c4ec1cefe18ffceac36a0 506028 
python-pyresample-dbgsym_1.2.5-2_amd64.deb
 893c9edff33600785e31128feb7d5f0d7bcdcfb3 1555392 
python-pyresample-doc_1.2.5-2_all.deb
 62b956de01715b220b22684336a5e5eb28e78e62 1082126 
python-pyresample-test_1.2.5-2_all.deb
 0791f9465b1396a6eb618cb225713e0aefcc33a3 207086 
python-pyresample_1.2.5-2_amd64.deb
 2ece4bbb0ed599be78f7589287143a492f9d2652 538314 
python3-pyresample-dbgsym_1.2.5-2_amd64.deb
 73d5994c9fe5c40e6369ac259e13e11b56493b5d 199218 
python3-pyresample_1.2.5-2_amd64.deb
Checksums-Sha256:
 467eded337b8c27c21012ab13377df15333a6828dc843ca77284d580b28fe3ff 2606 
pyresample_1.2.5-2.dsc
 2333907fee62a84f4faff661c695b2b9eb8f7de1ddf5521493349ff4a6ce0716 8700 
pyresample_1.2.5-2.debian.tar.xz
 85bfb7c02f0eb9918e5766df726b9f95bf16f60e79f6865a052c4188048a54a3 506028 
python-pyresample-dbgsym_1.2.5-2_amd64.deb
 02c745f47d5dcb06c70bf1d815acfb87e4616a478a56bc1f595e86daa869cfb7 1555392 
python-pyresample-doc_1.2.5-2_all.deb
 78c6c7b9c5bd02e21edce2664e0018e3cead77f19098f394a05404c115edc567 1082126 
python-pyresample-test_1.2.5-2_all.deb
 f0038eee8d9193ec76929008af9aed1187eb9aa3db270f17ba00f9f962a4da7b 207086 
python-pyresample_1.2.5-2_amd64.deb
 51c1d987a2803b71fb1212a51c45736ff3214d7e41e2eed966194f3d63dd74ee 538314 
python3-pyresample-dbgsym_1.2.5-2_amd64.deb
 761667396f7e066642186d1b9bafeb8439f673138f2d6b4972d6d422d15055c2 199218 
python3-pyresample_1.2.5-2_amd64.deb
Files:
 d8f302d970067f88d853a925b019f938 2606 python optional pyresample_1.2.5-2.dsc
 149d99e4a251b8158ae5e33f805a86bb 8700 python optional 
pyresample_1.2.5-2.debian.tar.xz
 20e9dc447f26fb632fc838a4c612039b 506028 debug extra 
python-pyresample-dbgsym_1.2.5-2_amd64.deb
 8480bfc2cb43fa5168e8e72991cae91f 1555392 doc optional 
python-pyresample-doc_1.2.5-2_all.deb
 1f387bb2a5ee637631414e26ac19fefe 1082126 python optional 
python-pyresample-test_1.2.5-2_all.deb
 ac3d36028d8d4a57b10006f8cd6a1cb6 207086 python optional 
python-pyresample_1.2.5-2_amd64.deb
 0ebc075d73b9f5b098c3a1cd1668f447 538314 debug extra 
python3-pyresample-dbgsym_1.2.5-2_amd64.deb
 22295fe32f57a63c64218341964b2080 199218 python optional 
python3-pyresample_1.2.5-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJXzVs/AAoJEGdQ8QrojUrxipIP+wZ8Ct9mD9BTowTe2crqHEjb
XX5Jpvar8FOfZSCT7qiusVQSybv4KsDZ16+dEMHrlHthvqU8TmC03/wM6nvfesxI
ggi3lDFdpgoTY1A37aIUzosg2O+ObHfMgfZ2BoN5fltah8k2APnRBFyPVcn0/lUb
3+pPYrrdTmAmozWNsqXXibDA5hz4rCe/Xop4UaPvscGJov5i+m1HuAYnWK69/P7k
lS8pPfUMFbquK2fS5O/jo5GK2teTnPB8RDz9zWbTNfqYW6P1GUkD3V52vzMswDMj
XViX6vG99+7npflXr/gV/iweLxR8n3wvErO1AcBtrCaVubJUlHybNjfRpjJopCUX
RBBPCARPsf+3E513dF9zXBBSAoVcrgpvKhLPA8UTFC/bRnMHvZ/pfiNkTdAeVikN
/Jy0lPuLGEMFwBlFBSXH0yC1L5vXZL4j4SkCh3KatWo/R0cXNt0YyYjGRL+3TY+i
zvHU6JRsXZCk7e42FK4oWANzonctLi+xhbd8get8NQjSBvATyI+lCUmYJWh/LNCq
xn8DeYopt6CvjY2u6d/c82Sop/M3/fKJIRz4DeoLY54K7iaonao9lgAkThfFhVEH
VqKTvHgbdWx244ZqX0aoKvbcib+BfzSP7N9yK/5T+N1i9uZczXJLj1BRGihPxtq2
KspDtTfdJk6sPnRcXWph
=Tdcf
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to