1
0
Fork 0

Try to fix taskcluster-github broken PRs (#5354)

master
Johan Lorenzo 2019-09-16 14:03:11 +02:00 committed by GitHub
parent 0ed7f220e5
commit eea65b2339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

View File

@ -41,6 +41,9 @@ def pr(builder):
):
tasks.append(craft_function())
for task in tasks:
task['attributes']['code-review'] = True
return tasks

View File

@ -410,6 +410,7 @@ class TaskBuilder(object):
deadline = taskcluster.fromNow('1 day')
expires = taskcluster.fromNow(DEFAULT_EXPIRES_IN)
routes.append('checks')
if self.trust_level == 3:
routes.append('tc-treeherder.v2.fenix.{}'.format(self.commit))

View File

@ -0,0 +1,18 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: taskgraph.loader.transform:loader
kind-dependencies:
- old-decision
transforms:
- taskgraph.transforms.code_review:transforms
- taskgraph.transforms.task:transforms
jobs:
complete:
description: PR Summary Task
run-on-tasks-for: [github-pull-request]
worker-type: succeed