Right now, ctest unconditionally take jobs/load-avg from MAKEOPTS. However, unlike most build systems, ctest does not start any jobs if load-avg is exceeded. Which means package builds can block for hours without doing anything. I think it would be helpful to be able to override these values for ctest specifically, i.e. have CTEST_JOBS and CTEST_LOAD_AVG variables, or alike.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=643d2156371598447342722fae90f614fad3432c commit 643d2156371598447342722fae90f614fad3432c Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-12-01 16:50:31 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2025-04-02 07:06:07 +0000 cmake.eclass: Permit overriding CTEST_{JOBS,LOADAVG} Closes: https://bugs.gentoo.org/945081 Signed-off-by: Michał Górny <mgorny@gentoo.org> eclass/cmake.eclass | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=379c70d777b48c796bf8ec54789a3761374b6b02 commit 379c70d777b48c796bf8ec54789a3761374b6b02 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-12-01 16:50:31 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2025-06-02 22:06:14 +0000 cmake.eclass: Permit overriding CTEST_{JOBS,LOADAVG} Bug: https://bugs.gentoo.org/945081 Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> eclass/cmake.eclass | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-)