[med-svn] [Git][med-team/sourmash][master] d/rules: cap the numer of parallel tests at 4

Michael R. Crusoe (@crusoe) gitlab at salsa.debian.org
Fri Apr 24 15:56:52 BST 2026



Michael R. Crusoe pushed to branch master at Debian Med / sourmash


Commits:
21a41a1d by Michael R. Crusoe at 2026-04-24T16:47:53+02:00
d/rules: cap the numer of parallel tests at 4

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -23,6 +23,7 @@ sourmash (4.9.4-5) UNRELEASED; urgency=medium
   * Use GitHub template in watch file instead of explicit
     Source/Matching-Pattern.
   * Set upstream metadata fields: Documentation.
+  * d/rules: cap the numer of parallel tests at 4
 
  -- Andreas Tille <tille at debian.org>  Sun, 22 Feb 2026 16:17:51 +0100
 


=====================================
debian/rules
=====================================
@@ -4,7 +4,8 @@ export DH_VERBOSE = 1
 
 include /usr/share/dpkg/default.mk
 include /usr/share/rustc/architecture.mk
-export PYTEST_XDIST_AUTO_NUM_WORKERS=$(DEB_BUILD_OPTION_PARALLEL)
+TESTJOBS := $(or $(DEB_BUILD_OPTION_PARALLEL),1)
+export PYTEST_XDIST_AUTO_NUM_WORKERS=$(intcmp $(TESTJOBS),4,$(TESTJOBS),4,4)
 export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
 export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
 export PATH := /usr/share/cargo/bin:$(PATH)
@@ -14,7 +15,7 @@ export CARGO_HOME=$(CURDIR)/debian/cargo_home
 export CARGO_REGISTRY=$(CURDIR)/debian/cargo_registry
 export DEB_CARGO_CRATE=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM)
 export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow
-export PYBUILD_TEST_ARGS=$(DEB_BUILD_OPTION_PARALLEL:%=-n%) -k 'not (test_sqlite_lca_db_create_readonly or test_compare_no_such_file or test_metagenome_kreport_out_fail or test_do_sourmash_index_multiscaled_rescale_fail)'
+export PYBUILD_TEST_ARGS=-k 'not (test_sqlite_lca_db_create_readonly or test_compare_no_such_file or test_metagenome_kreport_out_fail or test_do_sourmash_index_multiscaled_rescale_fail)'
 # test_sqlite_lca_db_create_readonly, fails when building as root
 # test_compare_no_such_file. due to the ValueError being swallowed (?)
 # test_metagenome_kreport_out_fail, same as test_compare_no_such_file



View it on GitLab: https://salsa.debian.org/med-team/sourmash/-/commit/21a41a1dccce16d5986c2dec31e73a788317da59

-- 
View it on GitLab: https://salsa.debian.org/med-team/sourmash/-/commit/21a41a1dccce16d5986c2dec31e73a788317da59
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/20260424/d4dcff9f/attachment-0001.htm>


More information about the debian-med-commit mailing list