Bug 1258497: Modify decision task to run 'taskgraph decision'
MozReview-Commit-ID: 14HcNtQjkVy
--- a/testing/taskcluster/tasks/decision/try.yml
+++ b/testing/taskcluster/tasks/decision/try.yml
@@ -19,31 +19,29 @@ tasks:
task:
created: '{{now}}'
deadline: '{{#from_now}}1 day{{/from_now}}'
metadata:
owner: mozilla-taskcluster-maintenance@mozilla.com
source: {{{source}}}
name: "[tc] Initial decision task for try"
description: |
- This is the single most important task as it decides how all other tasks
- get built.
+ Create the task-graph for a try push
workerType: "gecko-decision"
provisionerId: "aws-provisioner-v1"
tags:
createdForUser: {{owner}}
scopes:
- - "docker-worker:cache:level-{{level}}-{{project}}-tc-vcs-public-sources"
- - "docker-worker:cache:level-{{level}}-{{project}}-gecko-decision"
- - "queue:route:tc-treeherder-stage.{{project}}.{{revision_hash}}"
- - "queue:route:tc-treeherder.{{project}}.{{revision_hash}}"
- - "scheduler:extend-task-graph:*"
+ # Bug 1269443: cache scopes, etc. must be listed explicitly
+ - "docker-worker:cache:level-1-*"
+ - "docker-worker:cache:tooltool-cache"
+ - "assume:repo:hg.mozilla.org/try:*"
routes:
- "index.gecko.v2.{{project}}.latest.firefox.decision"
- "tc-treeherder.{{project}}.{{revision_hash}}"
- "tc-treeherder-stage.{{project}}.{{revision_hash}}"
payload:
env:
@@ -71,34 +69,32 @@ tasks:
command:
- /bin/bash
- -cx
- >
mkdir -p /home/worker/artifacts &&
checkout-gecko workspace &&
cd workspace/gecko &&
- ./mach taskcluster-graph
+ ln -s /home/worker/artifacts artifacts &&
+ ./mach taskgraph decision
+ --target-tasks-method=try_option_syntax
--pushlog-id='{{pushlog_id}}'
--project='{{project}}'
--message='{{comment}}'
--owner='{{owner}}'
--level='{{level}}'
--revision-hash='{{revision_hash}}'
- --extend-graph > /home/worker/artifacts/graph.json
- graphs:
- - /home/worker/artifacts/graph.json
+ features:
+ taskclusterProxy: true
artifacts:
'public':
type: 'directory'
path: '/home/worker/artifacts'
- # Arbitrary value for keeping these artifacts around. They are just the
- # graph.json and context directories for now, so nothing that needs
- # to stay around for long.
expires: '{{#from_now}}7 days{{/from_now}}'
extra:
treeherder:
symbol: D
revision: '{{revision}}'
revision_hash: '{{revision_hash}}'