Bug 11651

Summary: test_sstate_noop_samesigs performance when there are differences is dire
Product: [QA/Testing] Build Testing Reporter: Richard Purdie <richard.purdie>
Component: generalAssignee: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: anibal.limon
Version: unspecified   
Target Milestone: 2.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2017-06-13 09:08:14 UTC
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'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.
Comment 1 Richard Purdie 2017-06-13 09:12:37 UTC
One quick fix may be to call the python function instead of using process and a new python interpreter each time.
Comment 2 Leonardo Sandoval Gonzalez 2017-08-04 19:01:44 UTC
patches sent to the mailing list:

http://lists.openembedded.org/pipermail/openembedded-core/2017-August/140480.html and 81.
Comment 3 Leonardo Sandoval Gonzalez 2017-08-16 19:29:48 UTC
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