mbox series

[0/6] Fix essentials rebuild and cover with CI

Message ID 20250221154843.515037-1-amikan@ilbers.de
Headers show
Series Fix essentials rebuild and cover with CI | expand

Message

Anton Mikanovich Feb. 21, 2025, 3:48 p.m. UTC
Add sed package as an example of rebuiled essential package to be used
during the build inside sbuild chroot.

This patchset fixes the following use case:

$ bitbake -c build sed
$ echo -e "\npython do_rootfs_install:append() {\n\n}" >> /work/meta/classes/rootfs.bbclass
$ bitbake -c build sed

Cover it with full CI, also cover f62de6792 with the following case:

$ bitbake -c local_isarapt cowsay
$ bitbake -c build sed
$ bitbake -c cleansstate sbuild-chroot-target
$ bitbake -c build cowsay

Also introduce new CI APIs:
- Obtaining of package version installed in rootfs.
- Inserting custom sbuild hooks during test case.

Anton Mikanovich (6):
  CI: Add API for checking package version in rootfs
  CI: Add API for sbuild hook insertion
  CI: Add sed as essential rebuild test package
  CI: Add essential packages rebuild test case
  CI: Fix getVars API on fast recalling
  meta: Do not update isar-apt during sbuild chroot prepare

 meta-test/recipes-extended/sed/sed.bb         |  15 +++
 .../sbuild-chroot/sbuild-chroot.inc           |   8 +-
 testsuite/cibase.py                           | 101 ++++++++++++++++++
 testsuite/cibuilder.py                        |  26 ++++-
 testsuite/citest.py                           |  25 ++++-
 testsuite/utils.py                            |   6 ++
 6 files changed, 178 insertions(+), 3 deletions(-)
 create mode 100644 meta-test/recipes-extended/sed/sed.bb