bug 1442793 - diffoscope artifact_prefix. r=bhearsum, a=release
authorAki Sasaki <asasaki@mozilla.com>
Wed, 07 Mar 2018 13:58:02 -0800
changeset 460933 8bc845cfb7683cb6ddec5f3b22a3f3a4949c2b69
parent 460932 117a0beae34bf3e043df5cbaddc02924fb8d7ac4
child 460934 764c2e614d00242894c7308a4d610542a0556c82
push id9098
push userbhearsum@mozilla.com
push dateThu, 19 Apr 2018 20:02:16 +0000
treeherdermozilla-beta@98d536130349 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhearsum, release
bugs1442793
milestone60.0
bug 1442793 - diffoscope artifact_prefix. r=bhearsum, a=release MozReview-Commit-ID: 5ohAgqhqj5V
taskcluster/taskgraph/transforms/diffoscope.py
--- a/taskcluster/taskgraph/transforms/diffoscope.py
+++ b/taskcluster/taskgraph/transforms/diffoscope.py
@@ -8,17 +8,17 @@ defined in kind.yml
 
 from __future__ import absolute_import, print_function, unicode_literals
 
 from taskgraph.transforms.base import TransformSequence
 from taskgraph.util.schema import (
     Schema,
     validate_schema,
 )
-from taskgraph.util.taskcluster import get_artifact_url
+from taskgraph.util.taskcluster import get_artifact_path, get_artifact_url
 from voluptuous import (
     Any,
     Optional,
     Required,
 )
 
 transforms = TransformSequence()
 
@@ -102,17 +102,17 @@ def fill_template(config, tasks):
             elif 'win' in os_hint:
                 artifact = 'target.zip'
             else:
                 raise Exception(
                     'Cannot figure out the OS for {!r}'.format(value))
             if previous_artifact is not None and previous_artifact != artifact:
                 raise Exception(
                     'Cannot compare builds from different OSes')
-            url = get_artifact_url(task_id, 'public/build/{}'.format(artifact))
+            url = get_artifact_url(task_id, get_artifact_path(task, artifact))
             urls[k] = {'task-reference': url}
             previous_artifact = artifact
 
         taskdesc = {
             'label': 'diff-' + name,
             'description': name,
             'treeherder': {
                 'symbol': task['symbol'],