mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 02:31:41 +00:00
bug 1437577 - allow uploading symbols from any build type on try. r=dustin
Previously we would only generate upload-symbols tasks for nightly builds, since we only want to upload symbols for builds we ship to users. On try, developers may want to use the symbol server but very rarely want to do nightly builds, so allow uploading symbols from any build type there. MozReview-Commit-ID: IYs9mZii3DN --HG-- extra : rebase_source : 15acb889510bb07ed3d29ea802997f11796dad9f
This commit is contained in:
parent
666e28db6e
commit
1120b5bb3e
@ -12,9 +12,6 @@ transforms:
|
||||
kind-dependencies:
|
||||
- build
|
||||
|
||||
only-for-attributes:
|
||||
- nightly
|
||||
|
||||
job-template:
|
||||
description: Upload Symbols
|
||||
worker-type: aws-provisioner-v1/gecko-{level}-b-linux
|
||||
@ -38,4 +35,7 @@ job-template:
|
||||
run-on-projects:
|
||||
by-build-platform:
|
||||
.*devedition.*: ['mozilla-beta', 'maple']
|
||||
default: ['all']
|
||||
# Only upload symbols for nightlies on most branches.
|
||||
.*(?<!-devedition)-nightly: ['all']
|
||||
# Allow symbol upload for any build type on try.
|
||||
default: ['try']
|
||||
|
@ -33,20 +33,20 @@ def fill_template(config, tasks):
|
||||
attributes = task.setdefault('attributes', {})
|
||||
attributes['build_platform'] = build_platform
|
||||
attributes['build_type'] = build_type
|
||||
if 'nightly' in build_platform:
|
||||
if dep.attributes.get('nightly'):
|
||||
attributes['nightly'] = True
|
||||
|
||||
treeherder = task.get('treeherder', {})
|
||||
th = dep.task.get('extra')['treeherder']
|
||||
treeherder.setdefault('platform',
|
||||
"{}/{}".format(th['machine']['platform'],
|
||||
build_type))
|
||||
th_platform = dep.task['extra'].get('treeherder-platform',
|
||||
"{}/{}".format(th['machine']['platform'], build_type))
|
||||
treeherder.setdefault('platform', th_platform)
|
||||
treeherder.setdefault('tier', th['tier'])
|
||||
treeherder.setdefault('kind', th['jobKind'])
|
||||
if dep.attributes.get('nightly'):
|
||||
treeherder.setdefault('symbol', 'SymN')
|
||||
else:
|
||||
treeherder.setdefault('symbol', 'Sym')
|
||||
# Disambiguate the treeherder symbol.
|
||||
build_sym = th['symbol']
|
||||
sym = 'Sym' + (build_sym[1:] if build_sym.startswith('B') else build_sym)
|
||||
treeherder.setdefault('symbol', sym)
|
||||
task['treeherder'] = treeherder
|
||||
|
||||
# clear out the stuff that's not part of a task description
|
||||
|
Loading…
x
Reference in New Issue
Block a user