зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1168979 part 2 - Add symbol uploading as a build dependency; r=mrrrgn
This commit is contained in:
Родитель
e73ef57d83
Коммит
607f59a82c
|
@ -331,6 +331,19 @@ class Graph(object):
|
|||
message = '({}), extra.treeherder.collection must contain one type'
|
||||
raise ValueError(message.fomrat(build['task']))
|
||||
|
||||
if 'post-build' in build:
|
||||
post_parameters = copy.copy(build_parameters)
|
||||
post_parameters['artifact_taskid'] = build_parameters['build_slugid']
|
||||
post_task = templates.load(build['post-build']['task'], post_parameters)
|
||||
post_task['taskId'] = slugid()
|
||||
|
||||
if 'requires' not in post_task:
|
||||
post_task['requires'] = []
|
||||
|
||||
post_task['requires'].append(build_parameters['build_slugid'])
|
||||
|
||||
graph['tasks'].append(post_task)
|
||||
|
||||
for test in build['dependents']:
|
||||
test = test['allowed_build_tasks'][build['task']]
|
||||
test_parameters = copy.copy(build_parameters)
|
||||
|
@ -340,7 +353,6 @@ class Graph(object):
|
|||
test_parameters['tests_url'] = tests_url
|
||||
if test_packages_url:
|
||||
test_parameters['test_packages_url'] = test_packages_url
|
||||
|
||||
test_definition = templates.load(test['task'], {})['task']
|
||||
chunk_config = test_definition['extra']['chunks']
|
||||
|
||||
|
|
|
@ -262,6 +262,7 @@ def parse_commit(message, jobs):
|
|||
# Node for this particular build type
|
||||
result.append({
|
||||
'task': build_task,
|
||||
'post-build': jobs['post-build']['upload-symbols'],
|
||||
'dependents': extract_tests_from_platform(
|
||||
jobs['tests'], platform_builds, build_task, tests
|
||||
),
|
||||
|
|
|
@ -35,6 +35,9 @@ flags:
|
|||
- android-api-11
|
||||
- linux64
|
||||
|
||||
post-build:
|
||||
- upload-symbols
|
||||
|
||||
tests:
|
||||
- cppunit
|
||||
- crashtest
|
||||
|
|
|
@ -177,6 +177,10 @@ builds:
|
|||
debug:
|
||||
task: tasks/builds/sm_warnaserrdebug.yml
|
||||
|
||||
post-build:
|
||||
upload-symbols:
|
||||
task: tasks/upload_symbols.yml
|
||||
|
||||
tests:
|
||||
cppunit:
|
||||
allowed_build_tasks:
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
# This is a sample task for uploading debug symbols to the socorro api
|
||||
---
|
||||
taskId: {{build_slugid}}
|
||||
|
||||
task:
|
||||
created: '{{now}}'
|
||||
deadline: '{{#from_now}}24 hours{{/from_now}}'
|
||||
metadata:
|
||||
source: http://todo.com/soon
|
||||
owner: mozilla-taskcluster-maintenance@mozilla.com
|
||||
name: '[TC] Upload Symbols'
|
||||
description: 'Upload Symbols'
|
||||
|
||||
tags:
|
||||
createdForUser: {{owner}}
|
||||
|
||||
workerType: b2gbuild
|
||||
provisionerId: aws-provisioner-v1
|
||||
schedulerId: task-graph-scheduler
|
||||
|
||||
|
||||
payload:
|
||||
image: 'quay.io/amiyaguchi/upload_symbols:0.0.2'
|
||||
|
||||
maxRunTime: 600
|
||||
|
||||
# All builds share a common artifact directory for ease of uploading.
|
||||
artifacts:
|
||||
'public/build':
|
||||
type: directory
|
||||
path: '/home/worker/artifacts/'
|
||||
expires: '{{#from_now}}1 year{{/from_now}}'
|
||||
|
||||
command: ["/bin/bash", "bin/upload.sh"]
|
||||
|
||||
env:
|
||||
ARTIFACT_TASKID: '{{artifact_taskid}}'
|
||||
|
||||
extra:
|
||||
index:
|
||||
rank: {{pushlog_id}}
|
||||
treeherder:
|
||||
groupSymbol: tc
|
||||
groupName: Submitted by taskcluster
|
||||
symbol: B
|
Загрузка…
Ссылка в новой задаче