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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
|
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: gecko_taskgraph.loader.transform:loader
transforms:
- gecko_taskgraph.transforms.test_apk:transforms
# While not a build, the build optimization works well for these tasks.
- gecko_taskgraph.transforms.build_schedules:transforms
- gecko_taskgraph.transforms.job:transforms
- gecko_taskgraph.transforms.task:transforms
kind-dependencies:
- toolchain
- signing-apk
job-defaults:
attributes:
build_platform: android
build-type: debug
retrigger: true
fetches:
toolchain:
- android-sdk-linux
optimization:
skip-unless-backstop: null
worker-type: b-linux-medium-gcp
worker:
docker-image: {in-tree: android-ui-tests}
max-run-time: 7200
env:
GOOGLE_APPLICATION_CREDENTIALS: '.firebase_token.json'
ANDROID_SDK_ROOT: /builds/worker/fetches/android-sdk-linux
artifacts:
- name: public
path: /builds/worker/artifacts
type: directory
retry-exit-status: [20]
treeherder:
kind: test
tier: 2
run:
use-caches: false
using: run-commands
dummy-secrets:
- content: "faketoken"
path: .adjust_token
routes:
by-level:
'3':
- notify.slack-channel.G016BC5FUHJ.on-failed
'default': []
scopes:
by-level:
'3':
- queue:route:notify.slack-channel.G016BC5FUHJ.on-failed
- notify:slack-channel:G016BC5FUHJ
'default': []
extra:
notify:
by-level:
'3':
slackText: 'https://firefox-ci-tc.services.mozilla.com/tasks/${status.taskId} | ${task.metadata.name} | ${task.metadata.source}'
slackBlocks: |
[
{
"type": "header",
"text": {
"type": "plain_text",
"text": "firefox-android :firefox: ${task.metadata.name} :x:\n "
}
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Task*: <https://firefox-ci-tc.services.mozilla.com/tasks/${status.taskId}|Taskcluster>"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Owner*: ${task.metadata.owner}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Source*: <${task.payload.env.GECKO_BASE_REPOSITORY}/rev/${task.payload.env.GECKO_HEAD_REV}|Commit> :hg:"
}
},
{
"type": "divider"
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": ":testops-notify: created by <https://mozilla-hub.atlassian.net/wiki/spaces/MTE/overview|Mobile Test Engineering>"
}
]
}
]
'default': {}
jobs:
focus-arm-debug:
attributes:
build-type: focus-debug-firebase
shipping-product: focus
description: 'Focus UI tests with firebase'
run:
secrets:
- name: project/mobile/firefox-android/focus-android/firebase
key: firebaseToken
path: .firebase_token.json
json: true
pre-commands:
- ["cd", "mobile/android/focus-android"]
commands:
- [wget, {artifact-reference: '<signed-apk-debug-apk/public/build/target.arm64-v8a.apk>'}, '-O', app.apk]
- [wget, {artifact-reference: '<signed-apk-android-test/public/build/target.noarch.apk>'}, '-O', android-test.apk]
- [python3, ../../../taskcluster/scripts/tests/test-lab.py, arm64-v8a, app.apk, --apk_test, android-test.apk]
dependencies:
# key is arbitrary, the value corresponds to <kind name>-<build-name>
signed-apk-debug-apk: signing-apk-focus-debug
signed-apk-android-test: signing-apk-focus-android-test-debug
treeherder:
platform: 'focus-ui-test/opt'
symbol: focus-debug(ui-test-arm)
worker:
env:
GOOGLE_PROJECT: 'moz-focus-android'
focus-arm-nightly:
attributes:
build-type: focus-nightly-firebase
shipping-product: focus
description: 'UI tests on Nightly with firebase'
dependencies:
signed-apk-debug-apk: signing-apk-focus-nightly-firebase
signed-apk-android-test: signing-apk-focus-android-test-nightly
run-on-projects: [trunk]
run:
secrets:
- name: project/mobile/firefox-android/focus-android/firebase
key: firebaseToken
path: .firebase_token.json
json: true
pre-commands:
- ["cd", "mobile/android/focus-android"]
commands:
- [wget, {artifact-reference: '<signed-apk-debug-apk/public/build/target.arm64-v8a.apk>'}, '-O', app.apk]
- [wget, {artifact-reference: '<signed-apk-android-test/public/build/target.noarch.apk>'}, '-O', android-test.apk]
- [python3, ../../../taskcluster/scripts/tests/test-lab.py, arm-start-test, app.apk, --apk_test, android-test.apk]
treeherder:
platform: 'focus-ui-test/opt'
symbol: focus-nightly(ui-test-arm-nightly)
worker:
env:
GOOGLE_PROJECT: 'moz-focus-android'
focus-arm-beta:
attributes:
build-type: focus-beta-firebase
shipping-product: focus
description: 'UI tests on Beta with firebase'
dependencies:
signed-apk-debug-apk: signing-apk-focus-beta-firebase
signed-apk-android-test: signing-apk-focus-android-test-beta
run-on-projects: [release]
run:
secrets:
- name: project/mobile/firefox-android/focus-android/firebase
key: firebaseToken
path: .firebase_token.json
json: true
pre-commands:
- ["cd", "mobile/android/focus-android"]
commands:
- [wget, {artifact-reference: '<signed-apk-debug-apk/public/build/target.arm64-v8a.apk>'}, '-O', app.apk]
- [wget, {artifact-reference: '<signed-apk-android-test/public/build/target.noarch.apk>'}, '-O', android-test.apk]
- [python3, ../../../taskcluster/scripts/tests/test-lab.py, arm-beta, app.apk, --apk_test, android-test.apk]
treeherder:
platform: 'focus-ui-test/opt'
symbol: focus-beta(ui-test-arm-beta)
worker:
env:
GOOGLE_PROJECT: 'moz-focus-android'
fenix-arm-debug:
attributes:
build-type: fenix-debug-firebase
shipping-product: fenix
description: Test Fenix
dependencies:
signed-apk-debug-apk: signing-apk-fenix-debug
signed-apk-android-test: signing-apk-fenix-android-test-debug
run:
secrets:
- name: project/mobile/firefox-android/fenix/firebase
key: firebaseToken
path: .firebase_token.json
json: true
pre-commands:
- ["cd", "mobile/android/fenix"]
commands:
- [wget, {artifact-reference: '<signed-apk-debug-apk/public/build/target.arm64-v8a.apk>'}, '-O', app.apk]
- [wget, {artifact-reference: '<signed-apk-android-test/public/build/target.noarch.apk>'}, '-O', android-test.apk]
- [python3, ../../../taskcluster/scripts/tests/test-lab.py, arm64-v8a, app.apk, --apk_test, android-test.apk]
treeherder:
platform: 'fenix-ui-test/opt'
symbol: fenix-debug(ui-test-arm)
worker:
env:
GOOGLE_PROJECT: moz-fenix
screenshots-arm:
attributes:
build-type: fenix-debug-screenshots
shipping-product: fenix
screenshots: true
cron: true
description: Run UI screenshots tests to keep them up to date
dependencies:
signed-apk-debug-apk: signing-apk-fenix-debug
signed-apk-android-test: signing-apk-fenix-android-test-debug
run:
secrets:
- name: project/mobile/firefox-android/fenix/firebase
key: firebaseToken
path: .firebase_token.json
json: true
pre-commands:
- ["cd", "mobile/android/fenix"]
commands:
- [wget, {artifact-reference: '<signed-apk-debug-apk/public/build/target.arm64-v8a.apk>'}, '-O', app.apk]
- [wget, {artifact-reference: '<signed-apk-android-test/public/build/target.noarch.apk>'}, '-O', android-test.apk]
- [python3, ../../../taskcluster/scripts/tests/test-lab.py, arm-screenshots-tests, app.apk, --apk_test, android-test.apk]
treeherder:
platform: 'fenix-ui-test/opt'
symbol: fenix-debug(screenshots-arm)
worker:
env:
GOOGLE_PROJECT: moz-fenix
fenix-arm-beta:
attributes:
build-type: fenix-beta-firebase
shipping-product: fenix
description: Test Fenix
dependencies:
signed-apk-debug-apk: signing-apk-fenix-beta-firebase
signed-apk-android-test: signing-apk-fenix-android-test-beta
run-on-projects: [release]
run:
secrets:
- name: project/mobile/firefox-android/fenix/firebase
key: firebaseToken
path: .firebase_token.json
json: true
pre-commands:
- ["cd", "mobile/android/fenix"]
commands:
- [wget, {artifact-reference: '<signed-apk-debug-apk/public/build/target.arm64-v8a.apk>'}, '-O', app.apk]
- [wget, {artifact-reference: '<signed-apk-android-test/public/build/target.noarch.apk>'}, '-O', android-test.apk]
- [python3, ../../../taskcluster/scripts/tests/test-lab.py, arm-beta, app.apk, --apk_test, android-test.apk]
treeherder:
platform: 'fenix-ui-test/opt'
symbol: fenix-beta(ui-test-arm-beta)
worker:
env:
GOOGLE_PROJECT: moz-fenix
fenix-arm-nightly:
attributes:
build-type: fenix-nightly-firebase
shipping-product: fenix
description: Test Fenix
dependencies:
signed-apk-debug-apk: signing-apk-fenix-nightly-firebase
signed-apk-android-test: signing-apk-fenix-android-test-nightly
run-on-projects: [trunk]
run:
secrets:
- name: project/mobile/firefox-android/fenix/firebase
key: firebaseToken
path: .firebase_token.json
json: true
pre-commands:
- ["cd", "mobile/android/fenix"]
commands:
- [wget, {artifact-reference: '<signed-apk-debug-apk/public/build/target.arm64-v8a.apk>'}, '-O', app.apk]
- [wget, {artifact-reference: '<signed-apk-android-test/public/build/target.noarch.apk>'}, '-O', android-test.apk]
- [python3, ../../../taskcluster/scripts/tests/test-lab.py, arm-start-test, app.apk, --apk_test, android-test.apk]
treeherder:
platform: 'fenix-ui-test/opt'
symbol: fenix-nightly(ui-test-arm-nightly)
worker:
env:
GOOGLE_PROJECT: moz-fenix
fenix-legacy-arm:
attributes:
build-type: fenix-legacy
legacy: true
shipping-product: fenix
description: Run select UI tests on legacy Android devices and API levels
dependencies:
signed-apk-debug-apk: signing-apk-fenix-debug
signed-apk-android-test: signing-apk-fenix-android-test-debug
run:
secrets:
- name: project/mobile/firefox-android/fenix/firebase
key: firebaseToken
path: .firebase_token.json
json: true
pre-commands:
- ["cd", "mobile/android/fenix"]
commands:
- [wget, {artifact-reference: '<signed-apk-debug-apk/public/build/target.arm64-v8a.apk>'}, '-O', app.apk]
- [wget, {artifact-reference: '<signed-apk-android-test/public/build/target.noarch.apk>'}, '-O', android-test.apk]
- [python3, ../../../taskcluster/scripts/tests/test-lab.py, arm-legacy-api-tests, app.apk, --apk_test, android-test.apk]
treeherder:
platform: 'fenix-ui-test/opt'
symbol: fenix-debug(legacy-arm)
worker:
env:
GOOGLE_PROJECT: moz-fenix
fenix-robo-arm-debug:
attributes:
build-type: fenix-robo
shipping-product: fenix
description: Run Robo test on ARM devices
dependencies:
signed-apk-debug-apk: signing-apk-fenix-debug
run:
secrets:
- name: project/mobile/firefox-android/fenix/firebase
key: firebaseToken
path: .firebase_token.json
json: true
pre-commands:
- ["cd", "mobile/android/fenix"]
commands:
- [wget, {artifact-reference: '<signed-apk-debug-apk/public/build/target.arm64-v8a.apk>'}, '-O', app.apk]
- [python3, ../../../taskcluster/scripts/tests/test-lab.py, arm-robo-test, app.apk]
treeherder:
platform: 'fenix-ui-test/opt'
symbol: fenix-debug(robo-arm)
worker:
env:
GOOGLE_PROJECT: moz-fenix
|