summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@linux.intel.com>2014-09-29 15:37:29 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-30 13:39:48 +0000
commit14e5b273242c5ce46595f5d85c5eeff811864636 (patch)
treee99ae5e3720110f2067719a07acbdeb940c7d234 /bitbake
parent324b2773364aded42a11a839e658732a4e07c75f (diff)
downloadpoky-14e5b273242c5ce46595f5d85c5eeff811864636.tar.gz
bitbake: toastergui: Show failed tasks in the build dashboard
The build dashboard is supposed to show failed tasks (if any) in the "Tasks" section. (Bitbake rev: fc2a7be3982ea5441beef1b7e9e187caf5df2beb) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/builddashboard.html18
1 files changed, 16 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html
index a1481e3436..8a6709cfe1 100644
--- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html
+++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html
@@ -144,6 +144,20 @@
144 <div class="well span4 dashboard-section"> 144 <div class="well span4 dashboard-section">
145 <h4><a href="{%url 'tasks' build.pk%}">Tasks</a></h4> 145 <h4><a href="{%url 'tasks' build.pk%}">Tasks</a></h4>
146 <dl> 146 <dl>
147 {% query build.task_build outcome=4 order__gt=0 as exectask%}
148 {% if exectask.count > 0 %}
149 <dt>Failed tasks</td>
150 <dd>
151 {% if exectask.count == 1 %}
152 <a class="error" href="{% url "task" build.id exectask.0.id %}">
153 {{exectask.0.recipe.name}}
154 <span class="task-name">{{exectask.0.task_name}}</span>
155 </a>
156 {% elif exectask.count > 1%}
157 <a class="error" href="{% url "tasks" build.id %}?filter=outcome%3A4">{{exectask.count}}</a>
158 {% endif %}
159 </dd>
160 {% endif %}
147 <dt>Total number of tasks</dt><dd><a href="{% url 'tasks' build.pk %}">{% query build.task_build order__gt=0 as alltasks %}{{alltasks.count}}</a></dd> 161 <dt>Total number of tasks</dt><dd><a href="{% url 'tasks' build.pk %}">{% query build.task_build order__gt=0 as alltasks %}{{alltasks.count}}</a></dd>
148 <dt> 162 <dt>
149 Tasks executed 163 Tasks executed
@@ -153,12 +167,12 @@
153 <dt> 167 <dt>
154 Tasks not executed 168 Tasks not executed
155 <i class="icon-question-sign get-help" title="'Not executed' tasks don't need to run because their outcome is provided by another task"></i> 169 <i class="icon-question-sign get-help" title="'Not executed' tasks don't need to run because their outcome is provided by another task"></i>
156 </dt> 170 </dt>
157 <dd><a href="{% url 'tasks' build.pk %}?filter=task_executed%3A0&amp;count=25&amp;search=&amp;page=1&amp;orderby=order%3A%2B">{% query build.task_build task_executed=0 order__gt=0 as noexectask%}{{noexectask.count}}</a></dd> 171 <dd><a href="{% url 'tasks' build.pk %}?filter=task_executed%3A0&amp;count=25&amp;search=&amp;page=1&amp;orderby=order%3A%2B">{% query build.task_build task_executed=0 order__gt=0 as noexectask%}{{noexectask.count}}</a></dd>
158 <dt> 172 <dt>
159 Reuse 173 Reuse
160 <i class="icon-question-sign get-help" title="The percentage of 'not executed' tasks over the total number of tasks, which is a measure of the efficiency of your build"></i> 174 <i class="icon-question-sign get-help" title="The percentage of 'not executed' tasks over the total number of tasks, which is a measure of the efficiency of your build"></i>
161 </dt> 175 </dt>
162 <dd> 176 <dd>
163{% query build.task_build order__gt=0 as texec %} 177{% query build.task_build order__gt=0 as texec %}
164{% if noexectask.count|multiply:100|divide:texec.count < 0 %} 178{% if noexectask.count|multiply:100|divide:texec.count < 0 %}