mbox series

[0/6] patchtest: script fixes, improve recipe parsing

Message ID 20261204174107.1295971-1-tgamblin@baylibre.com
Headers show
Series patchtest: script fixes, improve recipe parsing | expand

Message

Trevor Gamblin Dec. 4, 2026, 5:41 p.m. UTC
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(-)