[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#982997: unblock: python-hdf5storage/0.1.15+git20200608.09dfc5f-2



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package python-hdf5storage

[ Reason ]

Upstream has identified the problem affecting random failure of tests
reported in RC Bug#971806.  It was in a random number used to label
the numpy dtype.

They have prepared a small patch, already commited to the upstream
main branch and applied in
python-hdf5storage/0.1.15+git20200608.09dfc5f-2


[ Impact ]

Preventing python-hdf5storage from migrating to bullseye will have a
negative impact on hdf5storage users attempting to upgrade from
buster, stranding them with a deprecated version of the package.


[ Tests ]

debian/tests run the affected test, which was
test_write_readback.TestPythonMatlabFormat.test_dtype_structured_with_offsets_titles
in tests/test_write_readback.py

This test is now expected to succeed reliably.


[ Risks ]

Minimal clear patch (+6-2 lines) in a leaf package not affecting other
packages.  Very low risk.


[ Checklist ]
  [x] all changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [ ] attach debdiff against the package in testing

(the package is not currently in testing, the diff is taken against
the preceding version in unstable)


unblock python-hdf5storage/0.1.15+git20200608.09dfc5f-2
diff -Nru python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/changelog python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/changelog
--- python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/changelog	2020-08-07 16:39:18.000000000 +0200
+++ python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/changelog	2021-02-17 21:33:33.000000000 +0100
@@ -1,3 +1,13 @@
+python-hdf5storage (0.1.15+git20200608.09dfc5f-2) unstable; urgency=medium
+
+  * Team upload.
+  * debian patch fix_dtype_random_title_1444936.patch applies
+    upstream commit #1444936 to fix random dtype titles used in tests.
+    Closes: #971806.
+  * Standards-Version: 4.5.1
+
+ -- Drew Parsons <dparsons@debian.org>  Wed, 17 Feb 2021 21:33:33 +0100
+
 python-hdf5storage (0.1.15+git20200608.09dfc5f-1) unstable; urgency=medium
 
   * Team upload.
diff -Nru python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/control python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/control
--- python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/control	2020-08-07 16:39:18.000000000 +0200
+++ python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/control	2021-02-17 21:33:33.000000000 +0100
@@ -18,7 +18,7 @@
                python3-sphinx,
                python3-sphinx-rtd-theme,
                python3-setuptools
-Standards-Version: 4.5.0
+Standards-Version: 4.5.1
 Vcs-Browser: https://salsa.debian.org/science-team/python-hdf5storage
 Vcs-Git: https://salsa.debian.org/science-team/python-hdf5storage.git
 Homepage: https://github.com/frejanordsiek/hdf5storage
diff -Nru python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/patches/fix_dtype_random_title_1444936.patch python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/patches/fix_dtype_random_title_1444936.patch
--- python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/patches/fix_dtype_random_title_1444936.patch	1970-01-01 01:00:00.000000000 +0100
+++ python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/patches/fix_dtype_random_title_1444936.patch	2021-02-17 21:33:33.000000000 +0100
@@ -0,0 +1,32 @@
+From 144493620a76e44f9012a22f163b14cd5e6cc61b Mon Sep 17 00:00:00 2001
+From: Freja Nordsiek <fnordsie@posteo.net>
+Date: Wed, 17 Feb 2021 19:46:07 +0100
+Subject: [PATCH] Fixed bug (Issue #104) in generating random titles for the
+ dtype fields in the unit tests, which must be unique.
+
+---
+ tests/test_write_readback.py | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+Index: python-hdf5storage/tests/test_write_readback.py
+===================================================================
+--- python-hdf5storage.orig/tests/test_write_readback.py	2021-02-17 21:24:21.288834712 +0100
++++ python-hdf5storage/tests/test_write_readback.py	2021-02-17 21:24:21.284834709 +0100
+@@ -846,11 +846,15 @@
+                 while s in names and s[0].isdigit():
+                     s = random_str_ascii(random.randint(1, 10))
+                 names.append(s)
++            titles = []
++            for _ in range(len(names)):
++                s = random_str_some_unicode(random.randint(1, 10))
++                while s in titles:
++                    s = random_str_some_unicode(random.randint(1, 10))
++                titles.append(s)
+             formats = [(random.choice(base_dtypes),
+                         random_numpy_shape(random.randint(1, 4), 10))
+                        for _ in range(len(names))]
+-            titles = [random_str_some_unicode(random.randint(1, 10))
+-                      for _ in range(len(names))]
+             offsets = [random.randint(0, 100)
+                        for _ in range(len(names))]
+             desc = {'names': names,
diff -Nru python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/patches/series python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/patches/series
--- python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/patches/series	2020-08-07 16:39:18.000000000 +0200
+++ python-hdf5storage-0.1.15+git20200608.09dfc5f/debian/patches/series	2021-02-17 21:33:33.000000000 +0100
@@ -1,2 +1,3 @@
 Use-system-mathjax.patch
 Make-intersphinx-use-local-inventory-files.patch
+fix_dtype_random_title_1444936.patch

Reply to: