From patchwork Sun Jan 4 00:46:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Geelen X-Patchwork-Id: 77965 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 D7DB0C2A065 for ; Sun, 4 Jan 2026 00:47:59 +0000 (UTC) Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.35361.1767487673327006990 for ; Sat, 03 Jan 2026 16:47:53 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fRto67KY; spf=pass (domain: gmail.com, ip: 209.85.208.54, mailfrom: t.f.g.geelen@gmail.com) Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-64baaa754c6so14585341a12.3 for ; Sat, 03 Jan 2026 16:47:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767487671; x=1768092471; 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=UMwOOcTi1gj+bzu0d3zD/WLvzIgwm0QQ3WbkoDDZe6I=; b=fRto67KY21fK8MOWOBAlurZEQ2qDRb86d4WSlJZwR+l42Z/MT7sC6GtFrLiMzuMJ/n v9qircNNezfZq0NrG+z6fZEUmR81dtw0TGxPsSFhXLzoQINjO0hZg0a1PgEtGBsd1rBa cCFCPUOZxEVl6QDn+x4VWvzfVQ0fBfjjOL40oFaiAtD/K0CDUmi5URIC7JI4bToX83yM 6mxRyiwkyLcIBfZXaSfCgFHSJBoqcC1M2Gljt/KBBjJkfwuhUtoLoQGu4K9fkBQLOBZS pt7uq3hX5PBv/21EsgEOImJCItbdA5nChXPsB6X5lgKxVWJfPFRy0UbpEYnAFg5JMVMu MWxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767487671; x=1768092471; 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=UMwOOcTi1gj+bzu0d3zD/WLvzIgwm0QQ3WbkoDDZe6I=; b=Or6ZPJj+mDhYSiw9PiFEekMv+r5co3uq7c9YGMHDYL0ogcGvwObEKbwCtnk98aRK7U JDzZW4G+aN7SDGOIQ1RJb7jucUlWum7zS+XHJzxow/kwI7qUGo7qHhhXZTKpGBPq4fHk m0WnTA2eLKpGHXXxDnGIRYMx8LJVsV9VcQY170yX0JdCwdZLdV1ZdIHHayLxBX1ne/8S BXc36A36g0XhNK9DahbZocVHKCDWe95ElPnjKzLnvllu6SYEd4UQBMR1Yod8HovE1U2H E0WmLpbJDg1N2yd6xBtcidQGuNQmuw1DhgKn4MVeDuXlcRwHSZ/6pv3klDdoGpRz357a 65Vg== X-Gm-Message-State: AOJu0YwxnYXBq/2hjNqFVM3Ew7mnNFnv8G9IJqZDH7l2H476sJ0aOjV6 UeE7frSPLBJWfzfWbrn+R3lrhwcvfNhduWgu2HAcAMTZq/r2WFu76GeTKmzS7cQP X-Gm-Gg: AY/fxX5qJfuYkIwFyXOnpZcAPnhPjpAy28G1j9BMpAstYssDPXS1dATDKN1GEJVz9Gv 4DDkAe+hRyZTYReNgXepeoOpPSosjn8AGlRl9SmIZ6Lr9TifrYns+fEX6bD8rVcZNYlEn3V+KK9 xvxj4XkMbb4I5QJDxrde+PBrmWj/VOKbs5tzgl/ih+Xqg7p43dVOhOsI7LRuqvB6lBWIIEWHsgv L7MpNuMbWC9FvD613BynKmzHRzV9xIwd5L2RGHa8JrP9Bj9aVgRop4AVmnWHHmA0jlzMIcFs+c+ E+a2bFNA2ym3eD5mNPXGCPXLkWHBp/LiGaNZFzQw1d49FflGsRTaquyWM45og5tE87BXgMVInhO TtbeGWQTQC4JJuwMcC+yRrNuy1MnNPdCstohvpcPooD8BUigcLBRg/vAOUdBw5MnRVn4PRVJoYQ Tdx43LICNREhNSmFFzzV6I2++2mZOaswf6jDIKoc/o5uHjyQu1cXANEnf2hvmzqYan X-Google-Smtp-Source: AGHT+IEGv2ObHzAv7xSv/d1ERGcoYnGt1iPR6pMdQfvwDXYvYj3oYotMb4FY9YDfKoCSl3ufVTXeuA== X-Received: by 2002:a17:906:9fd2:b0:b73:42df:27a with SMTP id a640c23a62f3a-b8036f2fa8fmr4264786366b.1.1767487670800; Sat, 03 Jan 2026 16:47:50 -0800 (PST) Received: from control-center.fritz.box (150-12-20-31.ftth.glasoperator.nl. [31.20.12.150]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8037a5bdfesm5104839066b.10.2026.01.03.16.47.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jan 2026 16:47:50 -0800 (PST) From: Tom Geelen To: yocto-patches@lists.yoctoproject.org Cc: Alex Kanavin , Tom Geelen Subject: [auh][PATCH 1/5] README: fix version numbering. Date: Sun, 4 Jan 2026 01:46:57 +0100 Message-ID: <20260104004708.2494403-2-t.f.g.geelen@gmail.com> X-Mailer: git-send-email 2.43.0 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 ; Sun, 04 Jan 2026 00:47:59 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2889 The README had incorrect step numbering. --- README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index 3d0c3fa..f94c733 100644 --- a/README +++ b/README @@ -38,7 +38,7 @@ WARNING: if you are using the default maintainers.inc file supplied emails to the default maintainers. Please be careful not to do this :) -4. If you want to enable buildhistory (optional) you need to enable it in +3. If you want to enable buildhistory (optional) you need to enable it in upgrade-helper.conf, and also add the following lines to your conf/local.conf file: @@ -52,7 +52,7 @@ $BUILDDIR/upgrade-helper/work/recipe/buildhistory-diff.txt. (Do not remove any other inherited class in the process). -5. If you want to enable testimage (optional) you need to enable in +4. If you want to enable testimage (optional) you need to enable in upgrade-helper.conf also add the following lines to your conf/local.conf file: From patchwork Sun Jan 4 00:46:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Geelen X-Patchwork-Id: 77966 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 B75EDC2A066 for ; Sun, 4 Jan 2026 00:48:29 +0000 (UTC) Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.35368.1767487702791552132 for ; Sat, 03 Jan 2026 16:48:23 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=N/O9dXE+; spf=pass (domain: gmail.com, ip: 209.85.208.48, mailfrom: t.f.g.geelen@gmail.com) Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-64b9b0b4d5dso22498681a12.1 for ; Sat, 03 Jan 2026 16:48:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767487701; x=1768092501; 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=4AvTX07hziodeXBFZsffkGokPkWV7pV4VfLMk+TdqRs=; b=N/O9dXE+5EpGg0D79GLjk3XFWGjKPlhO+BYYFOEZWo+Y0guuDlKC2HrDFQE1Zw4LNa HAjZnjK/MDd+qH8f/JwaRmYmjSN/h2JCVTUpVlqvDdw4qGR+iWMPmqtnUrNFk6euIGc0 cm51vdXF4YZiS28T4bLLhlXyN/kMyO/Nnfg5RRo7qBnEUyySdZI6VyTb23CTUDxYWEQZ XaBzVYxb4cv+u6kgG4KkIqXDDysz5rNuIQCRcvRgAYX0keFfk1a574hFV879oL/05+Lw Gt0F9FP8r4ZS0TxKuThKVCggMG3Lbi+8C6PEK23Z0iTb0jHSVe6Zsw6+bJycsGS5Yd4C eUdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767487701; x=1768092501; 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=4AvTX07hziodeXBFZsffkGokPkWV7pV4VfLMk+TdqRs=; b=lmrLOY494Dzsa2IiLKsK8JpUnyLrpj8Icm+aM5Q24IyF9sQe76/xVJEZ8QfKmgMY/7 i8hvc0q9h4BBt9G6A+I2OorGvlDjyyXLil0Zeb0RtEXAD7PoR02nfMDvldpA2rnc9ITL csB2k5QoAzEvvZNjVo7QAvsAWzGjp5ZbdvR3SLQ916uBxbtpaJ4KzGAD9o3RO+VwZKAs bG4cNRsj18o9dAbELhFYKbnOShWkL49XjihrEDNYJaMVl+6vtxln80VZokCzrIi5ecx1 smMH2HdWdP6r39peFl+/HHJ6aboEJWFRmq9LOHHJEq7UZuPmJdwjqqt8XREAgZLv9suR /vyg== X-Gm-Message-State: AOJu0Yz32ViClxOk4CzEvaGXIeUabBIxozquF0gXXTTLIIKFGvL5Puy3 9i8m4ewUK6A/vZb8A0ajHLd0tVC6J4XpKCb5vay3fJp+qmN0GlFSKhTmkJoEvEqu X-Gm-Gg: AY/fxX55wLMY1Zzim8r6kIL2yKIW+zeXGxQTpVhU7nJZZO4MHC7K8iJ1gslAr03x2yd qppPmcXmtz8KGhL+TWoDCKCALs2CXFdArHNs9xMlbQNP5omkKEZSmqoWTUYgzXy4lb2UINNGAEE b/G1+8Kw1b9Iihqzh+SsO1+fbmWfoqLxPLytK3ofxKemtxNWSjZLZ5wU4z4nFQdMxa3v6fSGmeo OHZzFK0YTRKbDQl0s+M+3wtcmeyTj9y/ke7P+qVUSVZKLWRNCGJbUBMdON7qZHHHaJdK5trUUHv hTxazcVT0Lvf/SuehcKTSiYpLoAqTq+jBYFDQiYp4lIiXA71gyK6jqTtiRDGMhgL7NON3HzcvSt bZxC7cC2tmgdiixlIx43yzjzWKL9NeNYy0IRiGkHCbEeWPZR1bXYkmEerp/XVTiE+KoaAvFAejb fmRO3ctKPszQtlYfbJeMhIoLXLK6wF1adCXok2+HetbAlnFEYuF7N3XCyZUfAZHtbU X-Google-Smtp-Source: AGHT+IGyOLeGOdMX0gQmJe8FT82g/NakVX/whuXQMAOgdRIWtmHt/ZqqcvRqFbl3KxerfkC4L/R+Nw== X-Received: by 2002:a17:907:3f28:b0:b7a:1bde:a01d with SMTP id a640c23a62f3a-b8037228e19mr4541831966b.65.1767487700648; Sat, 03 Jan 2026 16:48:20 -0800 (PST) Received: from control-center.fritz.box (150-12-20-31.ftth.glasoperator.nl. [31.20.12.150]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8037a5bdfesm5104839066b.10.2026.01.03.16.48.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jan 2026 16:48:20 -0800 (PST) From: Tom Geelen To: yocto-patches@lists.yoctoproject.org Cc: Alex Kanavin , Tom Geelen Subject: [auh][PATCH 2/5] Fix identation error Date: Sun, 4 Jan 2026 01:46:59 +0100 Message-ID: <20260104004708.2494403-4-t.f.g.geelen@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260104004708.2494403-2-t.f.g.geelen@gmail.com> References: <20260104004708.2494403-2-t.f.g.geelen@gmail.com> 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 ; Sun, 04 Jan 2026 00:48:29 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2890 This module was not working correctly due to a mis-indentation of the __str__ method. --- modules/errors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/errors.py b/modules/errors.py index 48e8b70..7adb103 100644 --- a/modules/errors.py +++ b/modules/errors.py @@ -109,5 +109,5 @@ class IntegrationError(Error): % pkg_ctx['PN'], stdout) self.pkg_ctx = pkg_ctx - def __str__(self): - return "Failed(integrate)" + def __str__(self): + return "Failed(integrate)" From patchwork Sun Jan 4 00:47:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Geelen X-Patchwork-Id: 77967 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 D54C4C2A067 for ; Sun, 4 Jan 2026 00:48:59 +0000 (UTC) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.35343.1767487732619081622 for ; Sat, 03 Jan 2026 16:48:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=huKgpgiZ; spf=pass (domain: gmail.com, ip: 209.85.218.54, mailfrom: t.f.g.geelen@gmail.com) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-b7a02592efaso1953418766b.1 for ; Sat, 03 Jan 2026 16:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767487731; x=1768092531; 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=UIymGo77VyU0wrlUUtE/9RzfW+ZnKXDb2PwkR3ek+SA=; b=huKgpgiZcj47p13BsnfzUAVKpJTovogc1yFCjR0vRm8Yx0H7i8KhTcLUU2vnC7dPhz 7n7KomFNe+vSAL84NAEJvuN72O81rq4SeSokZ/U7M6I0VsCFwT0LCdz00HUZEQWR3E1I flqAMSbm1p6IbGwyFILlcvM84ZGYHrGzYU7nmHYf8hb6E+vTgzvmJN+rnXmyA+IymqTt IupEOkHRE50JkpS2/enx33CCyExRp6/UZYWkJLf6ptRuBkUDrmhw6xmiYLN90cykkIGJ 0CFeCl2xfkYVfuXolZKkQb4bcwbHRurmpB5F4xNSpHImJAiBCCGxCOI1Yt8QHT3HYuUA q/tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767487731; x=1768092531; 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=UIymGo77VyU0wrlUUtE/9RzfW+ZnKXDb2PwkR3ek+SA=; b=QMfKnjZIUp6wWTMSqJ8+DohG6l84WXQr+T8ii8LaCboNikTLYNN1Aserx01pTKxyhr RcxoQXdCNzmwTH81PFB6UMphYCA+dE/lBKrplWEPuKGxkJEdfNGPrG+cZqByE3QFu2Xx t5txtmd8gJ7TKN3tHrfRH/AoiK5meC9VD72jfk/iT9SJ2jDz2+1eGBeMwflZG0gwhjYp 8dtVYw2v0ug4gbs9qVj+1Mw/u97Ey4W4NjebfYLDIw/S+c75cUWnYb1A1CLGQlebxj1E Xk12aDkgJmaBjVv8NrSRfVnMhPJ9++pi4fA7xfoyUWR1v7emst5JESjCYE2Go5r73beg r2+A== X-Gm-Message-State: AOJu0YzGAyK2wmOmBCClX20sYWCh5acnfK9dmYVTfk5BRRXtQFH8TQdO aToNLQ3qaTYusjN1DU4706C//jTiOJS/GDCuQhOCC9KnuvVHWj9/r6ee/UfZ/DeC X-Gm-Gg: AY/fxX7YvlrwRg7rBAL2JTCv9IFkuH1FSOV+/COQxvebpCMFcV/U2E6o8fY4NaIQF+J C9BnvVS0zfrK+ndvD7m1SxsR1YIo7pEyo5mmI27nVm4Fy8EpeNLYa/FmMggCUFW8Fb4BnJnD/KB 1dgDu/Dg8AYn5SHPmfJC6OsQ306EL/7koBzr2E8xpKKzY+PjDY5dnJavnUvaeN+hV47dedL6BSP BOSilofKybh/kkCfp6X2MRA2PLVz2OZ/xOWdOLjF57+3Ym2zTdxL5cOM6gGUwa2fTzMyqe8mcnL J9exrG8AhjoKlAgpVK6NGpQ/xN5vJ+vxb0RWTUSQovFfBI6yPtT0GH963tqUMbcwucTsaqKNTQS sw/xRK9iy10LqoVnIKvjg51yeZ+nGHnytm9JrenVmkRBpxX2UfC24IatGaHVbGhcelQZSLwZdGv HfY/KZmMWkzTHGAFINHbHysC4FLw4SxxKf4NjqUT/actGfbpnYXJ+GCS+As+88DU2m X-Google-Smtp-Source: AGHT+IGJMxbepz/DsIkJDRdSCt+wxNFX4J1yCrgWme6EL57yOSAcR9Uz4GAQA0kNYrpk79eoeobmKw== X-Received: by 2002:a17:907:c994:b0:b80:40d2:9652 with SMTP id a640c23a62f3a-b8040d296a2mr2795548566b.65.1767487730529; Sat, 03 Jan 2026 16:48:50 -0800 (PST) Received: from control-center.fritz.box (150-12-20-31.ftth.glasoperator.nl. [31.20.12.150]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8037a5bdfesm5104839066b.10.2026.01.03.16.48.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jan 2026 16:48:50 -0800 (PST) From: Tom Geelen To: yocto-patches@lists.yoctoproject.org Cc: Alex Kanavin , Tom Geelen Subject: [auh][PATCH 3/5] Remove unused imports Date: Sun, 4 Jan 2026 01:47:01 +0100 Message-ID: <20260104004708.2494403-6-t.f.g.geelen@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260104004708.2494403-2-t.f.g.geelen@gmail.com> References: <20260104004708.2494403-2-t.f.g.geelen@gmail.com> 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 ; Sun, 04 Jan 2026 00:48:59 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2891 Every file in AUH contains imports that are not used. This patch removes those unused imports to clean up the code. --- modules/buildhistory.py | 6 ------ modules/steps.py | 4 ---- modules/testimage.py | 7 ------- modules/utils/bitbake.py | 4 ---- modules/utils/devtool.py | 2 -- modules/utils/emailhandler.py | 2 -- modules/utils/git.py | 1 - 7 files changed, 26 deletions(-) diff --git a/modules/buildhistory.py b/modules/buildhistory.py index 0c13cb4..407a1e5 100644 --- a/modules/buildhistory.py +++ b/modules/buildhistory.py @@ -20,13 +20,7 @@ # import os -import logging as log -from logging import debug as D -from logging import info as I from logging import warning as W -from logging import error as E -from logging import critical as C -import sys from errors import * from utils.git import Git diff --git a/modules/steps.py b/modules/steps.py index 08f47fd..93cb3a6 100644 --- a/modules/steps.py +++ b/modules/steps.py @@ -20,16 +20,12 @@ # import os -import sys -import subprocess import shutil import re from logging import debug as D from logging import info as I from logging import warning as W -from logging import error as E -from logging import critical as C from errors import * from buildhistory import BuildHistory diff --git a/modules/testimage.py b/modules/testimage.py index 849a9f1..85ee4f3 100644 --- a/modules/testimage.py +++ b/modules/testimage.py @@ -22,15 +22,8 @@ # import os -import sys -import shutil -import logging as log -from logging import debug as D from logging import info as I -from logging import warning as W -from logging import error as E -from logging import critical as C from errors import * from utils.bitbake import * diff --git a/modules/utils/bitbake.py b/modules/utils/bitbake.py index 32c234c..ad011db 100644 --- a/modules/utils/bitbake.py +++ b/modules/utils/bitbake.py @@ -24,11 +24,7 @@ # import os -import logging as log -from logging import info as I from logging import debug as D -from logging import error as E -from logging import critical as C import sys import re diff --git a/modules/utils/devtool.py b/modules/utils/devtool.py index b3a9ce7..d4b7ba7 100644 --- a/modules/utils/devtool.py +++ b/modules/utils/devtool.py @@ -1,6 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-or-later -import os -import logging as log from logging import debug as D from utils.bitbake import * diff --git a/modules/utils/emailhandler.py b/modules/utils/emailhandler.py index 1ed4bfc..0629c8f 100644 --- a/modules/utils/emailhandler.py +++ b/modules/utils/emailhandler.py @@ -24,7 +24,6 @@ # import os -import logging as log from logging import error as E from logging import info as I from smtplib import SMTP @@ -33,7 +32,6 @@ from email.mime.text import MIMEText from email.mime.application import MIMEApplication from email.mime.multipart import MIMEMultipart from email.generator import Generator -import shutil from io import StringIO class Email(object): diff --git a/modules/utils/git.py b/modules/utils/git.py index abdcc47..abc1acc 100644 --- a/modules/utils/git.py +++ b/modules/utils/git.py @@ -24,7 +24,6 @@ # import os -import logging as log from logging import debug as D from utils.bitbake import * From patchwork Sun Jan 4 00:47:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tom Geelen X-Patchwork-Id: 77969 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 B93C7C2A061 for ; Sun, 4 Jan 2026 00:49:59 +0000 (UTC) Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.35380.1767487790118682233 for ; Sat, 03 Jan 2026 16:49:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jQBdEFUD; spf=pass (domain: gmail.com, ip: 209.85.218.41, mailfrom: t.f.g.geelen@gmail.com) Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-b8010b8f078so1910960466b.0 for ; Sat, 03 Jan 2026 16:49:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767487788; x=1768092588; 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=HBjgaE/9bgiSetYmWQrttafv5dJV0WZ4P80XEwRp5KE=; b=jQBdEFUDrpe6Hrp8xesbicQpRZPYHsXqDDWbw+9p8+LJZc/pzDinorwvqGivHPnhuH h1ACWcOpmQajhPAUlrkZbafGnQDyamGUoV8HomVKjvY7C1Rattm3Wzh4FocZH6ss4DTk hRoUf2+ADS54FZZgDrDZfBx6LO4SOL4BuWyE4y3hNJXEDH42Dtx8z3nwMp539o/yLbaf B4eucjnWO76jiRxWtL4rYI7xj+PWwaKpXIDwnDySCVGQ5iiH4Z1lg/6xjKfKhTGcrpRJ 9GnUONtdaMXeAxfexG4vPoIaSlAx41FtlPXIuA/ppi7tGpN4V4sfVi/MhpmpXDHhIlR4 8/Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767487788; x=1768092588; 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=HBjgaE/9bgiSetYmWQrttafv5dJV0WZ4P80XEwRp5KE=; b=CpIvFhlhAAu9HCX3JJTdzJeKtn3n61kIF0hcX8uNkbVzIQ6hBDIohheyMV6FwBjBV0 3mhZUJU4f7NwmMmB7zl+saTgNBrhCdp0Ype+6w3wXUwJtEpz73mDjtRsqfNVtGQohg5V t/Tk3JjAnFja1T0+wHAIZhFHgSf3QeRswlqkqZwoei09P7ylUZZ7ql2fSzapxSe9UJkF 2W3z+FpBXJOqsh13l16pMOOVUCelqmTEkn5ZonvD5k0DmgDJV8Rz0gdE9CtyXd9hGsZT is7tD6t25o7JtVVYB3j/8mTijJ/4OVMKUroTy1/Oao1+qwO1CCBy/0IMv/j4l1gmwT86 Ng4Q== X-Gm-Message-State: AOJu0YzfL8dEKqWOhw+JFm8yh3a4aRyXpnc3TfLQ5Q4V6Y5XYkgdI1W/ jC2C2tijMzuWwCieK7JPCjwn296ECkwMmBEEega3PIiX+6rRQnxdHLUbIZLtGxmG X-Gm-Gg: AY/fxX4G11ChklKPZs7x3koEQ8deXnA9X9LVvbb6H8y9GpNLz5p80r8vz4XyESLCRLM EcQi5veNVLzY5L84Qyu5tws20y+JOsMjZo8o83c758SVCuigzPosLA3BI1ULkTsZSXSq8GVjT5U P7XUep2D2ZSscKD8HOpT8yNwmX9QD+RlCczPeuVSqsS3qDMOkNtZFTFls/JfZGJE4srAyji7LA6 hLVzcl4N9+Kh3SePCXGpxNhH3KteY5ZiDgi+mJ/7hTm3gjvLlcUGSk19lLEalyCukox0FKmMVCO FdBLMPUNXItXdnloWmiRtK/da8dtYRWdDh5VrFhENuLNyYZYe1QgwJSNc1CeZBQoAPW71N8tVIc k9jQ+LuwSZx/9YUlw9Pj0zf8zNqra52qMpPY8d59HfC1zdvZlsRtLraVcrNwunJS+EXLI4J+CVn CxBhdNATVI3kozY2ddCRWIADOrHkJ7wMGpraBrPQXvl48eotTU0uRuUtZDhw/i1sTV X-Google-Smtp-Source: AGHT+IGt4PnWk68fz3bC+22PQxlia9G91AJlLuX29C95OhnAg5VgOMmrzDQVNwAjJ1NNJugNw17nUg== X-Received: by 2002:a17:907:7213:b0:b76:277b:9a5b with SMTP id a640c23a62f3a-b8036f0a536mr4317149766b.6.1767487787937; Sat, 03 Jan 2026 16:49:47 -0800 (PST) Received: from control-center.fritz.box (150-12-20-31.ftth.glasoperator.nl. [31.20.12.150]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8037a5bdfesm5104839066b.10.2026.01.03.16.49.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jan 2026 16:49:47 -0800 (PST) From: Tom Geelen To: yocto-patches@lists.yoctoproject.org Cc: Alex Kanavin , Tom Geelen Subject: [auh][PATCH 4/5] Fix linting errors reported by ruff Date: Sun, 4 Jan 2026 01:47:03 +0100 Message-ID: <20260104004708.2494403-8-t.f.g.geelen@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260104004708.2494403-2-t.f.g.geelen@gmail.com> References: <20260104004708.2494403-2-t.f.g.geelen@gmail.com> 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 ; Sun, 04 Jan 2026 00:49:59 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2892 Ruff (or any other linter) should not report any errors when run on the codebase. This patch fixes various such errors. --- modules/buildhistory.py | 6 +++--- modules/steps.py | 8 ++++---- modules/testimage.py | 3 +-- modules/utils/bitbake.py | 2 +- modules/utils/devtool.py | 3 ++- modules/utils/git.py | 3 ++- upgrade-helper.py | 17 +++++++---------- 7 files changed, 20 insertions(+), 22 deletions(-) diff --git a/modules/buildhistory.py b/modules/buildhistory.py index 407a1e5..c045a73 100644 --- a/modules/buildhistory.py +++ b/modules/buildhistory.py @@ -20,11 +20,11 @@ # import os +import re from logging import warning as W -from errors import * -from utils.git import Git -from utils.bitbake import * +from errors import Error +from utils.bitbake import bb class BuildHistory(object): def __init__(self, bb, group): diff --git a/modules/steps.py b/modules/steps.py index 93cb3a6..f7dd5c5 100644 --- a/modules/steps.py +++ b/modules/steps.py @@ -27,7 +27,7 @@ from logging import debug as D from logging import info as I from logging import warning as W -from errors import * +from errors import Error, DevtoolError, CompilationError from buildhistory import BuildHistory def load_env(devtool, bb, git, opts, group): @@ -59,9 +59,9 @@ def _extract_license_diff(devtool_output): for line in lines: if line.startswith(b'# FIXME: the LIC_FILES_CHKSUM'): extracting = True - elif extracting == True and not line.startswith(b'#') and len(line) > 1: + elif extracting and not line.startswith(b'#') and len(line) > 1: extracting = False - if extracting == True: + if extracting: licenseinfo.append(line[2:]) else: f.write(line) @@ -71,7 +71,7 @@ def _extract_license_diff(devtool_output): def _make_commit_msg(group): def _get_version(p): if p['NPV'].endswith("new-commits-available"): - return "to latest revision".format(p['PN']) + return "to latest revision" else: return "{} -> {}".format(p['PV'], p['NPV']) diff --git a/modules/testimage.py b/modules/testimage.py index 85ee4f3..b96782d 100644 --- a/modules/testimage.py +++ b/modules/testimage.py @@ -25,8 +25,7 @@ import os from logging import info as I -from errors import * -from utils.bitbake import * +from errors import Error def _pn_in_pkgs_ctx(pn, pkgs_ctx): for c in pkgs_ctx: diff --git a/modules/utils/bitbake.py b/modules/utils/bitbake.py index ad011db..5514c98 100644 --- a/modules/utils/bitbake.py +++ b/modules/utils/bitbake.py @@ -28,7 +28,7 @@ from logging import debug as D import sys import re -from errors import * +from errors import Error, EmptyEnvError for path in os.environ["PATH"].split(':'): if os.path.exists(path) and "bitbake" in os.listdir(path): diff --git a/modules/utils/devtool.py b/modules/utils/devtool.py index d4b7ba7..4d4307f 100644 --- a/modules/utils/devtool.py +++ b/modules/utils/devtool.py @@ -1,7 +1,8 @@ # SPDX-License-Identifier: GPL-2.0-or-later from logging import debug as D -from utils.bitbake import * +from utils.bitbake import bb +from errors import DevtoolError class Devtool(object): def __init__(self): diff --git a/modules/utils/git.py b/modules/utils/git.py index abc1acc..3be75bf 100644 --- a/modules/utils/git.py +++ b/modules/utils/git.py @@ -26,7 +26,8 @@ import os from logging import debug as D -from utils.bitbake import * +from utils.bitbake import bb +from errors import Error class Git(object): def __init__(self, dir): diff --git a/upgrade-helper.py b/upgrade-helper.py index 93a0bf3..165fd42 100755 --- a/upgrade-helper.py +++ b/upgrade-helper.py @@ -49,11 +49,11 @@ import shutil sys.path.insert(1, os.path.join(os.path.abspath( os.path.dirname(__file__)), 'modules')) -from errors import * +from errors import Error, EmptyEnvError, UpgradeNotNeededError, UnsupportedProtocolError from utils.git import Git from utils.devtool import Devtool -from utils.bitbake import * +from utils.bitbake import Bitbake, get_build_dir from utils.emailhandler import Email from statistics import Statistics @@ -66,7 +66,6 @@ if not os.getenv('BUILDDIR', False): E(" $ . oe-init-build-env build-auh\n") exit(1) -import shutil # Use the location of devtool to find scriptpath and hence bb/oe libs scripts_path = os.path.abspath(os.path.dirname(shutil.which("devtool"))) sys.path = sys.path + [scripts_path + '/lib'] @@ -235,7 +234,7 @@ class Updater(object): if settings.get("buildhistory", "no") == "yes": if 'buildhistory' in self.base_env['INHERIT']: - if not 'BUILDHISTORY_COMMIT' in self.base_env: + if 'BUILDHISTORY_COMMIT' not in self.base_env: E(" Buildhistory was INHERIT in conf/local.conf"\ " but need BUILDHISTORY_COMMIT=1 please set.") exit(1) @@ -263,7 +262,7 @@ class Updater(object): if settings.get("testimage", "no") == "yes": if 'testimage' in self.base_env['IMAGE_CLASSES']: - if not "ptest" in self.base_env["DISTRO_FEATURES"]: + if "ptest" not in self.base_env["DISTRO_FEATURES"]: E(" testimage requires ptest in DISTRO_FEATURES please add to"\ " conf/local.conf.") exit(1) @@ -355,7 +354,7 @@ class Updater(object): if license_diffs: msg_body += license_change_info % license_diffs - if 'patch_file' in g and g['patch_file'] != None: + if 'patch_file' in g and g['patch_file'] is not None: msg_body += next_steps_info % (os.path.basename(g['patch_file'])) msg_body += mail_footer @@ -514,7 +513,6 @@ class Updater(object): import traceback msg = "Failed(unknown error)\n" + traceback.format_exc() e = Error(message=msg) - error = e E(" %s: %s" % (pkggroup_name, e.message)) @@ -617,7 +615,6 @@ class UniverseUpdater(Updater): recipe_regex = re.compile('^(?P.*):$') layer_regex = re.compile('^ (?P.*) +') - layers = False name = '' output = subprocess.check_output('bitbake-layers show-recipes', @@ -628,7 +625,7 @@ class UniverseUpdater(Updater): name = s.group('name') continue - if not 'skipped' in line: + if 'skipped' not in line: s = layer_regex.search(line) if s: if s.group('name').strip() == layer: @@ -667,7 +664,7 @@ class UniverseUpdater(Updater): found = True break - if found == False: + if not found: D(" Skipping upgrade of %s: maintainer \"%s\" not in whitelist" % (pn, maintainer)) return False From patchwork Sun Jan 4 00:47:04 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tom Geelen X-Patchwork-Id: 77968 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 B7DF9C2A069 for ; Sun, 4 Jan 2026 00:49:59 +0000 (UTC) Received: from mail-ed1-f68.google.com (mail-ed1-f68.google.com [209.85.208.68]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.35356.1767487791233776260 for ; Sat, 03 Jan 2026 16:49:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VR4flsrv; spf=pass (domain: gmail.com, ip: 209.85.208.68, mailfrom: t.f.g.geelen@gmail.com) Received: by mail-ed1-f68.google.com with SMTP id 4fb4d7f45d1cf-64b8b5410a1so14938068a12.2 for ; Sat, 03 Jan 2026 16:49:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767487789; x=1768092589; 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=6YT3KgcxVaF3S/TYKvh/FNOpxKwjgJCjCGsLD/CR9s0=; b=VR4flsrv76SZESX0nAW2h/kiFZEuR1zl9NEIAJI/nzx5tNvTQLbeacXcidavGhc6dE i9ENWgCx8ORtb/Pc0o4ge2m+tu6zqHUTCPkY/Yzgyhcbg33oJbmBk8WYmqvTPqkK5NS8 pfmnPgcmL4yq7m6ZDS8OjfO3LZ9Exbvz1wcGEXYt4P0UZzOBm3vztxLhBYRNdb5q+tkB Ccm7//4DkvRDqNJzNwfYfoHd8AaECOI9od35wIGaa0iqrA1s72n7+HqGdxLUcU0eiTa1 b/5rzR0iw6LCWJqBaNjhOCybYYRmbSSuGfs/Kvh6dDLV6fp20SvoCDoBZGav23pP1ZF+ qrPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767487789; x=1768092589; 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=6YT3KgcxVaF3S/TYKvh/FNOpxKwjgJCjCGsLD/CR9s0=; b=pogmmthH/l1Mbo17AeadWsqp6Zp8KfulhWubXyq80yqDUsWChG3s/Sh6D/BQ0BlKcV 925IAWpfTjSndmoWMf4Xp5KAmdIypPibV7dkHzi9aL9Rp3z6eR298KiyfxBJlljxK/O9 JSp0cj+2ae8xKoEonzeGe3pL2OFVpF9lFYYlXuULZRX1oVrfUmq35pBZxAw/nygnksGa U08W9F/Uicj+w8KXJmeHDbbQq+IpO8v5I2HK/dNZNr1kNDuB9a0Su/hXgHq+pZANca7j 4werTQ4puZMVq0TG/oTfaNWtAbxUm4GPHg7fd8fXiFBJmg+978p/gh6LWkTDTwUHJFfn poyw== X-Gm-Message-State: AOJu0Yx/bcYcqHPdqdJImMI1+HkSnd3v4/bJ5dgX21KVzRnJR+NPbdx1 sJ3gbdzwcAC+GgOyP5N4gMasrXAD2lDXAPHYxztkpEDxcKHonU8iR3R7yj9MJoiicLw= X-Gm-Gg: AY/fxX5YRQJU3INJVJmtrGRWTnerzcQRjXuhE2nJ/E67nAudnQ7W3AHxeHmCKP6IBK/ hJYhO3UMYTd1egVb0/EwkEbVDEgXe8IJTJ20dddQCR6Fgk0klHnMEm4i2vxfgclixT3os1PCVGJ AjQ4kvWVc+ldMj9MwdbCwsL4UT1VUDmel3x/C4IkP3i05eh9e52ifyBEn+OlUtZNfyoYRdGrpfy /dpAlwZgUHOm4l5t4Gh8s7heLLITGJhyhVTiIaIpM1RBkfdkg++0ir948VBjYlrN5+a3gqdJznA 5a5iBjZM0/IKZTpNuHLpLdS6qLFmw373cw4whM6W0u8APBu/EwaDthVJV2Sqfys7yw9lFoxKYD0 0NYdVi71p3ApcT3PypNRp9CzaUzgQK+BahLKwAV6EjTRiShh7LS5t/bOewQL/BLoGkMzXdBpNdZ qh5VHpOH/8ti/063w/HOobIk2+BAZF99XUZH6uZamWIBqYOw54q5ve5xJFjKLE/Bd9 X-Google-Smtp-Source: AGHT+IEEGF6Z/xq9GA4nVxn9/SB68FlyLnKuuEKi8kTq1p4Y+273236STcxbKvHva0hFq8KdSNle2w== X-Received: by 2002:a17:907:2d0e:b0:b76:bcf5:a38a with SMTP id a640c23a62f3a-b8036a924ffmr5076794166b.0.1767487789175; Sat, 03 Jan 2026 16:49:49 -0800 (PST) Received: from control-center.fritz.box (150-12-20-31.ftth.glasoperator.nl. [31.20.12.150]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8037a5bdfesm5104839066b.10.2026.01.03.16.49.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jan 2026 16:49:48 -0800 (PST) From: Tom Geelen To: yocto-patches@lists.yoctoproject.org Cc: Alex Kanavin , Tom Geelen Subject: [auh][PATCH 5/5] Record commit failures as group errors in Updater class so that commit errors are not treated as SUCCESS but as a FAILURE Date: Sun, 4 Jan 2026 01:47:04 +0100 Message-ID: <20260104004708.2494403-9-t.f.g.geelen@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260104004708.2494403-2-t.f.g.geelen@gmail.com> References: <20260104004708.2494403-2-t.f.g.geelen@gmail.com> 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 ; Sun, 04 Jan 2026 00:49:59 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/2893 What is happening before: commit_changes() throws, run() catches it and removes the group from succeeded_pkggroups_ctx, but it never sets g['error']. The Statistics.update() logic classifies groups purely by g['error'] is None → “Succeeded”. So you end up with “Succeeded: 1” even though commit failed. Signed-off-by: Tom Geelen --- upgrade-helper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upgrade-helper.py b/upgrade-helper.py index 165fd42..8457c7b 100755 --- a/upgrade-helper.py +++ b/upgrade-helper.py @@ -528,6 +528,8 @@ class Updater(object): except Exception as e: import traceback E(" Couldn't commit changes to %s:\n%s" % (pkggroup_name, traceback.format_exc())) + # Ensure commit failures are recorded as group errors + g['error'] = e if g in succeeded_pkggroups_ctx: succeeded_pkggroups_ctx.remove(g) failed_pkggroups_ctx.append(g)