bug 1442793 - diffoscope artifact_prefix. r=bhearsum
authorAki Sasaki <asasaki@mozilla.com>
Wed, 07 Mar 2018 13:58:02 -0800
changeset 467488 0b45c230926fb9c5ef9ce075ab22855c84d57dfe
parent 467487 4055c1ca987b8692fddacfa8711836322bbc0402
child 467489 e7821c5c236acf59a622f920ca0161193716cb40
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhearsum
bugs1442793
milestone61.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 1442793 - diffoscope artifact_prefix. r=bhearsum 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'],