Bug 1633866 - [taskgraph] Log parameters url when using 'project=' or 'task-id=', r=tomprince
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Tue, 19 May 2020 20:00:32 +0000
changeset 530944 4904625d5db9327ad8c06d0288441dc515b6a335
parent 530943 3a73bf75d1ce7ee59f7765cbb89dc43f858f5765
child 530945 a3d8aed8eed5cc4c9d5e276e54f54e6a35949e92
push id37434
push userabutkovits@mozilla.com
push dateWed, 20 May 2020 10:05:10 +0000
treeherdermozilla-central@005ef1c25992 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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 1633866 - [taskgraph] Log parameters url when using 'project=' or 'task-id=', r=tomprince When performing diffs, identical parameters files need to be used. This makes it possible to wget the exact same parameters used by a previous |mach taskgraph| run. Differential Revision: https://phabricator.services.mozilla.com/D76026
--- a/taskcluster/taskgraph/parameters.py
+++ b/taskcluster/taskgraph/parameters.py
@@ -2,16 +2,17 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 from __future__ import absolute_import, print_function, unicode_literals
 import io
+import logging
 import os.path
 import json
 from datetime import datetime
 from mozbuild.util import ReadOnlyDict, memoize
 from mozversioncontrol import get_repository_object
 from taskgraph.util.schema import validate_schema
 from voluptuous import (
@@ -23,16 +24,18 @@ from voluptuous import (
 import six
 from six import text_type
 from . import GECKO
 from .util.attributes import release_level
+logger = logging.getLogger(__name__)
 class ParameterMismatch(Exception):
     """Raised when a parameters.yml has extra or missing parameters."""
 def get_head_ref():
     return six.ensure_text(get_repository_object(GECKO).head_ref)
@@ -274,16 +277,17 @@ def load_parameters_file(filename, stric
             index = "{trust_domain}.v2.{project}.latest.taskgraph.decision".format(
             task_id = find_task_id(index)
         if task_id:
             filename = get_artifact_url(task_id, 'public/parameters.yml')
+        logger.info("Loading parameters from {}".format(filename))
         f = urllib.urlopen(filename)
     if filename.endswith('.yml'):
         kwargs = yaml.load_stream(f)
     elif filename.endswith('.json'):
         kwargs = json.load(f)
         raise TypeError("Parameters file `{}` is not JSON or YAML".format(filename))