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:*
|
|
|
|
|
2017-01-18 22:45:53 +03:00
|
|
|
# This file undergoes substitution to create tasks. For on-push tasks, that
|
|
|
|
# substitution is done by mozilla-taskcluster. For cron tasks, that substitution
|
|
|
|
# is done by `taskcluster/taskgraph/cron/decision.py`. If you change any of the
|
|
|
|
# template parameters, please do so in all three places!
|
2016-05-18 00:26:31 +03:00
|
|
|
#
|
2017-01-18 22:45:53 +03:00
|
|
|
# Available template parameters:
|
|
|
|
#
|
|
|
|
# - now: current time
|
2016-05-18 00:26:31 +03:00
|
|
|
# - 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)
|
2016-12-21 23:54:17 +03:00
|
|
|
# - revision: hg revision of the head of the push
|
2016-05-18 00:26:31 +03:00
|
|
|
# - 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
|
2017-01-18 22:45:53 +03:00
|
|
|
# - shellquote: quote the contents for injection into shell
|
2016-05-18 00:26:31 +03:00
|
|
|
|
2016-07-20 19:54:43 +03:00
|
|
|
# The resulting tasks' taskGroupId will be equal to the taskId of the first
|
|
|
|
# task listed here, which should be the decision task. This gives other tools
|
|
|
|
# an easy way to determine the ID of the decision task that created a
|
|
|
|
# particular group.
|
|
|
|
|
2016-05-18 00:26:31 +03:00
|
|
|
tasks:
|
|
|
|
- taskId: '{{#as_slugid}}decision task{{/as_slugid}}'
|
|
|
|
task:
|
|
|
|
created: '{{now}}'
|
|
|
|
deadline: '{{#from_now}}1 day{{/from_now}}'
|
2016-07-27 17:51:38 +03:00
|
|
|
expires: '{{#from_now}}365 day{{/from_now}}'
|
2016-05-18 00:26:31 +03:00
|
|
|
metadata:
|
2017-02-07 19:18:19 +03:00
|
|
|
owner: mozilla-taskcluster-maintenance@mozilla.com
|
2016-05-18 00:26:31 +03:00
|
|
|
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}}
|
|
|
|
|
|
|
|
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-10-20 22:56:43 +03:00
|
|
|
HG_STORE_PATH: /home/worker/checkouts/hg-store
|
2016-05-18 00:26:31 +03:00
|
|
|
|
|
|
|
cache:
|
2016-07-30 07:03:48 +03:00
|
|
|
level-{{level}}-checkouts: /home/worker/checkouts
|
2016-05-18 00:26:31 +03:00
|
|
|
|
|
|
|
features:
|
|
|
|
taskclusterProxy: true
|
2016-09-27 22:45:22 +03:00
|
|
|
chainOfTrust: true
|
2016-05-18 00:26:31 +03:00
|
|
|
|
|
|
|
# Note: This task is built server side without the context or tooling that
|
2016-12-16 04:16:14 +03:00
|
|
|
# exist in tree so we must hard code the hash
|
2017-03-25 22:10:32 +03:00
|
|
|
# XXX Changing this will break Chain of Trust without an associated puppet and
|
|
|
|
# scriptworker patch!
|
2017-03-23 22:48:32 +03:00
|
|
|
image: 'taskcluster/decision:0.1.8@sha256:195d8439c8e90d59311d877bd2a8964849b2e43bfc6c234092618518d8b2891b'
|
2016-05-18 00:26:31 +03:00
|
|
|
|
|
|
|
maxRunTime: 1800
|
|
|
|
|
2016-07-30 07:03:48 +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-05-18 00:26:31 +03:00
|
|
|
command:
|
2016-07-30 07:03:48 +03:00
|
|
|
- /home/worker/bin/run-task
|
|
|
|
- '--vcs-checkout=/home/worker/checkouts/gecko'
|
|
|
|
- '--'
|
|
|
|
- bash
|
|
|
|
- -cx
|
|
|
|
- >
|
|
|
|
cd /home/worker/checkouts/gecko &&
|
|
|
|
ln -s /home/worker/artifacts artifacts &&
|
|
|
|
./mach --log-no-times taskgraph decision
|
|
|
|
--pushlog-id='{{pushlog_id}}'
|
2016-07-13 21:50:50 +03:00
|
|
|
--pushdate='{{pushdate}}'
|
2016-07-30 07:03:48 +03:00
|
|
|
--project='{{project}}'
|
2016-08-30 02:33:24 +03:00
|
|
|
--message={{#shellquote}}{{{comment}}}{{/shellquote}}
|
2016-07-30 07:03:48 +03:00
|
|
|
--owner='{{owner}}'
|
|
|
|
--level='{{level}}'
|
|
|
|
--base-repository='https://hg.mozilla.org/mozilla-central'
|
|
|
|
--head-repository='{{{url}}}'
|
|
|
|
--head-ref='{{revision}}'
|
|
|
|
--head-rev='{{revision}}'
|
2016-05-18 00:26:31 +03:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
'public':
|
|
|
|
type: 'directory'
|
|
|
|
path: '/home/worker/artifacts'
|
2016-07-27 17:51:38 +03:00
|
|
|
expires: '{{#from_now}}364 days{{/from_now}}'
|
2016-05-18 00:26:31 +03:00
|
|
|
|
|
|
|
extra:
|
|
|
|
treeherder:
|
|
|
|
symbol: D
|