mirror of
https://git.yoctoproject.org/poky
synced 2026-03-30 17:02:22 +02:00
We update the build listings in the project mode to enable proper display and selection of build requests that do not have an actual build object because the bitbake process did not start. We add a page to display error details for build requests that did not start a build. Fixing errors and misspelling in build sections. Sorting by "timespent" is disabled for build-listing pages. [YOCTO #7165] [YOCTO #7156] [YOCTO #7196] [YOCTO #7188] (Bitbake rev: ee13bf45cecd6a0132d724b3206a6f4515669496) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
136 lines
7.2 KiB
HTML
136 lines
7.2 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load static %}
|
|
{% load projecttags %}
|
|
{% load humanize %}
|
|
|
|
{% block pagecontent %}
|
|
<div class="row-fluid">
|
|
|
|
{% include "managed_mrb_section.html" %}
|
|
|
|
|
|
{% if 1 %}
|
|
<div class="page-header top-air">
|
|
<h1>
|
|
{% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}
|
|
{{objects.paginator.count}} build{{objects.paginator.count|pluralize}} found
|
|
{%elif request.GET.filter and objects.paginator.count == 0 or request.GET.search and objects.paginator.count == 0 %}
|
|
No builds found
|
|
{%else%}
|
|
All builds
|
|
{%endif%}
|
|
</h1>
|
|
</div>
|
|
|
|
{% if objects.paginator.count == 0 %}
|
|
<div class="row-fluid">
|
|
<div class="alert">
|
|
<form class="no-results input-append" id="searchform">
|
|
<input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %}
|
|
<button class="btn" type="submit" value="Search">Search</button>
|
|
<button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all builds</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% else %} {# We have builds to display #}
|
|
{% include "basetable_top_buildprojects.html" %}
|
|
<!-- Table data rows; the order needs to match the order of "tablecols" definitions; and the <td class value needs to match the tablecols clclass value for show/hide buttons to work -->
|
|
{% for buildrequest in objects %}{% if buildrequest.build %} {% with build=buildrequest.build %} {# if we have a build, just display it #}
|
|
<tr class="data">
|
|
<td class="outcome"><a href="{% url "builddashboard" build.id %}">{%if build.outcome == build.SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif build.outcome == build.FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a></td>
|
|
<td class="target">{% for t in build.target_set.all %} <a href="{% url "builddashboard" build.id %}"> {{t.target}} </a> <br />{% endfor %}</td>
|
|
<td class="machine"><a href="{% url "builddashboard" build.id %}">{{build.machine}}</a></td>
|
|
<td class="started_on"><a href="{% url "builddashboard" build.id %}">{{build.started_on|date:"d/m/y H:i"}}</a></td>
|
|
<td class="completed_on"><a href="{% url "builddashboard" build.id %}">{{build.completed_on|date:"d/m/y H:i"}}</a></td>
|
|
<td class="failed_tasks error">
|
|
{% query build.task_build outcome=4 order__gt=0 as exectask%}
|
|
{% if exectask.count == 1 %}
|
|
<a href="{% url "task" build.id exectask.0.id %}">{{exectask.0.recipe.name}}.{{exectask.0.task_name}}</a>
|
|
{% if MANAGED and build.project %}
|
|
<a href="{% url 'build_artifact' build.id "tasklogfile" exectask.0.id %}">
|
|
<i class="icon-download-alt" title="" data-original-title="Download task log file"></i>
|
|
</a>
|
|
{% endif %}
|
|
{% elif exectask.count > 1%}
|
|
<a href="{% url "tasks" build.id %}?filter=outcome%3A4">{{exectask.count}} task{{exectask.count|pluralize}}</a>
|
|
{%endif%}
|
|
</td>
|
|
<td class="errors_no">
|
|
{% if build.errors_no %}
|
|
<a class="errors_no error" href="{% url "builddashboard" build.id %}#errors">{{build.errors_no}} error{{build.errors_no|pluralize}}</a>
|
|
{% if MANAGED and build.project and build.buildartifact_set.count %}
|
|
<a href="{% url 'build_artifact' build.id "cookerlog" build.id %}">
|
|
<i class="icon-download-alt" title="" data-original-title="Download build log"></i>
|
|
</a>
|
|
{% endif %}
|
|
{%endif%}
|
|
</td>
|
|
<td class="warnings_no">{% if build.warnings_no %}<a class="warnings_no warning" href="{% url "builddashboard" build.id %}#warnings">{{build.warnings_no}} warning{{build.warnings_no|pluralize}}</a>{%endif%}</td>
|
|
<td class="time"><a href="{% url "buildtime" build.id %}">{{build.timespent|sectohms}}</a></td>
|
|
{% if not MANAGED or not build.project %}
|
|
<td class="log">{{build.cooker_log_path}}</td>
|
|
{% endif %}
|
|
<td class="output">
|
|
{% if build.outcome == build.SUCCEEDED %}
|
|
<a href="{%url "builddashboard" build.id%}#images">{{fstypes|get_dict_value:build.id}}</a>
|
|
{% endif %}
|
|
</td>
|
|
{% if MANAGED %}
|
|
<td class="project">
|
|
{% if build.project %}
|
|
<a href="{% url 'project' build.project.id %}">{{build.project.name}}</a>
|
|
{% endif %}
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
|
|
|
|
{%endwith%}
|
|
{% else %} {# we don't have a build for this build request, mask the data with build request data #}
|
|
|
|
|
|
|
|
<tr class="data">
|
|
<td class="outcome">{% if buildrequest.state == buildrequest.REQ_FAILED %}<i class="icon-minus-sign error"></i>{%else%}FIXME_build_request_state{%endif%}</td>
|
|
<td class="target">
|
|
<a href="{% url "buildrequestdetails" buildrequest.project.id buildrequest.id %}"><span data-toggle="tooltip" {%if buildrequest.brtarget_set.all.count > 1%}title="Targets: {%for target in buildrequest.brtarget_set.all%}{{target.target}} {%endfor%}"{%endif%}>{{buildrequest.brtarget_set.all.0.target}} {%if buildrequest.brtarget_set.all.count > 1%}(+ {{buildrequest.brtarget_set.all.count|add:"-1"}}){%endif%} </span></a>
|
|
</td>
|
|
<td class="machine">
|
|
<a href="{% url "buildrequestdetails" buildrequest.project.id buildrequest.id %}">{{buildrequest.machine}}</a>
|
|
</td>
|
|
<td class="started_on">
|
|
<a href="{% url "buildrequestdetails" buildrequest.project.id buildrequest.id %}">{{buildrequest.created|date:"d/m/y H:i"}}</a>
|
|
</td>
|
|
<td class="completed_on">
|
|
<a href="{% url "buildrequestdetails" buildrequest.project.id buildrequest.id %}">{{buildrequest.updated|date:"d/m/y H:i"}}</a>
|
|
</td>
|
|
<td class="failed_tasks error">
|
|
</td>
|
|
<td class="errors_no">
|
|
<a class="errors_no error" href="{% url "buildrequestdetails" buildrequest.project.id buildrequest.id %}#errors">{{buildrequest.brerror_set.all.count}} error{{buildrequest.brerror_set.all.count|pluralize}}</a>
|
|
</td>
|
|
<td class="warnings_no">
|
|
</td>
|
|
<td class="time">
|
|
{{br.timespent.total_seconds|sectohms}}
|
|
</td>
|
|
<td class="output"> {# we have no output here #}
|
|
</td>
|
|
<td class="project">
|
|
<a href="{% url 'project' buildrequest.project.id %}">{{buildrequest.project.name}}</a>
|
|
</td>
|
|
</tr>
|
|
{%endif%}
|
|
{% endfor %}
|
|
|
|
|
|
{% include "basetable_bottom.html" %}
|
|
{% endif %} {# objects.paginator.count #}
|
|
{% endif %} {# empty #}
|
|
</div><!-- end row-fluid-->
|
|
|
|
{% endblock %}
|