pstree is attached, there'S an eclass which helps using that env var
Created attachment 522896 [details] 22.20180307-084601 pstree
It seems like the multiple redis-server processes are spawned during the tests, src_compile seems to be ok: src_compile() { ... emake ${myconf} V=1 CC="${CC}" AR="${AR} rcu" RANLIB="${RANLIB}" }
This is not a problem with MAKEOPTS. make spawns just one proces (./runtest) as expected, however, ./runtest spawns tclsh script which spawns 16 test clients by default. It is possible to configure number of clients with a parameter --clients <num> Number of test clients (default 16). The testing script contains some heuristic to detect slow computer in which case it spawns only one test client. Anyway, we can run tests with ./runtest --clients "$(makeopts_jobs)" if this is really the issue. I can prepare PR if you want.
Yes please!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6b9b40e3c3a58e89a1866d335334d7b210ae3fd commit f6b9b40e3c3a58e89a1866d335334d7b210ae3fd Author: Petr Vaněk <arkamar@atlas.cz> AuthorDate: 2022-06-09 14:37:39 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-12 20:36:36 +0000 dev-db/redis: limit a number of test clients to MAKEOPTS jobs This change makes tests to respect user MAKEOPTS jobs preference rather than running 16 test clients by default. Closes: https://bugs.gentoo.org/649868 Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Signed-off-by: Sam James <sam@gentoo.org> dev-db/redis/redis-6.0.16.ebuild | 12 ++++++++---- dev-db/redis/redis-6.2.6.ebuild | 12 ++++++++---- dev-db/redis/redis-6.2.7-r1.ebuild | 12 ++++++++---- dev-db/redis/redis-7.0.0-r1.ebuild | 12 ++++++++---- dev-db/redis/redis-7.0.0.ebuild | 12 ++++++++---- dev-db/redis/redis-7.0.1.ebuild | 12 ++++++++---- 6 files changed, 48 insertions(+), 24 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6037dd3e3150d5d125f64a73f5ffecd4d5f514c1 commit 6037dd3e3150d5d125f64a73f5ffecd4d5f514c1 Author: Petr Vaněk <arkamar@atlas.cz> AuthorDate: 2022-06-09 12:31:18 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-12 20:36:36 +0000 dev-db/redis: limit a number of test clients to MAKEOPTS jobs It is necessary to cal ./runtest directly from src_test function in order to be able to pass --clients parameter. Bug: https://bugs.gentoo.org/649868 Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Signed-off-by: Sam James <sam@gentoo.org> dev-db/redis/redis-5.0.14.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)