Your message dated Sun, 06 Mar 2022 20:39:19 +0000
with message-id <e1nqxex-0003ci...@fasolo.debian.org>
and subject line Bug#1006537: fixed in dask 2022.01.0+dfsg-2
has caused the Debian Bug report #1006537,
regarding dask: autopkgtest failure on 32 bit, mismatch in size of data 
structure.
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 ow...@bugs.debian.org
immediately.)


-- 
1006537: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1006537
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dask
Version: 2022.01.0+dfsg-1
Severity: serious

The autopkgtest for dask is once-again failing on 32-bit architectures,
this is blocking the fix for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005962
from migrating to testing.

>       assert buf.getvalue() == expected
E       assert "<class 'dask...312.0 bytes\n" == "<class 'dask...496.0 bytes\n"
E           <class 'dask.dataframe.core.DataFrame'>
E           Int64Index: 4 entries, 0 to 3
E           Data columns (total 3 columns):
E            #   Column  Non-Null Count  Dtype
E           ---  ------  --------------  -----
E            0   x       4 non-null      int64
E            1   y       4 non-null      category...
E
E         ...Full output truncated (7 lines hidden), use '-vv' to show

/usr/lib/python3/dist-packages/dask/dataframe/tests/test_dataframe.py:3612: 
AssertionError
I think the most likely explanation is that the memory usage of the
data structure is indeed lower on 32-bit architectures and that this
does not indicate a bug. As such I have prepared a patch that adjusts
the expected result in the test based on the pointer size on the current
architecture.

diff -Nru dask-2022.01.0+dfsg/debian/changelog 
dask-2022.01.0+dfsg/debian/changelog
--- dask-2022.01.0+dfsg/debian/changelog        2022-02-21 01:11:53.000000000 
+0000
+++ dask-2022.01.0+dfsg/debian/changelog        2022-02-27 07:27:00.000000000 
+0000
@@ -1,3 +1,11 @@
+dask (2022.01.0+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Adjust test_dataframe.py for different data structure sizes on 32-bit
+    architectures.
+
+ -- Peter Michael Green <plugw...@debian.org>  Sun, 27 Feb 2022 07:27:00 +0000
+
 dask (2022.01.0+dfsg-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru dask-2022.01.0+dfsg/debian/patches/series 
dask-2022.01.0+dfsg/debian/patches/series
--- dask-2022.01.0+dfsg/debian/patches/series   2022-02-20 22:18:36.000000000 
+0000
+++ dask-2022.01.0+dfsg/debian/patches/series   2022-02-27 07:27:00.000000000 
+0000
@@ -9,3 +9,4 @@
 use-youtube-nocookie.patch
 reproducible-config-autofunction.patch
 32bit-comatibility.patch
+test-dataframe-32-bit.patch
diff -Nru dask-2022.01.0+dfsg/debian/patches/test-dataframe-32-bit.patch 
dask-2022.01.0+dfsg/debian/patches/test-dataframe-32-bit.patch
--- dask-2022.01.0+dfsg/debian/patches/test-dataframe-32-bit.patch      
1970-01-01 00:00:00.000000000 +0000
+++ dask-2022.01.0+dfsg/debian/patches/test-dataframe-32-bit.patch      
2022-02-27 07:27:00.000000000 +0000
@@ -0,0 +1,25 @@
+Description:  Adjust test_dataframe.py for different data structure sizes on 
32-bit architectures.
+Author: Peter Michael Green <plugw...@debian.org>
+
+Index: dask-2022.01.0+dfsg/dask/dataframe/tests/test_dataframe.py
+===================================================================
+--- dask-2022.01.0+dfsg.orig/dask/dataframe/tests/test_dataframe.py
++++ dask-2022.01.0+dfsg/dask/dataframe/tests/test_dataframe.py
+@@ -3597,6 +3597,8 @@ def test_categorize_info():
+     # Verbose=False
+     buf = StringIO()
+     ddf.info(buf=buf, verbose=True)
++    pointersize = np.array([0],dtype=np.uintp).itemsize
++    bytecount = 128 + pointersize * 46
+     expected = (
+         "<class 'dask.dataframe.core.DataFrame'>\n"
+         "Int64Index: 4 entries, 0 to 3\n"
+@@ -3607,7 +3609,7 @@ def test_categorize_info():
+         " 1   y       4 non-null      category\n"
+         " 2   z       4 non-null      object\n"
+         "dtypes: category(1), object(1), int64(1)\n"
+-        "memory usage: 496.0 bytes\n"
++        "memory usage: "+str(bytecount)+".0 bytes\n"
+     )
+     assert buf.getvalue() == expected
+ 

--- End Message ---
--- Begin Message ---
Source: dask
Source-Version: 2022.01.0+dfsg-2
Done: Diane Trout <di...@ghic.org>

We believe that the bug you reported is fixed in the latest version of
dask, 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 1006...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Diane Trout <di...@ghic.org> (supplier of updated dask 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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Sat, 05 Mar 2022 14:16:51 -0800
Source: dask
Architecture: source
Version: 2022.01.0+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Diane Trout <di...@ghic.org>
Closes: 1006537
Changes:
 dask (2022.01.0+dfsg-2) unstable; urgency=medium
 .
   * Extend 32bit-compatibility.patch to work around
     test_dataframe.py::test_categorize_info
     assuming a 64-bit environment.
     (Closes: #1006537)
Checksums-Sha1:
 f10c17166774d00e3d34be8c065d10f0211df0c1 3035 dask_2022.01.0+dfsg-2.dsc
 fa29cef1efc17e3656161e720b515a796d0968cc 23620 
dask_2022.01.0+dfsg-2.debian.tar.xz
 ac674a5a93c6ad4a862d24e4f589c2909436e6b1 9780 
dask_2022.01.0+dfsg-2_amd64.buildinfo
Checksums-Sha256:
 40e1c65416ed7f6e3aeb25aa0b20917e6b4bb38d0b3c47ae71f9e78b836f3f1c 3035 
dask_2022.01.0+dfsg-2.dsc
 c8f3f4e5f5c43215ee43214b458f4302c84d6ee4176a48538795474f4c20707d 23620 
dask_2022.01.0+dfsg-2.debian.tar.xz
 ea732ae290e4efdc4f0349d32629727d2fb6cf7626ecc278b74baf01b151db62 9780 
dask_2022.01.0+dfsg-2_amd64.buildinfo
Files:
 3c82ed9253395a123b4e5af2ba8db731 3035 python optional dask_2022.01.0+dfsg-2.dsc
 8aa9dfe145b5c2c2f8de120bfceb37de 23620 python optional 
dask_2022.01.0+dfsg-2.debian.tar.xz
 a3298b2f9f9092a459dcc313e39a2a4d 9780 python optional 
dask_2022.01.0+dfsg-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETQVcMeSBIEX5AQ11mQ04NnM013AFAmIlDrcACgkQmQ04NnM0
13DjhQ//b2fWYp0NqrH/Nrke7F3xPWr+6Fb0jFbpp+ZKf932amEVw+k1/y+U1C2j
umlQbm56W2Ac2lSPa5N3uRoz/cuw4wfeXWoIg3xOaVe+YBq9ac5dgmQ0gNaOGPeH
sLKzfrQ8aGn7IjTcQI1/j/HCsmjTYytqVvHlwyZ28TKrHu+A2ekroLqyNu460iBF
9G5LXotds3lKqiWv/e46Fw1ca7yh8A10AENgIv7FdN5vhh7Xpyx7BIqrFcQ79/b6
+Z0J61DFix9ys80ucvnCA+vhCkS4p6Yg/evBW26mCiTBn4u3KNruw4POLloO1Hl2
mMtBxzbqgVqf8v8mnXf3giWIfC6yTFVCOQFJgBCg0TRrP05PpXe5qVM/SLOPXU/u
Ip8TNJfkPHjZy8DY/18Od7p54+EluYPgs8Gio7utkHkv+PMx6ji1tfy4R9XkGqiZ
icOa195XEFun1emxlzADntHcWlbItV7Go0sn9Dg6l3V/jp47G42x0C0U4+bGft86
FTbJKcYTr8f5x05ChULdFSTjrYvkBbL8O+3XgCVYxKZhakOMHTbHDCvsllRTkbRG
HIPQVT3Jdm6xV+C8nItRSFG0WDwhiwhGs/3SxiLL7ID4v3zjCBYXYH9XLaRT2xp9
tKTTYA5yOhbkgkzWTUiRO6pVA5UbJWYttfyWY2CjeVZUrS1avrQ=
=DUB6
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to