Bug 15531 - AUH: run core-image-ptest-${BPN} for testimage (not core-image-sato)
Summary: AUH: run core-image-ptest-${BPN} for testimage (not core-image-sato)
Status: NEW
Alias: None
Product: Automated Update Handler
Classification: Yocto Project Subprojects
Component: Automatic Update Handler (show other bugs)
Version: 5.1
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 6.1 M1
Assignee: Tim Orling
QA Contact: apoorv sangal
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-06-27 17:03 UTC by Tim Orling
Modified: 2026-04-21 14:56 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Orling 2024-06-27 17:03:04 UTC
Not sure that is is currently possible to expand variables in upgrade-helper.conf

e.g.

# If enabled, build and boots a test image, and runs integration tests on it
# If upgraded packages have ptest support those are run as well
#
# Requires 'testimage' in INHERIT in your conf/local.conf and 'ptest' in your
# distro's DISTRO_FEATURES.
testimage=yes

# This can be used to change the name of the test image.
#
testimage_name=core-image-ptest-${BPN}


Probably the code behind testimage in AUH is not compatible with the concept anyway. But given the new capabilities with the mcextend/BBCLASSEXTEND "magic", it would make the testing of ptest-enabled updates much easier/more useful?
Comment 1 Alexander Kanavin 2024-06-27 20:08:12 UTC
Here's the testimage code in AUH:
https://git.yoctoproject.org/auto-upgrade-helper/tree/modules/testimage.py

If I'm reading it right, it detects if the currently upgraded package has ptest enabled, and if so, adds ${PN}-ptest to the image. The image doesn't have to be sato, it can be something else, e.g. core-image-ptest or something even more minimal.

Would that be sufficient? I'm not using this function, so I do not know how well that works.
Comment 2 Randy MacLeod 2024-07-04 14:59:15 UTC
Put into needinfo by accident.