[bitbake-devel] [PATCH 85/94] bitbake: webhob: record task hash information

Alex DAMIAN alexandru.damian at intel.com
Tue Sep 24 16:52:54 UTC 2013


From: Alexandru DAMIAN <alexandru.damian at intel.com>

We record the task hash for all queue tasks.

Displaying the task hash in the Simple interface.

Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>
---
 bitbake/lib/bb/ui/buildinfohelper.py             | 5 +++++
 bitbake/lib/webhob/bldviewer/templates/task.html | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index b5c2dc0..4ffa0d9 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -324,6 +324,11 @@ class BuildInfoHelper(object):
         task_information['outcome'] = Task.OUTCOME_NA
         task_information['recipe'] = recipe
         task_information['task_name'] = event.taskname
+        try:
+            # some tasks don't come with a hash. and that's ok
+            task_information['sstate_checksum'] = event.taskhash
+        except AttributeError:
+            pass
         return task_information
 
     def _get_layer_version_for_path(self, path):
diff --git a/bitbake/lib/webhob/bldviewer/templates/task.html b/bitbake/lib/webhob/bldviewer/templates/task.html
index 65d75cb..25715fe 100644
--- a/bitbake/lib/webhob/bldviewer/templates/task.html
+++ b/bitbake/lib/webhob/bldviewer/templates/task.html
@@ -11,6 +11,7 @@
             <th>Task</th>
             <th>Recipe Version</th>
             <th>Task Type</th>
+            <th>Checksum</th>
             <th>Outcome</th>
             <th>Message</th>
             <th>Logfile</th>
@@ -36,6 +37,7 @@
                 <td>Prebuilt</td>
                 {% endif %}
 
+                <td>{{task.sstate_checksum}}</td>
                 <td>{{task.get_outcome_display}}</td>
                 <td><p>{{task.message}}</td>
                 <td><a target="_fileview" href="file:///{{task.logfile}}">{{task.logfile}}</a></td>
-- 
1.8.1.2




More information about the bitbake-devel mailing list