diff options
| author | David Reyna <David.Reyna@windriver.com> | 2014-03-21 05:35:50 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-28 13:44:51 +0000 |
| commit | 405e190b314db29e1332c56376dff026a9631202 (patch) | |
| tree | f9a7258813022224887fd2ecb81d1b2fe7ebf93e /bitbake/lib/toaster/toastergui/templates/builddashboard.html | |
| parent | 8c3eb5ee4582b6f6d489549290937657f37fc19e (diff) | |
| download | poky-405e190b314db29e1332c56376dff026a9631202.tar.gz | |
bitbake: toaster: add Image detail and multiple targets to dashboard
Filled in the Image section detail information and allow for multiple targets.
Each target has a separate section. Added license manifest display. Changed the
target of the license manifest link. Added Tasks failed in the build summary.
The target lists required filters to create sorted lists.
[YOCTO #4258]
[YOCTO #5936]
(Bitbake rev: 09b099903bdf51bfb277b9a8f922255cfe83ab96)
Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/builddashboard.html')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/builddashboard.html | 87 |
1 files changed, 67 insertions, 20 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html index 763a28d1bf..9d91f4031f 100644 --- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html +++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html | |||
| @@ -1,15 +1,12 @@ | |||
| 1 | {% extends "basebuildpage.html" %} | 1 | {% extends "basebuildpage.html" %} |
| 2 | {% load humanize %} | 2 | {% load humanize %} |
| 3 | {% load projecttags %} | 3 | {% load projecttags %} |
| 4 | {% block localbreadcrumb %} | ||
| 5 | <li>Dashboard</li> | ||
| 6 | {% endblock %} | ||
| 7 | 4 | ||
| 8 | {% block buildinfomain %} | 5 | {% block buildinfomain %} |
| 9 | <!-- page title --> | 6 | <!-- page title --> |
| 10 | <div class="row-fluid span10"> | 7 | <div class="row-fluid span10"> |
| 11 | <div class="page-header"> | 8 | <div class="page-header"> |
| 12 | <h1>{{build.target_set.all|join:" "}} {{build.machine}}</h1> | 9 | <h1>{{build.target_set.all|join:", "}} {{build.machine}}</h1> |
| 13 | </div> | 10 | </div> |
| 14 | </div> | 11 | </div> |
| 15 | 12 | ||
| @@ -17,13 +14,25 @@ | |||
| 17 | <div class="row-fluid span10 pull-right"> | 14 | <div class="row-fluid span10 pull-right"> |
| 18 | <div class="alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%}"> | 15 | <div class="alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%}"> |
| 19 | <div class="row-fluid lead"> | 16 | <div class="row-fluid lead"> |
| 20 | <span class="pull-left"><strong>{%if build.outcome == build.SUCCEEDED%}Completed{%elif build.outcome == build.FAILED%}Failed{%else%}{%endif%}</strong> {{build.completed_on|date:"d/m/y H:i"}} with </span>{%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}{% if build.errors_no %} | 17 | <span class="pull-left"><strong> |
| 21 | <span class="span2"><i class="icon-minus-sign red"></i><strong><a href="#errors" class="error"> {{build.errors_no}} error{{build.errors_no|pluralize}}</a></strong></span> | 18 | {%if build.outcome == build.SUCCEEDED%}Completed{%elif build.outcome == build.FAILED%}Failed{%else%}{%endif%} |
| 19 | </strong> | ||
| 20 | {{build.completed_on|date:"d/m/y H:i"}} | ||
| 21 | </span> | ||
| 22 | {% if build.warnings_no or build.errors_no %} | ||
| 23 | with | ||
| 24 | {% endif %} | ||
| 25 | {%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} | ||
| 26 | {% if build.errors_no %} | ||
| 27 | <span > <i class="icon-minus-sign red"></i><strong><a href="#errors" class="error"> {{build.errors_no}} error{{build.errors_no|pluralize}}</a></strong></span> | ||
| 22 | {% endif %} | 28 | {% endif %} |
| 23 | {% if build.warnings_no %} | 29 | {% if build.warnings_no %} |
| 24 | <span class="span2"><i class="icon-warning-sign yellow"></i><strong><a href="#warnings" class="warning"> {{build.warnings_no}} warning{{build.warnings_no|pluralize}}</a></strong></span> | 30 | {% if build.errors_no %} |
| 31 | and | ||
| 32 | {% endif %} | ||
| 33 | <span > <i class="icon-warning-sign yellow"></i><strong><a href="#warnings" class="warning"> {{build.warnings_no}} warning{{build.warnings_no|pluralize}}</a></strong></span> | ||
| 25 | {% endif %} | 34 | {% endif %} |
| 26 | <span class="pull-right">Build time: <a href="build-time.html">{{ build.timespent|sectohms }}</a></span> | 35 | <span class="pull-right">Build time: <a href="{% url 'buildtime' build.pk %}">{{ build.timespent|sectohms }}</a></span> |
| 27 | {%endif%} | 36 | {%endif%} |
| 28 | </div> | 37 | </div> |
| 29 | </div> | 38 | </div> |
| @@ -58,10 +67,40 @@ | |||
| 58 | {%if build.outcome == build.SUCCEEDED%} | 67 | {%if build.outcome == build.SUCCEEDED%} |
| 59 | <!-- built images --> | 68 | <!-- built images --> |
| 60 | <div class="row-fluid span10 pull-right"> | 69 | <div class="row-fluid span10 pull-right"> |
| 61 | <h2>Images</h2> | 70 | {% if hasImages %} |
| 62 | 71 | <h2>Images</h2> | |
| 63 | <div class="well" style="background-color:transparent;"> | 72 | {% for target in targets %} |
| 64 | </div> | 73 | {% if target.target.is_image %} |
| 74 | <div class="well" style="background-color:transparent;"> | ||
| 75 | <h3><a href="{% url 'target' build.pk target.target.pk %}">{{target.target}}</a> | ||
| 76 | </h3> | ||
| 77 | <dl class="dl-horizontal"> | ||
| 78 | <dt>Packages included</dt> | ||
| 79 | <dd><a href="{% url 'packages' build.pk %}">{{target.npkg}}</a></dd> | ||
| 80 | <dt>Total package size</dt> | ||
| 81 | <dd>{{target.pkgsz|filtered_filesizeformat}}</dd> | ||
| 82 | <dt> | ||
| 83 | <i class="icon-question-sign get-help" title="The location in disk of the license manifest, a document listing all packages installed in your image and their licenses"></i> | ||
| 84 | License manifest | ||
| 85 | </dt> | ||
| 86 | <dd><a href="{% url 'targetpackages' build.pk target.target.pk %}"><code>{{target.target.license_manifest_path}}</code></a></dd> | ||
| 87 | <dt> | ||
| 88 | <i class="icon-question-sign get-help" title="Image files are stored in <code style='background-color:transparent;color:#FFFFFF;font-weight:normal;border:none;'>/build/tmp/deploy/images/</code>"></i> | ||
| 89 | Image files | ||
| 90 | </dt> | ||
| 91 | <dd> | ||
| 92 | <ul> | ||
| 93 | {% for i in target.imageFiles %} | ||
| 94 | <li><strong>{{i.path}}</strong> | ||
| 95 | ({{i.size|filtered_filesizeformat}})</li> | ||
| 96 | {% endfor %} | ||
| 97 | </ul> | ||
| 98 | </dd> | ||
| 99 | </dl> | ||
| 100 | </div> | ||
| 101 | {% endif %} | ||
| 102 | {% endfor %} | ||
| 103 | {% endif %} | ||
| 65 | </div> | 104 | </div> |
| 66 | 105 | ||
| 67 | {%else%} | 106 | {%else%} |
| @@ -75,24 +114,32 @@ | |||
| 75 | <h4><a href="{%url 'configuration' build.pk%}">Configuration</a></h4> | 114 | <h4><a href="{%url 'configuration' build.pk%}">Configuration</a></h4> |
| 76 | <dl> | 115 | <dl> |
| 77 | <dt>Machine</dt><dd>{{build.machine}}</dd> | 116 | <dt>Machine</dt><dd>{{build.machine}}</dd> |
| 78 | <dt>Distro</dt><dd></dd> | 117 | <dt>Distro</dt><dd>{{build.distro}}</dd> |
| 79 | <dt>Layers</dt>{% for i in build.layer_version_build.all %}<dd>{{i.layer.name}}</dd>{%endfor%} | 118 | <dt>Layers</dt>{% for i in build.layer_version_build.all|dictsort:"layer.name" %}<dd>{{i.layer.name}}</dd>{%endfor%} |
| 80 | </dl> | 119 | </dl> |
| 81 | </div> | 120 | </div> |
| 82 | <div class="well span4" style="background-color:transparent;"> | 121 | <div class="well span4" style="background-color:transparent;"> |
| 83 | <h4><a href="{%url 'tasks' build.pk%}">Tasks</a></h4> | 122 | <h4><a href="{%url 'tasks' build.pk%}">Tasks</a></h4> |
| 84 | <dl> | 123 | <dl> |
| 85 | <dt>Total number of tasks</dt><dd>{{build.task_build.all.count}}</dd> | 124 | <dt>Total number of tasks</dt><dd><a href="{% url 'tasks' build.pk %}">{{build.task_build.all.count}}</a></dd> |
| 86 | <dt>Tasks executed</dt><dd>{% query build.task_build task_executed=1 order__gt=0 as exectask%}{{exectask.count}}</dd> | 125 | <dt>Tasks executed</dt><dd><a href="{% url 'tasks' build.pk %}?filter=task_executed%3A1&count=25&search=&page=1&orderby=order%3A%2B">{% query build.task_build task_executed=1 order__gt=0 as exectask%}{{exectask.count}}</a></dd> |
| 87 | <dt>Tasks prebuilt</dt><dd>{% query build.task_build task_executed=0 order__gt=0 as noexectask%}{{noexectask.count}}</dd> | 126 | <dt>Tasks not executed</dt><dd><a href="{% url 'tasks' build.pk %}?filter=task_executed%3A0&count=25&search=&page=1&orderby=order%3A%2B">{% query build.task_build task_executed=0 order__gt=0 as noexectask%}{{noexectask.count}}</a></dd> |
| 88 | <dt>Reuse</dt><dd>{% query build.task_build order__gt=0 as texec %}{{noexectask.count|multiply:100|divide:texec.count}}%</dd> | 127 | <dt>Reuse</dt><dd> |
| 128 | {% query build.task_build order__gt=0 as texec %} | ||
| 129 | {% if noexectask.count|multiply:100|divide:texec.count < 0 %} | ||
| 130 | 0 | ||
| 131 | {% else %} | ||
| 132 | {{noexectask.count|multiply:100|divide:texec.count}} | ||
| 133 | {% endif %} | ||
| 134 | % | ||
| 135 | </dd> | ||
| 89 | </dl> | 136 | </dl> |
| 90 | </div> | 137 | </div> |
| 91 | <div class="well span4" style="background-color:transparent;"> | 138 | <div class="well span4" style="background-color:transparent;"> |
| 92 | <h4><a href="{% url 'recipes' build.pk %}">Recipes</a> & <a href="{% url 'packages' build.pk %}">Packages</a></h4> | 139 | <h4><a href="{% url 'recipes' build.pk %}">Recipes</a> & <a href="{% url 'packages' build.pk %}">Packages</a></h4> |
| 93 | <dl> | 140 | <dl> |
| 94 | <dt>Recipes used</dt><dd>{{recipecount}}</dd> | 141 | <dt>Recipes built</dt><dd><a href="{% url 'recipes' build.pk %}">{{recipecount}}</a></dd> |
| 95 | <dt>Packages built</dt><dd>{{build.package_set.all.count}}</dd> | 142 | <dt>Packages built</dt><dd><a href="{% url 'packages' build.pk %}">{{build.package_set.all.count}}</a></dd> |
| 96 | </dl> | 143 | </dl> |
| 97 | </div> | 144 | </div> |
| 98 | </div> | 145 | </div> |
