From b593d465d3291aee3572b90cfd0b150922754c0d Mon Sep 17 00:00:00 2001 From: Bastien Orivel Date: Fri, 24 Jan 2025 15:24:03 +0100 Subject: [PATCH] Add a `pr-complete` task that we can require before merging PRs (#3282) * Add a `pr-complete` task that we can require before merging PRs The task does nothing, always succeeds but depends on all test tasks passing. * Add ui tasks to `pr-complete` dependencies --- taskcluster/kinds/pr/kind.yml | 19 +++++++++++++++++++ taskcluster/kinds/test/kind.yml | 2 ++ taskcluster/kinds/ui/kind.yml | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 taskcluster/kinds/pr/kind.yml diff --git a/taskcluster/kinds/pr/kind.yml b/taskcluster/kinds/pr/kind.yml new file mode 100644 index 000000000..98f2a3972 --- /dev/null +++ b/taskcluster/kinds/pr/kind.yml @@ -0,0 +1,19 @@ +# 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: + - test + - ui + +transforms: + - taskgraph.transforms.code_review:transforms + - taskgraph.transforms.task:transforms + +tasks: + complete: + description: PR Summary Task + run-on-tasks-for: [github-pull-request] + worker-type: succeed diff --git a/taskcluster/kinds/test/kind.yml b/taskcluster/kinds/test/kind.yml index d73deb32f..b2d393d87 100644 --- a/taskcluster/kinds/test/kind.yml +++ b/taskcluster/kinds/test/kind.yml @@ -11,6 +11,8 @@ transforms: task-defaults: run-on-tasks-for: [github-pull-request, github-push] + attributes: + code-review: true worker-type: test worker: docker-image: {in-tree: 'python3.11'} diff --git a/taskcluster/kinds/ui/kind.yml b/taskcluster/kinds/ui/kind.yml index b3f6af59d..7b5a1ead8 100644 --- a/taskcluster/kinds/ui/kind.yml +++ b/taskcluster/kinds/ui/kind.yml @@ -10,6 +10,8 @@ transforms: task-defaults: run-on-tasks-for: [github-pull-request, github-push] + attributes: + code-review: true worker-type: test worker: docker-image: {in-tree: node}