Bug 1303556: ensure owner is always an email address; r=jonasfj
authorDustin J. Mitchell <dustin@mozilla.com>
Mon, 03 Oct 2016 22:28:02 +0000
changeset 316407 d8a271c72525309029b952075dcbdb9b2f1a284a
parent 316406 232fa9688147213a976a7c5e8934a8d4b04bd524
child 316408 748abfe6748e95dcaadf50187f71c42c14ae47e3
push id30770
push userkwierso@gmail.com
push dateWed, 05 Oct 2016 00:00:48 +0000
treeherdermozilla-central@3470e326025c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonasfj
bugs1303556
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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'])