[gnome-continuous-yocto/gnomeostree-3.28-rocko: 2755/8267] bitbake: runqueue: Ensure worker failure is accounted for in task statistics
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 2755/8267] bitbake: runqueue: Ensure worker failure is accounted for in task statistics
- Date: Sat, 16 Dec 2017 23:40:31 +0000 (UTC)
commit 0b17e6d32c0f3d39fb5e58c4ff1c25afe58ce4f3
Author: Richard Purdie <richard purdie linuxfoundation org>
Date: Wed Sep 28 10:35:12 2016 +0100
bitbake: runqueue: Ensure worker failure is accounted for in task statistics
If the worker fails to launch, ensure the task is shown as failed rather
than a confusing "all succeeded" message.
Patch from Juro Bystricky
[YOCTO #10335]
(Bitbake rev: 0e9a2ff96d138641501874a1cd7aa6cc7e94d727)
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
bitbake/lib/bb/runqueue.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 9b7bb3f..1571639 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1800,6 +1800,7 @@ class RunQueueExecuteTasks(RunQueueExecute):
except OSError as exc:
logger.critical("Failed to spawn fakeroot worker to run %s: %s" % (task, str(exc)))
self.rq.state = runQueueFailed
+ self.stats.taskFailed()
return True
self.rq.fakeworker[mc].process.stdin.write(b"<runtask>" + pickle.dumps((taskfn, task,
taskname, False, self.cooker.collection.get_file_appends(fn), taskdepdata)) + b"</runtask>")
self.rq.fakeworker[mc].process.stdin.flush()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]