[oe-commits] [bitbake] 04/04: cooker: Ignore common bitbake files for the parse cache invalidation

git at git.openembedded.org git at git.openembedded.org
Wed Aug 9 22:51:20 UTC 2017


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

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 218e4b6418992588312b8ef5949b84ef43263d1a
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Aug 9 12:58:39 2017 +0100

    cooker: Ignore common bitbake files for the parse cache invalidation
    
    Writes to the cookerdaemon log and/or the lockfile were meaning the parser
    cache was always being invalidated and reparsed. This is unnecessary so
    spot accesses to these two common cases and ignore the files from a reparse
    perspective.
    
    This doesn't remove many sources of reparse but does improve several
    common cases.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/cooker.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index b3d6cd9..db034b9 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -263,6 +263,9 @@ class BBCooker:
             self.parsecache_valid = False
             bb.parse.clear_cache()
             return
+        if event.pathname.endswith("bitbake-cookerdaemon.log") \
+                or event.pathname.endswith("bitbake.lock"):
+            return
         if not event.pathname in self.inotify_modified_files:
             self.inotify_modified_files.append(event.pathname)
         self.parsecache_valid = False

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


More information about the Openembedded-commits mailing list