<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15531</bug_id>
          
          <creation_ts>2024-06-27 17:03:04 +0000</creation_ts>
          <short_desc>AUH: run core-image-ptest-${BPN} for testimage (not core-image-sato)</short_desc>
          <delta_ts>2026-04-21 14:56:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Automated Update Handler</product>
          <component>Automatic Update Handler</component>
          <version>5.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>6.1 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          <cc>randy.macleod</cc>
          
          <qa_contact name="apoorv sangal">apoorvsangal</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99288</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2024-06-27 17:03:04 +0000</bug_when>
    <thetext>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 &apos;testimage&apos; in INHERIT in your conf/local.conf and &apos;ptest&apos; in your
# distro&apos;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 &quot;magic&quot;, it would make the testing of ptest-enabled updates much easier/more useful?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99289</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2024-06-27 20:08:12 +0000</bug_when>
    <thetext>Here&apos;s the testimage code in AUH:
https://git.yoctoproject.org/auto-upgrade-helper/tree/modules/testimage.py

If I&apos;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&apos;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&apos;m not using this function, so I do not know how well that works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99319</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-07-04 14:59:15 +0000</bug_when>
    <thetext>Put into needinfo by accident.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>