* [PATCH] cooker: Fire BuildCompleted before finishing the command
@ 2015-06-25 16:53 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2015-06-25 16:53 UTC (permalink / raw)
To: bitbake-devel
Some handlers hook on BuildComplete so it avoids certain event races
to finish the command after the BuildComplete event is sent out.
This means the UI is available to handle events until the command
completes.
What appears to be a race on one of the sanity tests for event handlers
triggered this change although the failure is hard to reproduce.
[YOCTO #7921]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index d42b389..0dd3296 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1306,8 +1306,8 @@ class BBCooker:
return False
if not retval:
- self.command.finishAsyncCommand(msg)
bb.event.fire(bb.event.BuildCompleted(len(rq.rqdata.runq_fnid), buildname, item, failures), self.expanded_data)
+ self.command.finishAsyncCommand(msg)
return False
if retval is True:
return True
@@ -1339,8 +1339,8 @@ class BBCooker:
return False
if not retval:
- self.command.finishAsyncCommand(msg)
bb.event.fire(bb.event.BuildCompleted(len(rq.rqdata.runq_fnid), buildname, targets, failures), self.data)
+ self.command.finishAsyncCommand(msg)
return False
if retval is True:
return True
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-25 16:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-25 16:53 [PATCH] cooker: Fire BuildCompleted before finishing the command Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.