2016-05-18 00:26:31 +03:00
|
|
|
---
|
|
|
|
version: 0
|
|
|
|
metadata:
|
|
|
|
name: 'Taskcluster tasks for Gecko'
|
|
|
|
description: "The taskcluster task graph for Gecko trees"
|
|
|
|
owner: mozilla-taskcluster-maintenance@mozilla.com
|
|
|
|
source: {{{source}}}
|
|
|
|
|
|
|
|
scopes:
|
|
|
|
# Note the below scopes are insecure however these get overriden on the server
|
|
|
|
# side to whatever scopes are set by mozilla-taskcluster.
|
|
|
|
- queue:*
|
|
|
|
- docker-worker:*
|
|
|
|
- scheduler:*
|
|
|
|
|
|
|
|
# Available mustache parameters (see the mozilla-taskcluster source):
|
|
|
|
#
|
|
|
|
# - owner: push user (email address)
|
|
|
|
# - source: URL of this YAML file
|
|
|
|
# - url: repository URL
|
|
|
|
# - project: alias for the destination repository (basename of
|
|
|
|
# the repo url)
|
|
|
|
# - level: SCM level of the destination repository
|
|
|
|
# (1 = try, 3 = core)
|
|
|
|
# - revision: (short) hg revision of the head of the push
|
|
|
|
# - revision_hash: (long) hg revision of the head of the push
|
|
|
|
# - comment: comment of the push
|
|
|
|
# - pushlog_id: id in the pushlog table of the repository
|
|
|
|
#
|
|
|
|
# and functions:
|
|
|
|
# - as_slugid: convert a label into a slugId
|
|
|
|
# - from_now: generate a timestamp at a fixed offset from now
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- taskId: '{{#as_slugid}}decision task{{/as_slugid}}'
|
|
|
|
task:
|
|
|
|
created: '{{now}}'
|
|
|
|
deadline: '{{#from_now}}1 day{{/from_now}}'
|
|
|
|
expires: '{{#from_now}}14 day{{/from_now}}'
|
|
|
|
metadata:
|
|
|
|
owner: mozilla-taskcluster-maintenance@mozilla.com
|
|
|
|
source: {{{source}}}
|
|
|
|
name: "Gecko Decision Task"
|
|
|
|
description: |
|
|
|
|
The task that creates all of the other tasks in the task graph
|
|
|
|
|
|
|
|
workerType: "gecko-decision"
|
|
|
|
provisionerId: "aws-provisioner-v1"
|
|
|
|
|
|
|
|
tags:
|
|
|
|
createdForUser: {{owner}}
|
|
|
|
|
|
|
|
scopes:
|
|
|
|
# Bug 1269443: cache scopes, etc. must be listed explicitly
|
2016-05-21 02:00:15 +03:00
|
|
|
- "docker-worker:cache:level-{{level}}-*"
|
2016-05-18 00:26:31 +03:00
|
|
|
- "docker-worker:cache:tooltool-cache"
|
2016-05-21 02:00:15 +03:00
|
|
|
# mozilla-taskcluster will append the appropriate assume:repo:<repo>
|
|
|
|
# scope here.
|
2016-05-18 00:26:31 +03:00
|
|
|
|
|
|
|
routes:
|
|
|
|
- "index.gecko.v2.{{project}}.latest.firefox.decision"
|
2016-06-14 20:56:25 +03:00
|
|
|
- "tc-treeherder.v2.{{project}}.{{revision}}.{{pushlog_id}}"
|
|
|
|
- "tc-treeherder-stage.v2.{{project}}.{{revision}}.{{pushlog_id}}"
|
2016-05-18 00:26:31 +03:00
|
|
|
|
|
|
|
payload:
|
|
|
|
env:
|
|
|
|
# checkout-gecko uses these to check out the source; the inputs
|
|
|
|
# to `mach taskgraph decision` are all on the command line.
|
2016-07-20 02:46:25 +03:00
|
|
|
GECKO_BASE_REPOSITORY: 'https://hg.mozilla.org/mozilla-unified'
|
2016-05-18 00:26:31 +03:00
|
|
|
GECKO_HEAD_REPOSITORY: '{{{url}}}'
|
|
|
|
GECKO_HEAD_REF: '{{revision}}'
|
|
|
|
GECKO_HEAD_REV: '{{revision}}'
|
2016-07-21 21:32:07 +03:00
|
|
|
# Arguments passed into `mach taskgraph decision`
|
2016-07-20 02:46:25 +03:00
|
|
|
# TODO use mozilla-unified for the base repository once the tc-vcs
|
|
|
|
# tar.gz archives are created or tc-vcs isn't being used.
|
2016-07-21 21:32:07 +03:00
|
|
|
DECISION_ARGS: >
|
|
|
|
--pushlog-id='{{pushlog_id}}'
|
|
|
|
--project='{{project}}'
|
|
|
|
--message='{{comment}}'
|
|
|
|
--owner='{{owner}}'
|
|
|
|
--level='{{level}}'
|
|
|
|
--base-repository='https://hg.mozilla.org/mozilla-central'
|
|
|
|
--head-repository='{{{url}}}'
|
|
|
|
--head-ref='{{revision}}'
|
|
|
|
--head-rev='{{revision}}'
|
|
|
|
--revision-hash='{{revision_hash}}'
|
2016-05-18 00:26:31 +03:00
|
|
|
|
|
|
|
cache:
|
2016-07-21 21:32:07 +03:00
|
|
|
level-{{level}}-hg-shared: /home/worker/hg-shared
|
2016-05-18 00:26:31 +03:00
|
|
|
level-{{level}}-{{project}}-gecko-decision: /home/worker/workspace
|
|
|
|
|
|
|
|
features:
|
|
|
|
taskclusterProxy: true
|
|
|
|
|
|
|
|
# Note: This task is built server side without the context or tooling that
|
|
|
|
# exist in tree so we must hard code the version
|
2016-07-21 21:32:07 +03:00
|
|
|
image: 'taskcluster/decision:0.1.2'
|
2016-05-18 00:26:31 +03:00
|
|
|
|
|
|
|
maxRunTime: 1800
|
|
|
|
|
|
|
|
command:
|
2016-07-21 21:32:07 +03:00
|
|
|
- /home/worker/bin/run-decision
|
2016-05-18 00:26:31 +03:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
'public':
|
|
|
|
type: 'directory'
|
|
|
|
path: '/home/worker/artifacts'
|
|
|
|
expires: '{{#from_now}}7 days{{/from_now}}'
|
|
|
|
|
|
|
|
extra:
|
|
|
|
treeherder:
|
|
|
|
symbol: D
|