2019-04-09 19:11:47 +03:00
|
|
|
version: 1
|
|
|
|
policy:
|
|
|
|
pullRequests: public
|
|
|
|
tasks:
|
|
|
|
$let:
|
|
|
|
user: ${event.sender.login}
|
|
|
|
|
|
|
|
head_branch:
|
|
|
|
$if: 'tasks_for == "github-pull-request"'
|
|
|
|
then: ${event.pull_request.head.ref}
|
|
|
|
else:
|
|
|
|
$if: 'tasks_for == "github-push"'
|
|
|
|
then: ${event.ref}
|
|
|
|
else: ${event.release.target_commitish}
|
|
|
|
|
|
|
|
head_rev:
|
|
|
|
$if: 'tasks_for == "github-pull-request"'
|
|
|
|
then: ${event.pull_request.head.sha}
|
|
|
|
else:
|
|
|
|
$if: 'tasks_for == "github-push"'
|
|
|
|
then: ${event.after}
|
|
|
|
else: ${event.release.tag_name}
|
|
|
|
|
|
|
|
repository:
|
|
|
|
$if: 'tasks_for == "github-pull-request"'
|
|
|
|
then: ${event.pull_request.head.repo.html_url}
|
|
|
|
else: ${event.repository.html_url}
|
2019-09-04 13:37:58 +03:00
|
|
|
|
2020-03-04 13:28:52 +03:00
|
|
|
taskboot_image: "mozilla/taskboot:0.2.2"
|
2019-04-09 19:11:47 +03:00
|
|
|
in:
|
2020-04-07 20:47:52 +03:00
|
|
|
$if: 'tasks_for == "github-push" || (tasks_for == "github-pull-request" && event["action"] in ["opened", "reopened", "synchronize"])'
|
2019-04-09 23:51:54 +03:00
|
|
|
then:
|
|
|
|
- taskId: {$eval: as_slugid("lint_task")}
|
2019-04-09 19:11:47 +03:00
|
|
|
created: {$fromNow: ''}
|
|
|
|
deadline: {$fromNow: '1 hour'}
|
2020-08-03 13:21:40 +03:00
|
|
|
provisionerId: proj-bugbug
|
2020-05-08 16:35:19 +03:00
|
|
|
workerType: batch
|
2019-04-09 19:11:47 +03:00
|
|
|
payload:
|
|
|
|
maxRunTime: 3600
|
2020-05-17 13:16:07 +03:00
|
|
|
image: python:3.8
|
2019-04-09 19:11:47 +03:00
|
|
|
command:
|
|
|
|
- "/bin/bash"
|
2019-04-09 23:51:54 +03:00
|
|
|
- "-lcx"
|
2019-06-08 12:19:01 +03:00
|
|
|
- "git clone --quiet ${repository} &&
|
2019-04-09 19:11:47 +03:00
|
|
|
cd bugbug &&
|
2019-06-08 12:20:29 +03:00
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
2019-10-21 19:42:39 +03:00
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir -r test-requirements.txt &&
|
2020-02-26 13:40:51 +03:00
|
|
|
pre-commit run -a --show-diff-on-failure"
|
2019-04-09 23:51:54 +03:00
|
|
|
metadata:
|
|
|
|
name: bugbug lint
|
|
|
|
description: bugbug lint
|
2019-07-22 12:48:20 +03:00
|
|
|
owner: mcastelluccio@mozilla.com
|
2019-04-09 23:51:54 +03:00
|
|
|
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|
|
|
|
|
2019-04-18 13:49:00 +03:00
|
|
|
- $if: 'tasks_for == "github-push"'
|
|
|
|
then:
|
|
|
|
taskId: {$eval: as_slugid("version_check_task")}
|
|
|
|
created: {$fromNow: ''}
|
|
|
|
deadline: {$fromNow: '1 hour'}
|
2020-08-03 13:21:40 +03:00
|
|
|
provisionerId: proj-bugbug
|
2020-02-17 16:07:08 +03:00
|
|
|
workerType: batch
|
2019-04-18 13:49:00 +03:00
|
|
|
payload:
|
|
|
|
maxRunTime: 3600
|
2020-05-17 13:16:07 +03:00
|
|
|
image: python:3.8
|
2019-04-18 13:49:00 +03:00
|
|
|
command:
|
|
|
|
- "/bin/bash"
|
|
|
|
- "-lcx"
|
2019-06-08 12:19:01 +03:00
|
|
|
- "git clone --quiet ${repository} &&
|
2019-04-18 13:49:00 +03:00
|
|
|
cd bugbug &&
|
2019-06-08 12:20:29 +03:00
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
2019-04-18 13:49:00 +03:00
|
|
|
python infra/version_check.py"
|
|
|
|
metadata:
|
|
|
|
name: bugbug tag version check
|
|
|
|
description: bugbug tag version check
|
2019-07-22 12:48:20 +03:00
|
|
|
owner: mcastelluccio@mozilla.com
|
2019-04-18 13:49:00 +03:00
|
|
|
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|
|
|
|
|
2019-04-09 23:51:54 +03:00
|
|
|
- taskId: {$eval: as_slugid("tests_task")}
|
|
|
|
created: {$fromNow: ''}
|
|
|
|
deadline: {$fromNow: '1 hour'}
|
2020-08-03 13:21:40 +03:00
|
|
|
provisionerId: proj-bugbug
|
2020-05-08 16:35:19 +03:00
|
|
|
workerType: compute-smaller
|
2019-04-09 23:51:54 +03:00
|
|
|
payload:
|
|
|
|
maxRunTime: 3600
|
2020-05-17 13:16:07 +03:00
|
|
|
image: python:3.8
|
2019-06-08 13:23:40 +03:00
|
|
|
env:
|
|
|
|
CODECOV_TOKEN: 66162f89-a4d9-420c-84bd-d10f12a428d9
|
2019-04-09 23:51:54 +03:00
|
|
|
command:
|
|
|
|
- "/bin/bash"
|
|
|
|
- "-lcx"
|
2019-06-08 12:50:13 +03:00
|
|
|
- "apt-get -qq update &&
|
2020-01-07 18:38:41 +03:00
|
|
|
apt-get -qq install -y libhdf5-dev &&
|
2019-06-08 12:19:01 +03:00
|
|
|
git clone --quiet ${repository} &&
|
2020-03-31 13:47:52 +03:00
|
|
|
curl -L https://github.com/mozilla/rust-code-analysis/releases/download/v0.0.11/rust-code-analysis-linux-x86_64.tar.gz | tar -C /usr/bin -xzv --strip=1 && chmod +x /usr/bin/rust-code-analysis &&
|
2019-04-09 23:51:54 +03:00
|
|
|
cd bugbug &&
|
2019-06-08 12:20:29 +03:00
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
2020-03-02 16:23:54 +03:00
|
|
|
cp infra/hgrc /etc/mercurial/hgrc.d/bugbug.rc &&
|
2019-10-21 19:42:39 +03:00
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir -r requirements.txt &&
|
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir -r extra-nlp-requirements.txt &&
|
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir -r extra-nn-requirements.txt &&
|
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir -r infra/spawn_pipeline_requirements.txt &&
|
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir -r test-requirements.txt &&
|
2020-07-21 17:49:44 +03:00
|
|
|
hg clone -r 35f393d6769a7b146c5e082aef19b38edac55f4a https://hg.mozilla.org/hgcustom/version-control-tools /version-control-tools/ &&
|
2019-06-08 13:23:40 +03:00
|
|
|
python -m pytest --cov=./ tests/test_*.py &&
|
|
|
|
bash <(curl -s https://codecov.io/bash)"
|
2019-04-09 19:11:47 +03:00
|
|
|
metadata:
|
|
|
|
name: bugbug tests
|
|
|
|
description: bugbug tests
|
2019-07-22 12:48:20 +03:00
|
|
|
owner: mcastelluccio@mozilla.com
|
2019-04-09 19:11:47 +03:00
|
|
|
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|
2019-04-09 23:51:54 +03:00
|
|
|
|
2019-08-01 16:33:20 +03:00
|
|
|
- taskId: {$eval: as_slugid("http_tests_task")}
|
|
|
|
created: {$fromNow: ''}
|
|
|
|
deadline: {$fromNow: '1 hour'}
|
2020-08-03 13:21:40 +03:00
|
|
|
provisionerId: proj-bugbug
|
2020-05-08 16:35:19 +03:00
|
|
|
workerType: compute-smaller
|
2019-08-01 16:33:20 +03:00
|
|
|
payload:
|
|
|
|
maxRunTime: 3600
|
2020-05-17 13:16:07 +03:00
|
|
|
image: python:3.8
|
2019-08-01 16:33:20 +03:00
|
|
|
env:
|
|
|
|
CODECOV_TOKEN: 66162f89-a4d9-420c-84bd-d10f12a428d9
|
|
|
|
command:
|
|
|
|
- "/bin/bash"
|
|
|
|
- "-lcx"
|
2020-04-21 17:52:23 +03:00
|
|
|
- "git clone --quiet ${repository} &&
|
2020-03-31 13:47:52 +03:00
|
|
|
curl -L https://github.com/mozilla/rust-code-analysis/releases/download/v0.0.11/rust-code-analysis-linux-x86_64.tar.gz | tar -C /usr/bin -xzv --strip=1 && chmod +x /usr/bin/rust-code-analysis &&
|
2019-08-01 16:33:20 +03:00
|
|
|
cd bugbug &&
|
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
2020-03-11 15:31:02 +03:00
|
|
|
cp infra/hgrc /etc/mercurial/hgrc.d/bugbug.rc &&
|
2019-10-21 19:42:39 +03:00
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir . &&
|
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir -r test-requirements.txt &&
|
2020-02-28 11:34:33 +03:00
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir ./http_service &&
|
2020-07-21 17:49:44 +03:00
|
|
|
hg clone -r 35f393d6769a7b146c5e082aef19b38edac55f4a https://hg.mozilla.org/hgcustom/version-control-tools /version-control-tools/ &&
|
2019-08-01 16:33:20 +03:00
|
|
|
pytest --cov=http_service http_service/tests/ -vvv &&
|
|
|
|
bash <(curl -s https://codecov.io/bash)"
|
|
|
|
metadata:
|
|
|
|
name: bugbug http service tests
|
|
|
|
description: bugbug http service tests
|
|
|
|
owner: mcastelluccio@mozilla.com
|
|
|
|
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|
|
|
|
|
2019-04-09 23:51:54 +03:00
|
|
|
- taskId: {$eval: as_slugid("packaging_test_task")}
|
|
|
|
created: {$fromNow: ''}
|
|
|
|
deadline: {$fromNow: '1 hour'}
|
2020-08-03 13:21:40 +03:00
|
|
|
provisionerId: proj-bugbug
|
2020-05-08 16:35:19 +03:00
|
|
|
workerType: batch
|
2019-04-09 23:51:54 +03:00
|
|
|
payload:
|
|
|
|
maxRunTime: 3600
|
2020-05-17 13:16:07 +03:00
|
|
|
image: python:3.8
|
2019-06-08 21:50:59 +03:00
|
|
|
env:
|
|
|
|
CODECOV_TOKEN: 66162f89-a4d9-420c-84bd-d10f12a428d9
|
2019-04-09 23:51:54 +03:00
|
|
|
command:
|
|
|
|
- "/bin/bash"
|
|
|
|
- "-lcx"
|
2019-09-07 02:27:51 +03:00
|
|
|
- "apt-get -qq update &&
|
|
|
|
apt-get -qq install -y libhdf5-dev &&
|
|
|
|
git clone --quiet ${repository} &&
|
2019-04-09 23:51:54 +03:00
|
|
|
cd bugbug &&
|
2019-06-08 12:20:29 +03:00
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
2019-10-21 19:42:39 +03:00
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir -r test-requirements.txt &&
|
2019-06-08 21:50:59 +03:00
|
|
|
python -m coverage run setup.py sdist &&
|
2019-10-21 19:42:39 +03:00
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir dist/bugbug-$(cat VERSION).tar.gz &&
|
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir dist/bugbug-$(cat VERSION).tar.gz[nlp] &&
|
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir dist/bugbug-$(cat VERSION).tar.gz[nn] &&
|
2019-06-08 21:50:59 +03:00
|
|
|
bash <(curl -s https://codecov.io/bash)"
|
2019-04-09 23:51:54 +03:00
|
|
|
metadata:
|
|
|
|
name: bugbug packaging test
|
|
|
|
description: bugbug packaging test
|
2019-07-22 12:48:20 +03:00
|
|
|
owner: mcastelluccio@mozilla.com
|
2019-04-09 23:51:54 +03:00
|
|
|
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|
2019-04-10 11:54:30 +03:00
|
|
|
|
2019-04-11 15:00:18 +03:00
|
|
|
- taskId: {$eval: as_slugid("docker_build")}
|
|
|
|
created: {$fromNow: ''}
|
2019-04-20 00:41:55 +03:00
|
|
|
deadline: {$fromNow: '3 hours'}
|
2020-08-03 13:21:40 +03:00
|
|
|
provisionerId: proj-bugbug
|
2019-11-09 00:13:10 +03:00
|
|
|
workerType: ci
|
2019-04-11 15:00:18 +03:00
|
|
|
payload:
|
|
|
|
capabilities:
|
|
|
|
privileged: true
|
2019-04-20 00:41:55 +03:00
|
|
|
maxRunTime: 10800
|
2019-09-04 13:37:58 +03:00
|
|
|
image: "${taskboot_image}"
|
2019-06-06 19:06:16 +03:00
|
|
|
env:
|
|
|
|
REGISTRY: registry.hub.docker.com
|
|
|
|
VERSION:
|
|
|
|
$if: 'head_branch[:10] == "refs/tags/"'
|
|
|
|
then: {$eval: 'head_branch[10:]' }
|
|
|
|
else: "latest"
|
2019-04-11 15:00:18 +03:00
|
|
|
command:
|
2019-04-15 18:36:30 +03:00
|
|
|
- "/bin/sh"
|
|
|
|
- "-lcxe"
|
2019-06-08 12:19:01 +03:00
|
|
|
- "git clone --quiet ${repository} /code &&
|
2019-04-15 18:36:30 +03:00
|
|
|
cd /code &&
|
2019-06-08 12:20:29 +03:00
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
2019-06-06 19:06:16 +03:00
|
|
|
taskboot --cache /cache --target /code build-compose --write /images --build-arg CHECK_MODELS=0 --tag $VERSION --tag latest"
|
2019-04-11 15:00:18 +03:00
|
|
|
artifacts:
|
2019-04-15 18:36:30 +03:00
|
|
|
public/bugbug:
|
2019-04-11 15:00:18 +03:00
|
|
|
expires: {$fromNow: '2 weeks'}
|
2019-04-15 18:36:30 +03:00
|
|
|
path: /images
|
|
|
|
type: directory
|
2019-04-26 14:06:15 +03:00
|
|
|
cache:
|
|
|
|
bugbug-build: /cache
|
2019-04-11 15:00:18 +03:00
|
|
|
scopes:
|
|
|
|
- docker-worker:capability:privileged
|
2019-04-26 14:06:15 +03:00
|
|
|
- docker-worker:cache:bugbug-build
|
2019-04-11 15:00:18 +03:00
|
|
|
metadata:
|
|
|
|
name: bugbug docker build
|
|
|
|
description: bugbug docker build
|
2019-07-22 12:48:20 +03:00
|
|
|
owner: mcastelluccio@mozilla.com
|
2019-04-11 15:00:18 +03:00
|
|
|
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|
|
|
|
|
2019-04-10 11:54:30 +03:00
|
|
|
- $if: 'tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
|
|
|
|
then:
|
|
|
|
dependencies:
|
|
|
|
- {$eval: as_slugid("lint_task")}
|
|
|
|
- {$eval: as_slugid("tests_task")}
|
2019-08-01 16:33:20 +03:00
|
|
|
- {$eval: as_slugid("http_tests_task")}
|
2019-04-10 11:54:30 +03:00
|
|
|
- {$eval: as_slugid("packaging_test_task")}
|
2019-04-18 13:49:00 +03:00
|
|
|
- {$eval: as_slugid("version_check_task")}
|
2019-10-24 21:09:32 +03:00
|
|
|
- {$eval: as_slugid("integration_test")}
|
2019-04-10 11:54:30 +03:00
|
|
|
scopes:
|
2020-08-28 18:41:54 +03:00
|
|
|
- secrets:get:project/bugbug/deploy
|
2019-04-10 11:54:30 +03:00
|
|
|
created: {$fromNow: ''}
|
|
|
|
deadline: {$fromNow: '1 hour'}
|
2020-08-03 13:21:40 +03:00
|
|
|
provisionerId: proj-bugbug
|
2020-02-17 16:07:08 +03:00
|
|
|
workerType: batch
|
2019-04-10 11:54:30 +03:00
|
|
|
payload:
|
|
|
|
features:
|
|
|
|
taskclusterProxy:
|
|
|
|
true
|
|
|
|
maxRunTime: 3600
|
2019-09-04 13:37:58 +03:00
|
|
|
image: "${taskboot_image}"
|
2019-04-10 11:54:30 +03:00
|
|
|
command:
|
2019-09-04 13:37:58 +03:00
|
|
|
- taskboot
|
|
|
|
- deploy-pypi
|
|
|
|
env:
|
2020-08-28 18:41:54 +03:00
|
|
|
TASKCLUSTER_SECRET: project/bugbug/deploy
|
2019-09-04 13:37:58 +03:00
|
|
|
GIT_REPOSITORY: "${repository}"
|
|
|
|
GIT_REVISION: "${head_rev}"
|
2019-04-10 11:54:30 +03:00
|
|
|
metadata:
|
|
|
|
name: bugbug PyPI release
|
|
|
|
description: bugbug PyPI release
|
2019-07-22 12:48:20 +03:00
|
|
|
owner: mcastelluccio@mozilla.com
|
2019-04-10 11:54:30 +03:00
|
|
|
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|
2019-04-18 20:49:12 +03:00
|
|
|
|
|
|
|
- $if: 'tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
|
|
|
|
then:
|
|
|
|
dependencies:
|
|
|
|
- {$eval: as_slugid("docker_build")}
|
2019-05-09 12:40:59 +03:00
|
|
|
- {$eval: as_slugid("lint_task")}
|
|
|
|
- {$eval: as_slugid("version_check_task")}
|
|
|
|
- {$eval: as_slugid("tests_task")}
|
2020-04-20 17:28:01 +03:00
|
|
|
- {$eval: as_slugid("http_tests_task")}
|
2019-05-09 12:40:59 +03:00
|
|
|
- {$eval: as_slugid("packaging_test_task")}
|
2019-04-18 20:49:12 +03:00
|
|
|
scopes:
|
2020-08-28 18:41:54 +03:00
|
|
|
- secrets:get:project/bugbug/deploy
|
2019-04-18 20:49:12 +03:00
|
|
|
taskId: {$eval: as_slugid("docker_push")}
|
|
|
|
created: {$fromNow: ''}
|
2019-04-20 00:41:55 +03:00
|
|
|
deadline: {$fromNow: '4 hours'}
|
2020-08-03 13:21:40 +03:00
|
|
|
provisionerId: proj-bugbug
|
2020-02-17 16:07:08 +03:00
|
|
|
workerType: batch
|
2019-04-18 20:49:12 +03:00
|
|
|
payload:
|
|
|
|
features:
|
|
|
|
taskclusterProxy:
|
|
|
|
true
|
|
|
|
maxRunTime: 3600
|
2019-09-04 13:37:58 +03:00
|
|
|
image: "${taskboot_image}"
|
2019-04-18 20:49:12 +03:00
|
|
|
env:
|
2020-08-28 18:41:54 +03:00
|
|
|
TASKCLUSTER_SECRET: project/bugbug/deploy
|
2019-04-18 20:49:12 +03:00
|
|
|
command:
|
|
|
|
- taskboot
|
|
|
|
- push-artifact
|
2019-05-03 00:46:01 +03:00
|
|
|
- --exclude-filter
|
|
|
|
- "*http-service*"
|
2019-04-18 20:49:12 +03:00
|
|
|
metadata:
|
|
|
|
name: bugbug docker push
|
|
|
|
description: bugbug docker push
|
2019-07-22 12:48:20 +03:00
|
|
|
owner: mcastelluccio@mozilla.com
|
2019-04-18 20:49:12 +03:00
|
|
|
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|
2019-06-26 19:19:40 +03:00
|
|
|
|
2019-10-24 21:09:32 +03:00
|
|
|
# It's the same task integration_test as in data-pipeline.yml
|
|
|
|
- $if: 'tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
|
|
|
|
then:
|
|
|
|
taskId: {$eval: as_slugid("integration_test")}
|
2019-12-18 00:47:50 +03:00
|
|
|
dependencies:
|
|
|
|
- {$eval: as_slugid("docker_push")}
|
2019-10-24 21:09:32 +03:00
|
|
|
created: {$fromNow: ''}
|
|
|
|
deadline: {$fromNow: '1 hour'}
|
2020-08-03 13:21:40 +03:00
|
|
|
provisionerId: proj-bugbug
|
2020-05-08 18:19:01 +03:00
|
|
|
workerType: compute-small
|
2019-10-24 21:09:32 +03:00
|
|
|
scopes:
|
2020-08-28 18:41:54 +03:00
|
|
|
- secrets:get:project/bugbug/integration
|
2019-10-24 21:09:32 +03:00
|
|
|
- "docker-worker:cache:bugbug-mercurial-repository"
|
|
|
|
payload:
|
|
|
|
features:
|
|
|
|
taskclusterProxy:
|
|
|
|
true
|
|
|
|
maxRunTime: 10800
|
2019-12-18 02:49:15 +03:00
|
|
|
image: mozilla/bugbug-commit-retrieval:${head_branch[10:]}
|
2019-10-24 21:09:32 +03:00
|
|
|
env:
|
2020-08-28 18:41:54 +03:00
|
|
|
TC_SECRET_ID: project/bugbug/integration
|
2019-10-24 21:09:32 +03:00
|
|
|
CACHE_DIR: "/cache"
|
|
|
|
command:
|
|
|
|
- "/bin/bash"
|
|
|
|
- "-lcx"
|
2019-11-07 03:29:32 +03:00
|
|
|
- "apt-get -qq update &&
|
2019-12-17 19:15:46 +03:00
|
|
|
apt-get -qq install -y redis-server &&
|
2019-11-07 03:29:32 +03:00
|
|
|
git clone --quiet ${repository} &&
|
2019-10-24 21:09:32 +03:00
|
|
|
cd bugbug &&
|
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
|
|
|
python -c 'import os; print(os.environ.keys())' &&
|
|
|
|
bash ./scripts/integration_test.sh"
|
|
|
|
cache:
|
|
|
|
bugbug-mercurial-repository: /cache
|
|
|
|
metadata:
|
|
|
|
name: bugbug integration test
|
|
|
|
description: bugbug integration test
|
|
|
|
owner: ${user}@users.noreply.github.com
|
|
|
|
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|
2019-12-18 00:47:50 +03:00
|
|
|
|
|
|
|
- $if: 'tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
|
|
|
|
then:
|
|
|
|
taskId: {$eval: as_slugid("update_hook_data_pipeline")}
|
|
|
|
dependencies:
|
|
|
|
- {$eval: as_slugid("integration_test")}
|
|
|
|
scopes:
|
2020-08-28 18:41:54 +03:00
|
|
|
- hooks:modify-hook:project-bugbug/bugbug
|
|
|
|
- assume:hook-id:project-bugbug/bugbug
|
|
|
|
- queue:route:project.bugbug.deploy_ending.*
|
2019-12-18 00:47:50 +03:00
|
|
|
created: {$fromNow: ''}
|
|
|
|
deadline: {$fromNow: '5 hours'}
|
2020-08-03 13:21:40 +03:00
|
|
|
provisionerId: proj-bugbug
|
2020-02-17 16:07:08 +03:00
|
|
|
workerType: batch
|
2019-12-18 00:47:50 +03:00
|
|
|
payload:
|
|
|
|
features:
|
|
|
|
taskclusterProxy:
|
|
|
|
true
|
|
|
|
maxRunTime: 3600
|
|
|
|
image: "${taskboot_image}"
|
|
|
|
command:
|
|
|
|
- "/bin/sh"
|
|
|
|
- "-lcxe"
|
|
|
|
- "git clone --quiet ${repository} &&
|
|
|
|
cd bugbug &&
|
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
|
|
|
python infra/set_hook_version.py ${head_branch[10:]} infra/taskcluster-hook-data-pipeline.json &&
|
2020-08-28 18:41:54 +03:00
|
|
|
taskboot --target . build-hook infra/taskcluster-hook-data-pipeline.json project-bugbug bugbug"
|
2019-12-18 00:47:50 +03:00
|
|
|
routes:
|
2020-08-28 18:41:54 +03:00
|
|
|
- project.bugbug.deploy_ending
|
2019-12-18 00:47:50 +03:00
|
|
|
metadata:
|
|
|
|
name: bugbug update data hook
|
|
|
|
description: bugbug update data hook
|
|
|
|
owner: mcastelluccio@mozilla.com
|
|
|
|
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|