From patchwork Fri Dec 4 17:41:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 3295 Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2606.1796406072651628639 for ; Fri, 04 Dec 2026 09:41:13 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=DkKsnQFP; spf=pass (domain: baylibre.com, ip: 209.85.222.46, mailfrom: tgamblin@baylibre.com) Received: by mail-ua1-f46.google.com with SMTP id a1e0cc1a2514c-996eeadfbeaso650881241.3 for ; Fri, 04 Dec 2026 09:41:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796406072; x=1797010872; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=QZ2sw1V3JuFoo06cUg/ee46F0pFGpk1RQBXM0CfCXnE=; b=DkKsnQFPS9/rYEsuxpPyU/Il15qoaF8pAsY+pn4N9hvUcLt4O7lv6HJW4CCROtGCmr XchiaBX1qsWJsW/8pvq/5WsZZ2iwkwlcNTAWWRIZK+efO4sTZ7D2mdzhXhbhyfUkt0Tr kAG2AboaSRuEvMl5UuV7Bsx0NUqvf/xiMJKh/Px9FRO+8GrGBefJLs0xwK2ltxzetnlM +Pxv4/c8N9WUFyTeh7vO2bY0Nb/hyPz3ZoxhX+hF3bRzDNkD80oCuumaWa+Z98P4Sd0+ O7ZJRVOcbNIETVodCJJAEUpCv+tqeWfYPJLxA+Pmly9eQz2pAv35cfjF2JxxFVqG3keQ bdwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796406072; x=1797010872; h=content-transfer-encoding:mime-version: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=QZ2sw1V3JuFoo06cUg/ee46F0pFGpk1RQBXM0CfCXnE=; b=ehK5aJ5fTIo7NxwfLJFnhLMYHgZfrMrDeeYrWyhE/C8y+YWp8g7KQYOPdY4UX+WruY lY4PlKnbJfHUiHq+K2qO3HMfVjDq4G5HKr2YRSKK/9KKuTrFUX9AyUIpq3I1chNuuUbU FIV6eP/VVq9ywMFUhsaJT4G1X+bKeKTJ0nM+/9E2ilX8Uoldf6hwrZgZhXlOOj/Hwd7G Qps1mON7qVil3UGTTT4hUf9Haam6V31ckwRB7WDMBRXLfPSCysPwvUihpRnkEsjF6Ao8 2dv2Hu9kXxHl18OHrnMC3KcZUcTgY0kQCR/XZinsQ7gxdDJf9eGAcNOyNW8z5nm6HTw8 levg== X-Gm-Message-State: APuU4Z88N+PKW2nlu07Kj5aXU8SHSUY4Zqrv9gIIN4TN2Id8oomMb5yr B2vwklVg9eooslD0RT1FE7OG6EBga4qs9qzYqHWp/J8pt5dSddparRZO+fga691RR3KSQMahtRi HewrM8qE= X-Gm-Gg: AZFdTZeSFvZ8MpPKihP4Mu8vzYkOIaEELnaIUFI5cejX4StdI3J4Ew1DFKZfSznlXh1 IIOko6vHDuoyNZr02Ibgzuk6jWwpb7vFeZU2Usv2B3Jtjmbgn39YfHUVOoC4W3HzyjNNo/xitvY JTHlNWs1OizN/cefh1aLtbXA6bL48qY6hxln/vqGVwKSWFcOdaZjApu/JXJmSKpyMMTYtf+9BDl 7rUuFPxlIPjgAPX2z8plE/pQXmIw4+2C5qRD9vjx9o9A7pEimfwRj0UM7YIsMN+X6eDlkJ3/Tgm ryDxuxGJRPN1xmYHkScluRPeakrOVhS0VpURmkagm5JxVPu162OUu9amnsJ451bOrxBt1uFUZIW FjxOo2WoKbzcR9lyHCEwFXN6PqB6+cBWRpfayH7evMfDcMIDA1ALLccBQLCE/S8ZwSi3H+fqnEN F2qONeEn/lM3CqIuxq7W4gbw81OXiowsHFIpZllvMeY7b2qsAVN0IdygEmS3nRzo77anh0VGzhV 3R19Rro9l6ZhaMNdURFKC6McKGm1rp1MPDpngo9VDSIvYiVaSrIz8KKrR/P9eiB2w8Mksq15+xM AkEHK2dxwNAb0B/gSlzrc5JVVKKfH+raO9kAR4bthLcqyVXl5orTj460d5MU30+I3sqDYACuJJz Egwk9SUITbPo= X-Received: by 2002:a05:6122:62a3:b0:5ec:5f1b:f725 with SMTP id 71dfb90a1353d-5f01d113ef9mr2564635e0c.23.1796406071585; Fri, 04 Dec 2026 09:41:11 -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.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 09:41:09 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 0/6] patchtest: script fixes, improve recipe parsing Date: Fri, 4 Dec 2026 12:41:01 -0500 Message-ID: <20261204174107.1295971-1-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 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/252008 These patches are a small part of ~33 (pre-squash) changes I've developed on my contrib branch[1], where the goal is ultimately to improve patchtest with proper series testing (including merges!). That many commits is obviously a lot to review, so I'm breaking the branch contents up into logical chunks. This first set includes some minor fixups focused on improving failure data in .testresult files generated by the tool, ignoring those files (since they should never be valid patch/series files), and improving patchtest's underlying repo management. There is one significant functional change, which is to reduce the number of times tinfoil's parse_recipe() function is called in the test_metadata.py module. This results in a much-improved run time on my end in local testing - I downloaded series 54418 ('v3-1-4-pipewire-minor-tweaks.patch') from the mailing list and ran patchtest against it a few times each before and after the fix, seeing ~17-20s before and ~7-11s after. I expect this will still vary a lot between setups and input files, but we should see improvements overall. I've been using Claude Code Opus 5.5 to help me with critical review of the entire branch (including these six patches), so I've added the appropriate tags. Assuming it merges, the following series will cover: 1. Fixes related to mbox parsing 2. Merge testing (including new selftests) 3. Some minor cleanups to remove unused parts [1]: https://git.openembedded.org/openembedded-core-contrib/log/?h=tgamblin/patchtest Trevor Gamblin (6): scripts/patchtest: print failure data with results scripts/patchtest: don't stop at an empty patch in a directory scripts/patchtest: skip .testresult files in a directory scripts/patchtest: overwrite existing .testresult files scripts/patchtest: fail if the repo can't be set up patchtest: tests: test_metadata.py: parse each recipe only once meta/lib/patchtest/tests/base.py | 8 ++++++++ meta/lib/patchtest/tests/test_mbox.py | 4 ++-- meta/lib/patchtest/tests/test_metadata.py | 10 ++++----- scripts/patchtest | 25 +++++++++++++++-------- 4 files changed, 32 insertions(+), 15 deletions(-)