[dv regr tool] Publish results in html + fixes
- In this PR, the results published to the results server is switched
over from markdown to html directly.
- Uploaded results reuse the same css style that is already uploaded to
`reports.opentitan.org/css/style.css`
- This is just an elementary styling - enough to get the results look
presentable.
In addition, there are few more updates:
- The history of past regressions are embedded as a section in the
latest results as opposed to being copied over to a separate
history.html
- All DV plan documents are updated to reflect the latest regression
results page correctly
- The results page now also provides a link back to the testplan for
ease of cross referencing the test points in the table.
Signed-off-by: Srikrishna Iyer <sriyer@google.com>
diff --git a/util/dvsim/Deploy.py b/util/dvsim/Deploy.py
index 37b3775..2f57302 100644
--- a/util/dvsim/Deploy.py
+++ b/util/dvsim/Deploy.py
@@ -262,10 +262,10 @@
if self.process.poll() is not None:
self.log_fd.close()
if self.process.returncode != 0:
- msg = "Last 2 lines of the log:<br>\n"
+ msg = "Last 5 lines of the log:<br>\n"
self.fail_msg += msg
log.log(VERBOSE, msg)
- get_fail_msg_cmd = "tail -n 2 " + self.log
+ get_fail_msg_cmd = "tail -n 5 " + self.log
msg = run_cmd(get_fail_msg_cmd)
msg = "```\n{}\n```\n".format(msg)
self.fail_msg += msg
@@ -417,8 +417,8 @@
# Start fail message construction
self.fail_msg = "\n**BUILD:** {}<br>\n".format(self.name)
- log_sub_path = self.log.replace(self.sim_cfg.scratch_root + '/', '')
- self.fail_msg += "**LOG: {}<br>\n".format(log_sub_path)
+ log_sub_path = self.log.replace(self.sim_cfg.scratch_path + '/', '')
+ self.fail_msg += "**LOG:** $scratch_path/{}<br>\n".format(log_sub_path)
CompileSim.items.append(self)