mbox series

[0/6,v2] add hyperfine recipe, improve ptest-cargo.bbclass

Message ID 20261125160821.3028875-1-tgamblin@baylibre.com
Headers show
Series add hyperfine recipe, improve ptest-cargo.bbclass | expand

Message

Trevor Gamblin Nov. 25, 2026, 4:08 p.m. UTC
Compared to v1, fix the second patch ('hyperfine: add ptest support') to add a
missing Signed-off-by and be more explicit about the AI usage there.

This began as a "simple" attempt to add a recipe for hyperfine [1], which is a
very handy benchmarking tool we could use for statistcal analysis on test
targets. Once the ptests were added in a follow-up to the recipe patch, I
started hitting issues with ptest-cargo.bbclass and the way that we're deploying
test binaries, so the final four commits address that. The last patch changes
the way we invoke chown - if everyone were using Python 3.13 or newer, we could
stick with shutil, but this would break compatibility for older distros.

All of this has been assisted by Claude Opus 5.5, except for
'ptest-cargo.bbclass: improve test binary matching', which I ended up going to
the docs and reading a bit for. I think that one is correct, but if someone has
a better approach, let me know.

[1]: https://github.com/sharkdp/hyperfine

Trevor Gamblin (6):
  hyperfine: add recipe
  hyperfine: add ptest support
  ptest-cargo.bbclass: improve test binary matching
  ptest-cargo.bbclass: run do_install_ptest_cargo as a postfunc
  librsvg: make ptest symlink creation idempotent
  ptest-cargo.bbclass: don't follow symlinks when chowning

 meta/classes-recipe/ptest-cargo.bbclass       |  29 +-
 meta/conf/distro/include/maintainers.inc      |   1 +
 .../distro/include/ptest-packagelists.inc     |   1 +
 ...riding-the-hyperfine-binary-with-HYP.patch |  39 +++
 .../hyperfine/files/run-ptest                 |   7 +
 .../hyperfine/hyperfine-crates.inc            | 274 ++++++++++++++++++
 .../hyperfine/hyperfine_2.0.0.bb              |  32 ++
 meta/recipes-gnome/librsvg/librsvg_2.63.4.bb  |   2 +-
 8 files changed, 369 insertions(+), 16 deletions(-)
 create mode 100644 meta/recipes-devtools/hyperfine/files/0001-tests-allow-overriding-the-hyperfine-binary-with-HYP.patch
 create mode 100644 meta/recipes-devtools/hyperfine/files/run-ptest
 create mode 100644 meta/recipes-devtools/hyperfine/hyperfine-crates.inc
 create mode 100644 meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb