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
This commit is contained in:
Julien Cristau 2024-10-02 07:32:53 +00:00
parent 479742d3e9
commit dcd93be9bb
2 changed files with 22 additions and 1 deletions

View file

@ -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",

View file

@ -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}"