From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BFF9CC4167B for ; Tue, 27 Dec 2022 20:53:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 6850840472; Tue, 27 Dec 2022 20:53:41 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 6850840472 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r2-Ngh6iLN-9; Tue, 27 Dec 2022 20:53:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id B06DF4018F; Tue, 27 Dec 2022 20:53:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org B06DF4018F Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 244BB1BF37A for ; Tue, 27 Dec 2022 20:53:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id F306781257 for ; Tue, 27 Dec 2022 20:53:37 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org F306781257 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5HPv4npnML-I for ; Tue, 27 Dec 2022 20:53:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9E4CE80BC1 Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [IPv6:2a01:e0c:1:1599::11]) by smtp1.osuosl.org (Postfix) with ESMTPS id 9E4CE80BC1 for ; Tue, 27 Dec 2022 20:53:36 +0000 (UTC) Received: from ymorin.is-a-geek.org (unknown [92.184.110.54]) (Authenticated sender: yann.morin.1998@free.fr) by smtp2-g21.free.fr (Postfix) with ESMTPSA id 9BDFE2003CE; Tue, 27 Dec 2022 21:53:30 +0100 (CET) Received: by ymorin.is-a-geek.org (sSMTP sendmail emulation); Tue, 27 Dec 2022 21:53:30 +0100 Date: Tue, 27 Dec 2022 21:53:30 +0100 From: "Yann E. MORIN" To: Thomas Petazzoni Message-ID: <20221227205330.GA2498764@scaer> References: <20221227214538.56ca7609@windsurf> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221227214538.56ca7609@windsurf> User-Agent: Mutt/1.5.22 (2013-10-16) X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1672174413; bh=8cDbUGxAACmb7WR1pbZxXt/twcpo+jCUxObv/V97ID4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LzbaujmW8X9XK/6KqSY2IhYFXFuqF6utpxH8SFuv64Kefm0gjcwrl3zC+gbLInfox OcRDK/SzhguBmsfAxrnCYK6qbum7ruQd0wKeyCo+QsyDiCGETankVIVNk5ofTUBAV+ n+70AeVaPjEWmlYutF4Y7+alIs8tMNC9Yb2C+13ytI1iojO2MQvfSWsuB3/lSqERHq ztBaoibvZjq/l88N/fhNfLgosJLbfkBsiNK7UWjIeuFBGe2JkeUhCEa3euWQjGetjf JfeYCJOOCTQaSTYotAR5SI5isD7MaTNW9rsVcMYt5mtBseeXR6rvl9BXDnvnwRsJAi frMRQk6K14L8w== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=free.fr header.i=@free.fr header.a=rsa-sha256 header.s=smtp-20201208 header.b=LzbaujmW Subject: Re: [Buildroot] [PATCH 2/3] support/tests: allow top-level parallel builds X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: buildroot@buildroot.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Thomas, All, On 2022-12-27 21:45 +0100, Thomas Petazzoni via buildroot spake thusly: > On Sat, 24 Dec 2022 10:18:12 +0100 > "Yann E. MORIN" wrote: > > Running tests with top-level parallel builds can speed up running some > > tests, expecially those that have a lot of packages like the systemd > > init tests. > > > > Trigger TLPB when the configuration enables per-package directories. > > > > Signed-off-by: Yann E. MORIN > > Cc: Thomas Petazzoni > > I certainly support the idea of running some tests with TLPB. However, > this implementation makes a confusion between two different settings: > > - The existing BRConfigTest.jlevel, which is set by run-tests -j, and > used to define BR2_JLEVEL in the Buildroot configuration of each test > case. This determines the number of parallel jobs used to build each > independent package. > > - Your new work, which uses "make -j" to do TLPB... but relies on the > same above value, even though it's a completely different setting. > > Is this expected? Yes, this is the intended behaviour, which I was explicitly seeking. So, if one runs with PPD and TLPB (outside the run-time infra), one would do something like: $ make -jN This spawns a top-level make process that is parallel. In turn, in rules, when we call $(MAKE), this is the magic that tells make that it is recursive, but that it should use the jobserver from the calling process. So, in this case, the BR2_JLEVEL is unused by whatever uses the make jobserver; only the number of jobs in the top-level jobserver is meaningful, i.e. whatever we pass as -jN. The exception, of course, is whatever uses BR2_JLEVEL but does not talk to the jobserver, but this is mostly a few packages (scons, waf et al.). Even ninja packages do talk to the top-level jobserver, now that we use the ninja fork that knows to talk to it. So, yes, using top-level -jN with the same value as BR2_JLEVEL is exactly what I intended to do. Unless I totally missed something... Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot