From a8a7199da6037a5a8704b2527fa2505a69ed9a34 Mon Sep 17 00:00:00 2001 From: Aneesh Agrawal Date: Sun, 17 Dec 2017 14:38:38 -0800 Subject: [PATCH 1/2] Actually run Taskcluster jobs on PRs Spawn TC jobs on the following events: - Pull request opened or reopened - New commit made in pull request Spawn TC jobs for pull requests started by anybody, not just trusted collaborators. This is safe for now as we do not provide any scopes to spawned jobs. --- .taskcluster.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.taskcluster.yml b/.taskcluster.yml index cc79679d05f..be12876a836 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -11,7 +11,10 @@ tasks: workerType: '{{ taskcluster.docker.workerType }}' extra: github: - events: [] + events: + - pull_request.opened + - pull_request.reopened + - pull_request.synchronize payload: maxRunTime: 3600 image: servobrowser/servo-linux-dev @@ -31,4 +34,4 @@ tasks: description: Run Linux tests. owner: '{{ event.head.user.email }}' source: '{{ event.head.repo.url }}' - +allowPullRequests: public From 6446aff4446c7628eab7a3402747e8cfecad2a4a Mon Sep 17 00:00:00 2001 From: Aneesh Agrawal Date: Sun, 17 Dec 2017 15:29:34 -0800 Subject: [PATCH 2/2] Use existing Docker image tag for now We have not yet pushed a :latest tag, so use the (old) named tag that we have for now. --- .taskcluster.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.taskcluster.yml b/.taskcluster.yml index be12876a836..2a58201812a 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -17,7 +17,7 @@ tasks: - pull_request.synchronize payload: maxRunTime: 3600 - image: servobrowser/servo-linux-dev + image: 'servobrowser/servo-linux-dev:servo-linux-build-deps-2017-06-30' command: - /bin/bash - '--login'