[PATCH] D118170: [LNT] Fix the graph page to show multiple metrics for the same test

Pavel Kosov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 25 11:25:49 PST 2022


kpdev42 created this revision.
kpdev42 added reviewers: cmatthews, thopre, danilaml.
kpdev42 added a project: LLVM.
Herald added a subscriber: dkolesnichenko.
kpdev42 requested review of this revision.

Note: request.args is a dict and duplicate keys are ignored.
Currently the plot args have the following format plot.unused=m.t.f where `unused` is the test id.
If you select few metrics for the same test (for example compile_time and execution_time) on the Run page and click Graph,
the URL will look like /db_default/v4/nts/graph?plot.958=5.958.2&plot.958=5.958.3
The second plot argument with the same key will be ignored. This patch fixes this issue.

OS Laboratory. Huawei Russian Research Institute. Saint-Petersburg


Repository:
  rLNT LNT

https://reviews.llvm.org/D118170

Files:
  lnt/server/ui/templates/v4_run.html


Index: lnt/server/ui/templates/v4_run.html
===================================================================
--- lnt/server/ui/templates/v4_run.html
+++ lnt/server/ui/templates/v4_run.html
@@ -345,7 +345,7 @@
         <tbody class="searchable">
           {% for test_name,test_id,cr in tests %}
             <tr>
-              <td><input type="checkbox" name="plot.{{test_id}}" value="{{machine.id}}.{{test_id}}.{{field_index}}"/></td>
+              <td><input type="checkbox" name="plot.{{test_id}}.{{field_index}}" value="{{machine.id}}.{{test_id}}.{{field_index}}"/></td>
               <td class="benchmark-name">
                 <a href="{{graph_base}}&plot.{{test_id}}={{ machine.id}}.{{test_id}}.{{field_index}}">
                   {{ test_name }}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118170.402980.patch
Type: text/x-patch
Size: 766 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220125/9f3ed699/attachment.bin>


More information about the llvm-commits mailing list