From patchwork Tue Oct 27 13:30:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Turull X-Patchwork-Id: 102131 Received: from AM0PR83CU005.outbound.protection.outlook.com (AM0PR83CU005.outbound.protection.outlook.com [52.101.69.7]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.18839.1793107879225737328 for ; Tue, 27 Oct 2026 06:31:19 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@ericsson.com header.s=selector2 header.b=B+UzwGsj; spf=pass (domain: ericsson.com, ip: 52.101.69.7, mailfrom: edaturu@ericsson.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LXhph3Iip7mRiVedC+wph7R5ARmiHKa7TjvFUd8t//stCd7VDqiH1g/A/m/tVBATbCTRTQw5t9NnzA75xOqviDnF7JnBuZ5fSA6e9TE3U4cFrj4RDZyBLnIMX3Dcg3Pv+esXMDGK701Q15ZTkjIKFGqBbiPGpqFZNYK9YE5sBv0vM8fbWLtNq0mHwuLtr7DGfmb/xrGJCwmDGw5crYmErTcsHNYMI4Uw1IjyYhbE67uqWH13yARTX9PcB+vZa4nE1TQ7HUsTPnzj8nscJj1WcC8kq7PnjIThO8BGGv/PSYZXj0t4F+m+6r46qiULH0DXlhnaJ+R+PCIlnivtTZD7nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4gfSKTsfDr2yYVtw/LpQCOS/+0517BTc/SRmDrOmQIM=; b=vqY/AyfH3/j/rVTrLiG/Iulg3dqZ5MlBtuNy7EfvEceKVUPL37ndmkYMKWpCu4olIl5iMnXlNJJUFJpWxR4r3xdFn60EdkrmF3TV69QhOGRv8UKBMw4YA0WbHXZ+m60QFU2Tx6ldKFx4ZostZyoFxNaXMMFwQqod/R0moNDy0g6/BOYrdJrrxhwnlIDVW2r7NgXEYDYN1xOYoKwCVAneLzYakNJ0gEFWNlXIjLbjQpBg4sp/ru0IwsS7D+mvw+pP4sURumgZTAETAcNiAskvPZ4EXCBsLNLzaNW3XqvMjx6na9V266t9Du0HuqpznCt4k3EpkOSspGdd96sC0Dmfwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.176.1.74) smtp.rcpttodomain=gmail.com smtp.mailfrom=ericsson.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ericsson.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4gfSKTsfDr2yYVtw/LpQCOS/+0517BTc/SRmDrOmQIM=; b=B+UzwGsj5CFORcYYQ0SugG9tY1VzlmL/SUNizkhY710t8rDq5IZWBQ7m6J/7lD0oUgYTTDB7ROhr2pYOpdWjsbuTKhlyyvus89TFjyIrBb9mQWs8HWjRU2rBOyyA9V/qIfOyEqAdkaBDXFUujYnCsVf96tyo0iWy8dc3H/rI2FZboRFs8uYUbKKFn895iM5sQ1EbA3+GxSsv7q8CkXSdSvvPHaZ2rwQofH4x15NHfdD5Fd0Zx3oPFrZeoZXqmD2uN3C8GVnxdAKSHCWkh1Dmjcg0tBdezD4C5jBM0E6KZyy48Qb/cVAMMCLPlvG+2cEGRImiIONB0VKr02OiAnUuaw== Received: from DB8PR06CA0042.eurprd06.prod.outlook.com (2603:10a6:10:120::16) by DU4PR07MB10230.eurprd07.prod.outlook.com (2603:10a6:10:587::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.546.22; Tue, 27 Oct 2026 13:31:10 +0000 Received: from MAD0EPF000008BF.eurprd04.prod.outlook.com (2603:10a6:10:120:cafe::a3) by DB8PR06CA0042.outlook.office365.com (2603:10a6:10:120::16) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.546.22 via Frontend Transport; Tue, 27 Oct 2026 13:31:10 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 192.176.1.74) smtp.mailfrom=ericsson.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ericsson.com; Received-SPF: Pass (protection.outlook.com: domain of ericsson.com designates 192.176.1.74 as permitted sender) receiver=protection.outlook.com; client-ip=192.176.1.74; helo=oa.msg.ericsson.com; pr=C Received: from oa.msg.ericsson.com (192.176.1.74) by MAD0EPF000008BF.mail.protection.outlook.com (10.167.241.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.569.4 via Frontend Transport; Tue, 27 Oct 2026 13:31:10 +0000 Received: from seroius18814.sero.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.65) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Tue, 27 Oct 2026 14:30:49 +0100 Received: from seroius08462.sero.gic.ericsson.se (seroius08462.sero.gic.ericsson.se [10.63.237.245]) by seroius18814.sero.gic.ericsson.se (Postfix) with ESMTP id 4C7AA4020C1E; Tue, 27 Oct 2026 14:30:49 +0100 (CET) Received: by seroius08462.sero.gic.ericsson.se (Postfix, from userid 160155) id 0EC9B707231C; Tue, 27 Oct 2026 14:30:49 +0100 (CET) From: To: CC: , Daniel Turull Subject: [AUH][PATCH v4 1/2] steps: read changelog through devtool's metadata file Date: Tue, 27 Oct 2026 14:30:42 +0100 Message-ID: <20261027133046.300849-1-daniel.turull@ericsson.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Return-Path: edaturu@ericsson.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MAD0EPF000008BF:EE_|DU4PR07MB10230:EE_ X-MS-Office365-Filtering-Correlation-Id: 50aac36f-cd15-45cd-7e7e-08df342e9073 X-SMTP-Server: smtp-central.internal.ericsson.com X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|1800799024|376014|36860700016|82310400026|261026140227099003|56012099006|11063799006|261009223027099003|261022105027099003|261021123027099003|261021121427099003|261022075727099003|10067099003|18002099003|261026121527099003|6133799003|3023799007; X-Microsoft-Antispam-Message-Info: 2gSTDvgxSRbZhrvwXZpoA/4VhbGushdUYYSNbesZ30t9h0A62hBhdeJsC0OaOMOQwwOS62LCxcyWkxfzGEGNCNfynfuqLJtJHMBdigfVxhMU64conbPqGfNwChdYgd8QiFZE0oxgdrMr9UpN/xnRir59s5Z57ePYGvTlyQnblJ53OMgNXlPthY4Rev6JLoR3SA9IeaWzkOsUxIDaGD3mAwmDrtrVHE/OB5MbAG+uPs1UdpPylJ1G66+euM7rgv7LLNrZlm0k6zLCsIDq5yRddzPXj2UjNKhLxgow63msYOWJQ/EC4x/0grdRkCOw9BhOus2wocQTZbBjtBt7NHqsaX1UaElDowOs9PiKQ/ub0/9sxis+coVUg5Shj8Nz3WljH5HhbXeV3k9NIU1q8tfI3+WM1/KUfEcnTwYbDuvJZvlk7VeHGJg2ACieolaxwsj34KOLhKZ05gYxG0YhS6F5XzvdhEbY9TXZpDWGeVyStepmYEz8Mz9hNZG+1ZBshr9qVUhpyGJZZfXymabzK/bdfNpLYWkCOpxtns2Jjk6/9XQ2PBB3ol4i9Tsiu1ia0aGKDIK1R0HGwm+ffJLeb19VTo3NSCmcBejz/V6NF1heFQHxSU+Lo+eA6LkvSaYIoYK3Wm88IO3BIDIad9dLV2Gkzn/MREHUxKM3EDwJDwC24K7grCWOckEk8CYsy9U0teIRYaxvZ+oZLOk3VBkb+z+bPQ== X-Forefront-Antispam-Report: CIP:192.176.1.74;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:oa.msg.ericsson.com;PTR:office365.se.ericsson.net;CAT:NONE;SFS:(13230040)(23010399003)(1800799024)(376014)(36860700016)(82310400026)(261026140227099003)(56012099006)(11063799006)(261009223027099003)(261022105027099003)(261021123027099003)(261021121427099003)(261022075727099003)(10067099003)(18002099003)(261026121527099003)(6133799003)(3023799007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zoU0YqSNjQN1M8HaJAz7xy5zhKtoAI6QktemKn4P6eOCRTkq9LvIfCt2MK0qK3aoXS9qxZIPzgKC3ib/ZQQt776K+h2QD7fmw5HblMYLSNQVnZ8tj2KGoNrHkD0+y6W39WgESEv6WV8ujCWeaVHEWpZawBVN/VGgYpwR81EFtBxmaT0IZwVtpvLsgIqHouRESWttSf5eQedfO7kgDV7EK2X6R5FMHnEzZIoL8bNRPtzNAMjTjMoIQjHy/qE14yil8KKv2Uq4FLZ69kDl9j5aTTg68Dlls/gQnV1P/B9xUN6qKB1Aw8KFQhFWFURtz/SG9XPqcJmRNCX4vyS1O0lJ8Zr9qXXLOnAFF1yOSMjtFuC/4wVXSyM/xYVKUpfTCstyGYy15yy3ttmhkHvaVdIkM0qCm+NeUxu9FAULTsLf518YNlSQIx2PRahnQbmktWsc X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2026 13:31:10.5344 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 50aac36f-cd15-45cd-7e7e-08df342e9073 X-MS-Exchange-CrossTenant-Id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=92e84ceb-fbfd-47ab-be52-080c6b87953f;Ip=[192.176.1.74];Helo=[oa.msg.ericsson.com] X-MS-Exchange-CrossTenant-AuthSource: MAD0EPF000008BF.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR07MB10230 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 27 Oct 2026 13:31:25 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5162 From: Daniel Turull devtool upgrade describes the changelog it extracted in workspace/changelogs/.json, including the name of the changelog file. Load that once per recipe and expose its fields in pkg_ctx with a devtool_ prefix, so AUH relies on what devtool reports instead of guessing the changelog file name, and the rest of the metadata is available without reading it again. Assisted-by: kiro:claude-sonnet-5.5 Signed-off-by: Daniel Turull --- Changes in v4: - Load .json once, expose its fields in pkg_ctx with a devtool_ prefix and get the changelog through the changelog_file field Changes in v3: - New patch: refactor split out of "steps: skip changelog in commit message when devtool flags it" --- modules/steps.py | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/modules/steps.py b/modules/steps.py index e678a4b..a68dec4 100644 --- a/modules/steps.py +++ b/modules/steps.py @@ -19,6 +19,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # +import json import os import shutil import re @@ -80,20 +81,31 @@ def _make_commit_msg(group): versions = list(dict.fromkeys(_get_version(p) for p in group['pkgs'])) return "{}: upgrade {}".format(pn, ",".join(versions)) -def _get_changelog(pn, workdir): - """Read the changelog generated by devtool upgrade and copy it to workdir. - Returns the changelog text or None.""" - changelog_path = os.path.join(os.environ.get('BUILDDIR', ''), - 'workspace', 'changelogs', '{}.txt'.format(pn)) - if os.path.isfile(changelog_path): - try: - with open(changelog_path, 'r', encoding='utf-8', errors='replace') as f: - text = f.read() - shutil.copy2(changelog_path, os.path.join(workdir, '{}-changelog.txt'.format(pn))) - return text - except OSError as e: - W('Failed to copy changelog for {}: {}'.format(pn, e)) - return None +def _get_changelog(pkg_ctx, workdir): + """Load the changelog and its metadata written by devtool upgrade into + pkg_ctx and copy the changelog to workdir.""" + pn = pkg_ctx['PN'] + changelog_dir = os.path.join(os.environ.get('BUILDDIR', ''), + 'workspace', 'changelogs') + metadata_path = os.path.join(changelog_dir, '{}.json'.format(pn)) + try: + with open(metadata_path, 'r', encoding='utf-8') as f: + metadata = json.load(f) + except (OSError, ValueError): + # devtool writes no metadata when there is no changelog + return + for key, value in metadata.items(): + pkg_ctx['devtool_' + key] = value + changelog_path = os.path.join(changelog_dir, metadata['changelog_file']) + try: + with open(changelog_path, 'r', encoding='utf-8', errors='replace') as f: + text = f.read() + shutil.copy2(changelog_path, os.path.join(workdir, '{}-changelog.txt'.format(pn))) + except OSError as e: + W('Failed to copy changelog for {}: {}'.format(pn, e)) + return + if text: + pkg_ctx['changelog_text'] = text def _append_changelog_to_commit_msg(group, opts): @@ -119,9 +131,7 @@ def _devtool_upgrade(devtool, bb, git, opts, pkg_ctx, workdir): devtool_output = devtool.upgrade(pkg_ctx['PN'], pkg_ctx['NPV'], pkg_ctx['NSRCREV']) D(" 'devtool upgrade' printed:\n%s" %(devtool_output)) # Copy changelog before checking for conflicts — it's useful even on failure - changelog_text = _get_changelog(pkg_ctx['PN'], workdir) - if changelog_text: - pkg_ctx['changelog_text'] = changelog_text + _get_changelog(pkg_ctx, workdir) # If devtool failed to rebase patches, it does not fail, but we should if 'conflict' in devtool_output: raise DevtoolError("Running 'devtool upgrade' for recipe %s failed." %(pkg_ctx['PN']), devtool_output) From patchwork Tue Oct 27 13:30:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Turull X-Patchwork-Id: 102132 Received: from AM0PR02CU008.outbound.protection.outlook.com (AM0PR02CU008.outbound.protection.outlook.com [52.101.72.64]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.18844.1793107896998884837 for ; Tue, 27 Oct 2026 06:31:37 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@ericsson.com header.s=selector2 header.b=MxBaP/Yo; spf=pass (domain: ericsson.com, ip: 52.101.72.64, mailfrom: edaturu@ericsson.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Jyte5O207L3crYrlgh+t5tTLc56FBFBa8l2nHEsc16RfOuy58Ywa5VMcHtgMGa5S5EG4ssgtlEuHTozARGt60EJVsmea3TTno2C8PmMCZognSSmJ8kvNVCU5RDlxtbTDeczxom3Le5hbeIG4bK/pdH324G2unnJZzm4btTJFXj7GBMPPbHfq1rCe+QznFIeJoYaiMYW90W4BCTGSvoREeN7km2mqtcI5ZspzaBSPYBvJTHMdxg9OiOfCy6tBafcaPONwZjZVnSi/mqeDDWw3S2DTrPd41nt2HbylIhni8Kwj4Q2u3FREv8Vu0b0wQx1CW564dc81Ed3lhunu2AX7+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9z6wJXZ8wSx+ItgYiRBWeFHLKrTX+IOXh/ISeEf5jNM=; b=hc82Om31iL9vhtC1g+iV6jNYnoVTP/PQ6v2xhgE/+qwfRMVgu9rofnMbGdmwhlzz0DEsMZ3zM0SK9De3gyLbUuJg5HLDUIbT1s/Y018CWvDBeB/lWYvsWwb5gYFvV3qGYiAVtj9LyXNn7F05TUrj1e4OcrQ5tMtjmWus36k/l5dB6GfBqZtmnMZ9KFuki5MLwTTm5ipbIj+d45QqpZPsPGzlZVlEtoy9htKq6YzUGH1t/vPya8Iw7ZMCbiB0VkfmWwHR52yBm+CfrfqD6ZQciOghYdl/9aZzL7BlRpZBjObvRI0No/7UKPF3V5wTKcB4uLyVOKnOFZgK4oZlLIfsOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.176.1.74) smtp.rcpttodomain=gmail.com smtp.mailfrom=ericsson.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ericsson.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9z6wJXZ8wSx+ItgYiRBWeFHLKrTX+IOXh/ISeEf5jNM=; b=MxBaP/YoMLUnHadRQ8tzUxfFlzwRHreWcjo/CgjuNdxXgCer0Eh5Wrepbr+wGwIbxstJ8+k8x28cPeXevSrza5k4MeV0s000SxgcNge64BVlnkU7SpA+X7EUY66a3utHsWoN1BSPclg/4iluoV08jDBFaeivaX9XDZbU5lwhPHMCuXtntfxQ+Qv0btYbrdvn/RGFSR9a23NkHLpBis4FnM27bF8FDUy9t23F3BzBTfz75u69wPJksPLA4i5GqwyLLZiSBaigQnysDKKg/G3n4rHs3WWr8i4KEEYmu7yOFjgC28VT2856XonXVRU9W2Usi7smzZgL03rjBVA0I+ypBQ== Received: from VIUP296CA0126.AUTP296.PROD.OUTLOOK.COM (2603:10a6:800:350::7) by PAWPR07MB9276.eurprd07.prod.outlook.com (2603:10a6:102:2f2::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.546.22; Tue, 27 Oct 2026 13:31:31 +0000 Received: from MI3PEPF00008485.eurprd02.prod.outlook.com (2603:10a6:800:350:cafe::68) by VIUP296CA0126.outlook.office365.com (2603:10a6:800:350::7) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.546.22 via Frontend Transport; Tue, 27 Oct 2026 13:31:31 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 192.176.1.74) smtp.mailfrom=ericsson.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ericsson.com; Received-SPF: Pass (protection.outlook.com: domain of ericsson.com designates 192.176.1.74 as permitted sender) receiver=protection.outlook.com; client-ip=192.176.1.74; helo=oa.msg.ericsson.com; pr=C Received: from oa.msg.ericsson.com (192.176.1.74) by MI3PEPF00008485.mail.protection.outlook.com (10.167.240.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.569.4 via Frontend Transport; Tue, 27 Oct 2026 13:31:31 +0000 Received: from seroius18813.sero.gic.ericsson.se (153.88.142.248) by smtp-central.internal.ericsson.com (100.87.178.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Tue, 27 Oct 2026 14:30:56 +0100 Received: from seroius08462.sero.gic.ericsson.se (seroius08462.sero.gic.ericsson.se [10.63.237.245]) by seroius18813.sero.gic.ericsson.se (Postfix) with ESMTP id 48511957C0; Tue, 27 Oct 2026 14:30:49 +0100 (CET) Received: by seroius08462.sero.gic.ericsson.se (Postfix, from userid 160155) id 11179707231E; Tue, 27 Oct 2026 14:30:49 +0100 (CET) From: To: CC: , Daniel Turull Subject: [AUH][PATCH v4 2/2] steps: skip changelog in commit message when devtool flags it Date: Tue, 27 Oct 2026 14:30:43 +0100 Message-ID: <20261027133046.300849-2-daniel.turull@ericsson.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261027133046.300849-1-daniel.turull@ericsson.com> References: <20261027133046.300849-1-daniel.turull@ericsson.com> MIME-Version: 1.0 Return-Path: edaturu@ericsson.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MI3PEPF00008485:EE_|PAWPR07MB9276:EE_ X-MS-Office365-Filtering-Correlation-Id: 255b7beb-1fb1-41fa-68f0-08df342e9cfa X-SMTP-Server: smtp-central.internal.ericsson.com X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|23010399003|1800799024|376014|82310400026|261009223027099003|261021121427099003|261022075727099003|261022105027099003|10067099003|56012099006|261026140227099003|6133799003|18002099003|22082099003|11063799006; X-Microsoft-Antispam-Message-Info: BSjL6Zzr15nQ6b+amrNJRNspcfkyyGKHa1bkgvgjCcy76vCfFaUYB4ssITtBAbJhis01+ugh+/oDKG3CZ6fo4wSwgHoGpPpJnBNmfbTBClMkf3lKG8fDr9cbYtTC0S7aQHwMA4okl0NoFEZlBvmHKR911P/swr51+JxDKcCykascXaS5mhgFusIZfS7QjSfHojSYbcmRqiJ6dSeGUfEVvklaVKs+kJDXkyyiLN5WLCisbfRNgsNMo2hVq11K22ijj3Qi43FUNuxV5eF90sHetDEybyfPmVUGUn3Q+EBzvQF3rEp54b3ubFMTnNzXWr7wCLxikP0CwhDbNt6wuhOrhkQanQVqNuYOI0ryCiEf3jjBjERgSHBqYUse7EezBw91T64r45V8+5huw9Am9dGZCd1ylJ6BDsOZiTPsjUjN/43nJQ+Cn4fgurSTdf4Aqh6SS7ycoX4rkq3yTmvsdWqx722lCXlMO1Wz+6tvXabRZk0DeshqXT7QHWmeDdeeF8tli6dMGVF2wdYsaH3fbX6hKT0rZ/r99br+cNEOxXcn0QLwGN30tXwP4tMmdu9e4f3sTDNZAUksKsphYoS3fP343kk2Cv0PUtM8FNflyk4TEejLNOUVfbWezD0vmozImii22DtpCX2L7l8/3B/HkrBREBe23nCae8HdH5Wp5WpxcCkZ6xSjDIGwK249Pi4hTNJupC0wgQ4SvRfboe+HvSyheQ== X-Forefront-Antispam-Report: CIP:192.176.1.74;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:oa.msg.ericsson.com;PTR:office365.se.ericsson.net;CAT:NONE;SFS:(13230040)(36860700016)(23010399003)(1800799024)(376014)(82310400026)(261009223027099003)(261021121427099003)(261022075727099003)(261022105027099003)(10067099003)(56012099006)(261026140227099003)(6133799003)(18002099003)(22082099003)(11063799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hoe8KOcFB+tRDBRTMse3ZAC2WXHwVwhoHgS1DXhkEVNr0IOl1C5vXBSQNYA3Oua8rRgqWoNRfEhWQLOrIkg8c43px8vmxUj4KwS3TfwCS7cOON1TevLLGYtQ6GmCkb82mvidwWs/ai6NYDG4efY+9pDd4N3Z44C9u3682AxlfjIS6VmJN8psNA1xQRgudIFVpQGCwuycb1CnZGLsO4dfOvJKHyS5gXTpC3UNNDswpTqXvsQTTaO0tczXqTGQcT8b2+/VJLM4lxx3X1kM8EFtclxmAK7QBpIkXiS/xg5goNnGEV3yH45tFJilxiwJX0OgWITBP3vy0giDV3kAyIR9yFbz+Ssb1cX/rgMjdKan7EtgLnkEq+7/wmV6OEZBkBEI/wi6jm3MBvJBdBCl6lY4AJe3/+1d9kuNL52c1XB5dw+UIZGUtZyJD/ZJUEKNVUft X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2026 13:31:31.5809 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 255b7beb-1fb1-41fa-68f0-08df342e9cfa X-MS-Exchange-CrossTenant-Id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=92e84ceb-fbfd-47ab-be52-080c6b87953f;Ip=[192.176.1.74];Helo=[oa.msg.ericsson.com] X-MS-Exchange-CrossTenant-AuthSource: MI3PEPF00008485.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR07MB9276 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 27 Oct 2026 13:31:45 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5163 From: Daniel Turull Some upstream changelogs are badly formed for a commit message (e.g. mesa, gstreamer release notes, raw git log dumps) and make the upgrade commits hard to read. 'devtool upgrade' now flags these, driven by RECIPE_UPGRADE_CHANGELOG_SKIP in OE-Core, so honour that and leave them out of the commit message. The changelog is still attached to the AUH email, so the information is not lost. This depends on the OE-Core patch "devtool: upgrade: flag badly formed changelogs in metadata". Assisted-by: kiro:claude-sonnet-5.5 Signed-off-by: Daniel Turull --- Changes in v4: - Use the devtool_changelog_skip field exposed in pkg_ctx by the previous patch (Alexander) Changes in v3: - Parse the devtool metadata JSON once and keep it in pkg_ctx['changelog_metadata'] instead of reading it in a separate _changelog_skip() helper (Alexander) - Split the _get_changelog() refactor into a separate patch --- modules/steps.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/steps.py b/modules/steps.py index a68dec4..a24674b 100644 --- a/modules/steps.py +++ b/modules/steps.py @@ -114,6 +114,10 @@ def _append_changelog_to_commit_msg(group, opts): for p in group['pkgs']: if 'changelog_text' not in p: continue + # Changelog stays attached to the email, only the commit message skips it + if p.get('devtool_changelog_skip'): + I(" %s: changelog not added to commit message (RECIPE_UPGRADE_CHANGELOG_SKIP)" % p['PN']) + continue text = p['changelog_text'].strip() # Group recipes may share a source and produce identical changelogs # (e.g. mesa, mesa-native); skip proven duplicates, keep the rest.