Bug 1189376 - Link to perfherder for try pushes that contain talos jobs. r=bhearsum
--- a/status/generators.py
+++ b/status/generators.py
@@ -11,29 +11,37 @@ def buildTryChangeMessage(change, packag
msgdict['headers'] = {"In-Reply-To": "<%(tree)s-%(revision)s>" % locals(),
"References": "<%(tree)s-%(revision)s>" % locals(),
}
msgdict["body"] = """\
Thank you for your try submission. It's the best!
Results will be displayed on Treeherder as they come in:
https://treeherder.mozilla.org/#/jobs?repo=%(tree)s&revision=%(revision)s
-
-Once completed, builds and logs will be available at:
-%(packageDir)s
""" % locals()
commitTitles = change.properties.getProperty('commit_titles')
if commitTitles:
title = getSensibleCommitTitle(commitTitles)
allTitles = '\n * '.join(commitTitles)
+ if ((' -t ' in allTitles or ' --talos ' in allTitles) and
+ '-t none' not in allTitles and '--talos none' not in allTitles):
+ msgdict['body'] += """\
+
+It looks like this submission has talos jobs. You can compare the performance of your push against a baseline revision here:
+https://treeherder.mozilla.org/perf.html?newProject=try&newRevision=%(revision)s
+""" % locals()
+
msgdict['subject'] += ': %(title)s' % locals()
msgdict['body'] += """\
+Once completed, builds and logs will be available at:
+%(packageDir)s
+
Summary:
* %(allTitles)s
""" % locals()
return msgdict
def getSensibleCommitTitle(titles):