2019-04-09 19:11:47 +03:00
|
|
|
version: 1
|
2023-10-14 01:57:30 +03:00
|
|
|
reporting: checks-v1
|
2019-04-09 19:11:47 +03:00
|
|
|
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
|
|
|
|
2023-09-21 18:30:47 +03:00
|
|
|
taskboot_image: "mozilla/taskboot:0.4.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:
|
2020-12-17 20:13:49 +03:00
|
|
|
- taskId: { $eval: as_slugid("lint_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 19:11:47 +03:00
|
|
|
payload:
|
|
|
|
maxRunTime: 3600
|
2023-07-07 02:10:57 +03:00
|
|
|
image: python:3.10
|
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} &&
|
2020-12-17 20:13:49 +03:00
|
|
|
cd bugbug &&
|
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
|
|
|
pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r test-requirements.txt &&
|
|
|
|
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:
|
2020-12-17 20:13:49 +03:00
|
|
|
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
|
2023-07-07 02:10:57 +03:00
|
|
|
image: python:3.10
|
2019-04-18 13:49:00 +03:00
|
|
|
command:
|
|
|
|
- "/bin/bash"
|
|
|
|
- "-lcx"
|
2019-06-08 12:19:01 +03:00
|
|
|
- "git clone --quiet ${repository} &&
|
2020-12-17 20:13:49 +03:00
|
|
|
cd bugbug &&
|
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
|
|
|
python infra/version_check.py"
|
2019-04-18 13:49:00 +03:00
|
|
|
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
|
|
|
|
|
2020-12-17 20:13:49 +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
|
2023-07-07 02:10:57 +03:00
|
|
|
image: python:3.10
|
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 &&
|
2022-02-03 20:52:15 +03:00
|
|
|
apt-get -qq install -y libhdf5-dev zstd &&
|
2020-12-17 20:13:49 +03:00
|
|
|
git clone --quiet ${repository} &&
|
2021-04-09 20:30:48 +03:00
|
|
|
curl -L https://github.com/mozilla/rust-code-analysis/releases/download/v0.0.23/rust-code-analysis-linux-web-x86_64.tar.gz | tar -C /usr/bin -xzv &&
|
2020-12-17 20:13:49 +03:00
|
|
|
cd bugbug &&
|
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
|
|
|
cp infra/hgrc /etc/mercurial/hgrc.d/bugbug.rc &&
|
|
|
|
pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r requirements.txt &&
|
|
|
|
pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r extra-nlp-requirements.txt &&
|
|
|
|
pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r infra/spawn_pipeline_requirements.txt &&
|
|
|
|
pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r test-requirements.txt &&
|
2023-07-04 13:06:21 +03:00
|
|
|
hg clone -r 7436689a409528730ee6a7a2a5e763c9fb821a8f https://hg.mozilla.org/hgcustom/version-control-tools /version-control-tools/ &&
|
2020-12-17 20:13:49 +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
|
|
|
|
2020-12-17 20:13:49 +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
|
2023-07-07 02:10:57 +03:00
|
|
|
image: python:3.10
|
2019-08-01 16:33:20 +03:00
|
|
|
env:
|
|
|
|
CODECOV_TOKEN: 66162f89-a4d9-420c-84bd-d10f12a428d9
|
|
|
|
command:
|
|
|
|
- "/bin/bash"
|
|
|
|
- "-lcx"
|
2023-09-14 14:17:13 +03:00
|
|
|
- "apt-get -qq update &&
|
|
|
|
apt-get -qq install -y zstd &&
|
|
|
|
git clone --quiet ${repository} &&
|
2021-04-09 20:30:48 +03:00
|
|
|
curl -L https://github.com/mozilla/rust-code-analysis/releases/download/v0.0.23/rust-code-analysis-linux-web-x86_64.tar.gz | tar -C /usr/bin -xzv &&
|
2020-12-17 20:13:49 +03:00
|
|
|
cd bugbug &&
|
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
|
|
|
cp infra/hgrc /etc/mercurial/hgrc.d/bugbug.rc &&
|
|
|
|
pip install --disable-pip-version-check --no-cache-dir --progress-bar off . &&
|
|
|
|
pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r test-requirements.txt &&
|
|
|
|
pip install --disable-pip-version-check --no-cache-dir --progress-bar off ./http_service &&
|
2023-07-04 13:06:21 +03:00
|
|
|
hg clone -r 7436689a409528730ee6a7a2a5e763c9fb821a8f https://hg.mozilla.org/hgcustom/version-control-tools /version-control-tools/ &&
|
2020-12-17 20:13:49 +03:00
|
|
|
pytest --cov=http_service http_service/tests/ -vvv &&
|
|
|
|
bash <(curl -s https://codecov.io/bash)"
|
2019-08-01 16:33:20 +03:00
|
|
|
metadata:
|
|
|
|
name: bugbug http service tests
|
|
|
|
description: bugbug http service tests
|
|
|
|
owner: mcastelluccio@mozilla.com
|
|
|
|
source: ${repository}/raw/${head_rev}/.taskcluster.yml
|
|
|
|
|
2020-12-17 20:13:49 +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
|
2023-07-07 02:10:57 +03:00
|
|
|
image: python:3.10
|
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 &&
|
2020-12-17 20:13:49 +03:00
|
|
|
apt-get -qq install -y libhdf5-dev &&
|
|
|
|
git clone --quiet ${repository} &&
|
|
|
|
cd bugbug &&
|
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
|
|
|
pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r test-requirements.txt &&
|
|
|
|
python -m coverage run setup.py sdist &&
|
|
|
|
pip install --disable-pip-version-check --no-cache-dir --progress-bar off dist/bugbug-$(cat VERSION).tar.gz &&
|
|
|
|
pip install --disable-pip-version-check --no-cache-dir --progress-bar off dist/bugbug-$(cat VERSION).tar.gz[nlp] &&
|
|
|
|
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
|
|
|
|
2020-12-17 20:13:49 +03:00
|
|
|
- taskId: { $eval: as_slugid("docker_build") }
|
|
|
|
created: { $fromNow: "" }
|
|
|
|
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/"'
|
2020-12-17 20:13:49 +03:00
|
|
|
then: { $eval: "head_branch[10:]" }
|
2019-06-06 19:06:16 +03:00
|
|
|
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 &&
|
2020-12-17 20:13:49 +03:00
|
|
|
cd /code &&
|
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
2023-09-21 18:30:47 +03:00
|
|
|
taskboot --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:
|
2020-12-17 20:13:49 +03:00
|
|
|
expires: { $fromNow: "2 weeks" }
|
2019-04-15 18:36:30 +03:00
|
|
|
path: /images
|
|
|
|
type: directory
|
2019-04-11 15:00:18 +03:00
|
|
|
scopes:
|
|
|
|
- docker-worker:capability:privileged
|
|
|
|
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
|
|
|
|
|
2020-12-17 20:13:49 +03:00
|
|
|
- taskId: { $eval: as_slugid("frontend_build") }
|
|
|
|
created: { $fromNow: "" }
|
|
|
|
deadline: { $fromNow: "1 hour" }
|
2020-11-21 02:24:02 +03:00
|
|
|
provisionerId: proj-bugbug
|
|
|
|
workerType: batch
|
|
|
|
payload:
|
|
|
|
maxRunTime: 3600
|
2023-06-14 10:35:18 +03:00
|
|
|
image: node:lts
|
2020-11-21 02:24:02 +03:00
|
|
|
command:
|
|
|
|
- "/bin/sh"
|
|
|
|
- "-lcxe"
|
|
|
|
- "git clone --quiet ${repository} /bugbug &&
|
2020-12-17 20:13:49 +03:00
|
|
|
cd /bugbug &&
|
|
|
|
git -c advice.detachedHead=false checkout ${head_rev} &&
|
|
|
|
cd ui/changes &&
|
|
|
|
npm install --no-progress &&
|
|
|
|
npm run release"
|
2020-11-21 02:24:02 +03:00
|
|
|
artifacts:
|
|
|
|
public/frontend:
|
2020-12-17 20:13:49 +03:00
|
|
|
expires: { $fromNow: "2 weeks" }
|
2020-11-21 02:24:02 +03:00
|
|
|
path: /bugbug/ui/changes/dist
|
|
|
|
type: directory
|
|
|
|
metadata:
|
|
|
|
name: bugbug ui build
|
|
|
|
description: bugbug ui build
|
|
|
|
owner: mcastelluccio@mozilla.com
|
|
|
|
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:
|
2020-12-17 20:13:49 +03:00
|
|
|
- { $eval: as_slugid("lint_task") }
|
|
|
|
- { $eval: as_slugid("tests_task") }
|
|
|
|
- { $eval: as_slugid("http_tests_task") }
|
|
|
|
- { $eval: as_slugid("frontend_build") }
|
|
|
|
- { $eval: as_slugid("packaging_test_task") }
|
|
|
|
- { $eval: as_slugid("version_check_task") }
|
|
|
|
- { $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
|
2020-12-17 20:13:49 +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:
|
2020-12-17 20:13:49 +03:00
|
|
|
taskclusterProxy: true
|
2019-04-10 11:54:30 +03:00
|
|
|
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:
|
2020-12-17 20:13:49 +03:00
|
|
|
- { $eval: as_slugid("docker_build") }
|
|
|
|
- { $eval: as_slugid("lint_task") }
|
|
|
|
- { $eval: as_slugid("version_check_task") }
|
|
|
|
- { $eval: as_slugid("tests_task") }
|
|
|
|
- { $eval: as_slugid("http_tests_task") }
|
|
|
|
- { $eval: as_slugid("frontend_build") }
|
|
|
|
- { $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
|
2020-12-17 20:13:49 +03:00
|
|
|
taskId: { $eval: as_slugid("docker_push") }
|
|
|
|
created: { $fromNow: "" }
|
|
|
|
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:
|
2020-12-17 20:13:49 +03:00
|
|
|
taskclusterProxy: true
|
2019-04-18 20:49:12 +03:00
|
|
|
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:
|
2020-12-17 20:13:49 +03:00
|
|
|
taskId: { $eval: as_slugid("integration_test") }
|
2019-12-18 00:47:50 +03:00
|
|
|
dependencies:
|
2020-12-17 20:13:49 +03:00
|
|
|
- { $eval: as_slugid("docker_push") }
|
|
|
|
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"
|
2023-07-21 20:21:31 +03:00
|
|
|
- "generic-worker:cache:bugbug-mercurial-repository"
|
2019-10-24 21:09:32 +03:00
|
|
|
payload:
|
|
|
|
features:
|
2020-12-17 20:13:49 +03:00
|
|
|
taskclusterProxy: true
|
2019-10-24 21:09:32 +03:00
|
|
|
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:
|
2020-12-17 20:13:49 +03:00
|
|
|
taskId: { $eval: as_slugid("update_hook_data_pipeline") }
|
2019-12-18 00:47:50 +03:00
|
|
|
dependencies:
|
2020-12-17 20:13:49 +03:00
|
|
|
- { $eval: as_slugid("integration_test") }
|
2019-12-18 00:47:50 +03:00
|
|
|
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.*
|
2020-12-17 20:13:49 +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:
|
2020-12-17 20:13:49 +03:00
|
|
|
taskclusterProxy: true
|
2019-12-18 00:47:50 +03:00
|
|
|
maxRunTime: 3600
|
|
|
|
image: "${taskboot_image}"
|
|
|
|
command:
|
|
|
|
- "/bin/sh"
|
|
|
|
- "-lcxe"
|
|
|
|
- "git clone --quiet ${repository} &&
|
2020-12-17 20:13:49 +03:00
|
|
|
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 &&
|
|
|
|
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
|