Merge lp:~asac/lava-dashboard/display-passes-fail-in-testrun-list into lp:lava-dashboard

Proposed by Alexander Sack
Status: Merged
Merged at revision: 318
Proposed branch: lp:~asac/lava-dashboard/display-passes-fail-in-testrun-list
Merge into: lp:lava-dashboard
Diff against target: 21 lines (+4/-0)
1 file modified
dashboard_app/templates/dashboard_app/_test_run_list_table.html (+4/-0)
To merge this branch: bzr merge lp:~asac/lava-dashboard/display-passes-fail-in-testrun-list
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Disapprove
Andy Doan Pending
Review via email: mp+90022@code.launchpad.net

Description of the change

Amateurish merge request trying to display pass/fail stats for each test run in the test run list of a bundle like: http://validation.linaro.org/lava-server/dashboard/streams/anonymous/doanac/bundles/b4888097587d9f8f3815508f1a4015a426e2a0dc/

NOTE: couldn't test or try because I don't have a local setup. all guesswork; please ping on IRC if bogus.

To post a comment you must log in.
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I like the idea, but unfortunately the performance is rather bad -- the changed page issues one query per test run in the stream, which can be thousands. I know Zygmunt was working on a denormalization patch that would store the sumamry data in the testrun table and allow an efficient version of your changes, but I don't know what happened to that.

Revision history for this message
Alexander Sack (asac) wrote :

when is zyga's feature running? Do we have any bundles with thousands of test runs? My take is that we have various views that are superslow, so we can add this unless we have real live example where this is really super slow.

Unfortunately i cannot test anything because I don't know how to set this django app up :/

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I have it locally here but it was not finished (it works but I wanted to reduce the migrations by starting over). I don't have any time to work on this at this time. I agree with mwhudson.

1) Land pagination
2) Land denormalization
3) Tweak this

review: Disapprove
Revision history for this message
Alexander Sack (asac) wrote :

can someone please pick this up? I think it's not OK that the intermediate view doesn't show the passes/fails for the individual bundles. I believe what I understand means we need to duplicate template and only make use of it in this case to be sure that this feature does not accidentially slowdown views that iterate on all bundles...

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Ah, so the patch can be merged now. With the current state of the code, it will only affect the 'test runs in bundle' view, not the 'test runs in bundle stream' view -- but it sounds like that's what you want?

Revision history for this message
Alexander Sack (asac) wrote :

Can you replace the "test runs in bundle" and "test runs in bundle stream" view with example URLs? If so, I can provide more info.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :
Revision history for this message
Alexander Sack (asac) wrote :

Yeah, thats OK... let's merge it like this.

Wider question for me is whether http://validation.linaro.org/lava-server/dashboard/streams/anonymous/alf/test-runs/ is good for anything. Do we need it or is it rather confusing?

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Alexander Sack <email address hidden> writes:

> Yeah, thats OK... let's merge it like this.

Cool. Doing so.

> Wider question for me is whether http://validation.linaro.org/lava-server/dashboard/streams/anonymous/alf/test-runs/ is good for anything. Do we need it or is it rather confusing?

It's probably not useful indeed.

Cheers,
mwh

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'dashboard_app/templates/dashboard_app/_test_run_list_table.html'
2--- dashboard_app/templates/dashboard_app/_test_run_list_table.html 2011-09-27 21:22:36 +0000
3+++ dashboard_app/templates/dashboard_app/_test_run_list_table.html 2012-01-25 00:49:25 +0000
4@@ -4,6 +4,8 @@
5 <tr>
6 <th>{% trans "Test Run" %}</th>
7 <th>{% trans "Test" %}</th>
8+ <th>{% trans "Passes" %}</th>
9+ <th>{% trans "Fail" %}</th>
10 <th>{% trans "Uploaded On" %} </th>
11 <th>{% trans "Analyzed On" %}</th>
12 </tr>
13@@ -13,6 +15,8 @@
14 <tr>
15 <td><a href="{{ test_run.get_absolute_url }}"><code>{{ test_run.test }} results<code/></a></td>
16 <td><a href="{{ test_run.test.get_absolute_url }}">{{ test_run.test }}</a></td>
17+ <td>{{ test_run.get_summary_results.pass }}</td>
18+ <td>{{ test_run.get_summary_results.fail }}</td>
19 <td>{{ test_run.bundle.uploaded_on|date:"Y-m-d H:i:s" }}</td>
20 <td>{{ test_run.analyzer_assigned_date|date:"Y-m-d H:i:s" }}</td>
21 </tr>

Subscribers

People subscribed via source and target branches