2013-12-11 16:42:34 +00:00
{% extends "basebuildpage.html" %}
2013-12-13 17:14:34 +00:00
{% load humanize %}
{% load projecttags %}
2016-07-12 22:54:43 +00:00
{% load field_values_filter %}
2013-12-11 16:42:34 +00:00
2016-07-12 22:54:43 +00:00
{% block title %} {{build.get_sorted_target_list|field_values:"target"|join:", "}} {{build.machine}} - {{build.project.name}} - Toaster {% endblock %}
2014-03-25 02:50:50 +00:00
{% block parentbreadcrumb %}
2015-10-15 12:45:15 +00:00
{% if build.get_sorted_target_list.count > 0 %}
{{build.get_sorted_target_list.0.target}}
{% endif %}
2016-02-10 00:05:06 +00:00
{%if build.target_set.all.count > 1%}(+{{build.target_set.all.count|add:"-1"}}){%endif%} {{build.machine}} ({{build.completed_on|date:"d/m/y H:i"}})
2014-03-25 02:50:50 +00:00
{% endblock %}
2013-12-11 16:42:34 +00:00
{% block buildinfomain %}
2013-12-13 17:14:34 +00:00
<!-- page title -->
2016-04-12 14:56:43 +00:00
< div class = "col-md-10" >
2016-06-02 13:26:16 +00:00
< div class = "page-header build-data" >
2016-07-12 22:54:43 +00:00
< h1 > {{build.get_sorted_target_list|field_values:"target"|join:", "}} {{build.machine}}< / h1 >
2013-12-13 17:14:34 +00:00
< / div >
<!-- build result bar -->
2016-06-02 13:26:16 +00:00
< div class = "alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-danger{%else%}alert-info{%endif%}" >
< span > < strong > {%if build.outcome == build.SUCCEEDED%}Completed{%elif build.outcome == build.FAILED%}Failed{%else%}{%endif%}< / strong > on {{build.completed_on|date:"d/m/y H:i"}}< / span >
{% if build.warnings.count or build.errors.count %}
< span > with< / span >
{% endif %}
{%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
{% if build.errors.count %}
< a href = "#errors" class = "alert-link show-errors" > {{build.errors.count}} error{{build.errors.count|pluralize}}< / a >
{% endif %}
{% if build.warnings.count %}
{% if build.errors.count %}and{% endif %}
< a href = "#warnings" class = "show-warnings" > {{build.warnings.count}} warning{{build.warnings.count|pluralize}}< / a >
{% endif %}
{% if build.cooker_log_path %}
< a class = "alert-link pull-right log" href = "{% url 'build_artifact' build.id " cookerlog " build . id % } " > Download build log< / a >
{% endif %}
< span class = "pull-right" >
Build time:
< a class = "alert-link" href = "{% url 'buildtime' build.pk %}" > {{ build.timespent_seconds|sectohms }}< / a >
< / span >
{%endif%}
< / div >
2013-12-13 17:14:34 +00:00
2015-06-17 16:30:34 +00:00
{% if build.errors.count %}
2016-06-02 13:26:16 +00:00
< div class = "panel panel-default" id = "errors" >
2016-04-12 14:56:43 +00:00
< div class = "panel-heading" >
2016-06-02 13:26:16 +00:00
< h2 class = "panel-title" >
< span class = "glyphicon glyphicon-minus-sign" > < / span >
< a data-toggle = "collapse" href = "#error-info" id = "error-toggle" >
2015-06-17 16:30:34 +00:00
{{build.errors.count}} error{{build.errors.count|pluralize}}
2016-06-02 13:26:16 +00:00
< / a >
< / h2 >
2014-03-12 18:47:42 +00:00
< / div >
2016-06-02 13:26:16 +00:00
< div class = "panel-collapse collapse in" id = "error-info" >
2016-04-12 14:56:43 +00:00
< div class = "panel-body" >
< div class = "col-md-10" >
2015-10-15 12:45:14 +00:00
{% for error in build.errors %}
2016-06-02 13:26:16 +00:00
< div class = "alert alert-danger" data-error = "{{ error.id }}" >
2015-10-15 12:45:14 +00:00
< pre > {{error.message}}< / pre >
< / div >
2014-12-05 15:19:55 +00:00
{% endfor %}
2014-03-12 18:47:42 +00:00
< / div >
< / div >
< / div >
< / div >
{% endif %}
2013-12-13 17:14:34 +00:00
{%if build.outcome == build.SUCCEEDED%}
<!-- built images -->
2014-09-29 13:23:22 +00:00
{% if hasImages %}
2014-12-05 15:19:55 +00:00
< h2 > Images< / h2 >
{% for target in targets %}
2014-03-21 12:35:50 +00:00
{% if target.target.is_image %}
2016-06-02 13:26:16 +00:00
< div class = "well well-transparent dashboard-section" >
2016-07-12 22:54:46 +00:00
< h3 > < a href = "{% url 'target' build.pk target.target.pk %}" > {{target.target.target}}< / a > < / h3 >
2014-12-05 15:19:55 +00:00
< dl class = "dl-horizontal" >
< dt > Packages included< / dt >
< dd > < a href = "{% url 'target' build.pk target.target.pk %}" > {{target.npkg}}< / a > < / dd >
< dt > Total package size< / dt >
< dd > {{target.pkgsz|filtered_filesizeformat}}< / dd >
bitbake: toaster: improve scan for SDK artifacts
SDK artifacts were previously picked up by toaster.bbclass and
notified to buildinfohelper (via toasterui). The artifacts
were then added to the Build object, so that it wasn't clear
which artifact went with which target; we were also unable
to attach SDK artifacts to a Build if they had already been
attached to a previous build.
Now, toaster.bbclass just notifies the TOOLCHAIN_OUTPUTNAME when
a populate_sdk* target completes. The scan is moved to buildinfohelper,
where we search the SDK deploy directory for files matching
TOOLCHAIN_OUTPUTNAME and attach them to targets (not builds).
If an SDK file is not produced by a target, we now look for a
similar, previously-run target which did produce artifacts.
If there is one, we clone the SDK artifacts from that target
onto the current one.
This all means that we can show SDK artifacts by target, and should
always get artifacts associated with a target, regardless of whether
it really build them.
This requires an additional model, TargetSDKFile, which tracks
the size and path of SDK artifact files with respect to Target
objects.
[YOCTO #8556]
(Bitbake rev: 5e650c611605507e1e0d1588cd5eb6535c2d34fc)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-07-12 22:54:48 +00:00
< / dl >
{% if target.targetHasNoImages %}
< div class = "row" >
< div class = "col-md-7" >
< div class = "alert alert-info" >
< p >
< strong > This build did not create any image files< / strong >
< / p >
< p >
This is probably because valid image and license manifest
files from a previous build already exist in your
< code > build/tmp/deploy< / code >
directory. You can
also < a href = "{% url 'target' build.pk target.target.pk %}" > view the
license manifest information< / a > in Toaster.
< / p >
2014-12-05 15:19:55 +00:00
< / div >
bitbake: toaster: improve scan for SDK artifacts
SDK artifacts were previously picked up by toaster.bbclass and
notified to buildinfohelper (via toasterui). The artifacts
were then added to the Build object, so that it wasn't clear
which artifact went with which target; we were also unable
to attach SDK artifacts to a Build if they had already been
attached to a previous build.
Now, toaster.bbclass just notifies the TOOLCHAIN_OUTPUTNAME when
a populate_sdk* target completes. The scan is moved to buildinfohelper,
where we search the SDK deploy directory for files matching
TOOLCHAIN_OUTPUTNAME and attach them to targets (not builds).
If an SDK file is not produced by a target, we now look for a
similar, previously-run target which did produce artifacts.
If there is one, we clone the SDK artifacts from that target
onto the current one.
This all means that we can show SDK artifacts by target, and should
always get artifacts associated with a target, regardless of whether
it really build them.
This requires an additional model, TargetSDKFile, which tracks
the size and path of SDK artifact files with respect to Target
objects.
[YOCTO #8556]
(Bitbake rev: 5e650c611605507e1e0d1588cd5eb6535c2d34fc)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-07-12 22:54:48 +00:00
< / div >
< / div >
{% endif %}
{% if not target.targetHasNoImages %}
< dl class = "dl-horizontal" >
2014-12-05 15:19:55 +00:00
< dt >
2016-06-02 13:26:16 +00:00
< span class = "glyphicon glyphicon-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" > < / span >
2014-12-05 15:19:55 +00:00
License manifest
< / dt >
< dd >
2016-05-26 15:12:23 +00:00
< a href = "{% url 'target' build.pk target.target.pk %}" > View in Toaster< / a > |
2014-12-05 15:19:55 +00:00
< a href = "{% url 'build_artifact' build.pk 'licensemanifest' target.target.pk %}" > Download< / a > < / dd >
< dt >
2016-06-02 13:26:16 +00:00
< span class = "glyphicon glyphicon-question-sign get-help" title = "Image files are stored in <code>build/tmp/deploy/images/</code>" > < / span >
2014-12-05 15:19:55 +00:00
Image files
< / dt >
< dd >
2016-06-02 13:26:16 +00:00
< ul class = "list-unstyled" >
2016-07-12 22:54:43 +00:00
{% for i in target.imageFiles|dictsort:"suffix" %}
2016-02-23 12:17:04 +00:00
< li >
< a href = "{% url 'build_artifact' build.pk 'imagefile' i.id %}" >
{{i.suffix}}
< / a >
({{i.size|filtered_filesizeformat}})
< / li >
{% endfor %}
2014-12-05 15:19:55 +00:00
< / ul >
< / dd >
2016-07-12 22:54:46 +00:00
< dt >
Kernel artifacts
< / dt >
< dd >
< ul class = "list-unstyled" >
bitbake: toaster: improve scan for SDK artifacts
SDK artifacts were previously picked up by toaster.bbclass and
notified to buildinfohelper (via toasterui). The artifacts
were then added to the Build object, so that it wasn't clear
which artifact went with which target; we were also unable
to attach SDK artifacts to a Build if they had already been
attached to a previous build.
Now, toaster.bbclass just notifies the TOOLCHAIN_OUTPUTNAME when
a populate_sdk* target completes. The scan is moved to buildinfohelper,
where we search the SDK deploy directory for files matching
TOOLCHAIN_OUTPUTNAME and attach them to targets (not builds).
If an SDK file is not produced by a target, we now look for a
similar, previously-run target which did produce artifacts.
If there is one, we clone the SDK artifacts from that target
onto the current one.
This all means that we can show SDK artifacts by target, and should
always get artifacts associated with a target, regardless of whether
it really build them.
This requires an additional model, TargetSDKFile, which tracks
the size and path of SDK artifact files with respect to Target
objects.
[YOCTO #8556]
(Bitbake rev: 5e650c611605507e1e0d1588cd5eb6535c2d34fc)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-07-12 22:54:48 +00:00
{% for artifact in target.target_kernel_artifacts|dictsort:"basename" %}
2016-07-12 22:54:46 +00:00
< li >
bitbake: toaster: improve scan for SDK artifacts
SDK artifacts were previously picked up by toaster.bbclass and
notified to buildinfohelper (via toasterui). The artifacts
were then added to the Build object, so that it wasn't clear
which artifact went with which target; we were also unable
to attach SDK artifacts to a Build if they had already been
attached to a previous build.
Now, toaster.bbclass just notifies the TOOLCHAIN_OUTPUTNAME when
a populate_sdk* target completes. The scan is moved to buildinfohelper,
where we search the SDK deploy directory for files matching
TOOLCHAIN_OUTPUTNAME and attach them to targets (not builds).
If an SDK file is not produced by a target, we now look for a
similar, previously-run target which did produce artifacts.
If there is one, we clone the SDK artifacts from that target
onto the current one.
This all means that we can show SDK artifacts by target, and should
always get artifacts associated with a target, regardless of whether
it really build them.
This requires an additional model, TargetSDKFile, which tracks
the size and path of SDK artifact files with respect to Target
objects.
[YOCTO #8556]
(Bitbake rev: 5e650c611605507e1e0d1588cd5eb6535c2d34fc)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-07-12 22:54:48 +00:00
< a href = "{% url 'build_artifact' build.id 'targetkernelartifact' artifact.id %}" > {{artifact.basename}}< / a >
2016-07-12 22:54:46 +00:00
({{artifact.file_size|filtered_filesizeformat}})
< / li >
{% endfor %}
< / ul >
< / dd >
bitbake: toaster: improve scan for SDK artifacts
SDK artifacts were previously picked up by toaster.bbclass and
notified to buildinfohelper (via toasterui). The artifacts
were then added to the Build object, so that it wasn't clear
which artifact went with which target; we were also unable
to attach SDK artifacts to a Build if they had already been
attached to a previous build.
Now, toaster.bbclass just notifies the TOOLCHAIN_OUTPUTNAME when
a populate_sdk* target completes. The scan is moved to buildinfohelper,
where we search the SDK deploy directory for files matching
TOOLCHAIN_OUTPUTNAME and attach them to targets (not builds).
If an SDK file is not produced by a target, we now look for a
similar, previously-run target which did produce artifacts.
If there is one, we clone the SDK artifacts from that target
onto the current one.
This all means that we can show SDK artifacts by target, and should
always get artifacts associated with a target, regardless of whether
it really build them.
This requires an additional model, TargetSDKFile, which tracks
the size and path of SDK artifact files with respect to Target
objects.
[YOCTO #8556]
(Bitbake rev: 5e650c611605507e1e0d1588cd5eb6535c2d34fc)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-07-12 22:54:48 +00:00
< / dl >
{% endif %}
{% if target.target_sdk_artifacts_count > 0 %}
< dl class = "dl-horizontal" >
< dt >
SDK artifacts
< / dt >
< dd >
< ul class = "list-unstyled" >
{% for artifact in target.target_sdk_artifacts|dictsort:"basename" %}
< li >
< a href = "{% url 'build_artifact' build.id 'targetsdkartifact' artifact.id %}" > {{artifact.basename}}< / a >
({{artifact.file_size|filtered_filesizeformat}})
< / li >
{% endfor %}
< / ul >
< / dd >
< / dl >
2016-02-23 12:17:04 +00:00
{% endif %}
2014-12-05 15:19:55 +00:00
< / div >
2014-03-21 12:35:50 +00:00
{% endif %}
2014-12-05 15:19:55 +00:00
{% endfor %}
2014-09-29 13:23:22 +00:00
{% endif %}
2013-12-13 17:14:34 +00:00
{%else%}
<!-- error dump -->
{%endif%}
2014-12-05 15:19:55 +00:00
<!-- other artifacts -->
{% if build.buildartifact_set.all.count > 0 %}
< h2 > Other artifacts< / h2 >
2016-06-02 13:26:16 +00:00
< div class = "well well-transparent dashboard-section" >
2014-12-05 15:19:55 +00:00
< dl class = "dl-horizontal" >
< dt >
2016-06-02 13:26:16 +00:00
< span class = "glyphicon glyphicon-question-sign get-help" title = "Build artifacts discovered in <i>tmp/deploy/images</i>. Usually kernel images and kernel modules." > < / span >
2014-12-05 15:19:55 +00:00
Other artifacts< / dt >
< dd > < div >
{% for ba in build.buildartifact_set.all|dictsort:"file_name" %}
< a href = "{%url 'build_artifact' build.id 'buildartifact' ba.id %}" >
2016-02-23 12:17:04 +00:00
{{ba.get_basename}}
2014-12-05 15:19:55 +00:00
< / a >
({{ba.file_size|filtered_filesizeformat}}) < br / >
{% endfor %}
< / div >
< / dd >
2015-05-11 17:58:25 +00:00
< / dl >
2014-12-05 15:19:55 +00:00
< / div >
{% endif %}
2013-12-13 17:14:34 +00:00
<!-- build summary -->
< h2 > Build summary< / h2 >
2016-04-12 14:56:43 +00:00
< div class = "row" >
< div class = "col-md-4 dashboard-section" >
< div class = "well well-transparent" >
2016-06-02 13:26:16 +00:00
< h3 > < a href = "{%url 'configuration' build.pk%}" > Configuration< / a > < / h3 >
2013-12-13 17:14:34 +00:00
< dl >
< dt > Machine< / dt > < dd > {{build.machine}}< / dd >
2014-03-21 12:35:50 +00:00
< dt > Distro< / dt > < dd > {{build.distro}}< / dd >
2016-06-02 13:26:16 +00:00
< dt > Layers< / dt > < dd > < ul class = "list-unstyled" > {% for i in build.layer_version_build.all|dictsort:"layer.name" %}< li > {{i.layer.name}}< / li > {%endfor%}< / ul > < / dd >
2013-12-13 17:14:34 +00:00
< / dl >
2016-04-12 14:56:43 +00:00
< / div >
2013-12-13 17:14:34 +00:00
< / div >
2016-04-12 14:56:43 +00:00
< div class = "col-md-4 dashboard-section" >
< div class = "well well-transparent" >
2016-06-02 13:26:16 +00:00
< h3 > < a href = "{%url 'tasks' build.pk%}" > Tasks< / a > < / h3 >
2013-12-13 17:14:34 +00:00
< dl >
2014-09-29 14:37:29 +00:00
{% query build.task_build outcome=4 order__gt=0 as exectask%}
{% if exectask.count > 0 %}
2014-12-05 15:19:55 +00:00
< dt > Failed tasks< / dt >
2014-09-29 14:37:29 +00:00
< dd >
{% if exectask.count == 1 %}
2016-06-02 13:26:16 +00:00
< a class = "text-danger" href = "{% url " task " build . id exectask . 0 . id % } " >
2014-09-29 14:37:29 +00:00
{{exectask.0.recipe.name}}
< span class = "task-name" > {{exectask.0.task_name}}< / span >
2015-05-28 11:30:50 +00:00
< / a >
2014-12-05 15:19:55 +00:00
< a href = "{% url 'build_artifact' build.id " tasklogfile " exectask . 0 . id % } " >
2016-06-02 13:26:16 +00:00
< span class = "glyphicon glyphicon-download-alt get-help" title = "Download task log file" > < / i >
2014-12-05 15:19:55 +00:00
< / a >
2014-09-29 14:37:29 +00:00
{% elif exectask.count > 1%}
2016-06-02 13:26:16 +00:00
< a class = "text-danger" href = "{% url " tasks " build . id % } ? filter = outcome%3A4" > {{exectask.count}}< / a >
2014-09-29 14:37:29 +00:00
{% endif %}
< / dd >
{% endif %}
2014-04-11 16:32:30 +00:00
< 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 >
2014-03-16 13:09:34 +00:00
< dt >
Tasks executed
2016-06-02 13:26:16 +00:00
< span class = "glyphicon glyphicon-question-sign get-help" title = "'Executed' tasks are those that need to be run in order to generate the task output" > < / span >
2014-03-16 13:09:34 +00:00
< / 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 >
< dt >
Tasks not executed
2016-06-02 13:26:16 +00:00
< span class = "glyphicon glyphicon-question-sign get-help" title = "'Not executed' tasks don't need to run because their outcome is provided by another task" > < / span >
2014-09-29 14:37:29 +00:00
< / dt >
2014-03-16 13:09:34 +00:00
< 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 >
< dt >
Reuse
2016-06-02 13:26:16 +00:00
< span class = "glyphicon glyphicon-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" > < / span >
2014-09-29 14:37:29 +00:00
< / dt >
2014-03-16 13:09:34 +00:00
< dd >
2014-03-21 12:35:50 +00:00
{% 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 %}
%
< / dd >
2013-12-13 17:14:34 +00:00
< / dl >
2016-04-12 14:56:43 +00:00
< / div >
2013-12-13 17:14:34 +00:00
< / div >
2016-04-12 14:56:43 +00:00
< div class = "col-md-4 dashboard-section" >
< div class = "well well-transparent" >
2016-06-02 13:26:16 +00:00
< h3 > < a href = "{% url 'recipes' build.pk %}" > Recipes< / a > & < a href = "{% url 'packages' build.pk %}" > Packages< / a > < / h3 >
2013-12-13 17:14:34 +00:00
< dl >
2014-03-21 12:35:50 +00:00
< dt > Recipes built< / dt > < dd > < a href = "{% url 'recipes' build.pk %}" > {{recipecount}}< / a > < / dd >
2014-04-02 22:04:08 +00:00
< dt > Packages built< / dt > < dd > < a href = "{% url 'packages' build.pk %}" > {{packagecount}}< / a > < / dd >
2013-12-13 17:14:34 +00:00
< / dl >
< / div >
2016-04-12 14:56:43 +00:00
< / div >
2013-12-13 17:14:34 +00:00
< / div >
2013-12-11 16:42:34 +00:00
2015-06-17 16:30:34 +00:00
{% if build.warnings.count %}
2016-06-02 13:26:16 +00:00
< div class = "panel panel-default" id = "warnings" >
2016-04-12 14:56:43 +00:00
< div class = "panel-heading" >
2016-06-02 13:26:16 +00:00
< h2 class = "panel-title" >
< span class = "glyphicon glyphicon-warning-sign" > < / span >
< a id = "warning-toggle" href = "#warning-info" data-toggle = "collapse" > {{build.warnings.count}} warning{{build.warnings.count|pluralize}}< / a >
< / h2 >
2014-03-12 18:47:42 +00:00
< / div >
2016-06-02 13:26:16 +00:00
< div class = "panel-collapse collapse" id = "warning-info" >
2016-04-12 14:56:43 +00:00
< div class = "panel-body" >
< div class = "col-md-10" >
2014-03-12 18:47:42 +00:00
{% for warning in logmessages %}{% if warning.level == 1 %}
< div class = "alert alert-warning" >
< pre > {{warning.message}}< / pre >
< / div >
{% endif %}{% endfor %}
< / div >
< / div >
< / div >
< / div >
{% endif %}
2016-04-12 14:56:43 +00:00
< / div > <!-- end 10 column row -->
2014-03-31 23:39:13 +00:00
< script type = "text/javascript" >
$(document).ready(function() {
//show warnings section when requested from the previous page
if (location.href.search('#warnings') > -1) {
2016-06-02 13:26:16 +00:00
$('#warning-info').addClass('in');
2014-03-31 23:39:13 +00:00
}
2016-07-12 22:54:43 +00:00
2016-06-02 13:26:16 +00:00
//show warnings section when requested from the build outcome
$(".show-warnings").click(function() {
$('#warning-info').addClass('in');
});
2014-03-31 23:39:13 +00:00
});
< / script >
2013-12-11 16:42:34 +00:00
{% endblock %}