From patchwork Fri Dec 4 17:41:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 107350 Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2720.1796406073737421067 for ; Fri, 04 Dec 2026 09:41:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=cGQpXB26; spf=pass (domain: baylibre.com, ip: 209.85.221.171, mailfrom: tgamblin@baylibre.com) Received: by mail-vk1-f171.google.com with SMTP id 71dfb90a1353d-5ee2ad94713so699457e0c.0 for ; Fri, 04 Dec 2026 09:41:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796406073; x=1797010873; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=JBQoZKgpGbK+aUsQCtv1FWfZYFzl6igZYZ6VMfMdP8s=; b=cGQpXB264nk7z1ZC4dWnQSbk22YbfuB0r3Z/gewx9c0H1V3YGKCOQPxWH63lRjHKaY e1Jv4nuJk+yc6DuEbl+dmueWWuBKXnNLmBkEZSJtNVEJQj29b0nIkAwZwHvg3lNmq4qX DXP6Blx//HwWq9eSyhibBS20jK+8ILVBqlUkz/kNNjc7i2/l5+32JAL0x2L7SQJzBH+R UV0frGBsaB5e5U8VMDNuhKn6ejm3di86uBEZQz/a+V5nfZ/nS+nZO5m3NpIaazCRkJE+ T+9pyEj7DmkltOL6MzRXajiww2+JP/iCSn9R6l0ckSQohW31XsDxaUUlMV7vsz8CA19x MQqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796406073; x=1797010873; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=JBQoZKgpGbK+aUsQCtv1FWfZYFzl6igZYZ6VMfMdP8s=; b=FT9+TjjVr8XI5oCJbjOeAKBMw4AiqSf85apmlztPcZ1t+3fXUKhUagGGRa3dSBNgUM wJs5q7VlIIMd+8BUbzDPIHFGLFi1ELK1Jfh5LCQAxtWeLkNXOSO/bJHjXCTqSGv80VRk wqu25LqYllUq3hoNgkaQFHM5R9rroX2yjQBKk8CPx6pKXsuvzfOiKjWvfgHYAxzJxygg O9G8oIQYzxY+H6dFxbmT6WpW/qXLj0kXpH3w3+IGrXUrzYmFKAmcstydfo+UmYbjg/2B E0So4xbPVbhjk+Nwee+cy88HYrZMPoX959tyUJKxnyABO71Q+of2EJoZBOzXlJ4jwuj5 2PGQ== X-Gm-Message-State: APuU4Z84NTIE+7Xm+yr4MxmO+Jkj/zqym05leAEmWr4KbBdzQpQUSHRT aGkr8KypiH77HystMVThYA417yMUDnPg2Q3tlic2d75DQHWM6ydubMjN5GaHGRJ+9UXk+LwTkHl x5t75rbw= X-Gm-Gg: AZFdTZemMSsqKozycpZsBH2oTpt0my5KdKMEgl6zHsR+0XseboA5MeGoxj7EpKnykn6 VEhJL5f0EU8P7mRVcUpc4mq4v7jae3YOCrlyRlKYGHNftn+l9Cy4XxeT9ntk696wjyvlhOA4pm1 oOpTA9kVSi+ocbcn39C3YURqwchsqkm17PofVewK1kqh3xIvWcGNytXc0rlycQaBn5CQNtPgOgM cx9pgyvX24v8HNhoqLaodxtY4TDm1SK4i2YEFQ49d7egEsFlW7tZivlMhWpUgjtnRDV3MODsbdx DUpZz8hKvh/0ktkQEzbrXRaoXH/hTfLVCc+K8wN6yELLQRh3dgE5bkf+VvXgJwmzMM0GkxekCC1 YVXTefOdxqhXkcJthHJp71Qm5e6HbhRmLMK1EAU22Gd3dNPOeIL2hugsFOIhcvBYnplBx4tZmkc D5GZRxlDC28N/uwxaFXJOpg73oBgwxZXYvHGe3NWqIYxkQezPQHudP4Xunrf/9GYhzchUXtHOev w/sL8kMGMpC/T/TgXPPoyssKnuwIn8nXJQpT5zpfFfR5OPNYA7QmMShOXU+udxbqoEZcLtwFPth mXybjb5JGsSqnPCJTeQC2mWHOXfSxJ5F75sIfO6nDRkW78ZHgWVUowNGXDgEreUmEpoZkba60pM b24PNtAFI6Q== X-Received: by 2002:a05:6122:861c:b0:5f0:2090:e580 with SMTP id 71dfb90a1353d-5f02090ee0amr1688273e0c.21.1796406072681; Fri, 04 Dec 2026 09:41:12 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5f01d3bf4d6sm1398046e0c.10.2026.12.04.09.41.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 09:41:12 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 1/6] scripts/patchtest: print failure data with results Date: Fri, 4 Dec 2026 12:41:02 -0500 Message-ID: <20261204174107.1295971-2-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204174107.1295971-1-tgamblin@baylibre.com> References: <20261204174107.1295971-1-tgamblin@baylibre.com> MIME-Version: 1.0 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 ; Fri, 04 Dec 2026 17:41:19 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252009 Print the data passed with each failure, such as the suggested mailing list from test_target_mailing_list, along with the test result. addFailure() adds ': ' after each key, so drop the trailing colon from the "Patch's path" key in test_mbox.py to avoid doubling it. AI-Generated: Uses Claude Code Opus 5.5 Signed-off-by: Trevor Gamblin --- meta/lib/patchtest/tests/test_mbox.py | 4 ++-- scripts/patchtest | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/meta/lib/patchtest/tests/test_mbox.py b/meta/lib/patchtest/tests/test_mbox.py index 3db21d2104..0660e7aced 100644 --- a/meta/lib/patchtest/tests/test_mbox.py +++ b/meta/lib/patchtest/tests/test_mbox.py @@ -123,14 +123,14 @@ class TestMbox(base.Base): if base_path in project.paths: self.fail('Series sent to the wrong mailing list or some patches from the series correspond to different mailing lists', data=[('Suggested ML', '%s [%s]' % (project.listemail, project.gitrepo)), - ('Patch\'s path:', patch.path)]) + ('Patch\'s path', patch.path)]) # check for poky's scripts code if base_path.startswith('scripts'): for poky_file in self.poky_scripts: if patch.path.startswith(poky_file): self.fail('Series sent to the wrong mailing list or some patches from the series correspond to different mailing lists', - data=[('Suggested ML', '%s [%s]' % (self.poky.listemail, self.poky.gitrepo)),('Patch\'s path:', patch.path)]) + data=[('Suggested ML', '%s [%s]' % (self.poky.listemail, self.poky.gitrepo)),('Patch\'s path', patch.path)]) def test_mbox_format(self): if self.unidiff_parse_error: diff --git a/scripts/patchtest b/scripts/patchtest index 17a3cebb48..86271a40c1 100755 --- a/scripts/patchtest +++ b/scripts/patchtest @@ -89,8 +89,11 @@ def getResult(patch, mergepatch, logfile=None): def addFailure(self, test, err): self.test_failure = True desc = _format_test_description(test) - issue = json.loads(str(err[1]))["issue"] + parsed = json.loads(str(err[1])) + issue = parsed["issue"] _write_patchtest_result('{}: {}: {} ({})'.format(self.fail, desc, issue, test.id()), logfile) + for key, val in parsed.get('data') or []: + _write_patchtest_result(' {}: {}'.format(key, val), logfile) def addSuccess(self, test): desc = _format_test_description(test)