Bug 1303556: ensure owner is always an email address; r?jonasfj draft
authorDustin J. Mitchell <dustin@mozilla.com>
Mon, 03 Oct 2016 22:28:02 +0000
changeset 420269 adaea6ac8da8d09d23d608fd0a9215a6cd1a1246
parent 420213 bdb051f7a44f15ee0199e7c03f9c93ed83d133dd
child 532775 a563852628387ef4e3f859b2e44a6e2df3a188af
push id31157
push userdmitchell@mozilla.com
push dateMon, 03 Oct 2016 22:28:19 +0000
reviewersjonasfj
bugs1303556
milestone52.0a1
Bug 1303556: ensure owner is always an email address; r?jonasfj MozReview-Commit-ID: HPRQS9lYjhI
taskcluster/taskgraph/decision.py
--- a/taskcluster/taskgraph/decision.py
+++ b/taskcluster/taskgraph/decision.py
@@ -115,16 +115,21 @@ def get_decision_parameters(options):
         'pushlog_id',
         'pushdate',
         'owner',
         'level',
         'triggered_by',
         'target_tasks_method',
     ] if n in options}
 
+    # owner must be an email, but sometimes (e.g., for ffxbld) it is not, in which
+    # case, fake it
+    if '@' not in parameters['owner']:
+        parameters['owner'] += '@noreply.mozilla.org'
+
     project = parameters['project']
     try:
         parameters.update(PER_PROJECT_PARAMETERS[project])
     except KeyError:
         logger.warning("using default project parameters; add {} to "
                        "PER_PROJECT_PARAMETERS in {} to customize behavior "
                        "for this project".format(project, __file__))
         parameters.update(PER_PROJECT_PARAMETERS['default'])