Skip to content

Commit b601833

Browse files
machshevhcallahan-lowrisc
authored andcommitted
fix: add failure buckets back into block report templates
Signed-off-by: James McCorrie <[email protected]>
1 parent 122b9e3 commit b601833

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

src/dvsim/sim_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def from_job_status(results: Sequence["CompletedJobStatus"]) -> "BucketedFailure
132132

133133
buckets[bucket].append(
134134
JobFailureOverview(
135-
name=job_status.full_name,
135+
name=job_status.name,
136136
seed=job_status.seed,
137137
line=job_status.fail_msg.line_number,
138138
log_context=job_status.fail_msg.context,

src/dvsim/templates/reports/block_report.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
{% set timestamp = results.timestamp %}
1111
{% set stages = results.stages %}
1212
{% set coverage = results.coverage %}
13+
{% set failed_jobs = results.failed_jobs %}
1314

1415
<!doctype html>
1516
<html lang="en">
@@ -223,6 +224,43 @@ <h2>Simulation Results: {{ block.name }}</h2>
223224
</div>
224225
</div>
225226
</div>
227+
228+
<div class="row py-3">
229+
<div class="col">
230+
<h3>Error Messages</h3>
231+
<table class="table table-sm table-hover">
232+
<thead>
233+
<tr>
234+
<th>&nbsp;&nbsp;</th>
235+
<th>Test</th>
236+
<th>seed</th>
237+
<th>line</th>
238+
<th>log context</th>
239+
</tr>
240+
</thead>
241+
<tbody>
242+
{% for msg, job_list in failed_jobs.buckets.items() %}
243+
<tr class="table-primary">
244+
<td colspan=5>{{ msg }}</td>
245+
</tr>
246+
{% for job in job_list %}
247+
<tr>
248+
<th scope="row"></th>
249+
<td>{{ job.name }}</td>
250+
<td>{{ job.seed }}</td>
251+
<td>{{ job.line }}</td>
252+
<td>
253+
{% for line in job.log_context %}
254+
<div>{{ line }}</div>
255+
{% endfor %}
256+
</td>
257+
</tr>
258+
{% endfor %}
259+
{% endfor %}
260+
</tbody>
261+
</table>
262+
</div>
263+
</div>
226264
</div>
227265

228266
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"

0 commit comments

Comments
 (0)