From patchwork Thu Sep 4 15:48:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Dubois-Briand X-Patchwork-Id: 69684 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41A6DCA1002 for ; Thu, 4 Sep 2025 15:49:30 +0000 (UTC) Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by mx.groups.io with SMTP id smtpd.web11.138.1757000959968737111 for ; Thu, 04 Sep 2025 08:49:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=t82NfOlk; spf=pass (domain: bootlin.com, ip: 185.171.202.116, mailfrom: mathieu.dubois-briand@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id B0FD6C8F1EB; Thu, 4 Sep 2025 15:49:02 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id E2BD2606C4; Thu, 4 Sep 2025 15:49:17 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 91D001C22DE12; Thu, 4 Sep 2025 17:49:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1757000957; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=lefWDd7rkhMh21c35F+T3O0+deiFSbDQeSwcbOVdFNU=; b=t82NfOlkgCtT2uwhVRuypnugrwMz5u0bxwK+XKyHnvlP68endGQvx/0+HVdzXROEtlvV/H tUwPIQzzPoaBxoOP9CA40VA5qZ0yqAu6lAUv8djhCNRCZ9gOCDAM67XCjjHP4p6twDH7w+ 1KvpTdm0PMX+BhSUrTqF1QAgk5kvx2nNKWhbfcxoCiq/7B5OWurxQg3XQ0+BTN87HPed36 QZAX1q7KkwR1cgXmd+M967qg2iks/sF2920v38tUJet96b/0WKPIocra99v0pR7hdR1Md2 YyXyKG74+x0M54M+xb8RiUvBHVx2Gw03Q7rgaeTm2bBkH2fQXM50QFxLTs2F6Q== From: Mathieu Dubois-Briand Date: Thu, 04 Sep 2025 17:48:49 +0200 Subject: [PATCH yocto-autobuilder2 1/3] runconfig: Add build configuration as properties MIME-Version: 1.0 Message-Id: <20250904-contrib-mathieu-build_props-v1-1-0ffaafcd01cb@bootlin.com> References: <20250904-contrib-mathieu-build_props-v1-0-0ffaafcd01cb@bootlin.com> In-Reply-To: <20250904-contrib-mathieu-build_props-v1-0-0ffaafcd01cb@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Bruce Ashfield , Peter Kjellerstedt , Mathieu Dubois-Briand , Thomas Petazzoni X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1757000954; l=2421; i=mathieu.dubois-briand@bootlin.com; s=20241219; h=from:subject:message-id; bh=VkLZoQ9mj/l4YsR16lNXsfL62uT8FN5kRtTvaWfpo3M=; b=suOeSmws0gIqUh8wp6lWmcPFWZIrRwTXw50Nr9np8bawbGVkt/ikoAac0BpNWSLh4pNVMOdLL I7NYR+1vapvCcfgqlvD2bUw4HovlUiJi2E1fHD4XO+nWwBvq228CSyN X-Developer-Key: i=mathieu.dubois-briand@bootlin.com; a=ed25519; pk=1PVTmzPXfKvDwcPUzG0aqdGoKZJA3b9s+3DqRlm0Lww= X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 04 Sep 2025 15:49:30 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2132 Add some important build configuration such as MACHINE or DISTRO to buildbot build properties. Signed-off-by: Mathieu Dubois-Briand --- steps/runconfig.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/steps/runconfig.py b/steps/runconfig.py index a6d0dbd42efe..4e1e704f9de8 100644 --- a/steps/runconfig.py +++ b/steps/runconfig.py @@ -160,17 +160,22 @@ class RunConfigCheckSteps(shell.ShellCommand): haltOnFailure = False flunkOnFailure = True jsonFileName = util.Interpolate("%(prop:builddir)s/runconfig.json") - logfiles = {'json': jsonFileName} + propertiesFileName = util.Interpolate("%(prop:builddir)s/runconfig-properties.json") + logfiles = {'json': jsonFileName, 'properties': propertiesFileName} def __init__(self, *args, **kwargs): self.posttrigger = kwargs.pop("posttrigger") self.command = get_runconfig_command(self.posttrigger) self.command.append("--json-outputfile") self.command.append(self.jsonFileName) + self.command.append("--properties-outputfile") + self.command.append(self.propertiesFileName) super().__init__(*args, **kwargs) self.log_observer_json = logobserver.BufferLogObserver() self.addLogObserver('json', self.log_observer_json) + self.log_observer_properties = logobserver.BufferLogObserver() + self.addLogObserver('properties', self.log_observer_properties) @defer.inlineCallbacks def run(self): @@ -188,12 +193,17 @@ class RunConfigCheckSteps(shell.ShellCommand): # If the command fails, fall back to old style run-config execution rc = cmd.results() logLines = self.log_observer_json.getStdout() + propertiesLines = self.log_observer_properties.getStdout() jsonconfig = None try: jsonconfig = json.loads(logLines) + properties = json.loads(propertiesLines) except Exception as ex: self._addToLog('stderr', 'ERROR: unable to parse data, exception {}: {}'.format(ex.__class__, ex)) + for k, v in properties.items(): + self.setProperty(k, v, "run-config output") + if rc == FAILURE or not jsonconfig: steps = [get_runconfig_legacy_step(self.posttrigger)] else: From patchwork Thu Sep 4 15:48:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Dubois-Briand X-Patchwork-Id: 69683 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FFD4CA1015 for ; Thu, 4 Sep 2025 15:49:30 +0000 (UTC) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.web11.139.1757000960544805750 for ; Thu, 04 Sep 2025 08:49:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=RqIiGSH1; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: mathieu.dubois-briand@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 3AD7E4E40C32 for ; Thu, 4 Sep 2025 15:49:19 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 13CBB606C4; Thu, 4 Sep 2025 15:49:19 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id D725E1C22C8BB; Thu, 4 Sep 2025 17:49:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1757000958; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=irn94zBPOG8565Lf9ScFd259W8TmSJo5ujlVWJ7omWo=; b=RqIiGSH1IoTV0D7cpo0KmhDvNsjyFg2HAqDclztFnuhVvXCHl6CHDP1gH9nUCjUz9WqTHa KG48lIfPvo1lO16orWmLGQmBd6Hx/K+VVyap1scktYKdhz1nCWyru60rm4RmJgHzE85dtY SeNFFVMF1ymDvyhYLU57zbdXJD/QHQI3uUGlfD5k1HZowHWuJh+peFOAZ1iQ1MDAr4q1wS kMRx9bPTQkogqxTmzyi7NyjaLj1Pzm0GkQgmZup5n0/MOFcJUYOcYq9gtX3OUi8Aj04jE/ X90d20Cy0cTm1EgglDYIjvsM9LyRhL6JcdXZtlycPW+QBLl+qme4FdDrqYopoQ== From: Mathieu Dubois-Briand Date: Thu, 04 Sep 2025 17:48:50 +0200 Subject: [PATCH yocto-autobuilder2 2/3] builders: Add poky-ci-archive tag in build properties MIME-Version: 1.0 Message-Id: <20250904-contrib-mathieu-build_props-v1-2-0ffaafcd01cb@bootlin.com> References: <20250904-contrib-mathieu-build_props-v1-0-0ffaafcd01cb@bootlin.com> In-Reply-To: <20250904-contrib-mathieu-build_props-v1-0-0ffaafcd01cb@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Bruce Ashfield , Peter Kjellerstedt , Mathieu Dubois-Briand , Thomas Petazzoni X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1757000954; l=1639; i=mathieu.dubois-briand@bootlin.com; s=20241219; h=from:subject:message-id; bh=RZIJ5tzOEY1GBSZQcqGX6hUbLhPEIka/ch4l2V9ytCk=; b=ZQuKjJhhUtSCRDDFZlAGgqPoWnLoYb2IAKB3MzT8jobYD2XOJbCYuvyZH7ifvu41Xk4cDWTvr +EF1/JWE4biAqEHea7wZqvsD1D7Rp2//FKogTpWKpOwmml6UYfSP0XG X-Developer-Key: i=mathieu.dubois-briand@bootlin.com; a=ed25519; pk=1PVTmzPXfKvDwcPUzG0aqdGoKZJA3b9s+3DqRlm0Lww= X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 04 Sep 2025 15:49:30 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2133 Signed-off-by: Mathieu Dubois-Briand --- builders.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/builders.py b/builders.py index e4763d5325aa..0fa6e0035385 100644 --- a/builders.py +++ b/builders.py @@ -307,6 +307,12 @@ def create_parent_builder_factory(buildername, waitname): ], haltOnFailure=True, name="Prepare shared repositories")) + factory.addStep(steps.SetProperty( + property="poky-ci-archive_tag", value=createBuildTag)) + tagurl = util.Interpolate('https://git.yoctoproject.org/poky-ci-archive/log/?h=%(kw:tag)s', + tag=createBuildTag) + factory.addStep(steps.SetProperty( + property="poky-ci-archive_url", value=tagurl)) factory.addStep(steps.SetProperty( property="sharedrepolocation", value=util.Interpolate("{}/%(prop:buildername)s-%(prop:buildnumber)s".format(config.sharedrepodir)) @@ -358,7 +364,9 @@ def create_parent_builder_factory(buildername, waitname): "milestone_number": util.Property("milestone_number"), "rc_number": util.Property("rc_number"), "yp_build_revision": util.Property("yp_build_revision"), - "yp_build_branch": util.Property("yp_build_branch") + "yp_build_branch": util.Property("yp_build_branch"), + "poky-ci-archive_tag": util.Property("poky-ci-archive_tag"), + "poky-ci-archive_url": util.Property("poky-ci-archive_url") } for repo in config.buildertorepos[buildername]: From patchwork Thu Sep 4 15:48:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Dubois-Briand X-Patchwork-Id: 69682 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E48BCA1013 for ; Thu, 4 Sep 2025 15:49:30 +0000 (UTC) Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.web10.138.1757000966696873262 for ; Thu, 04 Sep 2025 08:49:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=13o1aB+8; spf=pass (domain: bootlin.com, ip: 185.246.84.56, mailfrom: mathieu.dubois-briand@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 69C1E1A0DD3 for ; Thu, 4 Sep 2025 15:49:25 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 3EA34606C4; Thu, 4 Sep 2025 15:49:25 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id F21A61C22D6B1; Thu, 4 Sep 2025 17:49:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1757000964; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=pT0KZ/1J7lSAu3A9i+mUiRxyUjhbCz+F9O0N2qpMeR0=; b=13o1aB+88i8K+mnCnQLDbONOqTsx87jCPpt2G9tBiGNUozs/js+RbkuavfZRWNKWgdHdDB VmOuT9HwrkF06m/amY3a2tBGOeJGBTnhbbJlrGE/pBXI2yVz8ohnAmRkslEyWzphsysptl 4cmyTRSiQw2cNvzc9O0I0NHKYNyLkgTsK6vv8KJ2jncDDmkbkzdiVFAPxdtdHDOYW5ccpu L1sG/Vb5qwasEPsEpijtBCHcWZ8gUSSQJWhWQDELoCBlaE5kG9gNHhcgxB2ePpMdHu76+8 pUE+Y7JFI/86L1WNWrCciB/Vlmq3nnRoF9ReTDqraHrNIiTqg5GlTxGqUcxu3w== From: Mathieu Dubois-Briand Date: Thu, 04 Sep 2025 17:48:51 +0200 Subject: [PATCH yocto-autobuilder2 3/3] b4-config: Add basic b4 configuration MIME-Version: 1.0 Message-Id: <20250904-contrib-mathieu-build_props-v1-3-0ffaafcd01cb@bootlin.com> References: <20250904-contrib-mathieu-build_props-v1-0-0ffaafcd01cb@bootlin.com> In-Reply-To: <20250904-contrib-mathieu-build_props-v1-0-0ffaafcd01cb@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Bruce Ashfield , Peter Kjellerstedt , Mathieu Dubois-Briand , Thomas Petazzoni X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1757000954; l=604; i=mathieu.dubois-briand@bootlin.com; s=20241219; h=from:subject:message-id; bh=yfS1+Wa11Hdc1MJgqAeYVSjlh4VQZMKghuCGC0i73nY=; b=IptunAJM5pc2V8b+ZKj9TL7zrJAwYQtZOJgEOzZT5dPJsiMsGnYkcimNmnDc4VteWP3hO3vj8 4s+RXsr9hOUBv3o1dJoluyOSF+2yY/dyla6gGbVsQ2pS6bcWZWBer/e X-Developer-Key: i=mathieu.dubois-briand@bootlin.com; a=ed25519; pk=1PVTmzPXfKvDwcPUzG0aqdGoKZJA3b9s+3DqRlm0Lww= X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 04 Sep 2025 15:49:30 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2134 Allow to easily prepare mail series with b4. Most of the configuration was shamelessly stolen from openembedded-core git. Signed-off-by: Mathieu Dubois-Briand --- .b4-config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.b4-config b/.b4-config new file mode 100644 index 000000000000..0f1f430c74f3 --- /dev/null +++ b/.b4-config @@ -0,0 +1,4 @@ +[b4] + send-series-to = yocto-patches@lists.yoctoproject.org + prep-pre-flight-checks = disable-needs-auto-to-cc, disable-needs-checking + send-prefixes = yocto-autobuilder2