Skip to content

Commit b0e5dc2

Browse files
imbstackLa0
authored andcommitted
Taskcluster community migration (#267)
1 parent 383c112 commit b0e5dc2

22 files changed

+2174
-2197
lines changed

.taskcluster.yml

Lines changed: 28 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ tasks:
5454
taskboot_image: "mozilla/taskboot:0.1.9"
5555
in:
5656
- taskId: {$eval: as_slugid("check_lint")}
57-
provisionerId: aws-provisioner-v1
58-
workerType: github-worker
57+
provisionerId: proj-relman
58+
workerType: ci
5959
created: {$fromNow: ''}
6060
deadline: {$fromNow: '1 hour'}
6161
payload:
@@ -75,8 +75,8 @@ tasks:
7575
source: https://github.com/mozilla/code-coverage
7676

7777
- taskId: {$eval: as_slugid("bot_check_tests")}
78-
provisionerId: aws-provisioner-v1
79-
workerType: github-worker
78+
provisionerId: proj-relman
79+
workerType: ci
8080
created: {$fromNow: ''}
8181
deadline: {$fromNow: '1 hour'}
8282
payload:
@@ -97,8 +97,8 @@ tasks:
9797
source: https://github.com/mozilla/code-coverage
9898

9999
- taskId: {$eval: as_slugid("backend_check_tests")}
100-
provisionerId: aws-provisioner-v1
101-
workerType: github-worker
100+
provisionerId: proj-relman
101+
workerType: ci
102102
created: {$fromNow: ''}
103103
deadline: {$fromNow: '1 hour'}
104104
payload:
@@ -118,8 +118,8 @@ tasks:
118118
source: https://github.com/mozilla/code-coverage
119119

120120
- taskId: {$eval: as_slugid("events_check_tests")}
121-
provisionerId: aws-provisioner-v1
122-
workerType: github-worker
121+
provisionerId: proj-relman
122+
workerType: ci
123123
created: {$fromNow: ''}
124124
deadline: {$fromNow: '1 hour'}
125125
payload:
@@ -138,8 +138,8 @@ tasks:
138138
source: https://github.com/mozilla/code-coverage
139139

140140
- taskId: {$eval: as_slugid("report_check_tests")}
141-
provisionerId: aws-provisioner-v1
142-
workerType: github-worker
141+
provisionerId: proj-relman
142+
workerType: ci
143143
created: {$fromNow: ''}
144144
deadline: {$fromNow: '1 hour'}
145145
payload:
@@ -159,8 +159,8 @@ tasks:
159159
- taskId: {$eval: as_slugid("backend_build")}
160160
created: {$fromNow: ''}
161161
deadline: {$fromNow: '1 hour'}
162-
provisionerId: aws-provisioner-v1
163-
workerType: relman-svc
162+
provisionerId: proj-relman
163+
workerType: ci
164164
dependencies:
165165
- {$eval: as_slugid("check_lint")}
166166
- {$eval: as_slugid("backend_check_tests")}
@@ -200,8 +200,8 @@ tasks:
200200
- taskId: {$eval: as_slugid("bot_build")}
201201
created: {$fromNow: ''}
202202
deadline: {$fromNow: '1 hour'}
203-
provisionerId: aws-provisioner-v1
204-
workerType: relman-svc
203+
provisionerId: proj-relman
204+
workerType: ci
205205
dependencies:
206206
- {$eval: as_slugid("check_lint")}
207207
- {$eval: as_slugid("bot_check_tests")}
@@ -241,8 +241,8 @@ tasks:
241241
- taskId: {$eval: as_slugid("events_build")}
242242
created: {$fromNow: ''}
243243
deadline: {$fromNow: '1 hour'}
244-
provisionerId: aws-provisioner-v1
245-
workerType: relman-svc
244+
provisionerId: proj-relman
245+
workerType: ci
246246
dependencies:
247247
- {$eval: as_slugid("check_lint")}
248248
- {$eval: as_slugid("events_check_tests")}
@@ -280,8 +280,8 @@ tasks:
280280
source: https://github.com/mozilla/code-coverage
281281

282282
- taskId: {$eval: as_slugid("addon_build")}
283-
provisionerId: aws-provisioner-v1
284-
workerType: github-worker
283+
provisionerId: proj-relman
284+
workerType: ci
285285
created: {$fromNow: ''}
286286
deadline: {$fromNow: '1 hour'}
287287
payload:
@@ -308,8 +308,8 @@ tasks:
308308
source: https://github.com/mozilla/code-coverage
309309

310310
- taskId: {$eval: as_slugid("frontend_build")}
311-
provisionerId: aws-provisioner-v1
312-
workerType: github-worker
311+
provisionerId: proj-relman
312+
workerType: ci
313313
created: {$fromNow: ''}
314314
deadline: {$fromNow: '1 hour'}
315315
payload:
@@ -338,8 +338,8 @@ tasks:
338338
taskId: {$eval: as_slugid("backend_deploy")}
339339
created: {$fromNow: ''}
340340
deadline: {$fromNow: '1 hour'}
341-
provisionerId: aws-provisioner-v1
342-
workerType: github-worker
341+
provisionerId: proj-relman
342+
workerType: ci
343343
dependencies:
344344
- {$eval: as_slugid("backend_build")}
345345
payload:
@@ -368,8 +368,8 @@ tasks:
368368
taskId: {$eval: as_slugid("events_deploy")}
369369
created: {$fromNow: ''}
370370
deadline: {$fromNow: '1 hour'}
371-
provisionerId: aws-provisioner-v1
372-
workerType: github-worker
371+
provisionerId: proj-relman
372+
workerType: ci
373373
dependencies:
374374
- {$eval: as_slugid("events_build")}
375375
payload:
@@ -398,8 +398,8 @@ tasks:
398398
taskId: {$eval: as_slugid("bot_deploy")}
399399
created: {$fromNow: ''}
400400
deadline: {$fromNow: '1 hour'}
401-
provisionerId: aws-provisioner-v1
402-
workerType: github-worker
401+
provisionerId: proj-relman
402+
workerType: ci
403403
dependencies:
404404
- {$eval: as_slugid("bot_build")}
405405
payload:
@@ -421,48 +421,13 @@ tasks:
421421
422422
source: https://github.com/mozilla/code-coverage
423423

424-
- $if: 'channel in ["testing", "production"]'
425-
then:
426-
taskId: {$eval: as_slugid("bot_hook")}
427-
dependencies:
428-
- {$eval: as_slugid("bot_deploy")}
429-
scopes:
430-
- "assume:hook-id:project-relman/code-coverage-repo-${channel}"
431-
- "hooks:modify-hook:project-relman/code-coverage-repo-${channel}"
432-
- "assume:hook-id:project-relman/code-coverage-cron-${channel}"
433-
- "hooks:modify-hook:project-relman/code-coverage-cron-${channel}"
434-
created: {$fromNow: ''}
435-
deadline: {$fromNow: '5 hours'}
436-
provisionerId: aws-provisioner-v1
437-
workerType: github-worker
438-
payload:
439-
features:
440-
# Needed for access to hook api
441-
taskclusterProxy: true
442-
maxRunTime: 3600
443-
image: "${taskboot_image}"
444-
command:
445-
- "/bin/sh"
446-
- "-lcxe"
447-
- "git clone --quiet ${repository} &&
448-
cd code-coverage &&
449-
git checkout ${head_rev} &&
450-
sed -i -e 's/CHANNEL/${channel}/g' -e 's/REVISION/${head_rev}/g' bot/taskcluster-hook-*.json &&
451-
taskboot --target . build-hook bot/taskcluster-hook-repo.json project-relman code-coverage-repo-${channel} &&
452-
taskboot --target . build-hook bot/taskcluster-hook-cron.json project-relman code-coverage-cron-${channel}"
453-
metadata:
454-
name: "Code Coverage Bot hook update (${channel})"
455-
description: Update Taskcluster hook triggering the code-coverage tasks
456-
457-
source: https://github.com/mozilla/code-coverage
458-
459424
- $if: 'channel in ["testing", "production"]'
460425
then:
461426
taskId: {$eval: as_slugid("frontend_deploy")}
462427
created: {$fromNow: ''}
463428
deadline: {$fromNow: '1 hour'}
464-
provisionerId: aws-provisioner-v1
465-
workerType: github-worker
429+
provisionerId: proj-relman
430+
workerType: ci
466431
dependencies:
467432
- {$eval: as_slugid("frontend_build")}
468433
payload:

bot/code_coverage_bot/taskcluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def download_artifact(artifact_path, task_id, artifact_name):
8181
# Build artifact public url
8282
# Use un-authenticated Taskcluster client to avoid taskcluster-proxy rewrite issue
8383
# https://github.com/taskcluster/taskcluster-proxy/issues/44
84-
queue = taskcluster.Queue({"rootUrl": "https://taskcluster.net"})
84+
queue = taskcluster.Queue({"rootUrl": "https://firefox-ci-tc.services.mozilla.com"})
8585
url = queue.buildUrl("getLatestArtifact", task_id, artifact_name)
8686
logger.debug("Downloading artifact", url=url)
8787

0 commit comments

Comments
 (0)