No bug: Ignore decision task errors on taskcluster while in development; r=me DONTBUILD BETA_BASE_20171113
authorTom Prince <mozilla@hocat.ca>
Mon, 13 Nov 2017 10:47:25 -0700
changeset 29370 00e527d74ef26e8f974f74b4a97676e5e0eb32b5
parent 29369 f57390a5d6ddef0380e5be087fa4b96b340501bd
child 29371 2972540e326a20a0bb9d03281b79ba189b26131e
push id2068
push userclokep@gmail.com
push dateMon, 13 Nov 2017 19:02:14 +0000
treeherdercomm-beta@9c7e7ce8672b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
No bug: Ignore decision task errors on taskcluster while in development; r=me DONTBUILD
.taskcluster.yml
--- a/.taskcluster.yml
+++ b/.taskcluster.yml
@@ -37,42 +37,51 @@ tasks:
     tags:
       $if: 'tasks_for == "hg-push"'
       then: {createdForUser: "${ownerEmail}"}
 
     routes:
       - "tc-treeherder.v2.${repository.project}.${push.revision}.${push.pushlog_id}"
       - "tc-treeherder-stage.v2.${repository.project}.${push.revision}.${push.pushlog_id}"
       - "notify.email.${ownerEmail}.on-failed"
-      - "notify.email.${ownerEmail}.on-exception"
+      - $if: '"mozilla@hocat.ca" in ownerEmail'
+        # Until taskcluster is ready for general consumption, don't report exceptions from taskcluster.
+        then: "notify.email.${ownerEmail}.on-exception"
 
     scopes:
       - 'assume:repo:${repoUrl[8:]}:*'
       - 'queue:route:notify.email.${ownerEmail}.*'
 
     dependencies: []
     requires: all-completed
 
     priority: lowest
     retries: 5
 
     payload:
       env:
-        # checkout-gecko uses these to check out the source; the inputs
-        # to `mach taskgraph decision` are all on the command line.
-        GECKO_BASE_REPOSITORY: 'https://hg.mozilla.org/mozilla-unified'
-        GECKO_HEAD_REPOSITORY: 'https://hg.mozilla.org/mozilla-central'
-        GECKO_HEAD_REF: 'default'
-        COMM_BASE_REPOSITORY: 'https://hg.mozilla.org/comm-central'
-        COMM_HEAD_REPOSITORY: '${repoUrl}'
-        COMM_COMMIT_MSG: '${push.comment}'
-        COMM_HEAD_REF: '${push.revision}'
-        COMM_HEAD_REV: '${push.revision}'
-        HG_STORE_PATH: /buillds/worker/checkouts/hg-store
-        TASKCLUSTER_CACHES: /builds/worker/checkouts
+        $merge:
+        - # checkout-gecko uses these to check out the source; the inputs
+          # to `mach taskgraph decision` are all on the command line.
+          GECKO_BASE_REPOSITORY: 'https://hg.mozilla.org/mozilla-unified'
+          GECKO_HEAD_REPOSITORY: 'https://hg.mozilla.org/mozilla-central'
+          GECKO_HEAD_REF: 'default'
+          COMM_BASE_REPOSITORY: 'https://hg.mozilla.org/comm-central'
+          COMM_HEAD_REPOSITORY: '${repoUrl}'
+          COMM_HEAD_REF: '${push.revision}'
+          COMM_HEAD_REV: '${push.revision}'
+          HG_STORE_PATH: /buillds/worker/checkouts/hg-store
+          TASKCLUSTER_CACHES: /builds/worker/checkouts
+        - $if: '("--buildbot" in push.comment) && !("mozilla@hocat.ca" in ownerEmail)'
+          then:
+            # Until all buildbot platforms are supported in taskcluster, avoid
+            # passing try syntax to taskcluster.
+            COMM_COMMIT_MSG: 'try: ignored'
+          else:
+            COMM_COMMIT_MSG: '${push.comment}'
 
       cache:
         level-${repository.level}-checkouts-sparse-v1: /builds/worker/checkouts
 
       features:
         taskclusterProxy: true
         chainOfTrust: true