From 148a01af34ab942901d771e6bd6be19dd4142c57 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Thu, 15 Aug 2024 01:42:33 +0200 Subject: [PATCH] [MTR] Limit the number of testsuite execution workers Explanation of the options per: https://dev.mysql.com/doc/dev/mysql-server/latest/PAGE_MYSQL_TEST_RUN_PL.html The MTR_MAX_PARALLEL environment variable, if set, specifies the maximum number of parallel workers that can be spawned when the --parallel=auto option is specified. If --parallel=auto is not specified, MTR_MAX_PARALLEL variable has no effect. --- mysql8.4.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mysql8.4.spec b/mysql8.4.spec index 569662a..edc799f 100644 --- a/mysql8.4.spec +++ b/mysql8.4.spec @@ -760,11 +760,12 @@ pushd %_vpath_builddir #make test VERBOSE=1 pushd mysql-test cp ../../mysql-test/%{skiplist} . - ( set -ex cd %{buildroot}%{_datadir}/mysql-test + export MTR_MAX_PARALLEL=16 + export common_testsuite_arguments=" %{?with_debug:--debug-server} \ --force --skip-combinations --report-unstable-tests --clean-vardir --nocheck-testcases \ --suite-timeout=900 --testcase-timeout=30 --port-base=$(( $(date +%s) % 20000 + 10000 )) \