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