From patchwork Mon May 25 21:07:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 88723 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 1DAA0CD5BDD for ; Mon, 25 May 2026 21:07:34 +0000 (UTC) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.24444.1779743242342022082 for ; Mon, 25 May 2026 14:07:22 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=G25AP0sT; spf=pass (domain: smile.fr, ip: 209.85.128.46, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-49050ff7cbdso22916245e9.2 for ; Mon, 25 May 2026 14:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1779743241; x=1780348041; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=v5EdP5fGGh32LgDq3A5/fiBWQqCb38OLKIRctcj7hTQ=; b=G25AP0sT51TfOzIEldKXgpLek8FCGC1SuGPq2HwPch2emZMhlfxuxVAaEF6IRfJx5g UYpPY9ZpWKR+dTLglFY9C1HMf9EvgFX8sNyHNkKOOX1UMrCYMEanTLiN2y8jGj8O2W+s UrvArRW398qUkuaVo7pZDLRykDMNupsFLZDFY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779743241; x=1780348041; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=v5EdP5fGGh32LgDq3A5/fiBWQqCb38OLKIRctcj7hTQ=; b=p/YAiN4R2jxJaqdYaM6hV+nYn+Z6FxMBkFtb7zicoO31nr+unqttv0OhK/WYFZtJWO 2Rz3PMU8+IGUYOqe3bWcyiYe+xS3goiYmSdOUEb6F0X1rGZt9ESdw+AvxQQ6clHxHxTG bNYa4odjXWSUaFbPFsdFLSQzU696TqYKqLg3Lu9GsYel9E5tjr4/MVDogM/Slkoctqh3 cP2iKd5lD3A/dkzsLqri1WYYaNc7cqWb7cXUcokwaoZE9bi5Y9aqsG8n1U6yAODGChN9 jEdzRv/sQt6D8yB0rI3FLdUlu4fAY+nXCORVjbUHKLG200s6SxCkEtnpOxUClZflKKPC VzMA== X-Gm-Message-State: AOJu0YxRLMmcQ9Jm3QI+r8a5kqNBhILKn7y/QRsoTwQ5d1xhSzcx1ta4 LI9Mz0YLPE3nkJx8gnlxjFd9GgBge3nRno40rMTZUe0073gbeOIeBw6udiYo3/W+E9WtSTCFg/l k8DJv X-Gm-Gg: Acq92OGpTMq6m8F0M50Ws7JeTMHqKlg1g+h5GXWGOyjn1PfkosGO2YU9NIGkJi5qiGd +cA+JYAhx1vKLF0CIBJwtZKz9xFbyzpM6YP5J017bf9Gekfhipi6vJPJSCvojHRNG9bpCh9OTbH 7b2vwZz/Jjp33fvpDTJw71e/Vx/Bmq9Lbotv9xGvd+oXcUEkzpefHL/LyDmHMmCMdAgcJyHsV0j yJgj4jLS6EeL//+ktSQBTVVsYI1uYd6KfR6UmPYQNalfEcTGnRkC2nWIYoA1z6DDm2t1iuHtxe0 A6P/MDSHuTmeD6O978FvZ0EHSRFBKqtDRBMCuRslPLOYr7XZ13D3+LmOMS5i6PbBK0AMtiB5rzW S1G+C5B32vR2VEdH4heZPpzpiy6GWlGuwWnAaCLzwRkm85jYGvM5HFlCqeSQMOUWr0pntnXXeyE wDXBX0mKQvvE3h8XCGKDnM8dLjXBYfpIcESn76dXu0S6xtZbtPasvXKF+4oL8Xwe/EoEFkWl/04 Q/weXsS6iWeixrJEJatCtoZ+eQ= X-Received: by 2002:a05:600c:3b1f:b0:490:688b:ee96 with SMTP id 5b1f17b1804b1-490688beeb3mr64865515e9.21.1779743240717; Mon, 25 May 2026 14:07:20 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490454ac6a6sm282941535e9.12.2026.05.25.14.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2026 14:07:20 -0700 (PDT) From: Yoann Congal To: Yocto Patches ML Cc: Yoann Congal Subject: [yocto-autobuilder2][PATCH 1/4] docker: Switch RO git URL from git:// to https:// Date: Mon, 25 May 2026 23:07:05 +0200 Message-ID: <20260525210708.2918572-1-yoann.congal@smile.fr> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 25 May 2026 21:07:34 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/4049 From: Yoann Congal git:// are deprecated (and currently don't work) Signed-off-by: Yoann Congal --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 3d6be54..0a2777e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -108,8 +108,8 @@ RUN sed -i \ -e "s/^\(workers *=.*\).*/\1 + [f\"local-worker-extra-{i}\" for i in range(1, 9)]/" \ # Remove workers_bringup from all_workers \ -e "/^all_workers *=/s/workers_bringup + //" \ - # Switch from ssh:// URLS to git:// so we do not need any auth \ - -e "s#ssh://git@push\.\(yoctoproject.org\|openembedded.org\)/#git://git.\1/#" \ + # Switch from ssh:// URLS to https:// so we do not need any auth \ + -e "s#ssh://git@push\.\(yoctoproject.org\|openembedded.org\)/#https://git.\1/#" \ # Use any worker for any release \ -e '$ a workers_prev_releases = {}' \ /home/pokybuild/yocto-controller/yoctoabb/config.py && \ From patchwork Mon May 25 21:07:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 88724 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 F1D9FCD5BCF for ; Mon, 25 May 2026 21:07:33 +0000 (UTC) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.24569.1779743243110607476 for ; Mon, 25 May 2026 14:07:23 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=MK/7o5kS; spf=pass (domain: smile.fr, ip: 209.85.128.50, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-49042aeeb75so47570875e9.1 for ; Mon, 25 May 2026 14:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1779743241; x=1780348041; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ug2EvHvpULhrEOL1Peb4P98yB4QDmurLgKKvgQozSlw=; b=MK/7o5kS6E7jEX+e4Djj/+FUm0XhnWUlzwjgjsNvOFZvjJnjwBJtAZ0VmEhaPmpWK5 Xz9DyMoJ7AquOjAdEzMFv/Poz8x0B1Gjp2c+FlA2+lztZt18lVlzvpGb1V75Qank01+Q 3K6hi/+wlUvhqmZp3ExemyiR8FxSzOZg/RX7w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779743241; x=1780348041; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Ug2EvHvpULhrEOL1Peb4P98yB4QDmurLgKKvgQozSlw=; b=ibIlqSMAyJ4iaF2U1d95SEfdzK+QRuzlUVfZS2EtdmuliPBw8hdQJGszsjrCKpueHI enURtT5Lt4fZxmSJVfDXA8M3kvMsisdeX3iPRcWgC3B4PVjiJvXOwzyJq8MPnyZ4wV1P CzMLsH57jEKTjzvEa//SmSKtwQb3rtTv4z4X5Fn5SRsOvCs9ywX+eca+mW7bdf/kQKsv 46V/RO9q8NcIMCt2hf6RKPE12LJtFKjvKrfNjrQuWudkOCAcV6QGPRV10NAw7FmjUbNx Ue3fBENzPegW3chdUe0KRnkvBNED2F5gt81T1RKsjNqJQVa+to1QbYEM0WZgC6Orr2Sj YVwQ== X-Gm-Message-State: AOJu0YzDDhIAwRL39gLjSLfsLhXqa/+EH+qZMEmuvsdQjzGaaxuTBl1s 7lKaMMp2DZlivtmzRNZK8fCPTWfS0a2W0spj8atueIfcSJKdSUK+YU34LpgPqjr0+mmonf7giTQ Qzojg X-Gm-Gg: Acq92OEfP/UygiydAiLvjyPhupzRPPgWJM1E2qww9W1bbLkd1IjLmnlrBcSoxrmliy4 UQEWEckpxBDMuOtCTBOpgOLO5YSOCxuNHVfzecpcW+Xj+YTdSAb1sAGm8YNNEdZGuZO0W4mugfF i0xe5w1gw/iAH1x6EI9Zf6h3TyYAkcrieLjVyzNHa7TMR3dhp55cCKrkmoCF3jpPjbQm8JIRPxu KMSukTFiHiDbsAnUbUq2RDSjK56GYjWnI0BCpw+UGHznq/nmxDqs4KpwPnTF4sgbC1DFbiZuIRo SEhZDSHnFBMm2QAlVxhSjlzAxQt+jgkkOLOpW4wVcx6JSxWHIQkhdAGvEOti3/vhBAKiu26VVBs p2W4/P2zQXqQPyU/pp/uAqTv75rewuinNAhxJe6iYNtKf4L5qHfVyxlolUrNK8K/Qtd9zTqmsi7 KWgI3A4O/Wq531lHGBsjvJSE7tVlb5Xv2PmpcV/nk8NzfgKCVd5TjVjc4tuScSxG355gDJPYegd 2WNwJEJ+Ez5AXO4CGqQx4VM5DM= X-Received: by 2002:a05:600c:3e88:b0:490:4ee0:82ff with SMTP id 5b1f17b1804b1-4904ee086a2mr189505495e9.27.1779743241412; Mon, 25 May 2026 14:07:21 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490454ac6a6sm282941535e9.12.2026.05.25.14.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2026 14:07:20 -0700 (PDT) From: Yoann Congal To: Yocto Patches ML Cc: Yoann Congal Subject: [yocto-autobuilder2][PATCH 2/4] docker: add needed rsync dependency Date: Mon, 25 May 2026 23:07:06 +0200 Message-ID: <20260525210708.2918572-2-yoann.congal@smile.fr> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260525210708.2918572-1-yoann.congal@smile.fr> References: <20260525210708.2918572-1-yoann.congal@smile.fr> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 25 May 2026 21:07:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/4050 From: Yoann Congal The "Prepare shared repositories" step needs rsync. Signed-off-by: Yoann Congal --- docker/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 0a2777e..793343a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -33,6 +33,7 @@ RUN apt update && \ python3-pexpect \ python3-pip \ python3-subunit \ + rsync \ socat \ sudo \ texinfo \ From patchwork Mon May 25 21:07:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 88721 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 869CBCD5BC9 for ; Mon, 25 May 2026 21:07:33 +0000 (UTC) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.24570.1779743243766144531 for ; Mon, 25 May 2026 14:07:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=mkJCQuhs; spf=pass (domain: smile.fr, ip: 209.85.128.43, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4903997fcb5so42730385e9.2 for ; Mon, 25 May 2026 14:07:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1779743242; x=1780348042; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CiZzNiD9+Ethd+zKbI78t1JCRKiOYKlqiY6ctFDjwb8=; b=mkJCQuhs+dBNoycMrpnUGEKU1Fcfo95IXLjAlwTxwEZY5JruG+2exSU76r/jy5HgWP LkKt1CaVGIFsmU0/qKG4b5ufAeY2suDLpPKifYrXyUbeDet5swaGr6LdStrPIuzOM3bp 3koux7jcqcJ8sjl6OVTs+IQGg8Gmhfzbnw2Fo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779743242; x=1780348042; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=CiZzNiD9+Ethd+zKbI78t1JCRKiOYKlqiY6ctFDjwb8=; b=nUVuOc8EcoocamZF79F4wI3rj79wNQyE862Db+h+Jca6XTFBRrdUB5Jd7mNA/+16m6 IQpkquXnf7dOg52nccNWdiMxJPHV8KSYVKY/RYmZAKh4iaaWQzj2dyVaxDPT1eAeAh2V DusntvB7VnP9Wkv9Ylx4iuFP3TxS+6w7mulnQICZQYuzQUzLQK+LOUEfNnd/DW19ybDU Q2zhXsX/rUNiK+BnWhQrDHM0nffF/LIukBCB5+KW935UnNyPcwq6lB1NY//KJf5Reqw8 t8EDq0O4C4hcKiyTZ8cCDzcfVPg1LanQjqlP5loPH52u9tTTE2gODWN00CbpNb/iachd mUUw== X-Gm-Message-State: AOJu0YwSMCSXL1DGjAlwDnbpuJLLCRqmTWKJtS6adCDGDF6vdCQvElis FDCPRwuIDRDsRFG5dAcLEpRuBYnBcUb4r6zgt15YQKa4+2l3d6c7w0zLcYi8c9DUYCOiIEc1vnT Q5Xoe X-Gm-Gg: Acq92OFQuY5uK2WP64avdVE8SK3aC8kfCPPwxjps2SvFovhLL4J08h0gyK3owLIo32M kb+Wq/v0UzI7qsi0M8jP3cFaFLFemYus1IXL/n/SqyqapyoAZF0SF8UG10V/NKLp38hWzryn11r UUUv0Pt25BRfIkOij7Se70CALNWMP1SfedqXWaoqABrWY2047KSLUdZvymAHhS+knosoaKFOuXZ i1fKsMy/0/JC/IJWZat/7oKjjUKj/mkIlgo0sJW87vrzN2cFRY25gD334De7iia1ATH1vi4KeWJ HrMM8SPlAeN3wr849Qsr60H67sW+t+dtQtxX9Xmobvqeo3hzG7fzZKq3tIg7pPiJX1MY6Su9mF6 +UXyihdk/9fPHYpurr9brMZw95gpDhdkALSxmunOODy901y81EN9uGZq6J9f2XRHUw/irBvvrWx +LjghNLn+LeHAng4lUtQE02UkH5RsbHu/UbC+ulzSyeiaGO9TwzhiaSdhUNJF8P8nd4pXuETrCw bbduk5h07PAqdJL6dOo8rA8rlBwiSTpEww9qw== X-Received: by 2002:a05:600c:4583:b0:489:1b10:d896 with SMTP id 5b1f17b1804b1-49042252732mr259670945e9.0.1779743241992; Mon, 25 May 2026 14:07:21 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490454ac6a6sm282941535e9.12.2026.05.25.14.07.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2026 14:07:21 -0700 (PDT) From: Yoann Congal To: Yocto Patches ML Cc: Yoann Congal Subject: [yocto-autobuilder2][PATCH 3/4] steps/runconfig: Refactor log helper to module-level add_to_log Date: Mon, 25 May 2026 23:07:07 +0200 Message-ID: <20260525210708.2918572-3-yoann.congal@smile.fr> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260525210708.2918572-1-yoann.congal@smile.fr> References: <20260525210708.2918572-1-yoann.congal@smile.fr> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 25 May 2026 21:07:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/4051 From: Yoann Congal This will allow to call add_to_log elsewhere in a later commit. Signed-off-by: Yoann Congal --- steps/runconfig.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/steps/runconfig.py b/steps/runconfig.py index a6d0dbd..18cdd7a 100644 --- a/steps/runconfig.py +++ b/steps/runconfig.py @@ -154,6 +154,14 @@ def get_runconfig_step(name, stepname, phase, description, usepty, posttrigger): timeout=16200) # default of 1200s/20min is too short, use 4.5hrs return step +@defer.inlineCallbacks +def add_to_log(step, logName, message): + try: + log = step.getLog(logName) + except KeyError: + log = yield step.addLog(logName) + log.addStdout(message) + class RunConfigCheckSteps(shell.ShellCommand): name = 'Check run-config steps to use' descriptionDone = ['Checked which run-config approach to use'] @@ -192,7 +200,7 @@ class RunConfigCheckSteps(shell.ShellCommand): try: jsonconfig = json.loads(logLines) except Exception as ex: - self._addToLog('stderr', 'ERROR: unable to parse data, exception {}: {}'.format(ex.__class__, ex)) + add_to_log(self, 'stderr', 'ERROR: unable to parse data, exception {}: {}'.format(ex.__class__, ex)) if rc == FAILURE or not jsonconfig: steps = [get_runconfig_legacy_step(self.posttrigger)] @@ -209,14 +217,6 @@ class RunConfigCheckSteps(shell.ShellCommand): self.build.addStepsAfterCurrentStep(steps) return SUCCESS - @defer.inlineCallbacks - def _addToLog(self, logName, message): - try: - log = self.getLog(logName) - except KeyError: - log = yield self.addLog(logName) - log.addStdout(message) - class TargetPresent(shell.ShellCommand): name = "Check if branch needs this target" command=[util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/target-present"), util.Property("buildername")] From patchwork Mon May 25 21:07:08 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 88722 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 45252CD5BB1 for ; Mon, 25 May 2026 21:07:33 +0000 (UTC) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.24445.1779743244000985110 for ; Mon, 25 May 2026 14:07:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=Y0NeUucS; spf=pass (domain: smile.fr, ip: 209.85.128.46, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-490686877a1so8611095e9.0 for ; Mon, 25 May 2026 14:07:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1779743242; x=1780348042; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Be6QxQhCpJJa+3P7Ok1ja9+b9aIMC/oo8aC/iGd/dnk=; b=Y0NeUucSHWv5+oNZ+1yKH77E0ZOdZFZsTSsmArS9oXkSz7Q8LKkHHgJ77BhCGwVvcU lipXlMf9J/t/h2mDqWJXhLJjglXql6FCySEQLNcnFHMDHhh0IRHAgpvBMUHiZCBljBv/ 9JDzQ+Hr64YLaa0VSDsSrGKSgaRbIKO8T/4lU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779743242; x=1780348042; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Be6QxQhCpJJa+3P7Ok1ja9+b9aIMC/oo8aC/iGd/dnk=; b=S1gWcnGwBNzNNePWOSo15wYWzZyLufPSXYiwHx6xilZVNWQs2iqDBQBPdgpMHGU0M0 wMMvOtkSP6dswsH/sQRzGlmmfBmezNG/mYxa4AVPv8COya3SSIlQe1YfD3nYbDjHi7z3 J+kRCRKE2YBpS7Cl3VfbgCJd72SAEcf4JwVb5IGy5mDBm+vm9E4xOSkN5aN1te7fh5Ra Qzn8mMtwq/auFFXv+dfUgaHYIM4mUdMDcOSoTr+wjU62U83rXpada+Rwh8iVFfaDhoso CXtw6W65qDLYrOGrLVa4bLOmYPD8En4YMoTo4GgQm4M55NM0lUzu73u+fQLxrPgAWjnS 3B/Q== X-Gm-Message-State: AOJu0YzkchuRJ8SZ83vu7LGyvcEXROgLj0NV/Satp2AlVRaClWGex1Om J5uTvqAmHJaC1qczTJ4I6K5jvObKdj50dg42/MWChbaygURTsFGh0b17tWIyBB6zkKXQMDxcmWn b5Seq X-Gm-Gg: Acq92OFIywVYzY9OLUt+3Tyo/i7nTcSg6zcPH3kpQGSe8Y9i3EjHoffNtJ5SrJ7QSgo HPLoML+AfrGHgncqrIGo1qUZLmyu9CL+wASl9Ct/UL6Psrcuwj2tiJwL5N+GfwEDKbLJ04BXFCm Jvr0qeBnqjPmJUHVVjb5e7IO550/lalfNB0G7GDckbLir0va/7L6fPHZcukYsQ//vhsX8dwK3Tw fRXusm0r1ajA9wBkgSQo/x8l8vReZcKgpezPeMBu7zttt20b4KN6cCB8m/NuOBhGEbdPzyoeoTg c9xPCWBhuZ8+UmI2FQeUgaMxoo+PDvBqRfPYzaxQBJl/RkqJ8jIqMrSdnHqKpHvNbUCRYOWEwPO XwI/45GkZfDtXgEKqLCY0KJJ1mtC0dHXlW5YD+GvrB3D0XKXjBoNbZ/UlUW7daao/h8jhJpwqRp QSzjXqcqV0T8ICSThHG8/17NITTp9FwaVf7IeXxAwReHXbmw/fthprlYWAVN0QD7rhKjm5JQjmg znmhskEXB70c/HI/Szay9p8FXKz5Akz4KV4rw== X-Received: by 2002:a05:600c:3b07:b0:490:f7c:b19 with SMTP id 5b1f17b1804b1-490420f67f5mr208593835e9.0.1779743242469; Mon, 25 May 2026 14:07:22 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490454ac6a6sm282941535e9.12.2026.05.25.14.07.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2026 14:07:22 -0700 (PDT) From: Yoann Congal To: Yocto Patches ML Cc: Yoann Congal Subject: [yocto-autobuilder2][PATCH 4/4] builders/runconfig: Terminate release builds if output directory already exists Date: Mon, 25 May 2026 23:07:08 +0200 Message-ID: <20260525210708.2918572-4-yoann.congal@smile.fr> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260525210708.2918572-1-yoann.congal@smile.fr> References: <20260525210708.2918572-1-yoann.congal@smile.fr> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 25 May 2026 21:07:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/4052 From: Yoann Congal Add a new step "CheckReleaseDir" that, on release builds, check if the release artefact directory already exist, if it does, terminate the build before corrupting it. Fixes [YOCTO #15937] Signed-off-by: Yoann Congal --- builders.py | 3 ++- steps/runconfig.py | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/builders.py b/builders.py index 721adc5..40873a7 100644 --- a/builders.py +++ b/builders.py @@ -7,7 +7,7 @@ from buildbot.plugins import * from yoctoabb import config from yoctoabb.steps.writelayerinfo import WriteLayerInfo from yoctoabb.steps.writebbsetupjson import WriteBBSetupJson -from yoctoabb.steps.runconfig import get_publish_dest, get_publish_resultdir, get_publish_name, RunConfigCheckSteps, TargetPresent +from yoctoabb.steps.runconfig import get_publish_dest, get_publish_resultdir, get_publish_name, RunConfigCheckSteps, TargetPresent, CheckReleaseDir from buildbot.process.results import Results, SUCCESS, FAILURE, CANCELLED, WARNINGS, SKIPPED, EXCEPTION, RETRY from buildbot.process.remotecommand import RemoteCommand from buildbot.data import resultspec @@ -317,6 +317,7 @@ def create_parent_builder_factory(buildername, waitname): mode='incremental', haltOnFailure=True, name='Fetch yocto-autobuilder-helper')) + factory.addStep(CheckReleaseDir(haltOnFailure=True)) factory.addStep(WriteLayerInfo(name='Write main layerinfo.json', haltOnFailure=True)) factory.addStep(WriteBBSetupJson(name='Write bbsetup-overrides.json', haltOnFailure=True)) factory.addStep(steps.ShellCommand( diff --git a/steps/runconfig.py b/steps/runconfig.py index 18cdd7a..d52c7cd 100644 --- a/steps/runconfig.py +++ b/steps/runconfig.py @@ -237,3 +237,24 @@ class TargetPresent(shell.ShellCommand): cmd = yield self.makeRemoteShellCommand() yield self.runCommand(cmd) return self.evaluateCommand(cmd) + +class CheckReleaseDir(buildstep.BuildStep): + name = "Check if release directory already exists" + description = ["checking release directory"] + descriptionDone = ["checked release directory"] + + def __init__(self, **kwargs): + buildstep.BuildStep.__init__(self, **kwargs) + + @defer.inlineCallbacks + def run(self): + is_release = self.getProperty("is_release", False) + deploy_artefacts = self.getProperty("deploy_artefacts", False) + if is_release and deploy_artefacts: + dest = get_publish_internal(self.build.properties) + if dest and os.path.exists(dest): + self.descriptionDone = [f"Release directory {dest} already exists!"] + yield add_to_log(self, "error", f"Release directory already exists: {dest}\n") + return FAILURE + return SUCCESS +