From patchwork Thu Oct 16 13:20:12 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: 72497 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 2AE14CCD19A for ; Thu, 16 Oct 2025 13:20:23 +0000 (UTC) Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.web11.8311.1760620820446718488 for ; Thu, 16 Oct 2025 06:20:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=n3LvAsAL; 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 260601A134B for ; Thu, 16 Oct 2025 13:20:19 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id F15466062C for ; Thu, 16 Oct 2025 13:20:18 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 6255C102F22FC; Thu, 16 Oct 2025 15:20:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1760620818; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=I9VMf5shjJ8HX6f7CQ+UBwKRe95Ki9ZZxhYG57HdXC0=; b=n3LvAsALMPCkwmpfQgwTlQ8BW6QVqJFstITNbqVsdJDKJDi/ej/Z24tl2aTRV900Biat0g 2NSfMPKs7UZcfwGpzmuL4yf1ISa6+AdCGNcwZzJZUvajaXGNYwodivy3EzBMgEfflcmBCc yAP/EgCJtWYCQI8tIMVhIFJfvvQdBAHhE/HY2nccsQy29qnxL2zfitPqR6xR8MfnbKD043 AkYxFZV0VrOLDVqmgq5FOmhtD10rQwExcI3nNEvnudjO61c6NlGs8IgM8LV1daSdO5K2/L ZD+L3wxXjIH7onDQP8IrqNVZ4I/4s1R3q50KvLxJZ/im0cdThS16FwShO7TpMw== From: Mathieu Dubois-Briand Date: Thu, 16 Oct 2025 15:20:12 +0200 Subject: [PATCH yocto-autobuilder2 v2 1/6] builders: Fix disk space error message MIME-Version: 1.0 Message-Id: <20251016-contrib-mathieu-bb-setup-links-v2-1-095908455e0b@bootlin.com> References: <20251016-contrib-mathieu-bb-setup-links-v2-0-095908455e0b@bootlin.com> In-Reply-To: <20251016-contrib-mathieu-bb-setup-links-v2-0-095908455e0b@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Mathieu Dubois-Briand X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1760620815; l=1201; i=mathieu.dubois-briand@bootlin.com; s=20241219; h=from:subject:message-id; bh=EvqKVYn0FMi0Ktotld9fjDR2yNQPcE8mkXDk5mRV0Bo=; b=DxTuUZYNNm0BujAcO86QRaiZQzE9tWzbMMTSh/VoE2MQ76AfrZEjkDZ10C0jD1rU1pEw4petv rac2QjgL7DyDYLTcRZSsAyPgW4EwhMkwM0S4Jr7DZrmPngx4XhVhwC/ 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, 16 Oct 2025 13:20:23 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2314 Signed-off-by: Mathieu Dubois-Briand --- builders.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builders.py b/builders.py index 0000122af015..15985f258bb9 100644 --- a/builders.py +++ b/builders.py @@ -77,12 +77,12 @@ def canStartBuild(builder, wfb, request): for mountpoint in checks: threshold, name = checks[mountpoint] - threshold = threshold * 1024 *1024 * 1024 + bytes_in_gb = 1024 * 1024 * 1024 cmd = yield shell("findmnt -T %s --df -n --bytes | awk '{print $5}'" % mountpoint, wfb.worker, builder) space = int(cmd.stdout.strip()) - if space < threshold: - log.msg("Detected {0} GB of space available on {1}, less than threshold of {2} GB. Can't start build".format(space, name, threshold)) + if space < threshold * bytes_in_gb: + log.msg("Detected {0} GB of space available on {1}, less than threshold of {2} GB. Can't start build".format(space / bytes_in_gb, name, threshold)) wfb.worker.quarantine_timeout = 10 * 60 wfb.worker.putInQuarantine() return False From patchwork Thu Oct 16 13:20:13 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: 72500 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 392C4CCD19F for ; Thu, 16 Oct 2025 13:20:23 +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.8265.1760620821219896917 for ; Thu, 16 Oct 2025 06:20:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=dmtJg43D; 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 E499A1A142F for ; Thu, 16 Oct 2025 13:20:19 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id B4ED96062C for ; Thu, 16 Oct 2025 13:20:19 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id DE47C102F2304; Thu, 16 Oct 2025 15:20:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1760620819; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=73TFVuZ7uT3VdzKOB0NpQ4PibBCG8k4qYqJlwVPWmOg=; b=dmtJg43Ds1kxHRPSkCijF8BsRyqrtkWHULnzJYZ0hOC5/t37Z7hq8G/YstiJI5FlVsRH9X WPaGxb77qaD3xfOf4n3e4nmCX/dLDHYH/vQPbPW3wr5Yo+W+yLD6xANUu9lKFKfZshigWc N4pUYySvCc4b3/gdOH/jwF2PE6jXojjZ6vqLOj/Y/u/R3QHDZG8AuEwhXvYuc/z5bv5YFJ K7siwX+nJ60UXg8hQFiRiHzgd0M1ElzDLxycKRgy/dWk6PIZFs/Pmx63O3EDgSmdfrBdCy z+OEOks9pHMXbjiOEIGEplOcZYomf0U8243LacsE/XQdvMIHIuaLBGmOeRwnRA== From: Mathieu Dubois-Briand Date: Thu, 16 Oct 2025 15:20:13 +0200 Subject: [PATCH yocto-autobuilder2 v2 2/6] yocto_console_view: fix commit links MIME-Version: 1.0 Message-Id: <20251016-contrib-mathieu-bb-setup-links-v2-2-095908455e0b@bootlin.com> References: <20251016-contrib-mathieu-bb-setup-links-v2-0-095908455e0b@bootlin.com> In-Reply-To: <20251016-contrib-mathieu-bb-setup-links-v2-0-095908455e0b@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Mathieu Dubois-Briand X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1760620815; l=6641; i=mathieu.dubois-briand@bootlin.com; s=20241219; h=from:subject:message-id; bh=gH+qaY/WQa0PQVWWYkpRubRroJ+ePxCzA3CeqkyyCLo=; b=wefQLCF2FSMVE6fNoHgmu7ukp8PQq4JYlL6zBoFj+nDxVKwdB5YLBmKKuw0EJJpK7QSJXIDa1 DRLHZEk/DJYBlTCV1eSp72AqHB4vuYquGYT1NIpY8tKpV4CxfACEX2z 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, 16 Oct 2025 13:20:23 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2315 Signed-off-by: Mathieu Dubois-Briand --- .../src/views/ConsoleView/ConsoleView.tsx | 37 +++++++++++++++--- .../src/views/ConsoleView/YoctoChangeDetails.tsx | 44 +++++++++++++++++----- 2 files changed, 66 insertions(+), 15 deletions(-) diff --git a/yocto_console_view/src/views/ConsoleView/ConsoleView.tsx b/yocto_console_view/src/views/ConsoleView/ConsoleView.tsx index 826ba2aec8bd..dd84c7913cda 100644 --- a/yocto_console_view/src/views/ConsoleView/ConsoleView.tsx +++ b/yocto_console_view/src/views/ConsoleView/ConsoleView.tsx @@ -125,7 +125,7 @@ function resolveFakeChange(revision: string, whenTimestamp: number, comment: str } const newChange = { - change: new Change(undefined as unknown as IDataAccessor, "a/1", { + change: new Change(undefined as unknown as IDataAccessor, { changeid: revision, author: "", branch: "", @@ -135,8 +135,12 @@ function resolveFakeChange(revision: string, whenTimestamp: number, comment: str project: "", properties: {}, repository: "", - revision: revision, - revlink: null, + poky_revision: revision, + oecore_revision: null, + bitbake_revision: null, + poky_revlink: null, + oecore_revlink: null, + bitbake_revlink: null, when_timestamp: whenTimestamp, }), buildsByBuilderId: new Map @@ -156,8 +160,19 @@ function selectChangeForBuild(build: Build, buildset: Buildset, if ((build.properties !== null && ('yp_build_revision' in build.properties)) || (build.buildid in revMapping)) { let revision; let change = undefined; + let oecore_revision = undefined, bitbake_revision = undefined; + let use_bitbake_setup = false; if (build.properties !== null && ('yp_build_revision' in build.properties)) { revision = build.properties['yp_build_revision'][0]; + if ('commit_oecore' in build.properties) { + oecore_revision = build.properties['commit_oecore'][0]; + } + if ('commit_oecore' in build.properties) { + bitbake_revision = build.properties['commit_bitbake'][0]; + } + if ('use_bitbake_setup' in build.properties) { + use_bitbake_setup = build.properties['use_bitbake_setup'][0]; + } } else { revision = revMapping[build.buildid]; } @@ -178,7 +193,19 @@ function selectChangeForBuild(build: Build, buildset: Buildset, if (build.buildid in branchMapping) { change.change.caption = branchMapping[build.buildid]; } - change.change.revlink = "http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=" + revision; + + if (!use_bitbake_setup) { + change.change.poky_revlink = "http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=" + revision; + change.change.poky_revision = revision; + } else { + // We might retrieve the "use_bitbake_setup" after the first execution, so wrong poky data might have been added: remove them. + change.change.poky_revlink = change.change.poky_revision = undefined; + + change.change.oecore_revlink = "https://git.openembedded.org/openembedded-core/commit/?id=" + oecore_revision; + change.change.bitbake_revlink = "https://git.openembedded.org/bitbake/commit/?id=" + bitbake_revision; + change.change.oecore_revision = oecore_revision; + change.change.bitbake_revision = bitbake_revision; + } change.change.errorlink = "http://errors.yoctoproject.org/Errors/Latest/?filter=" + revision + "&type=commit&limit=150"; let bid = build.buildid; @@ -239,7 +266,7 @@ export const ConsoleView = observer(() => { const buildsQuery = useDataApiQuery(() => Build.getAll(accessor, {query: { limit: buildFetchLimit, order: '-started_at', - property: ["yp_build_revision", "yp_build_branch", "reason", "publish_destination"], + property: ["yp_build_revision", "yp_build_branch", "commit_oecore", "commit_bitbake", "reason", "publish_destination", "use_bitbake_setup"], }})); const windowSize = useWindowSize() diff --git a/yocto_console_view/src/views/ConsoleView/YoctoChangeDetails.tsx b/yocto_console_view/src/views/ConsoleView/YoctoChangeDetails.tsx index 37670de255c9..18a74cf17003 100644 --- a/yocto_console_view/src/views/ConsoleView/YoctoChangeDetails.tsx +++ b/yocto_console_view/src/views/ConsoleView/YoctoChangeDetails.tsx @@ -70,16 +70,33 @@ export const YoctoChangeDetails = observer(({change, compact, showDetails, setSh : <> } - - Revision + { change.poky_revlink + ? + poky revision - { - change.revlink - ? {change.revision} - : <> - } + {change.poky_revision} + + + : <> + } + { change.oecore_revlink + ? + openembedded-core revision + + {change.oecore_revision} + : <> + } + { change.bitbake_revlink + ? + bitbake revision + + {change.bitbake_revision} + + + : <> + }
Comment
@@ -117,9 +134,16 @@ export const YoctoChangeDetails = observer(({change, compact, showDetails, setSh overlay={popoverWithText("comments-" + change.id, change.caption)}> { - change.revlink - ? {change.caption} - : {change.caption} + change.poky_revlink + ? {change.caption} (poky) + : change.oecore_revlink + ? {change.caption} (oe-core) + : {change.caption} + } + { + change.bitbake_revlink + ? {change.caption} (bitbake) + : <> } { change.errorlink From patchwork Thu Oct 16 13:20:14 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: 72498 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 39436CCD1A2 for ; Thu, 16 Oct 2025 13:20:23 +0000 (UTC) Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.web11.8313.1760620822016284419 for ; Thu, 16 Oct 2025 06:20:22 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=IMCETQmK; 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 B414E1A1430 for ; Thu, 16 Oct 2025 13:20:20 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 8AE3C6062C for ; Thu, 16 Oct 2025 13:20:20 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9E4C9102F2309; Thu, 16 Oct 2025 15:20:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1760620819; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=a1ReeITivHOL14+hY2qYQDWJUpTEMX8IEQTF5zGwMoI=; b=IMCETQmKkjDKXgn0sSR/JZsEXYsYBD5AUiC1Lb+fDKu7B8S9+nlop6NjyaXdnyR6x43Q6X uaOK/xn0OWoEZuJgtFM8eNlUMoEM6OkJ7i9MbxKCO1c2UJn8JahlqnuIKrFlwaB5okrQHh ZohfxHCgltQue2UafgJ3pxOXRyCytGiCTqGCB1vk7vtv3bV7kiVCemxyMbnXfw/07LyJeU wvUymwy48F6Dhi0vKWAm43kpSVfer4PqiB6qLDBn6QJYdgzgL3vuy1d5Smq0HOzKRkKAXx MRoA4Qm/IrDExPmplkd8DaK4whtacfcxWgbuUmHj7PpQ9dFY/mNChGhBKXHmnw== From: Mathieu Dubois-Briand Date: Thu, 16 Oct 2025 15:20:14 +0200 Subject: [PATCH yocto-autobuilder2 v2 3/6] yocto_console_view: fix error link MIME-Version: 1.0 Message-Id: <20251016-contrib-mathieu-bb-setup-links-v2-3-095908455e0b@bootlin.com> References: <20251016-contrib-mathieu-bb-setup-links-v2-0-095908455e0b@bootlin.com> In-Reply-To: <20251016-contrib-mathieu-bb-setup-links-v2-0-095908455e0b@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Mathieu Dubois-Briand X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1760620815; l=1965; i=mathieu.dubois-briand@bootlin.com; s=20241219; h=from:subject:message-id; bh=3nV2ECtsV3As0UMgR0uiUCbYgTaIe7n5bMmbhOprw1Y=; b=PaLBDy/G+Apv9SCOeCEIgf84bXv0Ro73PKqYSsTxkSaZ1o9FnPVVMTYEiFSb7YzvXqvi08w/i h2eIgL7n5Y7D/b3z7udKZsr0IRq9Hk3tq07YOE6Ew9LFJHBFEhzNq6X 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, 16 Oct 2025 13:20:23 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2316 This might need to be updated once https://errors.yoctoproject.org is fixed for the bitbake-setup switch. Signed-off-by: Mathieu Dubois-Briand --- yocto_console_view/src/views/ConsoleView/ConsoleView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yocto_console_view/src/views/ConsoleView/ConsoleView.tsx b/yocto_console_view/src/views/ConsoleView/ConsoleView.tsx index dd84c7913cda..19b24d1a0427 100644 --- a/yocto_console_view/src/views/ConsoleView/ConsoleView.tsx +++ b/yocto_console_view/src/views/ConsoleView/ConsoleView.tsx @@ -197,6 +197,7 @@ function selectChangeForBuild(build: Build, buildset: Buildset, if (!use_bitbake_setup) { change.change.poky_revlink = "http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=" + revision; change.change.poky_revision = revision; + change.change.errorlink = "http://errors.yoctoproject.org/Errors/Latest/?filter=" + revision + "&type=commit&limit=150"; } else { // We might retrieve the "use_bitbake_setup" after the first execution, so wrong poky data might have been added: remove them. change.change.poky_revlink = change.change.poky_revision = undefined; @@ -205,8 +206,8 @@ function selectChangeForBuild(build: Build, buildset: Buildset, change.change.bitbake_revlink = "https://git.openembedded.org/bitbake/commit/?id=" + bitbake_revision; change.change.oecore_revision = oecore_revision; change.change.bitbake_revision = bitbake_revision; + change.change.errorlink = "http://errors.yoctoproject.org/Errors/Latest/?filter=" + oecore_revision + "&type=commit&limit=150"; } - change.change.errorlink = "http://errors.yoctoproject.org/Errors/Latest/?filter=" + revision + "&type=commit&limit=150"; let bid = build.buildid; if ((buildset !== null) && (buildset.parent_buildid != null)) { From patchwork Thu Oct 16 13:20:15 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: 72499 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 4746DCCD1A1 for ; Thu, 16 Oct 2025 13:20:23 +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.8266.1760620822309945082 for ; Thu, 16 Oct 2025 06:20:22 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=tZE29O7Q; 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 059A91A1431 for ; Thu, 16 Oct 2025 13:20:21 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id D12E66062C for ; Thu, 16 Oct 2025 13:20:20 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 273CD102F230E; Thu, 16 Oct 2025 15:20:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1760620820; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=R7bckIqi9CQZdpLkKhiLnm3FECGNfOi71GvmlakxVMM=; b=tZE29O7QXyKn2a0Zz/Jy6ygw36eCUXBHltl/l2l5qNlQ8D4QQPzcHYefRDoJnr42u83nQo n7lc/HHp7ePwUXSvuO03fxNmKn6EDKxnJzlTVDLzYmykX1SuioEh0A2GMkJ9B57oTx8vQq m2GcJiVWFC2tgl9Eg4qW03ZiqO7EDW4Qjo7L4Vq0UzgPq6CXGhXh1CZdJndKie7AG0aSY+ PymGR5I6qWAcm//L7rnuXzulpvxo/FgrcylJ8ZJzUl/iQutqY/JjfEKltjKe3SvHzRm8yO xbsZhagHkS76myqyvYtf7vnZDArTw/lrs1NaCEFwQRBhlXJUnWNELrH6vUaMZA== From: Mathieu Dubois-Briand Date: Thu, 16 Oct 2025 15:20:15 +0200 Subject: [PATCH yocto-autobuilder2 v2 4/6] builders: Add poky-ci-archive tag in build properties MIME-Version: 1.0 Message-Id: <20251016-contrib-mathieu-bb-setup-links-v2-4-095908455e0b@bootlin.com> References: <20251016-contrib-mathieu-bb-setup-links-v2-0-095908455e0b@bootlin.com> In-Reply-To: <20251016-contrib-mathieu-bb-setup-links-v2-0-095908455e0b@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Mathieu Dubois-Briand X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1760620815; l=4492; i=mathieu.dubois-briand@bootlin.com; s=20241219; h=from:subject:message-id; bh=+Vd4dgGR4yLa2F6fiZ1ahTgIg5FOwAuc+h6ijRCksUk=; b=bNl4NQ8eMQN4kK7BTsVSPKHDDoaf1+C5gMFeMnDVVApAW/cgP478b5YvlDOjLbBVZiCZCBldB 4/fNYLo1FOzBYUsr0+KjPGOC3fVXOGimreVq4vKnF5YR0D5NdP4XfH6 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, 16 Oct 2025 13:20:23 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2317 Signed-off-by: Mathieu Dubois-Briand --- builders.py | 10 +++++++- ...builders-Do-not-create-tags-during-builds.patch | 28 ++++++++++++++++++---- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/builders.py b/builders.py index 15985f258bb9..2fb0bf827b0f 100644 --- a/builders.py +++ b/builders.py @@ -311,6 +311,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]: diff --git a/docker/yocto-autobuilder2_patches/0001-builders-Do-not-create-tags-during-builds.patch b/docker/yocto-autobuilder2_patches/0001-builders-Do-not-create-tags-during-builds.patch index 8e772c8fa7b1..b36f2ea7e83e 100644 --- a/docker/yocto-autobuilder2_patches/0001-builders-Do-not-create-tags-during-builds.patch +++ b/docker/yocto-autobuilder2_patches/0001-builders-Do-not-create-tags-during-builds.patch @@ -1,18 +1,18 @@ -From baef5f6c4c2cf973385392d1e163f8bec2f6cca2 Mon Sep 17 00:00:00 2001 +From b6a31b0c63a7529961ea02c53f43b9edb110f4de Mon Sep 17 00:00:00 2001 From: Mathieu Dubois-Briand Date: Fri, 3 Jan 2025 09:39:06 +0100 Subject: [PATCH 1/2] builders: Do not create tags during builds Signed-off-by: Mathieu Dubois-Briand --- - builders.py | 1 - - 1 file changed, 1 deletion(-) + builders.py | 9 --------- + 1 file changed, 9 deletions(-) diff --git a/builders.py b/builders.py -index 15985f258bb9..a16a857d9211 100644 +index 2fb0bf827b0f..af1cc263fd2e 100644 --- a/builders.py +++ b/builders.py -@@ -307,7 +307,6 @@ def create_parent_builder_factory(buildername, waitname): +@@ -307,16 +307,9 @@ def create_parent_builder_factory(buildername, waitname): util.Interpolate("%(prop:builddir)s/layerinfo.json"), util.Interpolate("{}/%(prop:buildername)s-%(prop:buildnumber)s".format(config.sharedrepodir)), "-p", get_publish_dest, @@ -20,6 +20,24 @@ index 15985f258bb9..a16a857d9211 100644 ], 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)) +@@ -365,8 +358,6 @@ def create_parent_builder_factory(buildername, waitname): + "rc_number": util.Property("rc_number"), + "yp_build_revision": util.Property("yp_build_revision"), + "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]: -- 2.47.3 From patchwork Thu Oct 16 13:20:16 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: 72501 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 3AB95CCD19A for ; Thu, 16 Oct 2025 13:20:33 +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.8267.1760620822972489618 for ; Thu, 16 Oct 2025 06:20:23 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=2QE6KVOn; 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 A791B1A134B for ; Thu, 16 Oct 2025 13:20:21 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 7E2386062C for ; Thu, 16 Oct 2025 13:20:21 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id BB0CB102F22EF; Thu, 16 Oct 2025 15:20:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1760620821; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=iDZZ9vm9QSJxGQnw8qeGrGew933+70cGg95+aP9DR1c=; b=2QE6KVOn1xoOYm04Qe+US7EYFButKoBDEU+SmxnbkJLpFwA1UaP8E3ET7yIiYD/1bQFBKq JZRmp5f/R+1WwC1AM/SFGThtMEiReeZ6nmMP6h9LrnIyklaQy7uv7ywnfalJtXlfaJ+0wA KaRG0lbaE3tE2GA6E6xyFdFPjio93/BmqxRup7Nw/LehiPlZPFgNH/8PB0VCsVxCUEhKXj s+A9fND1w38cKBb/BQTLT/eqeX2UiyCD79iG1ZgeXKSeKUoiEY6EfTpSXMYnmpggMce/Ho xu9MvIvIvbqNmtNTwBTiYb3ASEQygrIti3/crCSfXB82SWzALNAII7z1NbLwpw== From: Mathieu Dubois-Briand Date: Thu, 16 Oct 2025 15:20:16 +0200 Subject: [PATCH yocto-autobuilder2 v2 5/6] builders: provide builder name to getproperties.py MIME-Version: 1.0 Message-Id: <20251016-contrib-mathieu-bb-setup-links-v2-5-095908455e0b@bootlin.com> References: <20251016-contrib-mathieu-bb-setup-links-v2-0-095908455e0b@bootlin.com> In-Reply-To: <20251016-contrib-mathieu-bb-setup-links-v2-0-095908455e0b@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Mathieu Dubois-Briand X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1760620815; l=1771; i=mathieu.dubois-briand@bootlin.com; s=20241219; h=from:subject:message-id; bh=vENro3S1F83SiFmzWvG+oSuGgOCJEV0Iif2tJ4OYLhs=; b=zlFG728L+3Kw+llBKWxQ5bcI29c8lFsdaeficD7x/HNGMrte7ZHzIfXErT+OTisEhPabJgdQJ A/Pgo07aRJNB5WHoWoLSj8QShkAWiTsyzstezfZrrftya4KxBA7zldP 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, 16 Oct 2025 13:20:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2318 Provide the builder name to the getproperties.py script, allowing to extract data about build configuration, such as MACHINE or DISTRO. The script does validate the number of arguments, so we remain compatible with older versions of autobuilder helper that do not use this new one. Signed-off-by: Mathieu Dubois-Briand --- builders.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builders.py b/builders.py index 2fb0bf827b0f..18c119aa7617 100644 --- a/builders.py +++ b/builders.py @@ -137,7 +137,7 @@ def create_builder_factory(): f.addStep(steps.JSONPropertiesDownload(workerdest="build-properties.json")) f.addStep(steps.SetPropertyFromCommand( - command=util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/getproperties.py %(prop:builddir)s/build"), + command=util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/getproperties.py %(prop:builddir)s/build %(prop:buildername)s"), extract_fn=extract_json_props, name='Load build revisions', haltOnFailure=True)) @@ -342,7 +342,7 @@ def create_parent_builder_factory(buildername, waitname): factory.addStep(steps.JSONPropertiesDownload(workerdest="build-properties.json")) factory.addStep(steps.SetPropertyFromCommand( - command=util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/getproperties.py %(prop:builddir)s/build"), + command=util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/getproperties.py %(prop:builddir)s/build %(prop:buildername)s"), extract_fn=extract_json_props, name='Load build revisions', haltOnFailure=True)) From patchwork Thu Oct 16 13:20:17 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: 72502 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 3FE97CCD19F for ; Thu, 16 Oct 2025 13:20:33 +0000 (UTC) Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.web11.8314.1760620823525078914 for ; Thu, 16 Oct 2025 06:20:23 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=KozXUlEm; 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 3B86E1A142E for ; Thu, 16 Oct 2025 13:20:22 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 12D056062C for ; Thu, 16 Oct 2025 13:20:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 60A24102F22FC; Thu, 16 Oct 2025 15:20:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1760620821; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=ciJYUnNVBnwQYblvfgZdfAmVbE5g2VTu+UeliIGysqA=; b=KozXUlEmZ8RGPgJ8LAZGs5OK8tdZlo6mZhCRgk1MS1eRXy4+kyo/fm/8Q372agjaP22bhS 6FzwktoaumDXRvH5GUB4E07kOHJF885oHx/HWJb1GkbmQ8508yRd9x5aEiJdMBSeYUyGQ1 52C7c6/UtMDbjDV7H8Nif92WfYGMX3hMXAf7ZN9h3HAKVdQXoW8Ap4tjIXxrufcG/kwZH2 M17JjNopKQNrb5GWfgXsx51dpQSUix8rMvJPzV4FmKoXOAmGAjyvDx2mvl2sv+3+ULWV+8 LfECBVCOTd/JebEKyzLCjrFP6nETeJ+mADnLzCaJk0VOSmR0Jagstuz/y9HyXw== From: Mathieu Dubois-Briand Date: Thu, 16 Oct 2025 15:20:17 +0200 Subject: [PATCH yocto-autobuilder2 v2 6/6] yocto_console_view: Allow to link commits in alternate repos MIME-Version: 1.0 Message-Id: <20251016-contrib-mathieu-bb-setup-links-v2-6-095908455e0b@bootlin.com> References: <20251016-contrib-mathieu-bb-setup-links-v2-0-095908455e0b@bootlin.com> In-Reply-To: <20251016-contrib-mathieu-bb-setup-links-v2-0-095908455e0b@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Mathieu Dubois-Briand X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1760620815; l=4891; i=mathieu.dubois-briand@bootlin.com; s=20241219; h=from:subject:message-id; bh=3GcO1u4WyYPH1k5Z2LhhphyddsKwJuQxsHhtK5AO4IQ=; b=kqMOKv/KT+rEPsj09OjYfk6anQtCt8U3+llmbL46DvcN5z1dxgFcPBGBWJMJJTI7ktkc3Us+4 SHbQmwC1U9kAAvNilI1y+wLALkJ12NIP+T8uu5EiXU7wnLnMvBfU0rZ 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, 16 Oct 2025 13:20:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2319 Instead of always looking for commits in main repos, use values provided int the "repo_*" build properties. Make sure to use https protocol. Signed-off-by: Mathieu Dubois-Briand --- .../src/views/ConsoleView/ConsoleView.tsx | 38 +++++++++++++++++++--- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/yocto_console_view/src/views/ConsoleView/ConsoleView.tsx b/yocto_console_view/src/views/ConsoleView/ConsoleView.tsx index 19b24d1a0427..16569ea9eac8 100644 --- a/yocto_console_view/src/views/ConsoleView/ConsoleView.tsx +++ b/yocto_console_view/src/views/ConsoleView/ConsoleView.tsx @@ -149,6 +149,22 @@ function resolveFakeChange(revision: string, whenTimestamp: number, comment: str return newChange; } +const gitHostAliases = new Map([ + ["push.yoctoproject.org", "git.yoctoproject.org"], + ["push.openembedded.org", "git.openembedded.org"], +]); + +function getHttpURL(url) +{ + let u = new URL(url.replace(RegExp("^[a-z]*://"), "https://")); + u.username = ""; + if (gitHostAliases.has(u.host)) { + u.host = gitHostAliases.get(u.host) + } + + return u.toString(); +} + // Adjusts changesByFakeId for any new fake changes that are created function selectChangeForBuild(build: Build, buildset: Buildset, changesBySsid: Map, @@ -161,15 +177,25 @@ function selectChangeForBuild(build: Build, buildset: Buildset, let revision; let change = undefined; let oecore_revision = undefined, bitbake_revision = undefined; + let oecore_repo = undefined, bitbake_repo = undefined, poky_repo = undefined; let use_bitbake_setup = false; if (build.properties !== null && ('yp_build_revision' in build.properties)) { revision = build.properties['yp_build_revision'][0]; if ('commit_oecore' in build.properties) { oecore_revision = build.properties['commit_oecore'][0]; } + if ('repo_oecore' in build.properties) { + oecore_repo = build.properties['repo_oecore'][0]; + } if ('commit_oecore' in build.properties) { bitbake_revision = build.properties['commit_bitbake'][0]; } + if ('repo_bitbake' in build.properties) { + bitbake_repo = build.properties['repo_bitbake'][0]; + } + if ('repo_poky' in build.properties) { + poky_repo = build.properties['repo_poky'][0]; + } if ('use_bitbake_setup' in build.properties) { use_bitbake_setup = build.properties['use_bitbake_setup'][0]; } @@ -194,16 +220,20 @@ function selectChangeForBuild(build: Build, buildset: Buildset, change.change.caption = branchMapping[build.buildid]; } + oecore_repo = getHttpURL(oecore_repo); + bitbake_repo = getHttpURL(bitbake_repo); + poky_repo = getHttpURL(poky_repo); + if (!use_bitbake_setup) { - change.change.poky_revlink = "http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=" + revision; + change.change.poky_revlink = poky_repo + "/commit/?id=" + revision; change.change.poky_revision = revision; change.change.errorlink = "http://errors.yoctoproject.org/Errors/Latest/?filter=" + revision + "&type=commit&limit=150"; } else { // We might retrieve the "use_bitbake_setup" after the first execution, so wrong poky data might have been added: remove them. change.change.poky_revlink = change.change.poky_revision = undefined; - change.change.oecore_revlink = "https://git.openembedded.org/openembedded-core/commit/?id=" + oecore_revision; - change.change.bitbake_revlink = "https://git.openembedded.org/bitbake/commit/?id=" + bitbake_revision; + change.change.oecore_revlink = oecore_repo + "/commit/?id=" + oecore_revision; + change.change.bitbake_revlink = bitbake_repo + "/commit/?id=" + bitbake_revision; change.change.oecore_revision = oecore_revision; change.change.bitbake_revision = bitbake_revision; change.change.errorlink = "http://errors.yoctoproject.org/Errors/Latest/?filter=" + oecore_revision + "&type=commit&limit=150"; @@ -267,7 +297,7 @@ export const ConsoleView = observer(() => { const buildsQuery = useDataApiQuery(() => Build.getAll(accessor, {query: { limit: buildFetchLimit, order: '-started_at', - property: ["yp_build_revision", "yp_build_branch", "commit_oecore", "commit_bitbake", "reason", "publish_destination", "use_bitbake_setup"], + property: ["yp_build_revision", "yp_build_branch", "repo_poky", "repo_oecore", "commit_oecore", "repo_bitbake", "commit_bitbake", "reason", "publish_destination", "use_bitbake_setup"], }})); const windowSize = useWindowSize()