Skip to contentSkip to conversation

cookerdata: Delay the setup of the siggen slightly to allow metadata defined siggens

PATCH New Richard Purdie 1 participant 2 messages Aug 16, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 cookerdata: Delay the setup of the siggen slightly to allow metadata defined siggens

If we define a metadata siggen it can fail due to the early init here. Move slightly later to avoid those failures which allows fixes in OE to the check-layer script related to the hash equiv siggen.

---
 lib/bb/cookerdata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/cookerdata.py +1 -1
index 144e803b4f..96a8e6beee 100644
@@ -268,11 +268,11 @@ class CookerDataBuilder(object):
 
     def parseBaseConfiguration(self):
         try:
-            bb.parse.init_parser(self.basedata)
             self.data = self.parseConfigurationFiles(self.prefiles, self.postfiles)
 
             if self.data.getVar("BB_WORKERCONTEXT", False) is None:
                 bb.fetch.fetcher_init(self.data)
+            bb.parse.init_parser(self.data)
             bb.codeparser.parser_cache_init(self.data)
 
             bb.event.fire(bb.event.ConfigParsed(), self.data)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 runqueue: Small but critical fix

We've observed do_package and do_package_setscene running in parallel. The reason is that holdoff_tasks wasn't getting updated. Looking at the code, it would seem the reason is that the task was in pending_migrations and hence changed wasn't set and holdoff_tasks wasn't updated.

Fix this. It only affects builds with rehashing enabled.

---
 lib/bb/runqueue.py | 1 +
 1 file changed, 1 insertion(+)
lib/bb/runqueue.py +1 -0
index 7fa074f679..88212ca00c 100644
@@ -2283,6 +2283,7 @@ class RunQueueExecute:
                 continue
 
             self.pending_migrations.remove(tid)
+            changed = True
 
             if tid in self.tasks_scenequeue_done:
                 self.tasks_scenequeue_done.remove(tid)
Signature · 1 line
2.20.1