Create a new Taskcluster hook that runs the landings risk report generation script daily at midnight UTC

This commit is contained in:
Marco Castelluccio 2020-10-22 02:13:31 +02:00
Родитель d069a2b272
Коммит ad6b9592fb
3 изменённых файлов: 104 добавлений и 0 удалений

Просмотреть файл

@ -1342,6 +1342,37 @@ tasks:
owner: mcastelluccio@mozilla.com
source: ${repository}/raw/master/data-pipeline.yml
- ID: update_hook_landings_risk_report
created: {$fromNow: ''}
deadline: {$fromNow: '3 days'}
expires: {$fromNow: '1 month'}
dependencies:
- past-bugs-by-unit
scopes:
- hooks:modify-hook:project-bugbug/bugbug-landings-risk-report
- assume:hook-id:project-bugbug/bugbug-landings-risk-report
provisionerId: proj-bugbug
workerType: batch
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 ${version} &&
python infra/set_hook_version.py ${version} infra/taskcluster-hook-landings-risk-report.json &&
taskboot --target . build-hook infra/taskcluster-hook-landings-risk-report.json project-bugbug bugbug-landings-risk-report"
metadata:
name: bugbug update landings risk report hook
description: bugbug update landings risk report hook
owner: mcastelluccio@mozilla.com
source: ${repository}/raw/master/data-pipeline.yml
- ID: docker-push
dependencies:
- docker-build

Просмотреть файл

@ -0,0 +1,72 @@
{
"schedule": [
"0 0 0 * * *"
],
"metadata": {
"description": "",
"name": "BugBug landings risk report",
"owner": "mcastelluccio@mozilla.com"
},
"task": {
"created": {
"$fromNow": "0 seconds"
},
"deadline": {
"$fromNow": "2 hours"
},
"expires": {
"$fromNow": "1 month"
},
"extra": {},
"metadata": {
"description": "",
"name": "BugBug landings risk report",
"owner": "mcastelluccio@mozilla.com",
"source": "https://github.com/mozilla/bugbug"
},
"payload": {
"artifacts": {
"public/landings_by_date.json": {
"path": "/landings_by_date.json",
"type": "file"
}
},
"cache": {
"bugbug-mercurial-repository": "/cache"
},
"capabilities": {},
"env": {
"TC_SECRET_ID": "project/bugbug/production"
},
"features": {
"taskclusterProxy": true
},
"command": [
"bugbug-generate-landings-risk-report",
"/cache/mozilla-central",
"--days=7",
"--meta-bugs"
],
"image": "mozilla/bugbug-commit-retrieval",
"maxRunTime": 7200
},
"priority": "normal",
"provisionerId": "proj-bugbug",
"retries": 5,
"routes": [
"notify.email.release-mgmt-analysis@mozilla.com.on-failed",
"notify.irc-channel.#bugbug.on-failed",
"index.project.bugbug.landings_risk_report.latest"
],
"schedulerId": "-",
"scopes": [
"assume:hook-id:project-bugbug/bugbug"
],
"tags": {},
"workerType": "batch"
},
"triggerSchema": {
"additionalProperties": false,
"type": "object"
}
}

Просмотреть файл

@ -35,6 +35,7 @@ parameters = [
"RUNNABLE_JOBS": "http://localhost",
},
),
(os.path.realpath("infra/taskcluster-hook-landings-risk-report.json"), {}),
]
for infra_path in os.listdir("infra"):