Bug 1481619: Upload symbols for the main Android builds r=ted

Differential Revision: https://phabricator.services.mozilla.com/D2925

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nick Thomas 2018-08-09 10:09:27 +00:00
parent 756a7bdfd8
commit 98d4d3ba20
2 changed files with 29 additions and 0 deletions

View File

@ -3,6 +3,8 @@ android-api-16/debug:
index:
product: mobile
job-name: android-api-16-debug
attributes:
enable-full-crashsymbols: true
treeherder:
platform: android-4-0-armv7-api16/debug
symbol: B
@ -110,6 +112,8 @@ android-x86/opt:
index:
product: mobile
job-name: android-x86-opt
attributes:
enable-full-crashsymbols: true
treeherder:
platform: android-4-2-x86/opt
symbol: B
@ -209,6 +213,7 @@ android-x86-nightly/opt:
description: "Android 4.2 x86 Nightly"
attributes:
nightly: true
enable-full-crashsymbols: true
shipping-phase: promote
shipping-product: fennec
index:
@ -266,6 +271,8 @@ android-api-16/opt:
index:
product: mobile
job-name: android-api-16-opt
attributes:
enable-full-crashsymbols: true
treeherder:
platform: android-4-0-armv7-api16/opt
symbol: B
@ -364,6 +371,7 @@ android-api-16-nightly/opt:
description: "Android 4.0 api-16+ Nightly"
attributes:
nightly: true
enable-full-crashsymbols: true
shipping-phase: promote
shipping-product: fennec
index:
@ -421,6 +429,8 @@ android-aarch64/opt:
index:
product: mobile
job-name: android-aarch64-opt
attributes:
enable-full-crashsymbols: true
treeherder:
platform: android-5-0-aarch64/opt
symbol: B
@ -470,6 +480,7 @@ android-aarch64-nightly/opt:
description: "Android 5.0 AArch64 Nightly"
attributes:
nightly: true
enable-full-crashsymbols: true
shipping-phase: promote
shipping-product: fennec
index:

View File

@ -9,6 +9,7 @@ taskcluster/ci/upload-symbols/job-template.yml into an actual task description.
from __future__ import absolute_import, print_function, unicode_literals
from taskgraph.transforms.base import TransformSequence
from taskgraph.util.attributes import RELEASE_PROJECTS
from taskgraph.util.treeherder import join_symbol
import logging
@ -17,6 +18,23 @@ logger = logging.getLogger(__name__)
transforms = TransformSequence()
@transforms.add
def check_nightlies(config, tasks):
"""Ensure that we upload symbols for all nightly builds, so that crash-stats can
resolve any reports sent to it. Try may enable full symbols but not upload them.
Putting this check here (instead of the transforms for the build kind) lets us
leverage the any not-for-build-platforms set in the update-symbols kind."""
for task in tasks:
dep = task['dependent-task']
if config.params['project'] in RELEASE_PROJECTS and \
dep.attributes.get('nightly') and \
not dep.attributes.get('enable-full-crashsymbols'):
raise Exception('Nightly job %s should have enable-full-crashsymbols attribute '
'set to true to enable symbol upload to crash-stats' % dep.label)
yield task
@transforms.add
def fill_template(config, tasks):
for task in tasks: