Bug 1528374 - Set artifact name based on platform in pgo profile run transform. r=firefox-build-system-reviewers,mshal
authorChris Manchester <cmanchester@mozilla.com>
Wed, 20 Feb 2019 14:33:37 +0000
changeset 521210 91c5e49bc1cb48aed2aef4bec3c013c9a224a83f
parent 521209 517837278d6b0def0be14206498f9e155e7ff9a0
child 521211 bf12f5e8abad80fb70429ae2b5872d925418b42c
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfirefox-build-system-reviewers, mshal
bugs1528374
milestone67.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 1528374 - Set artifact name based on platform in pgo profile run transform. r=firefox-build-system-reviewers,mshal Differential Revision: https://phabricator.services.mozilla.com/D20406
taskcluster/taskgraph/transforms/run_pgo_profile.py
--- a/taskcluster/taskgraph/transforms/run_pgo_profile.py
+++ b/taskcluster/taskgraph/transforms/run_pgo_profile.py
@@ -13,11 +13,18 @@ import logging
 logger = logging.getLogger(__name__)
 
 transforms = TransformSequence()
 
 
 @transforms.add
 def run_profile_data(config, jobs):
     for job in jobs:
+        build_platform = job['attributes'].get('build_platform')
         instr = 'instrumented-build-{}'.format(job['name'])
-        job.setdefault('fetches', {})[instr] = ['target.tar.bz2']
+        if 'android' in build_platform:
+            artifact = 'target.apk'
+        elif 'macosx64' in build_platform:
+            artifact = 'target.dmg'
+        else:
+            artifact = 'target.tar.bz2'
+        job.setdefault('fetches', {})[instr] = [artifact]
         yield job