expose regression reports on web page
cover expose regression reports on web page
From: Alexis Lothoré <[email protected]>
Regression reports are currently stored alongside test reports and other artifacts on the autobuilder artifacts web page. This small update propose to add a link to the regression report (when available) on main non-release page ([1]) instead of having to manually navigate the directories to find it
[1] https://autobuilder.yocto.io/pub/non-release/
Alexis Lothoré (2):
scripts/generate-testresult-index.py: fix typo in template var name scripts/generate-testresult-index.py: expose regression reports on web
page
scripts/generate-testresult-index.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
Signature · 1 line
2.40.0
PATCH 1/2 scripts/generate-testresult-index.py: fix typo in template var name
From: Alexis Lothoré <[email protected]>
--- scripts/generate-testresult-index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/generate-testresult-index.py +2 -2
@@ -12,7 +12,7 @@ import json import subprocess from jinja2 import Template -index_templpate = """ +index_template = """ <!DOCTYPE html> <html> <head>
@@ -181,6 +181,6 @@ for build in sorted(os.listdir(path), key=keygen, reverse=True): with open(f + "/resulttool-done.log", "a+") as tf: tf.write("\n") -t = Template(index_templpate) +t = Template(index_template) with open(os.path.join(path, "index.html"), 'w') as f: f.write(t.render(entries = entries))
Signature · 1 line
2.40.0
PATCH 2/2 scripts/generate-testresult-index.py: expose regression reports on web page
In reply to [email protected]From: Alexis Lothoré <[email protected]>
When available, expose tesresult-regressions-report.txt on non-release web page, as it is done for many other artifacts currently
--- scripts/generate-testresult-index.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
scripts/generate-testresult-index.py +7 -1
@@ -30,6 +30,7 @@ index_template = """ <th>Type</th> <th>Branch</th> <th>Test Results Report</th> + <th>Regressions Report</th> <th>Performance Reports</th> <th>ptest Logs</th> <th>Buildhistory</th>
@@ -43,6 +44,7 @@ index_template = """ <td>{% if entry[2] %} {{entry[2]}}{% endif %}</td> <td>{% if entry[4] %} {{entry[4]}}{% endif %}</td> <td> {% if entry[3] %}<a href="{{entry[3]}}">Report</a>{% endif %} </td> + <td> {% if entry[9] %}<a href="{{entry[9]}}">Report</a>{% endif %} </td> <td> {% for perfrep in entry[6] %} <a href="{{perfrep[0]}}">{{perfrep[1]}}</a>
@@ -129,6 +131,10 @@ for build in sorted(os.listdir(path), key=keygen, reverse=True): if os.path.exists(buildpath + "/testresult-report.txt"): testreport = reldir + "testresults/testresult-report.txt" + regressionreport = "" + if os.path.exists(buildpath + "/testresult-regressions-report.txt"): + regressionreport = reldir + "testresults/testresult-regressions-report.txt" + ptestlogs = [] ptestseen = [] for p in glob.glob(buildpath + "/*-ptest/*.log"):
@@ -165,7 +171,7 @@ for build in sorted(os.listdir(path), key=keygen, reverse=True): branch = get_build_branch(buildpath) - entries.append((build, reldir, btype, testreport, branch, buildhistory, perfreports, ptestlogs, hd)) + entries.append((build, reldir, btype, testreport, branch, buildhistory, perfreports, ptestlogs, hd, regressionreport)) # Also ensure we have saved out log data for ptest runs to aid debugging if "ptest" in btype or btype in ["full", "quick"]:
Signature · 1 line
2.40.0
Re: [yocto] [yocto-autobuilder-helper][PATCH 2/2] scripts/generate-testresult-index.py: expose regression reports on web page
Quoted 42 lines · Alexis Lothoré via lists.yoctoproject.org
From: Alexis Lothoré <[email protected]>
When available, expose tesresult-regressions-report.txt on non-release web page, as it is done for many other artifacts currently
Signed-off-by Alexis Lothoré <[email protected]>--- scripts/generate-testresult-index.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)scripts/generate-testresult-index.py +6
-0@@ -30,6 +30,7 @@ index_template = """ <th>Type</th> <th>Branch</th> <th>Test Results Report</th> + <th>Regressions Report</th> <th>Performance Reports</th> <th>ptest Logs</th> <th>Buildhistory</th>@@ -43,6 +44,7 @@ index_template = """ <td>{% if entry[2] %} {{entry[2]}}{% endif %}</td> <td>{% if entry[4] %} {{entry[4]}}{% endif %}</td> <td> {% if entry[3] %}<a href="{{entry[3]}}">Report</a>{% endif %} </td> + <td> {% if entry[9] %}<a href="{{entry[9]}}">Report</a>{% endif %} </td> <td> {% for perfrep in entry[6] %} <a href="{{perfrep[0]}}">{{perfrep[1]}}</a>@@ -129,6 +131,10 @@ for build in sorted(os.listdir(path), key=keygen, reverse=True): if os.path.exists(buildpath + "/testresult-report.txt"): testreport = reldir + "testresults/testresult-report.txt" + regressionreport = "" + if os.path.exists(buildpath + "/testresult-regressions-report.txt"): + regressionreport = reldir + "testresults/testresult-regressions-report.txt" + ptestlogs = [] ptestseen = [] for p in glob.glob(buildpath + "/*-ptest/*.log"):
scripts/generate-testresult-index.py for build in sorted(os.listdir(path), key=keygen, reverse=True): · line 175
Quoted 6 lines
scripts/generate-testresult-index.py +1
-1@@ -165,7 +171,7 @@ for build in sorted(os.listdir(path), key=keygen, reverse=True): branch = get_build_branch(buildpath) - entries.append((build, reldir, btype, testreport, branch, buildhistory, perfreports, ptestlogs, hd)) + entries.append((build, reldir, btype, testreport, branch, buildhistory, perfreports, ptestlogs, hd, regressionreport))
In the interests of keeping that index page a manageable size, instead of a new data column, I'd suggest we just add the link in the same TD cell with the name "Regression"?
Cheers,
Richard
Re: [yocto] [yocto-autobuilder-helper][PATCH 2/2] scripts/generate-testresult-index.py: expose regression reports on web page
Hi Richard,
Quoted 10 lines · Richard Purdie
scripts/generate-testresult-index.py for build in sorted(os.listdir(path), key=keygen, reverse=True): · line 174
Quoted 4 lines · Alexis Lothoré via lists.yoctoproject.org
From: Alexis Lothoré <[email protected]>
scripts/generate-testresult-index.py +1
-1- entries.append((build, reldir, btype, testreport, branch, buildhistory, perfreports, ptestlogs, hd)) + entries.append((build, reldir, btype, testreport, branch, buildhistory, perfreports, ptestlogs, hd, regressionreport))In the interests of keeping that index page a manageable size, instead of a new data column, I'd suggest we just add the link in the same TD cell with the name "Regression"?
Sure, I will update it with your suggestion
Signature · 3 lines
Alexis Lothoré, Bootlin Embedded Linux and Kernel engineering https://bootlin.com