Bug 1303556: ensure owner is always an email address; r=jonasfj, a=npotb
authorDustin J. Mitchell <dustin@mozilla.com>
Mon, 03 Oct 2016 22:28:02 +0000
changeset 350660 9f64850761cb6c55b53b379bfd125140e00033e9
parent 350659 7af7e3f2fb8dde0c3f7f7fd1302ffd05f534c937
child 350661 1cd295569b2bd7b40cab83c179525fd549c73051
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonasfj, npotb
bugs1303556
milestone50.0
Bug 1303556: ensure owner is always an email address; r=jonasfj, a=npotb MozReview-Commit-ID: HPRQS9lYjhI
taskcluster/taskgraph/decision.py
--- a/taskcluster/taskgraph/decision.py
+++ b/taskcluster/taskgraph/decision.py
@@ -107,16 +107,21 @@ def get_decision_parameters(options):
         'message',
         'project',
         'pushlog_id',
         'owner',
         'level',
         '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'])