summaryrefslogtreecommitdiff
path: root/lkft/templates/lkft-jobs.html
blob: aa9003ec9784424ae19a9c11a8ddd04646d8cf65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
{% extends '_layouts/base.html' %}

{% load static%}
{% load escapesharp %}
{% load startswith %}

{% block title %} Jobs for {{ project.name }} {{ build.version }} {% endblock %}

{% block headline %}<h1>Jobs for {{ project.name }} {{ build.version }}</h1>{% endblock %}

{% block css %}
<link rel="stylesheet" href="{% static "report/css/compatibility_result.css" %}">
{% endblock %}

{% block content %}
<div>
<h2>Job List:</h2>
<table border="1">
<tr> 
    <th> Index</th>
    <th> Job Id(Job Link)</a> </th>
    <th> Job Name(Result Attachment Link) </a></th>
    <th> Job Status </th>
</tr>
{% for job in jobs %}
<tr>
	<td> {{ forloop.counter }}</td>
    <td> <a href="{{job.external_url}}">{{job.job_id}}</a> </td>
    {% if job.attachment_url %}
    <td> <a href="{{job.attachment_url}}">{{job.name}} </a></td>
    {% else %}
    <td> {{job.name}}</td>
    {% endif %}
    <td>{{job.job_status}} </td>
</tr>
{% endfor %}
</table>
</div>
<hr/>

<div>
<h2>Bug Status:</h2>
{% if open_bugs %}
<table border=2>
<tr>
    <th>Index</th>
    <th>Bug Id</th>
    <th>Summary</th>
    <th>Status</th>
</tr>
{% for bug in open_bugs %}
    {% ifnotequal  bug.status 'RESOLVED' %}
    <tr>
        <td>{{ forloop.counter }}</td>
        <td><a href="{{bugzilla_show_bug_prefix}}{{ bug.id }}">{{ bug.id }}</a></td>
        <td>{{ bug.summary }}</td>
        <td>{{ bug.status }}</td>
    </tr>
    {% endifnotequal %}
{% endfor %}
</table>
{% else %}
Excellent build, no open bugs on it at the moment.
{% endif %}
</div>

<hr/>
<div align="left">
<h2>Summary of Failures</h2>
<table class="testdetails">
<tbody>
<tr>
    <th>Index</th>
    <th>Module</th>
    <th>Test</th>
    <th>Abis(Trend)</th>
    <th>Kernels</th>
    <th>Bugs</th>
</tr>
{% for failure in failures_list %}
<tr>
	<td>{{forloop.counter}}</td>
	<td class="testname">{{failure.module_name}}</td>
    <td class="testname">{{failure.test_name}}</td>
    <td nowrap>
        {% with failure.abis as abis %}
        {% for abi in abis %}
        {% if not forloop.first %}<br/>{% endif %}
        {% if failure.module_name|startswith:'Vts' %}
        <a href="https://qa-reports.linaro.org/android-lkft/{{ project.name }}/tests/vts-test/{{abi}}.{{failure.module_name}}/{{failure.test_class}}.{{failure.test_method}}">{{ abi }}</a>
        {% elif failure.module_name == "CtsOnGsiTrebleFrameworkVintfTest" %}
        <a href="https://qa-reports.linaro.org/android-lkft/{{ project.name }}/tests/vts-test/{{abi}}.{{failure.module_name}}/{{failure.test_class}}.{{failure.test_method}}">{{ abi }}</a>
        {% else %}
        <a href="https://qa-reports.linaro.org/android-lkft/{{ project.name }}/tests/cts-lkft-{{abi}}/{{abi}}.{{failure.module_name}}/{{failure.test_class}}.{{failure.test_method}}">{{ abi }}</a>
        {% endif %}
        {% endfor %}
        {% endwith %}
    </td>
    <td class="testname" nowrap>
        {% with failure.kernel_versions as kernel_versions %}
        {% for kernel_version in kernel_versions %}
        {% if not forloop.first %}<br/>{% endif %}
        {{ kernel_version }}
        {% endfor %}
        {% endwith %}
    </td>
    <td>
        {% with failure.bugs as bugs %}
        {% for bug in bugs %}
        {% if not forloop.first %}<br/>{% endif %}
        <a target="_blank" href="{{bugzilla_show_bug_prefix}}{{bug.id}}">
        {% if bug.status == 'RESOLVED' %}
        <del style="background-color:lightgrey; color:white"> {{ bug.id }} </del>
        {% else %}
        {{ bug.id }}
        {% endif %}
        </a>
        {% empty %}
        {% endfor %}
        {% endwith %}
    </td>
</tr>
{% endfor %}
</tbody>
</table>
</div>

<hr/>
<hr/>
<div align="left">
<h2>Details of Failures</h2>
{% for module_name, module_failures in failures.items %}
{% if module_failures|length > 0 %}
<table class="testdetails">
<tbody>
<tr>
    <td class="module" colspan="9">
        <a name="{{module_name}}">{{module_name}} has {{ module_failures|length }} failures</a>
    </td>
</tr>
<tr>
    <th>Index</th>
    <th>Test</th>
    <th>Abis</th>
    <th>Kernels</th>
    <th>Details</th>
    <th>Bugs</th>
    <th>Last Work</th>
    <th>First Fail</th>
    <th>Changes</th>
</tr>
{% for testcase_name, failure in module_failures.items %}
<tr>
	<td> {{ forloop.counter }}</td>
    <td class="testname">{{failure.test_name}}</td>
    <td class="testname" nowrap>
        {% with failure.abis as abis %}
        {% for abi in abis %}
        {% if not forloop.first %}<br/>{% endif %}
        {% if failure.module_name|startswith:'Vts' %}
        <a href="https://qa-reports.linaro.org/android-lkft/{{ project.name }}/tests/vts-test/{{abi}}.{{failure.module_name}}/{{failure.test_class}}.{{failure.test_method}}">{{ abi }}</a>
        {% elif failure.module_name == "CtsOnGsiTrebleFrameworkVintfTest" %}
        <a href="https://qa-reports.linaro.org/android-lkft/{{ project.name }}/tests/vts-test/{{abi}}.{{failure.module_name}}/{{failure.test_class}}.{{failure.test_method}}">{{ abi }}</a>
        {% else %}
        <a href="https://qa-reports.linaro.org/android-lkft/{{ project.name }}/tests/cts-lkft-{{abi}}/{{abi}}.{{failure.module_name}}/{{failure.test_class}}.{{failure.test_method}}">{{ abi }}</a>
        {% endif %}
        {% endfor %}
        {% endwith %}
    </td>
    <td class="testname" nowrap>
        {% with failure.kernel_versions as kernel_versions %}
        {% for kernel_version in kernel_versions %}
        {% if not forloop.first %}<br/>{% endif %}
        {{ kernel_version }}
        {% endfor %}
        {% endwith %}
    </td>
    <td class="failuredetails"><div class="details" nowrap>{{failure.stacktrace}}</div></td>
    <td>
        {% with failure.bugs as bugs %}
        {% for bug in bugs %}
        {% if not forloop.first %}<br/>{% endif %}
        <a target="_blank" href="{{bugzilla_show_bug_prefix}}{{bug.id}}">
        {% if bug.status == 'RESOLVED' %}
        <del style="background-color:lightgrey; color:white"> {{ bug.id }} </del>
        {% else %}
        {{ bug.id }}
        {% endif %}
        </a>
        {% empty %}
        <a target='_blank' href="/lkft/file-bug?module_name={{module_name}}&test_name={{failure.test_name|escapesharp}}&qa_job_ids={{failure.qa_job_ids|join:','}}">Report Android Bug</a>&nbsp;
        {% endfor %}
        {% endwith %}
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
{% endfor %}
</tbody>
</table>
<hr/>
{% endif %}
{% endfor %}
</div>
{% endblock %}