<?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>11651</bug_id>
          
          <creation_ts>2017-06-13 09:08:14 +0000</creation_ts>
          <short_desc>test_sstate_noop_samesigs performance when there are differences is dire</short_desc>
          <delta_ts>2017-08-16 19:29:48 +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>unspecified</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>anibal.limon</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>74044</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-06-13 09:08:14 +0000</bug_when>
    <thetext>oe-selftest -r sstatetests.SStateTests.test_sstate_noop_samesigs

I had a local issue where a function depended on BB_NUMBER_THREADS in global scope (in do_package_ipk). This selftest took hours to run. The reasons were that:

a) The test forces single threading (easy fix, I&apos;ll send a patch)
b) It loops over calling bitbake-diffsigs on every hash difference thanks to: http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/lib/oeqa/selftest/sstatetests.py?id=85dbd7bf9e4b6eccdbb8102e462dd681240c1c57

Whilst bitbake-diffsigs is useful we probably need to cap the output at X (say 20?) differences.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74045</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-06-13 09:12:37 +0000</bug_when>
    <thetext>One quick fix may be to call the python function instead of using process and a new python interpreter each time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75660</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-08-04 19:01:44 +0000</bug_when>
    <thetext>patches sent to the mailing list:

http://lists.openembedded.org/pipermail/openembedded-core/2017-August/140480.html and 81.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75919</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-08-16 19:29:48 +0000</bug_when>
    <thetext>Merged at

a2e2f434cd: Leonardo Sandoval: Fri Aug 11 00:08:33 2017 +0100: sstatetests: limit the number of signature comparisons when differ

5dd65cf502: Leonardo Sandoval: Tue Aug 8 12:53:02 2017 +0100: sstatetests: Use python function instead of bitbake-diffsigs script</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>