[oe-commits] [openembedded-core] 03/15: sstate: Add tweak to avoid multiple sstate stats messages

git at git.openembedded.org git at git.openembedded.org
Mon Jul 15 08:32:18 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 227125b96ad6fb0cf6e259e787d83415993db847
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Jul 12 13:54:19 2019 +0100

    sstate: Add tweak to avoid multiple sstate stats messages
    
    After the recent changes in bitbake to runqueue, we need to recheck sstate validity,
    particularly in multiconfig builds where tasks have the same checksum.
    
    Avoid printing summary messages in this case. Also avoid multiple events to toaster
    which may not be expecting that at later points in the code.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/sstate.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 424acfb..b604729 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -927,6 +927,10 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d, siginfo=False, *,
 
             bb.event.fire(bb.event.ProcessFinished(msg), d)
 
+    # Likely checking an individual task hash again for multiconfig sharing of sstate tasks so skip reporting
+    if len(sq_fn) == 1:
+        return ret
+
     inheritlist = d.getVar("INHERIT")
     if "toaster" in inheritlist:
         evdata = {'missed': [], 'found': []};

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list