From dcd93be9bb2e2c01ebd4c8f024ea7d00d6144ce6 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Wed, 2 Oct 2024 07:32:53 +0000 Subject: [PATCH] Bug 1921474 - send matrix notifications for merge-automation tasks. r=taskgraph-reviewers,releng-reviewers,ahal a=release Differential Revision: https://phabricator.services.mozilla.com/D224141 --- .../transforms/merge_automation.py | 1 + taskcluster/kinds/merge-automation/kind.yml | 22 ++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/taskcluster/gecko_taskgraph/transforms/merge_automation.py b/taskcluster/gecko_taskgraph/transforms/merge_automation.py index ca5f3b6bde48..1549e99753fa 100644 --- a/taskcluster/gecko_taskgraph/transforms/merge_automation.py +++ b/taskcluster/gecko_taskgraph/transforms/merge_automation.py @@ -18,6 +18,7 @@ def handle_keyed_by(config, tasks): return merge_config = config.params["merge_config"] fields = [ + "routes", "worker.push", "worker-type", "worker.l10n-bump-info", diff --git a/taskcluster/kinds/merge-automation/kind.yml b/taskcluster/kinds/merge-automation/kind.yml index 28e6e119cbd5..0574bad02b24 100644 --- a/taskcluster/kinds/merge-automation/kind.yml +++ b/taskcluster/kinds/merge-automation/kind.yml @@ -20,7 +20,6 @@ tasks: platform: firefox-release/opt description: Merge repositories for release management. worker-type: tree - scopes: [] worker: implementation: treescript tags: [] @@ -87,3 +86,24 @@ tasks: default: null run-on-projects: [] expiration-policy: long + routes: + by-level: + '3': + # #releaseduty + - "notify.matrix-room.!tBWwNyfeKqGvkNpdDL:mozilla.org.on-pending" + - "notify.matrix-room.!tBWwNyfeKqGvkNpdDL:mozilla.org.on-resolved" + default: + # #releaseduty-dev + - "notify.matrix-room.!wGgsWXnVncJLSBYmuf:mozilla.org.on-pending" + - "notify.matrix-room.!wGgsWXnVncJLSBYmuf:mozilla.org.on-resolved" + scopes: + - "queue:route:notify.matrix-room.*" + extra: + notify: + matrixBody: + $let: + dry_run: + $if: "'dry_run' in task.payload && task.payload.dry_run" + then: " (dry run)" + else: "" + in: "merge-automation task ${task.metadata.name}${dry_run} is now ${status.state}: https://firefox-ci-tc.services.mozilla.com/tasks/${taskId}"