autotest: Add link to wmatrix test history.
BUG=none
TEST=run_suite_unittest.py
Change-Id: I385f737f9ee0e031cfee4728d901d98ab064fc62
Reviewed-on: https://chromium-review.googlesource.com/565742
Commit-Ready: David Riley <davidriley@chromium.org>
Tested-by: David Riley <davidriley@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@google.com>
diff --git a/site_utils/run_suite.py b/site_utils/run_suite.py
index b7cc906..90fd0ab 100755
--- a/site_utils/run_suite.py
+++ b/site_utils/run_suite.py
@@ -556,7 +556,6 @@
"""
return '%s %s' % (self.anchor, self.url)
-
def GenerateWmatrixRetryLink(self):
"""Generate a link to the wmatrix retry dashboard.
@@ -568,6 +567,17 @@
text='[Flake-Dashboard]: %s' % self.testname,
url=reporting_utils.link_retry_url(self.testname))
+ def GenerateWmatrixHistoryLink(self):
+ """Generate a link to the wmatrix test history dashboard.
+
+ @return A link formatted for the buildbot log annotator.
+ """
+ if not self.testname or self.testname in self._SKIP_RETRY_DASHBOARD:
+ return None
+ return annotations.StepLink(
+ text='[Test-History]: %s' % self.testname,
+ url=reporting_utils.link_test_history(self.testname))
+
class Timings(object):
"""Timings for important events during a suite.
@@ -1030,9 +1040,12 @@
for link in links:
for generated_link in link.GenerateBuildbotLinks():
log_func(generated_link)
- wmatrix_link = link.GenerateWmatrixRetryLink()
- if wmatrix_link:
- log_func(wmatrix_link)
+ wmatrix_retry_link = link.GenerateWmatrixRetryLink()
+ if wmatrix_retry_link:
+ log_func(wmatrix_retry_link)
+ wmatrix_history_link = link.GenerateWmatrixHistoryLink()
+ if wmatrix_history_link:
+ log_func(wmatrix_history_link)
class ResultCollector(object):