forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1827709: Notify Thunderbird CI Matrix channel after mozilla-centr…
…al push. r=releng-reviewers,gabriel This notification will help Thunderbird developers who are tasked with pushing multiple bugs to comm-central after a mozilla-central push. Taskgraph tests adjusted to verify the notification is only sent for pushes to mozilla-central, and to run the tests when .taskcluster.yml is updated. Differential Revision: https://phabricator.services.mozilla.com/D175290
- Loading branch information
Showing
3 changed files
with
44 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,31 @@ def test_push(self): | |
self.assertEqual( | ||
rendered["tasks"][0]["metadata"]["name"], "Gecko Decision Task" | ||
) | ||
self.assertIn("matrixBody", rendered["tasks"][0]["extra"]["notify"]) | ||
|
||
def test_push_non_mc(self): | ||
context = { | ||
"tasks_for": "hg-push", | ||
"push": { | ||
"revision": "e8d2d9aff5026ef1f1777b781b47fdcbdb9d8f20", | ||
"base_revision": "e8aebe488b2f2e567940577de25013d00e818f7c", | ||
"owner": "[email protected]", | ||
"pushlog_id": 1556565286, | ||
"pushdate": 112957, | ||
}, | ||
"repository": { | ||
"url": "https://hg.mozilla.org/releases/mozilla-beta", | ||
"project": "mozilla-beta", | ||
"level": "3", | ||
}, | ||
"ownTaskId": slugid.nice(), | ||
} | ||
rendered = jsone.render(self.taskcluster_yml, context) | ||
pprint.pprint(rendered) | ||
self.assertEqual( | ||
rendered["tasks"][0]["metadata"]["name"], "Gecko Decision Task" | ||
) | ||
self.assertNotIn("matrixBody", rendered["tasks"][0]["extra"]["notify"]) | ||
|
||
def test_cron(self): | ||
context = { | ||
|