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

login
register
mail settings
Submitter Alexandru DAMIAN
Date Sept. 24, 2013, 4:52 p.m.
Message ID <69c44f609772fe76c084ebcd0c1b64858a8c8445.1380041477.git.alexandru.damian@intel.com>
Download mbox | patch
Permalink /patch/58823/
State New
Headers show

Comments

Alexandru DAMIAN - Sept. 24, 2013, 4:52 p.m.
From: Alexandru DAMIAN <alexandru.damian@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@intel.com>
---
 bitbake/lib/bb/ui/buildinfohelper.py             | 5 +++++
 bitbake/lib/webhob/bldviewer/templates/task.html | 2 ++
 2 files changed, 7 insertions(+)

Patch

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>