From 2d80b902b804bc5927afbec2ad215f8959d0f581 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Wed, 13 Jul 2016 14:42:31 +0100 Subject: bitbake: toaster: adjust build dashboard for failed builds Remove the side bar and build details modules for failed builds. [YOCTO #8443] (Bitbake rev: 9d68a5bfdccd399791e1af048fefa73b5df90bcb) Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- .../toastergui/templates/builddashboard.html | 147 +++++++++++---------- 1 file changed, 75 insertions(+), 72 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates/builddashboard.html') diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html index 61ae583d23..9e6e1c172b 100644 --- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html +++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html @@ -14,7 +14,7 @@ {% block buildinfomain %} -
+
@@ -62,9 +62,9 @@
-
+
{% for error in build.errors %} -
+
{{error.message}}
{% endfor %} @@ -201,79 +201,82 @@
{% endif %} - -

Build summary

-
-
-
-

Configuration

-
-
Machine
{{build.machine}}
-
Distro
{{build.distro}}
-
Layers
    {% for i in build.layer_version_build.all|dictsort:"layer.name" %}
  • {{i.layer.name}}
  • {%endfor%}
-
+ +{% if build.started %} + +

Build summary

+
+
+
+

Configuration

+
+
Machine
{{build.machine}}
+
Distro
{{build.distro}}
+
Layers
    {% for i in build.layer_version_build.all|dictsort:"layer.name" %}
  • {{i.layer.name}}
  • {%endfor%}
+
+
-
-
-
-

Tasks

-
- {% query build.task_build outcome=4 order__gt=0 as exectask%} - {% if exectask.count > 0 %} -
Failed tasks
-
- {% if exectask.count == 1 %} - - {{exectask.0.recipe.name}} - {{exectask.0.task_name}} - +
+
+

Tasks

+
+ {% query build.task_build outcome=4 order__gt=0 as exectask%} + {% if exectask.count > 0 %} +
Failed tasks
+
+ {% if exectask.count == 1 %} + + {{exectask.0.recipe.name}} + {{exectask.0.task_name}} + - - - + + + - {% elif exectask.count > 1%} - {{exectask.count}} - {% endif %} -
- {% endif %} -
Total number of tasks
{% query build.task_build order__gt=0 as alltasks %}{{alltasks.count}}
-
- Tasks executed - -
-
{% query build.task_build task_executed=1 order__gt=0 as exectask%}{{exectask.count}}
-
- Tasks not executed - -
-
{% query build.task_build task_executed=0 order__gt=0 as noexectask%}{{noexectask.count}}
-
- Reuse - -
-
-{% query build.task_build order__gt=0 as texec %} -{% if noexectask.count|multiply:100|divide:texec.count < 0 %} -0 -{% else %} -{{noexectask.count|multiply:100|divide:texec.count}} -{% endif %} -% -
-
+ {% elif exectask.count > 1%} + {{exectask.count}} + {% endif %} +
+ {% endif %} +
Total number of tasks
{% query build.task_build order__gt=0 as alltasks %}{{alltasks.count}}
+
+ Tasks executed + +
+
{% query build.task_build task_executed=1 order__gt=0 as exectask%}{{exectask.count}}
+
+ Tasks not executed + +
+
{% query build.task_build task_executed=0 order__gt=0 as noexectask%}{{noexectask.count}}
+
+ Reuse + +
+
+ {% query build.task_build order__gt=0 as texec %} + {% if noexectask.count|multiply:100|divide:texec.count < 0 %} + 0 + {% else %} + {{noexectask.count|multiply:100|divide:texec.count}} + {% endif %} + % +
+
+
+
+
+
+

Recipes & Packages

+
+
Recipes built
{{recipecount}}
+
Packages built
{{packagecount}}
+
-
-
-
-

Recipes & Packages

-
-
Recipes built
{{recipecount}}
-
Packages built
{{packagecount}}
-
-
+{% endif %} {% if build.warnings.count %}
@@ -285,9 +288,9 @@
-
+
{% for warning in logmessages %}{% if warning.level == 1 %} -
+
{{warning.message}}
{% endif %}{% endfor %} -- cgit v1.2.3-54-g00ecf