Bug 1488313: [taskgraph] Don't notify sherrifs on cron decision task failures on try; r=dustin
authorTom Prince <mozilla@hocat.ca>
Wed, 27 Mar 2019 19:38:05 +0000
changeset 466450 dcfe21ab348eda2fdd073fc24299b375963937f7
parent 466449 993025739f8d2d293ded2416e24d3264e467e961
child 466451 bdbde35b573df50c66a8e973fceb8772ab261cce
push id35768
push useropoprus@mozilla.com
push dateThu, 28 Mar 2019 09:55:54 +0000
treeherdermozilla-central@c045dd97faf2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1488313
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1488313: [taskgraph] Don't notify sherrifs on cron decision task failures on try; r=dustin Differential Revision: https://phabricator.services.mozilla.com/D25090
.taskcluster.yml
--- a/.taskcluster.yml
+++ b/.taskcluster.yml
@@ -105,17 +105,17 @@ tasks:
               createdForUser: '${ownerEmail}'
               kind: 'action-callback'
             else:
               $if: 'tasks_for == "cron"'
               then:
                 kind: cron-task
 
         routes:
-          $flatten:
+          $flattenDeep:
             - "tc-treeherder.v2.${repository.project}.${push.revision}.${push.pushlog_id}"
             - $if: 'tasks_for == "hg-push"'
               then:
                 - "index.gecko.v2.${repository.project}.latest.taskgraph.decision"
                 - "index.gecko.v2.${repository.project}.revision.${push.revision}.taskgraph.decision"
                 - "index.gecko.v2.${repository.project}.pushlog-id.${push.pushlog_id}.decision"
                 - "notify.email.${ownerEmail}.on-failed"
                 - "notify.email.${ownerEmail}.on-exception"
@@ -135,20 +135,22 @@ tasks:
                 - "index.gecko.v2.${repository.project}.pushlog-id.${push.pushlog_id}.actions.${ownTaskId}"
                 else:  # cron
                 - "index.gecko.v2.${repository.project}.latest.taskgraph.decision-${cron.job_name}"
                 - "index.gecko.v2.${repository.project}.revision.${push.revision}.taskgraph.decision-${cron.job_name}"
                 - "index.gecko.v2.${repository.project}.pushlog-id.${push.pushlog_id}.decision-${cron.job_name}"
                 # list each cron task on this revision, so actions can find them
                 - 'index.gecko.v2.${repository.project}.revision.${push.revision}.cron.${ownTaskId}'
                 # BUG 1500166 Notify ciduty by email if a nightly hook fails
-                - "notify.email.ciduty+failedcron@mozilla.com.on-failed"
-                - "notify.email.ciduty+exceptioncron@mozilla.com.on-exception"
-                - "notify.email.sheriffs+failedcron@mozilla.org.on-failed"
-                - "notify.email.sheriffs+exceptioncron@mozilla.org.on-exception"
+                - $if: 'repository.project != "try"'
+                  then:
+                  - "notify.email.ciduty+failedcron@mozilla.com.on-failed"
+                  - "notify.email.ciduty+exceptioncron@mozilla.com.on-exception"
+                  - "notify.email.sheriffs+failedcron@mozilla.org.on-failed"
+                  - "notify.email.sheriffs+exceptioncron@mozilla.org.on-exception"
                 # These are the old index routes for the decision task.
                 - "index.gecko.v2.${repository.project}.latest.firefox.decision-${cron.job_name}"
 
         scopes:
           $if: 'tasks_for == "hg-push"'
           then:
             - 'assume:repo:${repoUrl[8:]}:branch:default'
             - 'queue:route:notify.email.${ownerEmail}.*'