From patchwork Sat Nov 13 14:17:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 1554713 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HryFn5lhQz9sCD for ; Sun, 14 Nov 2021 01:17:17 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 7845940448; Sat, 13 Nov 2021 14:17:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oK6YxlHIifhH; Sat, 13 Nov 2021 14:17:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id C0913403D4; Sat, 13 Nov 2021 14:17:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id A22941BF349 for ; Sat, 13 Nov 2021 14:17:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 910FC6064B for ; Sat, 13 Nov 2021 14:17:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KHNDQ28zYkfJ for ; Sat, 13 Nov 2021 14:17:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by smtp3.osuosl.org (Postfix) with ESMTPS id 4C2EB60638 for ; Sat, 13 Nov 2021 14:17:11 +0000 (UTC) Received: (Authenticated sender: thomas.petazzoni@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id AF55420003; Sat, 13 Nov 2021 14:17:07 +0000 (UTC) From: Thomas Petazzoni To: Buildroot List Date: Sat, 13 Nov 2021 15:17:02 +0100 Message-Id: <20211113141703.1124706-1-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] utils/genrandconfig: reduce the maximum "size" of random configurations 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: Romain Naour , "Yann E. MORIN" , Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" genrandconfig is used by the Buildroot autobuilders to generate semi-random configurations that we build test. As part of this, we use "make randpackageconfig" to randomize the selection of packages, together with a KCONFIG_PROBABILITY value, which indicates the probabibility for each option to be enabled. This probability is itself randomized, between 1% and 30% for every build. However, with our increasing number of packages (over 2900), when we use a 30% probability for options to be enabled, it means a *lot* of options are enabled, causing very large configurations to be tested. These configurations are not very realistic, and they take ages to build on our autobuilders: we have builds that take 4, 5 or even 7 hours to build. In order to test a larger number of configurations and therefore a larger variety of configurations, this commit reduces the maximum probability to 20%. Signed-off-by: Thomas Petazzoni --- utils/genrandconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/genrandconfig b/utils/genrandconfig index 4fffcbad11..77c7e585f5 100755 --- a/utils/genrandconfig +++ b/utils/genrandconfig @@ -410,7 +410,7 @@ def gen_config(args): return 1 bounded_loop -= 1 subprocess.check_call(["make", "O=%s" % args.outputdir, "-C", args.buildrootdir, - "KCONFIG_PROBABILITY=%d" % randint(1, 30), + "KCONFIG_PROBABILITY=%d" % randint(1, 20), "randpackageconfig"]) if fixup_config(sysinfo, configfile):