[med-svn] [Git][med-team/qiime][master] 3 commits: Skip no-missing int round-trip test on 32-bit architectures
Andreas Tille (@tille)
gitlab at salsa.debian.org
Mon Nov 2 17:17:08 GMT 2026
Andreas Tille pushed to branch master at Debian Med / qiime
Commits:
aac89015 by Andreas Tille at 2026-11-02T17:51:14+01:00
Skip no-missing int round-trip test on 32-bit architectures
The i386 Salsa CI build fails in dh_auto_test:
FAILED rachis/core/tests/test_missing.py::TestError::test_roundtrip_int
E AssertionError: dtype('int64') != <class 'int'>
series_encode_missing encodes integers with pandas, which always uses an
int64 numpy dtype. The test then compares that dtype to Python int, which
only compares equal when the native int is 64 bit (np.dtype(int) is int32
on i386 and other 32-bit ports). Skip the test when np.dtype(int).itemsize
is 4 so the build-time test suite succeeds on 32-bit architectures.
- - - - -
f76735d1 by Andreas Tille at 2026-11-02T17:52:19+01:00
Build-Depends: dh-sequence-single-binary
- - - - -
2db59602 by Andreas Tille at 2026-11-02T18:15:46+01:00
Upload to experimental
- - - - -
3 changed files:
- debian/changelog
- debian/control
- debian/patches/skip-unavailable-tests.patch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,4 +1,4 @@
-rachis (2026.10.0-1) UNRELEASED; urgency=medium
+rachis (2026.10.0-1) experimental; urgency=medium
* New upstream version which is now named rachis
Closes: #1084668, #1084668
@@ -22,6 +22,8 @@ rachis (2026.10.0-1) UNRELEASED; urgency=medium
* cme fix dpkg-control
* Conflicts, Provides, Replaces: qiime
* Skip the cache multi-user test since useradd/userdel are not on PATH
+ * Skip the no-missing integer round-trip test on 32-bit architectures
+ * Build-Depends: dh-sequence-single-binary
-- Andreas Tille <tille at debian.org> Sun, 22 Feb 2026 13:02:47 +0100
=====================================
debian/control
=====================================
@@ -10,6 +10,7 @@ Section: science
Build-Depends:
debhelper-compat (= 14),
dh-sequence-python3,
+ dh-sequence-single-binary,
pybuild-plugin-pyproject,
python3-all,
python3-bibtexparser <!nocheck>,
=====================================
debian/patches/skip-unavailable-tests.patch
=====================================
@@ -6,6 +6,9 @@ Description: skip tests that cannot run in the Debian build environment
The cache multi-user test calls useradd/userdel, which are not guaranteed to
be on PATH (e.g. /usr/sbin) in the autopkgtest testbed; skip it in that case
instead of failing with an opaque "getpwnam(): name not found" KeyError.
+ The no-missing integer round-trip test compares a pandas int64 dtype to
+ Python int, which only compares equal when the native int is 64 bit; skip it
+ on 32-bit architectures (i386, etc.).
Forwarded: not-needed
Last-Update: 2026-11-02
Assisted-By: DeepSeek V4.1 Flash Free
@@ -167,3 +170,17 @@ Assisted-By: DeepSeek V4.1 Flash Free
def test_asynchronous(self):
concatenate_ints = self.plugin.methods['concatenate_ints']
+--- a/src/rachis/core/tests/test_missing.py
++++ b/src/rachis/core/tests/test_missing.py
+@@ -90,6 +90,11 @@ class TestError(RoundTripMixin, unittest
+ def test_roundtrip_bool(self):
+ self.check_roundtrip(True, bool)
+
++ # pandas always encodes integers as int64, but Python int maps to numpy
++ # int32 on 32-bit architectures, so dtype('int64') != int there
++ @unittest.skipIf(
++ np.dtype(int).itemsize == 4,
++ 'numpy int64 does not compare equal to Python int on 32-bit')
+ def test_roundtrip_int(self):
+ self.check_roundtrip(42, int)
+
View it on GitLab: https://salsa.debian.org/med-team/qiime/-/compare/0a9e9f98da0a58206980ab95a0963b5aa87a0d04...2db59602227263899109e2ee88bde0a55ba30a4a
--
View it on GitLab: https://salsa.debian.org/med-team/qiime/-/compare/0a9e9f98da0a58206980ab95a0963b5aa87a0d04...2db59602227263899109e2ee88bde0a55ba30a4a
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261102/68b654cb/attachment-0001.htm>
More information about the debian-med-commit
mailing list