-
Notifications
You must be signed in to change notification settings - Fork 15
/
hooks.yml
216 lines (207 loc) · 8.01 KB
/
hooks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
---
project-relman/code-coverage-repo-production:
name: Code coverage hook (production)
description: Automatically build code coverage reports
owner: [email protected]
email_on_error: true
scopes:
- assume:project:taskcluster:mozilla-github-repository
- docker-worker:cache:code-coverage-bot-production
- index:insert-task:project.releng.services.project.production.code_coverage_bot.*
- index:insert-task:project.relman.code-coverage.production.repo.*
- notify:email:*
- queue:create-task:highest:code-coverage/bot-gcp
- queue:route:notify.email.*
- queue:scheduler-id:relman
- secrets:get:project/relman/code-coverage/runtime-production
template_file: hooks/project-relman/code-coverage-repo-production.yml
trigger_schema:
type: object
additionalProperties: true
project-relman/code-coverage-repo-testing:
name: Code coverage hook (testing)
description: Automatically build code coverage reports
owner: [email protected]
email_on_error: true
scopes:
- assume:project:taskcluster:mozilla-github-repository
- docker-worker:cache:code-coverage-bot-testing
- index:insert-task:project.relman.code-coverage.testing.repo.*
- notify:email:*
- queue:create-task:lowest:code-coverage/bot-gcp
- queue:route:notify.email.*
- queue:scheduler-id:relman
- secrets:get:project/relman/code-coverage/runtime-testing
template_file: hooks/project-relman/code-coverage-repo-testing.yml
trigger_schema:
type: object
additionalProperties: true
project-relman/code-coverage-cron-production:
name: Code coverage hook (production)
description: Automatically build code coverage reports
owner: [email protected]
email_on_error: true
schedule:
- 0 0 12 * * *
scopes:
- assume:project:taskcluster:mozilla-github-repository
- docker-worker:cache:code-coverage-bot-production
- index:insert-task:project.relman.code-coverage.production.cron.*
- notify:email:*
- queue:create-task:highest:code-coverage/bot-gcp
- queue:route:notify.email.*
- queue:scheduler-id:relman
- secrets:get:project/relman/code-coverage/runtime-production
template_file: hooks/project-relman/code-coverage-cron-production.yml
trigger_schema:
type: object
additionalProperties: true
project-relman/code-coverage-cron-testing:
name: Code coverage hook (testing)
description: Automatically build code coverage reports
owner: [email protected]
email_on_error: true
schedule:
- 0 0 12 * * *
scopes:
- assume:project:taskcluster:mozilla-github-repository
- docker-worker:cache:code-coverage-bot-testing
- index:insert-task:project.relman.code-coverage.testing.cron.*
- notify:email:*
- queue:create-task:lowest:code-coverage/bot-gcp
- queue:route:notify.email.*
- queue:scheduler-id:relman
- secrets:get:project/relman/code-coverage/runtime-testing
template_file: hooks/project-relman/code-coverage-cron-testing.yml
trigger_schema:
type: object
additionalProperties: true
project-relman/code-coverage-crontrigger-production:
name: Code coverage hook (production)
description: Automatically trigger code coverage ingestion hook
owner: [email protected]
email_on_error: true
schedule:
- 0 */30 * * * *
scopes:
- hooks:trigger-hook:project-relman/code-coverage-repo-production
- assume:project:taskcluster:mozilla-github-repository
- index:insert-task:project.relman.code-coverage.production.crontrigger.*
- notify:email:*
- queue:create-task:highest:code-coverage/bot-gcp
- queue:route:notify.email.*
- queue:scheduler-id:relman
- secrets:get:project/relman/code-coverage/runtime-production
template_file: hooks/project-relman/code-coverage-crontrigger-production.yml
trigger_schema:
type: object
additionalProperties: true
project-relman/code-coverage-crontrigger-testing:
name: Code coverage hook (testing)
description: Automatically trigger code coverage ingestion hook
owner: [email protected]
email_on_error: true
schedule:
- 0 */30 * * * *
scopes:
- hooks:trigger-hook:project-relman/code-coverage-repo-testing
- assume:project:taskcluster:mozilla-github-repository
- index:insert-task:project.relman.code-coverage.testing.crontrigger.*
- notify:email:*
- queue:create-task:lowest:code-coverage/bot-gcp
- queue:route:notify.email.*
- queue:scheduler-id:relman
- secrets:get:project/relman/code-coverage/runtime-testing
template_file: hooks/project-relman/code-coverage-crontrigger-testing.yml
trigger_schema:
type: object
additionalProperties: true
project-relman/code-review-testing:
name: Code review hook (testing)
description: Automatically create code review publication tasks
owner: [email protected]
email_on_error: true
scopes:
- assume:project:taskcluster:mozilla-github-repository
- hooks:trigger-hook:project-releng/services-testing-*
- index:insert-task:project.relman.testing.code-review.*
- notify:email:*
- queue:create-task:lowest:code-review/bot-gcp
- queue:route:index.project.releng.services.project.testing.static_analysis_bot.*
- queue:route:index.project.relman.testing.code-review.*
- queue:route:notify.email.*
- queue:scheduler-id:relman
- secrets:get:project/relman/code-review/runtime-testing
- docker-worker:cache:code-review-testing-checkout
template_file: hooks/project-relman/code-review-testing.yml
bindings:
- exchange: exchange/taskcluster-queue/v1/task-completed
routing_key_pattern: route.project.relman.codereview.v1.try_ending
trigger_schema:
type: object
additionalProperties: true
properties:
# Trigger hook with token payload to create a try push
object:
type: object
required:
- type
- phid
properties:
type:
type: string
description: Phabricator object's type triggering the hook
phid:
type: string
description: Phabricator object's PHID triggering the hook
transactions:
type: array
description: Phabricator transactions leading to this trigger
items:
type: object
required:
- phid
properties:
phid:
type: string
description: Phabricator transaction's PHID
# Trigger hook from pulse for analyzing results
runId:
type: integer
description: Taskcluster Task Run ID triggering the hook (should be a Try Task run)
status:
type: object
required:
- taskId
- taskGroupId
properties:
taskId:
type: string
description: Taskcluster Task ID triggering the hook (should be a Try Task)
taskGroupId:
type: string
description: Taskcluster Task Group ID triggering the hook (should be a Try Task Group)
project-relman/code-review-production:
name: Code review hook (production)
description: Automatically create code review publication tasks
owner: [email protected]
email_on_error: true
scopes:
- assume:project:taskcluster:mozilla-github-repository
- hooks:trigger-hook:project-releng/services-production-*
- index:insert-task:project.relman.production.code-review.*
- notify:email:*
- queue:create-task:highest:code-review/bot-gcp
- queue:route:index.project.releng.services.project.production.static_analysis_bot.*
- queue:route:index.project.relman.production.code-review.*
- queue:route:notify.email.*
- queue:scheduler-id:relman
- secrets:get:project/relman/code-review/runtime-production
- docker-worker:cache:code-review-production-checkout
template_file: hooks/project-relman/code-review-production.yml
bindings:
- exchange: exchange/taskcluster-queue/v1/task-completed
routing_key_pattern: route.project.relman.codereview.v1.try_ending
trigger_schema:
type: object
additionalProperties: true