<?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>11752</bug_id>
          
          <creation_ts>2017-07-04 16:07:40 +0000</creation_ts>
          <short_desc>selftest test cases should use the test data and/or tinfoil instead of bitbake</short_desc>
          <delta_ts>2017-09-26 16:22:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>74735</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-04 16:07:40 +0000</bug_when>
    <thetext>Selftest test cases uses the functions get_bb_var and get_bb_vars to access the datastore through a bitbake process launch &amp; parse. This is too expensive in terms of performance and should be replaced to either query the &apos;test data&apos; dictionary from the selftest main test case or use tinfoil (or both).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74736</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-04 16:10:36 +0000</bug_when>
    <thetext>There is some preliminar work tracked at branch [1]. This work just focuses on querying the local test data, so no tinfoil usage at all for the moment.

[1] http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=lsandov1/selftest-use-td

No performance gains seen with the latter so far, so taken approach may be wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77146</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-09-26 16:22:27 +0000</bug_when>
    <thetext>I did some performance benchmarks with branch [1] which avoids bitbake process launch but gains are minimal (I do have the numbers) so will close this bug as wontfix. So, it was a good idea but turned in practice that it is not worth it.

[1] http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=lsandov1/selftest-use-td-debug</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>