From 8926e0a151a35f27658322b85d5ec721e27599cd Mon Sep 17 00:00:00 2001 From: Ninette Adhikari <13760198+ninetteadhikari@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:19:42 +0100 Subject: [PATCH] fix: update report page styling and add descriptions --- scripts/lib/build_perf/html/report.html | 64 +++++++++++++++---------- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/scripts/lib/build_perf/html/report.html b/scripts/lib/build_perf/html/report.html index 2fad07d9a33..6199a6b6c55 100644 --- a/scripts/lib/build_perf/html/report.html +++ b/scripts/lib/build_perf/html/report.html @@ -4,7 +4,7 @@ {# Scripts, for visualization#} - + {# Render measurement result charts #} @@ -26,23 +26,15 @@ text-align: left; border-collapse: collapse; } -.meta-table tr:nth-child(even){background-color: #f2f2f2} -meta-table th, .meta-table td { - padding: 4px; -} .summary { - margin: 0; font-size: 14px; text-align: left; border-collapse: collapse; } -summary th, .meta-table td { - padding: 4px; -} .measurement { padding: 8px 0px 8px 8px; border: 2px solid #f0f0f0; - margin-bottom: 10px; + margin: 1.5rem 0; } .details { margin: 0; @@ -62,32 +54,54 @@ background-color: #f0f0f0; margin-left: 10px; } -hr { - color: #f0f0f0; +body { + font-family: 'Helvetica', sans-serif; + text-align: center; + margin: 3rem 8rem; } h2 { font-size: 20px; margin-bottom: 0px; color: #707070; + padding-top: 1.5rem; } h3 { font-size: 16px; margin: 0px; color: #707070; } +h4 { + font-size: 14px; + font-weight: lighter; + line-height: 1.2rem; +} +table { + margin-top: 1.5rem; + line-height: 2rem; +} +tr { + border-bottom: 1px solid #e5e7eb; +} +tr:first-child { + border-bottom: 1px solid #9ca3af; +} +tr:last-child { + border-bottom: none; +} {{ title }} {% macro poky_link(commit) -%} - {{ commit[0:11] }} + {{ commit[0:11] }} {%- endmacro %} -
+
+

Performance Test Report

{# Test metadata #}

General

-
+

The table provides an overview of the comparison between two selected commits from the same branch.

@@ -110,14 +124,16 @@

General

{# Test result summary #}

Test result summary

-
+

The test summary presents a thorough breakdown of each test conducted on the branch, including details such as build time and disk space consumption. Additionally, it gives insights into the average time taken for test execution, along with absolute and relative values for a better understanding.

+ + + + + + + {% for test in test_data %} - {% if loop.index is even %} - {% set row_style = 'style="background-color: #f2f2f2"' %} - {% else %} - {% set row_style = 'style="background-color: #ffffff"' %} - {% endif %} {% if test.status == 'SUCCESS' %} {% for measurement in test.measurements %} @@ -151,9 +167,10 @@

Test result summary

Test nameMeasurement descriptionMean valueAbsolute differenceRelative difference
{# Detailed test results #} +

Test details

+

The following section provides details of each test, accompanied by charts representing build time and disk usage over time or by commit number.

{% for test in test_data %} -

{{ test.name }}: {{ test.description }}

-
+

{{ test.name }}: {{ test.description }}

{% if test.status == 'SUCCESS' %} {% for measurement in test.measurements %}
@@ -284,4 +301,3 @@

{{ measurement.description }}

{% endfor %}
-