From ebf61b5a3301ddd24fa9cd265a53948fde9ee9f6 Mon Sep 17 00:00:00 2001 From: Aaron Train Date: Mon, 27 Sep 2021 15:28:23 -0400 Subject: [PATCH] No issue: Add Slack Notify event for UI test failure fix: newline EOF fix: swap channel fix: broadcast to test-infra-alerts --- taskcluster/ci/ui-test/kind.yml | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/taskcluster/ci/ui-test/kind.yml b/taskcluster/ci/ui-test/kind.yml index e0ad6ee97..41aa29e6c 100644 --- a/taskcluster/ci/ui-test/kind.yml +++ b/taskcluster/ci/ui-test/kind.yml @@ -18,6 +18,48 @@ job-defaults: signing: signing-debug signing-android-test: signing-android-test-debug include-pull-request-number: true + routes: + - notify.slack-channel.G016BC5FUHJ.on-failed + scopes: + - queue:route:notify.slack-channel.G016BC5FUHJ.on-failed + - notify:slack-channel:G016BC5FUHJ + extra: + notify: + # slackText: 'https://firefox-ci-tc.services.mozilla.com/tasks/${status.taskId} | ${task.metadata.name} | ${task.metadata.source}' + slackBlocks: | + [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": "UI Test Failure\nFenix :firefox: ${task.metadata.name} failure :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.metadata.source}|Github :github:>" + } + } + ] run: commands: - [wget, {artifact-reference: ''}, '-O', app.apk]