[med-svn] [Git][med-team/python-ruffus][master] 4 commits: Add reasonable-multiprocessing.patch

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Mon Dec 6 21:10:52 GMT 2021



Étienne Mollier pushed to branch master at Debian Med / python-ruffus


Commits:
96f62a79 by Étienne Mollier at 2021-12-06T21:51:40+01:00
Add reasonable-multiprocessing.patch

Closes: #841073

Adjust the process count of the test suite to count of cores available
in the test environment to reduce the memory footprint of the build.

- - - - -
02e6042e by Étienne Mollier at 2021-12-06T21:58:36+01:00
d/copyright: bump copyright years

- - - - -
c02fb676 by Étienne Mollier at 2021-12-06T22:03:51+01:00
d/copyright: document file from Rebecca Chodroff

- - - - -
b073e80e by Étienne Mollier at 2021-12-06T22:10:17+01:00
ready changelog to upload to unstable

- - - - -


4 changed files:

- debian/changelog
- debian/copyright
- + debian/patches/reasonable-multiprocessing.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+python-ruffus (2.8.4-4) unstable; urgency=medium
+
+  * Add reasonable-multiprocessing.patch: adjust process count to cores
+    available and reduce the memory footprint of the build.  (Closes: #841073)
+  * d/copyright: bump copyright years and reference file from Rebecca Chodroff.
+
+ -- Étienne Mollier <emollier at debian.org>  Mon, 06 Dec 2021 22:10:12 +0100
+
 python-ruffus (2.8.4-3) unstable; urgency=medium
 
   * Fix watchfile to detect new versions on github


=====================================
debian/copyright
=====================================
@@ -16,11 +16,15 @@ Files-Excluded: doc/_build/doctrees
                 doc/_build/latex/*.t*
 
 Files: *
-Copyright: © 2010-2014 Leo Goodstadt <ruffus_lib at llew.org.uk>
+Copyright: © 2009-2015 Leo Goodstadt <ruffus_lib at llew.org.uk>
+License: MIT
+
+Files: doc/images/gallery/gallery_dless.py
+Copyright: © 2010 Rebecca Chodroff
 License: MIT
 
 Files: debian/*
-Copyright: © 2015 Andreas Tille <tille at debian.org>
+Copyright: © 2015-2021 Andreas Tille <tille at debian.org>
 License: MIT
 
 License: MIT


=====================================
debian/patches/reasonable-multiprocessing.patch
=====================================
@@ -0,0 +1,30 @@
+Description: adjust multiprocessed pipeline to the machine's available cores
+ The purpose of the patch is to reduce the memory consumption on machines with
+ little resources, while keeping the tests of high cores count to more buffy
+ equipment.
+Author: Étienne Mollier <emollier at debian.org>
+Bug: https://github.com/cgat-developers/ruffus/issues/104
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841073
+Last-Update: 2021-12-06
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- python-ruffus.orig/ruffus/test/test_with_logger.py
++++ python-ruffus/ruffus/test/test_with_logger.py
+@@ -189,7 +189,7 @@
+             pass
+ 
+     def test_simpler(self):
+-        pipeline_run(multiprocess=500, verbose=0, pipeline="main")
++        pipeline_run(multiprocess=len(os.sched_getaffinity(0)), verbose=0, pipeline="main")
+ 
+     def test_newstyle_simpler(self):
+         test_pipeline = Pipeline("test")
+@@ -202,7 +202,7 @@
+         test_pipeline.merge(task4, task3, final_file_name,
+                             extras=[logger_proxy, logging_mutex])
+         #test_pipeline.merge(task4, task3, final_file_name, extras = {"logger_proxy": logger_proxy, "logging_mutex": logging_mutex})
+-        test_pipeline.run(multiprocess=500, verbose=0)
++        test_pipeline.run(multiprocess=len(os.sched_getaffinity(0)), verbose=0)
+ 
+ 
+ if __name__ == '__main__':


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 use_libjs-mathjax.patch
 sphinx4.patch
 ignore_test_proxy_logger.patch
+reasonable-multiprocessing.patch



View it on GitLab: https://salsa.debian.org/med-team/python-ruffus/-/compare/8f59431591c2f846a2f6bebc681a565b8f80cb27...b073e80ed383309db2d4840b9b48d0b64a8d6dea

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-ruffus/-/compare/8f59431591c2f846a2f6bebc681a565b8f80cb27...b073e80ed383309db2d4840b9b48d0b64a8d6dea
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/20211206/62ed2941/attachment-0001.htm>


More information about the debian-med-commit mailing list