Skip to content

Taskcluster community migration #267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 28 additions & 63 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ tasks:
taskboot_image: "mozilla/taskboot:0.1.9"
in:
- taskId: {$eval: as_slugid("check_lint")}
provisionerId: aws-provisioner-v1
workerType: github-worker
provisionerId: proj-relman
workerType: ci
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
payload:
Expand All @@ -75,8 +75,8 @@ tasks:
source: https://github.com/mozilla/code-coverage

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

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

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

- taskId: {$eval: as_slugid("report_check_tests")}
provisionerId: aws-provisioner-v1
workerType: github-worker
provisionerId: proj-relman
workerType: ci
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
payload:
Expand All @@ -159,8 +159,8 @@ tasks:
- taskId: {$eval: as_slugid("backend_build")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
provisionerId: aws-provisioner-v1
workerType: relman-svc
provisionerId: proj-relman
workerType: ci
dependencies:
- {$eval: as_slugid("check_lint")}
- {$eval: as_slugid("backend_check_tests")}
Expand Down Expand Up @@ -200,8 +200,8 @@ tasks:
- taskId: {$eval: as_slugid("bot_build")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
provisionerId: aws-provisioner-v1
workerType: relman-svc
provisionerId: proj-relman
workerType: ci
dependencies:
- {$eval: as_slugid("check_lint")}
- {$eval: as_slugid("bot_check_tests")}
Expand Down Expand Up @@ -241,8 +241,8 @@ tasks:
- taskId: {$eval: as_slugid("events_build")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
provisionerId: aws-provisioner-v1
workerType: relman-svc
provisionerId: proj-relman
workerType: ci
dependencies:
- {$eval: as_slugid("check_lint")}
- {$eval: as_slugid("events_check_tests")}
Expand Down Expand Up @@ -280,8 +280,8 @@ tasks:
source: https://github.com/mozilla/code-coverage

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

- taskId: {$eval: as_slugid("frontend_build")}
provisionerId: aws-provisioner-v1
workerType: github-worker
provisionerId: proj-relman
workerType: ci
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
payload:
Expand Down Expand Up @@ -338,8 +338,8 @@ tasks:
taskId: {$eval: as_slugid("backend_deploy")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
provisionerId: aws-provisioner-v1
workerType: github-worker
provisionerId: proj-relman
workerType: ci
dependencies:
- {$eval: as_slugid("backend_build")}
payload:
Expand Down Expand Up @@ -368,8 +368,8 @@ tasks:
taskId: {$eval: as_slugid("events_deploy")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
provisionerId: aws-provisioner-v1
workerType: github-worker
provisionerId: proj-relman
workerType: ci
dependencies:
- {$eval: as_slugid("events_build")}
payload:
Expand Down Expand Up @@ -398,8 +398,8 @@ tasks:
taskId: {$eval: as_slugid("bot_deploy")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
provisionerId: aws-provisioner-v1
workerType: github-worker
provisionerId: proj-relman
workerType: ci
dependencies:
- {$eval: as_slugid("bot_build")}
payload:
Expand All @@ -421,48 +421,13 @@ tasks:
owner: [email protected]
source: https://github.com/mozilla/code-coverage

- $if: 'channel in ["testing", "production"]'
then:
taskId: {$eval: as_slugid("bot_hook")}
dependencies:
- {$eval: as_slugid("bot_deploy")}
scopes:
- "assume:hook-id:project-relman/code-coverage-repo-${channel}"
- "hooks:modify-hook:project-relman/code-coverage-repo-${channel}"
- "assume:hook-id:project-relman/code-coverage-cron-${channel}"
- "hooks:modify-hook:project-relman/code-coverage-cron-${channel}"
created: {$fromNow: ''}
deadline: {$fromNow: '5 hours'}
provisionerId: aws-provisioner-v1
workerType: github-worker
payload:
features:
# Needed for access to hook api
taskclusterProxy: true
maxRunTime: 3600
image: "${taskboot_image}"
command:
- "/bin/sh"
- "-lcxe"
- "git clone --quiet ${repository} &&
cd code-coverage &&
git checkout ${head_rev} &&
sed -i -e 's/CHANNEL/${channel}/g' -e 's/REVISION/${head_rev}/g' bot/taskcluster-hook-*.json &&
taskboot --target . build-hook bot/taskcluster-hook-repo.json project-relman code-coverage-repo-${channel} &&
taskboot --target . build-hook bot/taskcluster-hook-cron.json project-relman code-coverage-cron-${channel}"
metadata:
name: "Code Coverage Bot hook update (${channel})"
description: Update Taskcluster hook triggering the code-coverage tasks
owner: [email protected]
source: https://github.com/mozilla/code-coverage

- $if: 'channel in ["testing", "production"]'
then:
taskId: {$eval: as_slugid("frontend_deploy")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
provisionerId: aws-provisioner-v1
workerType: github-worker
provisionerId: proj-relman
workerType: ci
dependencies:
- {$eval: as_slugid("frontend_build")}
payload:
Expand Down
2 changes: 1 addition & 1 deletion bot/code_coverage_bot/taskcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def download_artifact(artifact_path, task_id, artifact_name):
# Build artifact public url
# Use un-authenticated Taskcluster client to avoid taskcluster-proxy rewrite issue
# https://github.com/taskcluster/taskcluster-proxy/issues/44
queue = taskcluster.Queue({"rootUrl": "https://taskcluster.net"})
queue = taskcluster.Queue({"rootUrl": "https://firefox-ci-tc.services.mozilla.com"})
url = queue.buildUrl("getLatestArtifact", task_id, artifact_name)
logger.debug("Downloading artifact", url=url)

Expand Down
Loading