From 7ef036bd9c0c7f59e1862c267f802a1a3a74fc7f Mon Sep 17 00:00:00 2001 From: Aaron Train Date: Tue, 10 May 2022 21:31:26 -0400 Subject: [PATCH] For #25200 - Add on-failure notify for unit test to Slack Add test summary section --- taskcluster/ci/test/kind.yml | 60 ++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/taskcluster/ci/test/kind.yml b/taskcluster/ci/test/kind.yml index 4f5e70757..5786756e4 100644 --- a/taskcluster/ci/test/kind.yml +++ b/taskcluster/ci/test/kind.yml @@ -17,6 +17,61 @@ job-defaults: attributes: retrigger: true description: Test Fenix + extra: + notify: + slackBlocks: | + [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": "Fenix :firefox: ${task.metadata.name} :x:\n " + } + }, + { + "type": "divider" + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Task*: " + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Owner*: ${task.metadata.owner}" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Source*: <${task.payload.env.MOBILE_BASE_REPOSITORY}/commit/${task.payload.env.MOBILE_HEAD_REV}|Commit> :github:" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Test Summary*: :debug:" + } + }, + { + "type": "divider" + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": ":testops-notify: created by " + } + ] + } + ] fetches: toolchain: - android-sdk-linux @@ -25,6 +80,11 @@ job-defaults: run: using: gradlew use-caches: false + routes: + - notify.slack-channel.G016BC5FUHJ.on-failed + scopes: + - queue:route:notify.slack-channel.G016BC5FUHJ.on-failed + - notify:slack-channel:G016BC5FUHJ treeherder: kind: test tier: 2