[med-svn] [Git][med-team/nibabel][master] 5 commits: d/t/control: append @ (built packages) to test dependencies.

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Thu Jan 26 17:59:25 GMT 2023



Étienne Mollier pushed to branch master at Debian Med / nibabel


Commits:
60e8b97a by Étienne Mollier at 2023-01-26T16:18:11+01:00
d/t/control: append @ (built packages) to test dependencies.

- - - - -
8e90934a by Étienne Mollier at 2023-01-26T18:47:41+01:00
skip-test-removalschedule.patch: add; fix autopkgtest failures.

These tests are apparently metatests which are not directly relevant
to end users.  For some reason they work as intended during build
time testing, but suddenly fail during autopkgtesting.

- - - - -
7f650fb9 by Étienne Mollier at 2023-01-26T18:50:37+01:00
skip-armel-test-nan2zero.patch: add; fix ftbfs on armel.

Closes: #1029593

- - - - -
38e2f4b4 by Étienne Mollier at 2023-01-26T18:57:25+01:00
skip-test-removalschedule.patch: only skip during autopkgtest.

Gbp-Dch: ignore

- - - - -
43b0bd99 by Étienne Mollier at 2023-01-26T18:58:58+01:00
ready to upload to unstable.

- - - - -


5 changed files:

- debian/changelog
- debian/patches/series
- + debian/patches/skip-armel-test-nan2zero.patch
- + debian/patches/skip-test-removalschedule.patch
- debian/tests/control


Changes:

=====================================
debian/changelog
=====================================
@@ -1,4 +1,4 @@
-nibabel (5.0.0-1) UNRELEASED; urgency=medium
+nibabel (5.0.0-1) unstable; urgency=medium
 
   * Team upload.
   
@@ -14,7 +14,12 @@ nibabel (5.0.0-1) UNRELEASED; urgency=medium
   [ Nilesh Patra ]
   * Build-Depends: python3-hatch-vcs
 
- -- Andreas Tille <tille at debian.org>  Wed, 25 Jan 2023 13:18:07 +0100
+  [ Étienne Mollier ]
+  * d/t/control: append "@" (i.e. built packages) to test dependencies.
+  * skip-test-removalschedule.patch: add; fix autopkgtest failures.
+  * skip-armel-test-nan2zero.patch: add; fix ftbfs on armel. (Closes: #1029593)
+
+ -- Étienne Mollier <emollier at debian.org>  Thu, 26 Jan 2023 18:57:50 +0100
 
 nibabel (4.0.2-1) unstable; urgency=medium
 


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,5 @@ deb_notexext
 deb_localmathjax
 no_doc_sources
 python3.10.patch
+skip-test-removalschedule.patch
+skip-armel-test-nan2zero.patch


=====================================
debian/patches/skip-armel-test-nan2zero.patch
=====================================
@@ -0,0 +1,23 @@
+Description: skip test failing on armel.
+ This test fails for no obvious reason.  Other release architecture are not
+ affected; notably the armhf platform, which includes hardware FPU support,
+ is not affected.  Skipping since it is unlikely this package is needed on
+ platforms lacking FPU, and the test in question does not seem directly
+ relevant for end users.
+Author: Étienne Mollier <emollier at debian.org>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029593
+Forwarded: no
+Last-Update: 2023-01-26
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- nibabel.orig/nibabel/tests/test_volumeutils.py
++++ nibabel/nibabel/tests/test_volumeutils.py
+@@ -625,6 +625,8 @@
+                 array_to_file(arr, fobj, np.int8, intercept=inter, divslope=slope)
+ 
+ 
++ at pytest.mark.skipif(os.uname().machine == 'armv7l',
++                    "It fails on armel for no obvious reason, see #1029593.")
+ def test_a2f_nan2zero_range():
+     # array_to_file should check if nan can be represented as zero
+     # This comes about when the writer can't write the value (-intercept /


=====================================
debian/patches/skip-test-removalschedule.patch
=====================================
@@ -0,0 +1,40 @@
+Description: skip tests about tests failing on new major nibabel version..
+ The skip is made conditional since the failure only occurs in autopkgtest
+ context.
+Author: Étienne Mollier <emollier at debian.org>
+Forwarded: not-needed
+Last-Update: 2023-01-26
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- nibabel.orig/nibabel/tests/test_removalschedule.py
++++ nibabel/nibabel/tests/test_removalschedule.py
+@@ -1,3 +1,4 @@
++import os
+ import unittest
+ from unittest import mock
+ 
+@@ -155,18 +156,24 @@
+ _sched = 'nibabel.tests.test_removalschedule.{}_SCHEDULE'.format
+ 
+ 
++ at pytest.mark.skipif('AUTOPKGTEST_TMP' in os.environ.keys(),
++                    "Failing test is not relevant in autopkgtest context.")
+ @mock.patch(_sched('MODULE'), [('3.0.0', ['nibabel.nifti1'])])
+ def test_unremoved_module():
+     with pytest.raises(AssertionError):
+         test_module_removal()
+ 
+ 
++ at pytest.mark.skipif('AUTOPKGTEST_TMP' in os.environ.keys(),
++                    "Failing test is not relevant in autopkgtest context.")
+ @mock.patch(_sched('OBJECT'), [('3.0.0', [('nibabel.nifti1', 'Nifti1Image')])])
+ def test_unremoved_object():
+     with pytest.raises(AssertionError):
+         test_object_removal()
+ 
+ 
++ at pytest.mark.skipif('AUTOPKGTEST_TMP' in os.environ.keys(),
++                    "Failing test is not relevant in autopkgtest context.")
+ @mock.patch(_sched('ATTRIBUTE'), [('3.0.0', [('nibabel.nifti1', 'Nifti1Image', 'affine')])])
+ def test_unremoved_attr():
+     with pytest.raises(AssertionError):


=====================================
debian/tests/control
=====================================
@@ -1,3 +1,9 @@
 Tests: run-unit-test
-Depends: python3-all, python3-pytest, python3-numpy, python3-scipy, python3-six, python3-pytest-httpserver
+Depends: @,
+         python3-all,
+         python3-pytest,
+         python3-numpy,
+         python3-scipy,
+         python3-six,
+         python3-pytest-httpserver
 Restrictions: allow-stderr



View it on GitLab: https://salsa.debian.org/med-team/nibabel/-/compare/546b613f928f47a95e312017f92df0a5a2feb6eb...43b0bd99fe75a29ceb0110b42d465020d3207c07

-- 
View it on GitLab: https://salsa.debian.org/med-team/nibabel/-/compare/546b613f928f47a95e312017f92df0a5a2feb6eb...43b0bd99fe75a29ceb0110b42d465020d3207c07
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20230126/5c5ac0be/attachment-0001.htm>


More information about the debian-med-commit mailing list