Bug 1227355 - Configure b2g-ota branch and add update channel r=wcosta a=b2g-otaneedsthis

--HG--
extra : commitid : LjQCJCv8ZIY
extra : source : ad64115a75ca9a2466e432ebe0149797c24c701e
This commit is contained in:
Gregory Arndt 2015-11-30 20:48:01 -06:00
Родитель f3e1aec951
Коммит 079fc09f4a
16 изменённых файлов: 175 добавлений и 23 удалений

Просмотреть файл

@ -15,7 +15,6 @@ config = {
"B2G_UPDATER": "1", "B2G_UPDATER": "1",
"LIGHTSABER": "1", "LIGHTSABER": "1",
"DOGFOOD": "1", "DOGFOOD": "1",
"B2G_UPDATE_CHANNEL": "dogfood",
"BOWER_FLAGS": "--allow-root", "BOWER_FLAGS": "--allow-root",
"B2G_PATH": "%(work_dir)s", "B2G_PATH": "%(work_dir)s",
"GAIA_DISTRIBUTION_DIR": "%(work_dir)s/gaia/distros/spark", "GAIA_DISTRIBUTION_DIR": "%(work_dir)s/gaia/distros/spark",

Просмотреть файл

@ -0,0 +1,35 @@
#!/usr/bin/env python
import os.path
config = {
"default_vcs": "tc-vcs",
"default_actions": [
'checkout-sources',
'build',
'build-symbols',
'make-updates',
'prep-upload',
'submit-to-balrog'
],
"balrog_credentials_file": "balrog_credentials",
"nightly_build": True,
"env": {
"GAIA_OPTIMIZE": "1",
"B2G_UPDATER": "1",
"LIGHTSABER": "1",
"BOWER_FLAGS": "--allow-root",
"B2G_PATH": "%(work_dir)s",
"GAIA_DISTRIBUTION_DIR": "%(work_dir)s/gaia/distros/spark",
"WGET_OPTS": "-c -q"
},
"is_automation": True,
"repo_remote_mappings": {
'https://android.googlesource.com/': 'https://git.mozilla.org/external/aosp',
'git://codeaurora.org/': 'https://git.mozilla.org/external/caf',
'https://git.mozilla.org/b2g': 'https://git.mozilla.org/b2g',
'git://github.com/mozilla-b2g/': 'https://git.mozilla.org/b2g',
'git://github.com/mozilla/': 'https://git.mozilla.org/b2g',
'https://git.mozilla.org/releases': 'https://git.mozilla.org/releases',
'http://android.git.linaro.org/git-ro/': 'https://git.mozilla.org/external/linaro',
'git://github.com/apitrace/': 'https://git.mozilla.org/external/apitrace',
},
}

Просмотреть файл

@ -7,8 +7,7 @@ config = {
'build', 'build',
'build-symbols', 'build-symbols',
'make-updates', 'make-updates',
'prep-upload', 'prep-upload'
'submit-to-balrog'
], ],
"balrog_credentials_file": "balrog_credentials", "balrog_credentials_file": "balrog_credentials",
"nightly_build": True, "nightly_build": True,

Просмотреть файл

@ -34,6 +34,12 @@ DEFAULT_JOB_PATH = os.path.join(
ROOT, 'tasks', 'branches', 'base_jobs.yml' ROOT, 'tasks', 'branches', 'base_jobs.yml'
) )
def merge_dicts(*dicts):
merged_dict = {}
for dictionary in dicts:
merged_dict.update(dictionary)
return merged_dict
def gaia_info(): def gaia_info():
''' '''
Fetch details from in tree gaia.json (which links this version of Fetch details from in tree gaia.json (which links this version of
@ -381,7 +387,7 @@ class Graph(object):
for build in job_graph: for build in job_graph:
interactive = cmdline_interactive or build["interactive"] interactive = cmdline_interactive or build["interactive"]
build_parameters = dict(parameters) build_parameters = merge_dicts(parameters, build['additional-parameters']);
build_parameters['build_slugid'] = slugid() build_parameters['build_slugid'] = slugid()
build_task = templates.load(build['task'], build_parameters) build_task = templates.load(build['task'], build_parameters)
@ -484,7 +490,10 @@ class Graph(object):
for post_build in build['post-build']: for post_build in build['post-build']:
# copy over the old parameters to update the template # copy over the old parameters to update the template
post_parameters = copy.copy(build_parameters) # TODO additional-parameters is currently not an option, only
# enabled for build tasks
post_parameters = merge_dicts(build_parameters,
post_build.get('additional-parameters', {}))
post_task = configure_dependent_task(post_build['task'], post_task = configure_dependent_task(post_build['task'],
post_parameters, post_parameters,
slugid(), slugid(),
@ -500,6 +509,10 @@ class Graph(object):
for test in build['dependents']: for test in build['dependents']:
test = test['allowed_build_tasks'][build['task']] test = test['allowed_build_tasks'][build['task']]
# TODO additional-parameters is currently not an option, only
# enabled for build tasks
test_parameters = merge_dicts(build_parameters,
test.get('additional-parameters', {}))
test_parameters = copy.copy(build_parameters) test_parameters = copy.copy(build_parameters)
if tests_url: if tests_url:
test_parameters['tests_url'] = tests_url test_parameters['tests_url'] = tests_url

Просмотреть файл

@ -0,0 +1,76 @@
---
# For complete sample of all build and test jobs,
# see <gecko>/testing/taskcluster/tasks/branches/base_job_flags.yml
$inherits:
from: tasks/branches/base_job_flags.yml
builds:
aries:
platforms:
- b2g
types:
opt:
task: tasks/builds/b2g_aries_spark_opt.yml
debug:
task: tasks/builds/b2g_aries_spark_debug.yml
aries-eng:
platforms:
- b2g
types:
opt:
task: tasks/builds/b2g_aries_eng.yml
aries-dogfood:
platforms:
- b2g
types:
opt:
task: tasks/builds/b2g_aries_spark_dogfood.yml
additional-parameters:
b2g_update_channel: 'b2g-ota'
aries-ota:
platforms:
- b2g
types:
opt:
task: tasks/builds/b2g_aries_spark_ota_opt.yml
additional-parameters:
b2g_update_channel: 'b2g-ota'
debug:
task: tasks/builds/b2g_aries_spark_ota_debug.yml
additional-parameters:
b2g_update_channel: 'b2g-ota'
flame-kk:
platforms:
- b2g
types:
opt:
task: tasks/builds/b2g_flame_kk_opt.yml
debug:
task: tasks/builds/b2g_flame_kk_debug.yml
flame-kk-eng:
platforms:
- b2g
types:
opt:
task: tasks/builds/b2g_flame_kk_eng.yml
flame-kk-spark-eng:
platforms:
- b2g
types:
opt:
task: tasks/builds/b2g_flame_kk_spark_eng.yml
flame-kk-ota:
platforms:
- b2g
types:
opt:
task: tasks/builds/b2g_flame_kk_ota_opt.yml
additional-parameters:
b2g_update_channel: 'b2g-ota'
debug:
task: tasks/builds/b2g_flame_kk_ota_debug.yml
additional-parameters:
b2g_update_channel: 'b2g-ota'
tests: []

Просмотреть файл

@ -12,30 +12,32 @@ builds:
types: types:
opt: opt:
task: tasks/builds/b2g_aries_spark_dogfood.yml task: tasks/builds/b2g_aries_spark_dogfood.yml
additional-parameters:
b2g_update_channel: 'nightly-b2g44'
flame-kk-ota: flame-kk-ota:
platforms: platforms:
- b2g - b2g
types: types:
debug: debug:
task: tasks/builds/b2g_flame_kk_ota_debug.yml task: tasks/builds/b2g_flame_kk_ota_debug.yml
additional-parameters:
b2g_update_channel: 'nightly-b2g44'
nexus-4-kk-ota: nexus-4-kk-ota:
platforms: platforms:
- b2g - b2g
types: types:
debug: debug:
task: tasks/builds/b2g_nexus_4_kk_ota_debug.yml task: tasks/builds/b2g_nexus_4_kk_ota_debug.yml
additional-parameters:
b2g_update_channel: 'nightly-b2g44'
nexus-5l-ota: nexus-5l-ota:
platforms: platforms:
- b2g - b2g
types: types:
debug: debug:
task: tasks/builds/b2g_nexus_5l_ota_debug.yml task: tasks/builds/b2g_nexus_5l_ota_debug.yml
additional-parameters:
b2g_update_channel: 'nightly-b2g44'
# Just needed for parser sake # Just needed for parser sake
tests: tests: []
cppunit:
allowed_build_tasks:
tasks/builds/b2g_emulator_x86_kk_opt.yml:
task: tasks/tests/b2g_emulator_cpp_unit.yml
tasks/builds/b2g_emulator_x86_kk_debug.yml:
task: tasks/tests/b2g_emulator_cpp_unit.yml

Просмотреть файл

@ -23,22 +23,32 @@ builds:
types: types:
opt: opt:
task: tasks/builds/b2g_aries_spark_dogfood.yml task: tasks/builds/b2g_aries_spark_dogfood.yml
additional-parameters:
b2g_update_channel: 'dogfood'
aries-ota: aries-ota:
platforms: platforms:
- b2g - b2g
types: types:
opt: opt:
task: tasks/builds/b2g_aries_spark_ota_opt.yml task: tasks/builds/b2g_aries_spark_ota_balrog_opt.yml
additional-parameters:
b2g_update_channel: 'nightly'
debug: debug:
task: tasks/builds/b2g_aries_spark_ota_debug.yml task: tasks/builds/b2g_aries_spark_ota_balrog_debug.yml
additional-parameters:
b2g_update_channel: 'nightly'
flame-kk-ota: flame-kk-ota:
platforms: platforms:
- b2g - b2g
types: types:
opt: opt:
task: tasks/builds/b2g_flame_kk_ota_opt.yml task: tasks/builds/b2g_flame_kk_ota_opt.yml
additional-parameters:
b2g_update_channel: 'nightly'
debug: debug:
task: tasks/builds/b2g_flame_kk_ota_debug.yml task: tasks/builds/b2g_flame_kk_ota_debug.yml
additional-parameters:
b2g_update_channel: 'nightly'
post-build: post-build:
simulator: simulator:

Просмотреть файл

@ -17,6 +17,7 @@ task:
VARIANT: userdebug VARIANT: userdebug
DOGFOOD: 1 DOGFOOD: 1
MOZHARNESS_CONFIG: b2g/taskcluster-spark-dogfood.py MOZHARNESS_CONFIG: b2g/taskcluster-spark-dogfood.py
B2G_UPDATE_CHANNEL: '{{b2g_update_channel}}'
extra: extra:
treeherderEnv: treeherderEnv:
- production - production

Просмотреть файл

@ -0,0 +1,11 @@
$inherits:
from: 'tasks/builds/b2g_aries_spark_ota_debug.yml'
task:
scopes:
- 'docker-worker:feature:balrogVPNProxy'
payload:
features:
balrogVPNProxy: true
env:
MOZHARNESS_CONFIG: b2g/taskcluster-spark-ota-balrog.py

Просмотреть файл

@ -0,0 +1,10 @@
$inherits:
from: 'tasks/builds/b2g_aries_spark_ota_opt.yml'
task:
scopes:
- 'docker-worker:feature:balrogVPNProxy'
payload:
features:
balrogVPNProxy: true
env:
MOZHARNESS_CONFIG: b2g/taskcluster-spark-ota-balrog.py

Просмотреть файл

@ -2,16 +2,13 @@ $inherits:
from: 'tasks/builds/b2g_phone_base.yml' from: 'tasks/builds/b2g_phone_base.yml'
task: task:
workerType: balrog workerType: balrog
scopes:
- 'docker-worker:feature:balrogVPNProxy'
payload: payload:
features:
balrogVPNProxy: true
env: env:
TARGET: 'aries' TARGET: 'aries'
DEBUG: 0 DEBUG: 0
MOZHARNESS_CONFIG: b2g/taskcluster-spark-ota.py MOZHARNESS_CONFIG: b2g/taskcluster-spark-ota.py
B2G_UPDATE_CHANNEL: '{{b2g_update_channel}}'
command: command:
- > - >
checkout-gecko workspace && checkout-gecko workspace &&

Просмотреть файл

@ -2,12 +2,7 @@ $inherits:
from: 'tasks/builds/b2g_phone_base.yml' from: 'tasks/builds/b2g_phone_base.yml'
task: task:
workerType: balrog workerType: balrog
scopes:
- 'docker-worker:feature:balrogVPNProxy'
payload: payload:
features:
balrogVPNProxy: true
env: env:
TARGET: 'flame-kk' TARGET: 'flame-kk'
DEBUG: 0 DEBUG: 0

Просмотреть файл

@ -18,6 +18,7 @@ task:
VARIANT: userdebug VARIANT: userdebug
B2G_DEBUG: 0 B2G_DEBUG: 0
MOZHARNESS_CONFIG: b2g/taskcluster-phone-fota.py MOZHARNESS_CONFIG: b2g/taskcluster-phone-fota.py
B2G_UPDATE_CHANNEL: '{{b2g_update_channel}}'
extra: extra:
treeherderEnv: treeherderEnv:
- staging - staging

Просмотреть файл

@ -17,6 +17,7 @@ task:
env: env:
VARIANT: user VARIANT: user
MOZHARNESS_CONFIG: b2g/taskcluster-phone-fota.py MOZHARNESS_CONFIG: b2g/taskcluster-phone-fota.py
B2G_UPDATE_CHANNEL: '{{b2g_update_channel}}'
extra: extra:
treeherderEnv: treeherderEnv:
- staging - staging

Просмотреть файл

@ -23,6 +23,7 @@ task:
B2G_DEBUG: 0 B2G_DEBUG: 0
TARGET: 'nexus-4-kk' TARGET: 'nexus-4-kk'
DEBUG: 0 DEBUG: 0
B2G_UPDATE_CHANNEL: '{{b2g_update_channel}}'
command: command:
- > - >
checkout-gecko workspace && checkout-gecko workspace &&

Просмотреть файл

@ -24,6 +24,7 @@ task:
TARGET: 'nexus-5-l' TARGET: 'nexus-5-l'
DEBUG: 0 DEBUG: 0
MOZHARNESS_CONFIG: b2g/taskcluster-phone-fota.py MOZHARNESS_CONFIG: b2g/taskcluster-phone-fota.py
B2G_UPDATE_CHANNEL: '{{b2g_update_channel}}'
command: command:
- > - >
checkout-gecko workspace && checkout-gecko workspace &&