summaryrefslogtreecommitdiffstats
path: root/taskcluster/ci/condprof/kind.yml
blob: 2e821b42793afac043c2dbbc6fb9214732b55a24 (plain)
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
# 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: taskgraph.loader.transform:loader

kind-dependencies:
    - toolchain
    - build

transforms:
    - taskgraph.transforms.job:transforms
    - taskgraph.transforms.task:transforms

job-defaults:
    run-on-projects:
        - mozilla-central
    treeherder:
        kind: other
        tier: 2
    run:
        using: run-task
        cwd: fetches/condprofile
        checkout: false
        tooltool-downloads: public
    scopes:
        - secrets:get:project/releng/gecko/build/level-{level}/conditioned-profiles
    worker:
        taskcluster-proxy: true
        max-run-time: 10800
jobs:
    windows2012-64-firefox:
        worker-type: b-win2012
        description: Creates or updates conditioned profiles on Win64
        treeherder:
            symbol: condprof(firefox)
            platform: windows2012-64/opt
        index:
            product: firefox
            job-name: condprof-win64
        dependencies:
            build: build-win64-shippable/opt
        fetches:
            build:
                - artifact: target.condprof.tests.tar.gz
                - artifact: target.zip
            toolchain:
                - win64-geckodriver
        run:
            command: >-
                python3.exe condprof/main.py
                --force-new
                --geckodriver ${MOZ_FETCHES_DIR}/geckodriver.exe
                --firefox ${MOZ_FETCHES_DIR}/firefox/firefox.exe
                --scenario settled
                ../../archive
        worker:
            artifacts:
                - name: public/condprof
                  path: archive
                  type: directory
    linux64-firefox:
        worker-type: b-linux
        description: Creates or updates conditioned profiles on Linux
        treeherder:
            symbol: condprof(firefox)
            platform: linux64/opt
        index:
            product: firefox
            job-name: condprof-linux64
        dependencies:
            build: build-linux64-shippable/opt
        fetches:
            build:
                - artifact: target.condprof.tests.tar.gz
                - artifact: target.tar.bz2
            toolchain:
                - linux64-geckodriver
        run:
            command: >-
                python3.7 virtualenv/virtualenv.py . &&
                bin/python3.7 condprof/main.py
                --force-new
                --geckodriver ${MOZ_FETCHES_DIR}/geckodriver
                --firefox ${MOZ_FETCHES_DIR}/firefox/firefox-bin
                --scenario settled
                ../../archive
        worker:
            docker-image: {in-tree: condprof}
            artifacts:
                - name: public/condprof
                  path: /builds/worker/archive
                  type: directory
    macosx64-firefox:
        worker-type: t-osx-1014
        description: Creates or updates conditioned profiles on macOS
        treeherder:
            symbol: condprof(firefox)
            platform: macosx1014-64/opt
        index:
            product: firefox
            job-name: condprof-macosx64
        dependencies:
            build: build-macosx64-shippable/opt
        fetches:
            build:
                - artifact: target.condprof.tests.tar.gz
                - artifact: target.dmg
                  extract: false
            toolchain:
                - macosx64-geckodriver
        run:
            command: >-
                python3 -m venv . &&
                bin/python3 condprof/main.py
                --force-new
                --geckodriver ${MOZ_FETCHES_DIR}/geckodriver
                --firefox ${MOZ_FETCHES_DIR}/target.dmg
                --scenario settled
                ../../archive
        worker:
            artifacts:
                - name: public/condprof
                  path: archive
                  type: directory
    android-hw-g5-7-0-arm7-api-16-geckoview:
        worker-type: t-bitbar-gw-perf-g5
        description: Creates or update conditioned profiles on GeckoView+G5
        treeherder:
            symbol: condprof(geckoview)
            platform: android-hw-g5-7-0-arm7-api-16/opt
        index:
            product: firefox
            job-name: condprof-g5-geckoview_example
        dependencies:
            build: build-android-api-16-shippable/opt
        fetches:
            build:
                - artifact: en-US/target.condprof.tests.tar.gz
                - artifact: geckoview_example.apk
                  extract: false
            toolchain:
                - linux64-geckodriver
        run:
            run-as-root: true
            command: >-
                adb install -r $MOZ_FETCHES_DIR/geckoview_example.apk &&
                python3 virtualenv/virtualenv.py . &&
                bin/python3 condprof/main.py
                --force-new
                --geckodriver ${MOZ_FETCHES_DIR}/geckodriver
                --device-name g5
                --firefox org.mozilla.geckoview_example
                --scenario settled
                ../../archive
        worker:
            artifacts:
                - name: public/condprof
                  path: archive
                  type: directory
    android-hw-g5-7-0-arm7-api-16-fenix:
        worker-type: t-bitbar-gw-perf-g5
        description: Creates or update conditioned profiles on Fenix+G5
        treeherder:
            symbol: condprof(fenix)
            platform: android-hw-g5-7-0-arm7-api-16/opt
        index:
            product: firefox
            job-name: condprof-g5-fenix
        dependencies:
            build: build-linux64-shippable/opt
        fetches:
            build:
                - artifact: target.condprof.tests.tar.gz
            toolchain:
                - linux64-geckodriver
        run:
            run-as-root: true
            command: >-
                curl -L -o target.apk https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/mobile.v2.fenix.nightly.latest.armeabi-v7a/artifacts/public/build/armeabi-v7a/target.apk &&
                adb install -r target.apk &&
                rm -rf target.apk &&
                python3 virtualenv/virtualenv.py . &&
                bin/python3 condprof/main.py
                --force-new
                --geckodriver ${MOZ_FETCHES_DIR}/geckodriver
                --device-name g5
                --firefox org.mozilla.fenix
                --scenario settled
                ../../archive
        worker:
            artifacts:
                - name: public/condprof
                  path: archive
                  type: directory
    android-hw-g5-7-0-arm7-api-16-fennec68:
        worker-type: t-bitbar-gw-perf-g5
        description: Creates or update conditioned profiles on Fennec68+G5
        treeherder:
            symbol: condprof(fennec68)
            platform: android-hw-g5-7-0-arm7-api-16/opt
        index:
            product: firefox
            job-name: condprof-g5-firefox
        dependencies:
            build: build-linux64-shippable/opt
        fetches:
            build:
                - artifact: target.condprof.tests.tar.gz
            toolchain:
                - linux64-geckodriver
        run:
            run-as-root: true
            command: >-
                curl -L -o target.apk https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-esr68.signed-nightly.nightly.latest.mobile.android-api-16-release-opt/artifacts/public/build/target.apk &&
                adb install -r target.apk &&
                python3 virtualenv/virtualenv.py . &&
                bin/python3 condprof/main.py
                --force-new
                --geckodriver ${MOZ_FETCHES_DIR}/geckodriver
                --device-name g5
                --firefox org.mozilla.firefox
                --scenario settled
                ../../archive
        worker:
            artifacts:
                - name: public/condprof
                  path: archive
                  type: directory
    android-hw-p2-8-0-aarch64-fenix:
        worker-type: t-bitbar-gw-perf-p2
        description: Creates or update conditioned profiles on Fenix+P2
        treeherder:
            symbol: condprof(fenix)
            platform: android-hw-p2-8-0-android-aarch64/opt
        index:
            product: firefox
            job-name: condprof-p2_aarch64-fenix
        dependencies:
            build: build-android-api-16-shippable/opt
        fetches:
            build:
                - artifact: en-US/target.condprof.tests.tar.gz
            toolchain:
                - linux64-geckodriver
        run:
            run-as-root: true
            command: >-
                curl -L -o target.apk https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/mobile.v2.fenix.nightly.latest.arm64-v8a/artifacts/public/build/arm64-v8a/target.apk &&
                adb install -r target.apk &&
                rm -rf target.apk &&
                python3 virtualenv/virtualenv.py . &&
                bin/python3 condprof/main.py
                --force-new
                --geckodriver ${MOZ_FETCHES_DIR}/geckodriver
                --device-name p2_aarch64
                --firefox org.mozilla.fenix
                --scenario settled
                ../../archive
        worker:
            artifacts:
                - name: public/condprof
                  path: archive
                  type: directory
    android-hw-p2-8-0-android-aarch64-geckoview:
        worker-type: t-bitbar-gw-perf-p2
        description: Creates or update conditioned profiles on GeckoView+P2
        treeherder:
            symbol: condprof(geckoview)
            platform: android-hw-p2-8-0-android-aarch64/opt
        index:
            product: firefox
            job-name: condprof-p2_aarch64-geckoview_example
        dependencies:
            build: build-android-api-16-shippable/opt
        fetches:
            build:
                - artifact: en-US/target.condprof.tests.tar.gz
                - artifact: geckoview_example.apk
                  extract: false
            toolchain:
                - linux64-geckodriver
        run:
            run-as-root: true
            command: >-
                adb install -r $MOZ_FETCHES_DIR/geckoview_example.apk &&
                python3 virtualenv/virtualenv.py . &&
                bin/python3 condprof/main.py
                --force-new
                --geckodriver ${MOZ_FETCHES_DIR}/geckodriver
                --device-name p2_aarch64
                --firefox org.mozilla.geckoview_example
                --scenario settled
                ../../archive
        worker:
            artifacts:
                - name: public/condprof
                  path: archive
                  type: directory
    android-hw-p2-8-0-aarch64-fennec68:
        worker-type: t-bitbar-gw-perf-p2
        description: Creates or update conditioned profiles on Fennec68+P2
        treeherder:
            symbol: condprof(fennec68)
            platform: android-hw-p2-8-0-android-aarch64/opt
        index:
            product: firefox
            job-name: condprof-p2_aarch64-firefox
        dependencies:
            build: build-linux64-shippable/opt
        fetches:
            build:
                - artifact: target.condprof.tests.tar.gz
            toolchain:
                - linux64-geckodriver
        run:
            run-as-root: true
            command: >-
                curl -L -o target.apk https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-esr68.signed-nightly.nightly.latest.mobile.android-aarch64-release-opt/artifacts/public/build/target.apk &&
                adb install -r target.apk &&
                rm -rf target.apk &&
                python3 virtualenv/virtualenv.py . &&
                bin/python3 condprof/main.py
                --force-new
                --geckodriver ${MOZ_FETCHES_DIR}/geckodriver
                --device-name p2_aarch64
                --firefox org.mozilla.firefox
                --scenario settled
                ../../archive
        worker:
            artifacts:
                - name: public/condprof
                  path: archive
                  type: directory