<?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>16112</bug_id>
          
          <creation_ts>2025-12-23 15:14:40 +0000</creation_ts>
          <short_desc>add an oe selftest to test impact of various DISTRO_FEATURES</short_desc>
          <delta_ts>2026-01-08 15:45:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>6.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.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Randy MacLeod">randy.macleod</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>Qi.Chen</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103642</commentid>
    <comment_count>0</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-12-23 15:14:40 +0000</bug_when>
    <thetext>Recently Qi Chen sent this patch (1):
  insane.bbclass: avoid unnecessary rerun of do_patch
and while this is a good insane check, there is more that can an should be done.


I&apos;m creating this ticket from memory of the YP patch review discussion
so if you work on this you may have to ask for additional guidance that I
may have missed.

The basic idea is to do two different builds, with and without a 
given DISTRO_FEATURE set and run a series of tests on the resulting outputs
to ensure that  &quot;things make sense&quot;. In the case of the ptest DISTRO_FEATURE,
recipes that do not have ptest should not rebuild.

There was some discussion of how a test such as this one for ptests is
similar to the sstate oeqa tests, which can be helpful to run in the AB. 
This likely refers to:
   meta/lib/oeqa/selftest/cases/sstatetests.py and other changes,

Qi has these tests in mind:

   1. All target DISTRO_FEATURES should not affect native recipes.
   2. Some of the target DISTRO_FEATURES should not affect cross recipes.

Richard suggests that a for simple recipes that don&apos;t depend on other recipes:
   3. if a target recipe doesn&apos;t use ptests, ideally changing
     DISTRO_FEATURES to add ptest shouldn&apos;t rebuild that recipe since 
     it should be unchanged.

 

1) all versions:
https://lore.kernel.org/openembedded-core/?q=insane.bbclass%3A%20avoid%20unnecessary%20rerun%20of%20do_patch

v3: 
https://lore.kernel.org/openembedded-core/20251218025351.427853-1-Qi.Chen@windriver.com/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>