[oe-commits] [bitbake] branch master-next updated: runqueue: Ensure worker failure is accounted for in task statistics

git at git.openembedded.org git at git.openembedded.org
Wed Sep 28 09:37:31 UTC 2016


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

The following commit(s) were added to refs/heads/master-next by this push:
       new  0e9a2ff   runqueue: Ensure worker failure is accounted for in task statistics
0e9a2ff is described below

commit 0e9a2ff96d138641501874a1cd7aa6cc7e94d727
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Sep 28 10:35:12 2016 +0100

    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]
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/runqueue.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 9b7bb3f..1571639 100644
--- a/lib/bb/runqueue.py
+++ b/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()

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


More information about the Openembedded-commits mailing list