From 3a2e47818088f661183d195131dac0bdbeebc49a Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Tue, 15 Nov 2022 10:20:18 +0100 Subject: Make number of files processed by a worker configurable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Many files on a worker may result in a few longer running processes thus not utilizing the available parallelism. This option may be most useful in smaller file sets in testing runs. Change-Id: I48a18fd79195634320df8ff73985ba735f9c3ea9 Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/142729 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- test-bugzilla-files/config | 1 + test-bugzilla-files/new-control.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test-bugzilla-files/config b/test-bugzilla-files/config index e52aecd1..5f81cee1 100644 --- a/test-bugzilla-files/config +++ b/test-bugzilla-files/config @@ -5,6 +5,7 @@ export INSTDIR=$BUILDDIR/instdir export USERDIR=/home/$USER/.config export WORKERS=72 export DTPATH=~/source/dev-tools/ +export FILESNR=100 # Warning limits export DISKSPACELIMIT=5 # Remaining disk space warning limit in GiB. diff --git a/test-bugzilla-files/new-control.py b/test-bugzilla-files/new-control.py index 60010ca0..2a95970a 100644 --- a/test-bugzilla-files/new-control.py +++ b/test-bugzilla-files/new-control.py @@ -150,7 +150,7 @@ if __name__ == "__main__": print("no valid directory") sys.exit(1) - task_size = 100 + task_size = int(os.environ["FILESNR"]) workers = int(os.environ["WORKERS"]) if asan == 1: workers = 64 -- cgit v1.2.3