[med-svn] [Git][med-team/simka][master] 4 commits: initialize changelog

Étienne Mollier gitlab at salsa.debian.org
Mon Apr 5 19:08:19 BST 2021



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


Commits:
321a372c by Étienne Mollier at 2021-04-05T18:09:53+02:00
initialize changelog

- - - - -
03bbcf00 by Étienne Mollier at 2021-04-05T18:22:05+02:00
d/tests/run-unit-test: capping nb-cores to 8 cpus

Past 8 cores, the test suite hangs as in bug #986256.  Using the
-nb-cores option of simka allows us to cap the test to use not
further than eight threads, independly of the host's core count.

- - - - -
a555f10e by Étienne Mollier at 2021-04-05T20:02:43+02:00
update changelog

- - - - -
80cc2937 by Étienne Mollier at 2021-04-05T20:03:17+02:00
ready to upload to unstable

- - - - -


2 changed files:

- debian/changelog
- debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+simka (1.5.3-3) unstable; urgency=medium
+
+  * Team upload.
+  * d/tests/run-unit-test: cap nb-cores to 8 cpus when running tests, to avoid
+    the test suite to hang on high cores count machines.  (Closes: #986256)
+
+ -- Étienne Mollier <etienne.mollier at mailoo.org>  Mon, 05 Apr 2021 20:02:58 +0200
+
 simka (1.5.3-2) unstable; urgency=high
 
   * Make autopkgtest have the same arch list as d/control (Closes: #982212)


=====================================
debian/tests/run-unit-test
=====================================
@@ -17,7 +17,18 @@ find . -name "*.gz" -exec gunzip \{\} \;
 ls && ls simkaMin
 
 echo "Testing simka"
-bash simple_test.sh
-python3 simple_test.py
+# capping number of concurrent threads due to bug #986256
+NR_CPUS="$(
+	lscpu \
+	| awk '/^CPU\(s\):/{print$2}'
+)"
+if [ "$NR_CPUS" -gt 8 ]
+then
+	echo "NOTE: found $NR_CPUS cores, capping tests to 8 threads."
+	NR_CPUS=8
+fi
+bash simple_test.sh -nb-cores "$NR_CPUS"
+python3 simple_test.py -nb-cores "$NR_CPUS"
 echo "FIXME: Testing simkaMin does not work - needs more investigation"
+echo "FIXME: The test suite slows dramatically down when exceeding 8 cores."
 # python3 simkaMin/test_simkaMin.py



View it on GitLab: https://salsa.debian.org/med-team/simka/-/compare/75660c04b0faec8481f4227d6c5ca32a73c5b525...80cc29378d7f4275d7804dcb8133b2e7ab7ea826

-- 
View it on GitLab: https://salsa.debian.org/med-team/simka/-/compare/75660c04b0faec8481f4227d6c5ca32a73c5b525...80cc29378d7f4275d7804dcb8133b2e7ab7ea826
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/20210405/f94f4389/attachment-0001.htm>


More information about the debian-med-commit mailing list