<?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>11142</bug_id>
          
          <creation_ts>2017-03-10 13:25:20 +0000</creation_ts>
          <short_desc>Use artificial recipes for oe-selftest where possible to reduce work</short_desc>
          <delta_ts>2023-06-01 15:14:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>3.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Thomas Roos">thomas</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>thomas</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71194</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-03-10 13:25:20 +0000</bug_when>
    <thetext>Several of the tests in oe-selftest invoke bitbake with recipe targets, in many cases building relatively complex recipes with non-trivial dependency chains.

For several tests fetching and building isn&apos;t strictly necessary and the needs of the test could be as easily met with an artificial recipe in meta-selftest which uses a local file as its source, one immediate example which prompted this report is oescripts.TestScripts.test_cleanup_workdir

We should review the targets bitbake is invoked with in oe-selftest and aim to:

* use artificial recipes, with a local file source, where possible
* reduce reliance on recipes being present in oe-core, i.e. where practical oe-selftest should use recipes contained in meta-selftest to ensure the results are easily repeatable and independent of unrelated changes to oe-core i.e. the recent (at time of reporting) removal of GPLv2 recipes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76328</commentid>
    <comment_count>1</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-08-30 15:35:00 +0000</bug_when>
    <thetext>Moving to 2.5 and reassign this bug to Jair as he  will be working on oeqa enhancements</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95410</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Roos">thomas</who>
    <bug_when>2023-04-21 11:37:31 +0000</bug_when>
    <thetext>So e.g. a simple helloworld.c + recipe should be added to oe-core?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95411</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas Roos">thomas</who>
    <bug_when>2023-04-21 11:59:33 +0000</bug_when>
    <thetext>found this one here: poky/meta-skeleton/recipes-skeleton/hello-single
-&gt; should this then moved/copied to meta-selftest/recipes-test ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95416</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-04-21 18:24:34 +0000</bug_when>
    <thetext>Thomas, If you don&apos;t get an answer here by early next week, try the email list, perhaps with a patch to focus the discussion. Joshua is mostly on leave for weeks or maybe 2 months so he may not reply quickly if at all. (I&apos;m away next week as well).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95476</commentid>
    <comment_count>5</comment_count>
    <who name="Thomas Roos">thomas</who>
    <bug_when>2023-04-28 11:26:50 +0000</bug_when>
    <thetext>Hi, just was working on this today again, so what I found:
bbtests.BitbakeTests.test_event_handler
is using this:
bitbake(&apos;m4-native&apos;)

running just this test takes
orig: Ran 1 test in 75.741s

replaced with hello (copied from oe-skel...)
mod:  Ran 1 test in 678.986s
-&gt; so it seems that building a native version will speed up already this a lot.
-&gt; trying hello-native: 29.84s

Wondering if we should always just use -native recipes, then?

Other locations I found, but did not replace or check them, yet:

test_recipe = &apos;zlib&apos;

test_recipe = &apos;ed&apos;

bitbake(&apos;hicolor-icon-theme&apos;)

testrecipe = &apos;lighttpd&apos;



IMO it makes sense to have a fast hello world (-native?) recipe in meta-selftest /recipes-test to use in some tests where m4-native, zlib, ed... is used! 
Or may there is even a faster idea? It really just depends on the specific test, what should be tested.

Please, any thoughts on this?
Also, I will create a patch for this and post it to the mailing list for discussion as a next step.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95528</commentid>
    <comment_count>6</comment_count>
    <who name="Thomas Roos">thomas</who>
    <bug_when>2023-05-12 12:10:00 +0000</bug_when>
    <thetext>https://lists.openembedded.org/g/openembedded-core/message/181181?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C0%2Coeqa%2C20%2C2%2C0%2C98847654</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95573</commentid>
    <comment_count>7</comment_count>
    <who name="Thomas Roos">thomas</who>
    <bug_when>2023-05-19 07:12:20 +0000</bug_when>
    <thetext>https://lists.openembedded.org/g/openembedded-core/message/181486</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95615</commentid>
    <comment_count>8</comment_count>
    <who name="Thomas Roos">thomas</who>
    <bug_when>2023-06-01 15:14:31 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/poky/commit/?id=6c8fe83bb5d1aaa11307253e8ab33c2d7f1a4a3f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>