Skip to content

Instantly share code, notes, and snippets.

@gregarndt
Created October 30, 2014 20:17
Show Gist options
  • Save gregarndt/90cf4308bcd98053bd99 to your computer and use it in GitHub Desktop.
Save gregarndt/90cf4308bcd98053bd99 to your computer and use it in GitHub Desktop.
# This file contains the list of "job flags"/"try flags" for tests and builds.
---
# List of all possible flags for each category of tests used in the case where
# "all" is specified.
flags:
builds:
- emulator
- emulator-jb
- emulator-kk
- linux32_gecko # b2g desktop linux 32 bit
- linux64_gecko # b2g desktop linux 64 bit
- macosx64_gecko # b2g desktop osx 64 bit
- win32_gecko # b2g desktop win 32 bit
tests:
- reftest
- reftest-ipc
- reftest-no-accel
- crashtest
- crashtest-ipc
- xpcshell
- jsreftest
- jetpack
- marionette
- mozmill
- cppunit
- jittests
- mochitests
- web-platform-tests
- marionette-webapi
# Build section covers the -b[uild] and -p[latform] options that try provides.
builds:
# The format for registering a new build flag -> task looks like this:
#
# <flag name>
# # Platforms are primarily used to restrict test runs to only X platform
# # but the information is stored on the build to indicate which platform(s)
# # the build belongs to. Note that `platforms` here is the term used by the
# # try chooser meaning "some group of tests" examples of platforms are
# # things like "b2g", "win32"
# platforms:
# - <platform name>
# # note that for sanity o -> means opt and d -> means debug if additional
# # flags are passed we will attempt to match them up to an option here if
# # available
# types:
# opt: <path to opt task>
# debug: <path to debug task>
#
linux64_gecko:
platforms:
- b2g
types:
opt:
task: tasks/builds/b2g_desktop.yml
config: b2g/config/mozconfigs/linux64_gecko/nightly
debug:
task: tasks/builds/b2g_desktop_debug.yml
config: b2g/config/mozconfigs/linux64_gecko/debug
# Test section covers the -u options in the try flags
tests:
# The format for registering a new test flag -> task looks like this:
#
# <flag name>
# task: <path to test task>
# # Note that total number of chunks effects more then just performance we
# # need to schedule specific chunks in some cases!
# chunks: <total number of chunks>
# # Not all tests can run on all builds and we may not want to run some
# # tests on all build variants so we use "allowed tasks" instead of
# # "allowed platforms" here.
# allowed_build_tasks:
# - builds/b2g_desktop.yml
mochitests:
allowed_build_tasks:
- tasks/builds/b2g_desktop.yml
- tasks/builds/b2g_desktop_debug.yml
task: tasks/tests/b2g_mochitest.yml
chunks: 5
taskId: {{build_slugid}}
task:
created: '{{now}}'
deadline: '{{#from_now}}24 hours{{/from_now}}'
metadata:
source: http://todo.com/soon
owner: {{owner}}
name: B2G Desktop Opt
description: B2G Desktop Opt
workerType: b2gbuild
provisionerId: aws-provisioner
scopes:
- 'docker-worker:cache:sources-mozilla-central'
- 'docker-worker:cache:sources-gaia'
- 'docker-worker:cache:build-b2g-desktop-objects'
payload:
cache:
sources-gaia: '/home/worker/gaia'
sources-mozilla-central: '/home/worker/mozilla-central'
build-b2g-desktop-objects: '/home/worker/object-folder'
env:
MOZCONFIG: {{mozconfig}}
# revision/project params defined originally here https://github.com/taskcluster/taskcluster-try/blob/master/try/instantiate.js
REVISION: '{{revision}}'
REPOSITORY: '{{repository}}'
image: '{{#docker_image}}builder{{/docker_image}}'
maxRunTime: 3600
command:
- build-b2g-desktop.sh
artifacts:
'public/build':
type: directory
path: '/home/worker/artifacts/'
expires: '{{#from_now}}1 year{{/from_now}}'
extra:
# Rather then enforcing particular conventions we require that all build
# tasks provide the "build" extra field to specify where the build and tests
# files are located.
locations:
build: 'public/build/target.linux-x86_64.tar.bz2'
tests: 'public/build/target.tests.zip'
treeherder:
symbol: B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment