Email the performance team when an actual raptor job fails
parent
84de55b4aa
commit
a41efa4bcd
|
@ -15,7 +15,6 @@ DEFAULT_EXPIRES_IN = '1 year'
|
||||||
DEFAULT_APK_ARTIFACT_LOCATION = 'public/target.apk'
|
DEFAULT_APK_ARTIFACT_LOCATION = 'public/target.apk'
|
||||||
_OFFICIAL_REPO_URL = 'https://github.com/mozilla-mobile/fenix'
|
_OFFICIAL_REPO_URL = 'https://github.com/mozilla-mobile/fenix'
|
||||||
_DEFAULT_TASK_URL = 'https://queue.taskcluster.net/v1/task'
|
_DEFAULT_TASK_URL = 'https://queue.taskcluster.net/v1/task'
|
||||||
GOOGLE_PROJECT = "moz-fenix"
|
|
||||||
GOOGLE_APPLICATION_CREDENTIALS = '.firebase_token.json'
|
GOOGLE_APPLICATION_CREDENTIALS = '.firebase_token.json'
|
||||||
|
|
||||||
|
|
||||||
|
@ -416,6 +415,7 @@ class TaskBuilder(object):
|
||||||
routes=None,
|
routes=None,
|
||||||
scopes=None,
|
scopes=None,
|
||||||
treeherder=None,
|
treeherder=None,
|
||||||
|
notify=None,
|
||||||
):
|
):
|
||||||
dependencies = [] if dependencies is None else dependencies
|
dependencies = [] if dependencies is None else dependencies
|
||||||
scopes = [] if scopes is None else scopes
|
scopes = [] if scopes is None else scopes
|
||||||
|
@ -429,6 +429,12 @@ class TaskBuilder(object):
|
||||||
if self.trust_level == 3:
|
if self.trust_level == 3:
|
||||||
routes.append('tc-treeherder.v2.fenix.{}'.format(self.commit))
|
routes.append('tc-treeherder.v2.fenix.{}'.format(self.commit))
|
||||||
|
|
||||||
|
extra = {
|
||||||
|
"treeherder": treeherder,
|
||||||
|
}
|
||||||
|
if notify:
|
||||||
|
extra['notify'] = notify
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"provisionerId": provisioner_id,
|
"provisionerId": provisioner_id,
|
||||||
"workerType": worker_type,
|
"workerType": worker_type,
|
||||||
|
@ -445,9 +451,7 @@ class TaskBuilder(object):
|
||||||
"routes": routes,
|
"routes": routes,
|
||||||
"scopes": scopes,
|
"scopes": scopes,
|
||||||
"payload": payload,
|
"payload": payload,
|
||||||
"extra": {
|
"extra": extra,
|
||||||
"treeherder": treeherder,
|
|
||||||
},
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "Fenix - {}".format(name),
|
"name": "Fenix - {}".format(name),
|
||||||
"description": description,
|
"description": description,
|
||||||
|
@ -616,6 +620,7 @@ class TaskBuilder(object):
|
||||||
dependencies=[signing_task_id],
|
dependencies=[signing_task_id],
|
||||||
name=task_name,
|
name=task_name,
|
||||||
description=description,
|
description=description,
|
||||||
|
routes=['notify.email.perftest-alerts@mozilla.com.on-failed'],
|
||||||
payload={
|
payload={
|
||||||
"maxRunTime": 2700,
|
"maxRunTime": 2700,
|
||||||
"artifacts": [{
|
"artifacts": [{
|
||||||
|
@ -677,7 +682,17 @@ class TaskBuilder(object):
|
||||||
},
|
},
|
||||||
'symbol': job_symbol,
|
'symbol': job_symbol,
|
||||||
'tier': 2,
|
'tier': 2,
|
||||||
}
|
},
|
||||||
|
notify={
|
||||||
|
'email': {
|
||||||
|
'link': {
|
||||||
|
'text': "Treeherder Job",
|
||||||
|
'href': "https://treeherder.mozilla.org/#/jobs?repo=fenix&revision={}".format(self.commit),
|
||||||
|
},
|
||||||
|
'subject': '[fenix] Raptor job "{}" failed'.format(task_name),
|
||||||
|
'content': "This calls for an action of the Performance team. Use the link to view it on Treeherder.",
|
||||||
|
},
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue