-
Notifications
You must be signed in to change notification settings - Fork 186
/
config.yml
executable file
·760 lines (730 loc) · 27.1 KB
/
config.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
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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
version: 2.1
orbs:
gh: circleci/github-cli@2.2
gcp-cli: circleci/gcp-cli@3.1.1
android: circleci/android@2.5.0
commands:
check_file_paths:
description: "Check file paths"
parameters:
paths:
type: string
default: ""
steps:
- run:
name: Check file paths
command: |
# Check if CIRCLE_BRANCH is "main" and skip the check
if [ "$CIRCLE_BRANCH" == "main" ]; then
echo "On main branch. Skipping path checks."
exit 0
fi
diff_output=$(git diff --name-only main HEAD)
echo "Changed files:"
echo "$diff_output"
if echo "$diff_output" | grep -E '<< parameters.paths >>|^[^/]+$|^.circleci/|application-services/'
then
echo "Changes detected in << parameters.paths >> or .circleci or root directory. Running tests and linting."
else
echo "No changes in << parameters.paths >> or .circleci or root directory. Skipping tests and linting."
circleci-agent step halt
fi
docker_login:
description: "Login to Docker"
parameters:
username:
type: string
password:
type: string
steps:
- run: |
echo "<< parameters.password >>" | docker login --username << parameters.username >> --password-stdin
jobs:
check_experimenter_x86_64:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: large
working_directory: ~/experimenter
steps:
- checkout
- check_file_paths:
paths: "experimenter/"
- run:
name: Run tests and linting
command: |
cp .env.sample .env
make check
check_experimenter_aarch64:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: arm.large
working_directory: ~/experimenter
steps:
- checkout
- check_file_paths:
paths: "experimenter/"
- run:
name: Run tests and linting
command: |
cp .env.sample .env
make check
check_cirrus_x86_64:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: large
working_directory: ~/cirrus
steps:
- checkout
- check_file_paths:
paths: "cirrus/"
- run:
name: Run Cirrus tests and linting
command: |
make cirrus_check
check_cirrus_aarch64:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: arm.large
working_directory: ~/cirrus
steps:
- checkout
- check_file_paths:
paths: "cirrus/"
- run:
name: Run Cirrus tests and linting
command: |
make cirrus_check
check_schemas:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
steps:
- checkout
- check_file_paths:
paths: "schemas/"
- run:
name: Run Schemas tests and linting
command: |
make schemas_check
integration_nimbus_desktop_release_targeting:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: large
working_directory: ~/experimenter
environment:
FIREFOX_VERSION: nimbus-firefox-release
PYTEST_ARGS: -k FIREFOX_DESKTOP -m run_targeting -n 4 --reruns 1
MOZ_REMOTE_SETTINGS_DEVTOOLS: 1 # allows us to override and set the remote settings URL
steps:
- checkout
- check_file_paths:
paths: "experimenter/experimenter/targeting|experimenter/experimenter/experiments|experimenter/tests"
- run:
name: Run integration tests
command: |
cp .env.integration-tests .env
make refresh SKIP_DUMMY=1 PYTEST_SENTRY_DSN=$PYTEST_SENTRY_DSN CIRCLECI=$CIRCLECI up_prod_detached integration_test_nimbus PYTEST_ARGS="$PYTEST_ARGS"
- store_artifacts:
path: ~/experimenter/experimenter/tests/integration/test-reports/report.htm
integration_nimbus_desktop_beta_targeting:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: large
working_directory: ~/experimenter
environment:
FIREFOX_VERSION: nimbus-firefox-beta
PYTEST_ARGS: -k FIREFOX_DESKTOP -m run_targeting -n 4 --reruns 1
MOZ_REMOTE_SETTINGS_DEVTOOLS: 1 # allows us to override and set the remote settings URL
steps:
- checkout
- check_file_paths:
paths: "experimenter/experimenter/targeting|experimenter/experimenter/experiments|experimenter/tests"
- run:
name: Run integration tests
command: |
cp .env.integration-tests .env
make refresh SKIP_DUMMY=1 PYTEST_SENTRY_DSN=$PYTEST_SENTRY_DSN CIRCLECI=$CIRCLECI up_prod_detached integration_test_nimbus PYTEST_ARGS="$PYTEST_ARGS"
- store_artifacts:
path: ~/experimenter/experimenter/tests/integration/test-reports/report.htm
integration_nimbus_desktop_nightly_targeting:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: large
working_directory: ~/experimenter
environment:
FIREFOX_VERSION: nimbus-firefox-release
PYTEST_ARGS: -k FIREFOX_DESKTOP -m run_targeting -n 2 --reruns 1
UPDATE_FIREFOX_VERSION: true
steps:
- checkout
- check_file_paths:
paths: "experimenter/experimenter/targeting|experimenter/experimenter/experiments|experimenter/tests"
- run:
name: Run integration tests
command: |
cp .env.integration-tests .env
make refresh SKIP_DUMMY=1 PYTEST_SENTRY_DSN=$PYTEST_SENTRY_DSN CIRCLECI=$CIRCLECI up_prod_detached integration_test_nimbus PYTEST_ARGS="$PYTEST_ARGS"
- store_artifacts:
path: ~/experimenter/experimenter/tests/integration/test-reports/report.htm
integration_nimbus_remote_settings_launch:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: large
working_directory: ~/experimenter
environment:
FIREFOX_VERSION: nimbus-firefox-release
PYTEST_ARGS: -m remote_settings_launch --reruns 1
steps:
- checkout
- check_file_paths:
paths: "experimenter/"
- run:
name: Run integration tests
command: |
cp .env.integration-tests .env
make refresh SKIP_DUMMY=1 PYTEST_SENTRY_DSN=$PYTEST_SENTRY_DSN CIRCLECI=$CIRCLECI up_prod_detached integration_test_nimbus PYTEST_ARGS="$PYTEST_ARGS"
- store_artifacts:
path: ~/experimenter/experimenter/tests/integration/test-reports/report.htm
integration_nimbus_remote_settings_all:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: medium
working_directory: ~/experimenter
environment:
FIREFOX_VERSION: nimbus-firefox-release
PYTEST_ARGS: -k FIREFOX_DESKTOP -m remote_settings_all --reruns 1
steps:
- checkout
- check_file_paths:
paths: "experimenter/"
- run:
name: Run integration tests
command: |
cp .env.integration-tests .env
make refresh SKIP_DUMMY=1 PYTEST_SENTRY_DSN=$PYTEST_SENTRY_DSN CIRCLECI=$CIRCLECI up_prod_detached integration_test_nimbus PYTEST_ARGS="$PYTEST_ARGS"
- store_artifacts:
path: ~/experimenter/experimenter/tests/integration/test-reports/report.htm
integration_nimbus_desktop_enrollment:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: xlarge
working_directory: ~/experimenter
environment:
FIREFOX_VERSION: nimbus-firefox-release
PYTEST_ARGS: -k FIREFOX_DESKTOP -m desktop_enrollment --reruns 1
UPDATE_FIREFOX_VERSION: true
steps:
- checkout
- check_file_paths:
paths: "experimenter/"
- run:
name: Run integration tests
command: |
cp .env.integration-tests .env
make refresh SKIP_DUMMY=1 PYTEST_SENTRY_DSN=$PYTEST_SENTRY_DSN CIRCLECI=$CIRCLECI up_prod_detached integration_test_nimbus PYTEST_ARGS="$PYTEST_ARGS"
no_output_timeout: 30m
- store_artifacts:
path: ~/experimenter/experimenter/tests/integration/test-reports/report.htm
integration_nimbus_desktop_ui:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: large
working_directory: ~/experimenter
environment:
FIREFOX_VERSION: nimbus-firefox-release
PYTEST_ARGS: -m nimbus_ui -n 2 --reruns 1
steps:
- checkout
- check_file_paths:
paths: "experimenter/"
- run:
name: Run integration tests
command: |
cp .env.integration-tests .env
make refresh SKIP_DUMMY=1 PYTEST_SENTRY_DSN=$PYTEST_SENTRY_DSN CIRCLECI=$CIRCLECI up_prod_detached integration_test_nimbus PYTEST_ARGS="$PYTEST_ARGS"
- store_artifacts:
path: ~/experimenter/experimenter/tests/integration/test-reports/report.htm
integration_nimbus_sdk_targeting:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: medium
working_directory: ~/experimenter
steps:
- checkout
- check_file_paths:
paths: "experimenter/experimenter/targeting|experimenter/experimenter/experiments|experimenter/tests"
- run:
name: Run rust integration tests
command: |
cp .env.integration-tests .env
make refresh SKIP_DUMMY=1 PYTEST_SENTRY_DSN=$PYTEST_SENTRY_DSN CIRCLECI=$CIRCLECI up_prod_detached integration_test_nimbus_rust
- store_artifacts:
path: ~/experimenter/experimenter/tests/integration/test-reports/report.htm
integration_nimbus_cirrus:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: large
working_directory: ~/experimenter
environment:
FIREFOX_VERSION: nimbus-firefox-release
PYTEST_ARGS: -k DEMO_APP -m cirrus_enrollment --reruns 1
steps:
- checkout
- check_file_paths:
paths: "experimenter/"
- run:
name: Run integration tests
command: |
cp .env.integration-tests .env
export CIRRUS=1
make refresh SKIP_DUMMY=1 PYTEST_SENTRY_DSN=$PYTEST_SENTRY_DSN CIRCLECI=$CIRCLECI up_prod_detached integration_test_nimbus PYTEST_ARGS="$PYTEST_ARGS"
- store_artifacts:
path: ~/experimenter/experimenter/tests/integration/test-reports/report.htm
integration_legacy:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
resource_class: large
working_directory: ~/experimenter
environment:
FIREFOX_VERSION: nimbus-firefox-release
steps:
- checkout
- check_file_paths:
paths: "experimenter/"
- run:
name: Run integration tests
command: |
cp .env.sample .env
make refresh up_prod_detached integration_test_legacy
- store_artifacts:
path: ~/experimenter/experimenter/tests/integration/test-reports/report.htm
integration_test_android_fenix:
executor:
name: android/android-machine
resource-class: xlarge
tag: default
environment:
PYTEST_ARGS: --reruns 1
steps:
- checkout
- android/accept-licenses
- android/create-avd:
avd-name: myavd
install: true
system-image: system-images;android-34;google_apis;x86_64
- android/start-emulator:
avd-name: myavd
post-emulator-launch-assemble-command: adb devices
- run:
name: Install APKs
command: |
docker run -d --name fenix-files mozilla/experimenter:fenix-apk-store
docker cp fenix-files:/usr/src/app/files /home/circleci/project
adb install /home/circleci/project/files/app-fenix-x86_64-debug.apk
adb install /home/circleci/project/files/app-fenix-debug-androidTest.apk
- run:
name: Download test files and run
command: |
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/mozilla/application-services/main/install-nimbus-cli.sh | bash
pip install poetry
make integration_test_nimbus_fenix PYTEST_ARGS="$PYTEST_ARGS"
- android/save-gradle-cache:
cache-prefix: v1a
- store_artifacts:
path: /home/circleci/project/test-reports/report.htm
deploy_experimenter:
working_directory: ~/experimenter
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
steps:
- checkout
- docker_login:
username: $DOCKER_USER
password: $DOCKER_PASS
- run:
name: Deploy to Dockerhub
command: |
./scripts/store_git_info.sh
make build_prod
docker tag experimenter:deploy ${DOCKERHUB_REPO}:latest
docker push ${DOCKERHUB_REPO}:latest
GIT_SHA=$(git rev-parse --short HEAD)
docker tag experimenter:deploy ${DOCKERHUB_REPO}:${GIT_SHA}
docker push ${DOCKERHUB_REPO}:${GIT_SHA}
- gcp-cli/setup
- run:
name: Deploy to Google Container Registry
command: |
echo $GCLOUD_SERVICE_KEY | gcloud auth activate-service-account --key-file=-
gcloud --quiet config set project ${GOOGLE_PROJECT_ID}
gcloud --quiet config set compute/zone ${GOOGLE_COMPUTE_ZONE}
gcloud auth configure-docker
DOCKER_IMAGE="gcr.io/${GOOGLE_PROJECT_ID}/experimenter"
docker tag experimenter:deploy ${DOCKER_IMAGE}:latest
docker push "${DOCKER_IMAGE}:latest"
GIT_SHA=$(git rev-parse --short HEAD)
docker tag experimenter:deploy ${DOCKERHUB_REPO}:${GIT_SHA}
docker push ${DOCKERHUB_REPO}:${GIT_SHA}
deploy_cirrus:
working_directory: ~/cirrus
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
steps:
- checkout
- docker_login:
username: $DOCKERHUB_CIRRUS_USER
password: $DOCKERHUB_CIRRUS_PASS
- run:
name: Deploy to latest
command: |
make cirrus_build
docker tag cirrus:deploy ${DOCKERHUB_CIRRUS_REPO}:latest
docker push ${DOCKERHUB_CIRRUS_REPO}:latest
deploy_schemas:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
steps:
- checkout
- run:
name: Check for package version change in last commit before proceeding.
command: |
if git diff main HEAD~1 schemas/pyproject.toml | grep 'version'
then
echo "Found changes to package version dir, proceeding with deployment."
else
echo "No changes in package version. Skipping mozilla-nimbus-schemas deployment."
circleci-agent step halt
fi
- run:
name: Create the distribution files
command: |
make schemas_dist
- run:
name: Upload to PyPI
command: |
# Relies on the TWINE_USERNAME and TWINE_PASSWORD environment variables configured at:
# https://app.circleci.com/settings/project/github/mozilla/experimenter/environment-variables
# For more on twine, see:
# https://twine.readthedocs.io/en/latest/
make schemas_deploy_pypi SCHEMAS_ENV="-e TWINE_USERNAME=${TWINE_USERNAME} -e TWINE_PASSWORD=${TWINE_PASSWORD}"
- run:
name: NPM Authentication
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
- run:
name: Upload to NPM
command: |
# Relies on the NPM_TOKEN environment variable configured at:
# https://app.circleci.com/settings/project/github/mozilla/experimenter/environment-variables
make schemas_deploy_npm SCHEMAS_ENV="-e NPM_TOKEN=${NPM_TOKEN}"
update_external_configs:
working_directory: ~/experimenter
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
steps:
- add_ssh_keys:
fingerprints:
- "32:8e:72:0b:9a:a1:1c:b8:7e:90:e1:53:a3:73:68:47" # for git pushes from circleci, since relies on ssh
- checkout
- gh/setup:
token: GH_EXTERNAL_CONFIG_TOKEN # for gh commands from circleci, since relies on user token, since por que no los dos?
- run:
name: Setup Git
command: |
git config --local user.name "dataops-ci-bot"
git config --local user.email "dataops+ci-bot@mozilla.com"
gh config set git_protocol https
- run:
name: Check for External Config Update
command: |
git checkout main
git pull origin main
cp .env.sample .env
touch ./experimenter/fetch-summary.txt
env GITHUB_BEARER_TOKEN="${GH_EXTERNAL_CONFIG_TOKEN}" make fetch_external_resources FETCH_ARGS="--summary fetch-summary.txt"
mv ./experimenter/fetch-summary.txt /tmp/pr-body.txt
echo -e "\nCircle CI Task: ${CIRCLE_BUILD_URL}" >> /tmp/pr-body.txt
if python3 ./experimenter/bin/should-pr.py
then
git checkout -B external-config
git add .
git commit -m 'chore(nimbus): Update External Configs'
if (($((git diff external-config origin/external-config || git diff HEAD~1) | wc -c) > 0))
then
git push origin external-config -f
gh pr create -t "chore(nimbus): Update External Configs" -F /tmp/pr-body.txt --base main --head external-config --repo mozilla/experimenter || \
gh pr edit external-config -F /tmp/pr-body.txt
else
echo "Changes already committed, skipping"
fi
else
echo "No config changes, skipping"
fi
update_application_services:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
steps:
- add_ssh_keys:
fingerprints:
- "32:8e:72:0b:9a:a1:1c:b8:7e:90:e1:53:a3:73:68:47" # for git pushes from circleci, since relies on ssh
- checkout
- gh/setup:
token: GH_TOKEN # for gh commands from circleci, since relies on user token, since por que no los dos?
- run:
name: Setup Git
command: |
git config --local user.name "dataops-ci-bot"
git config --local user.email "dataops+ci-bot@mozilla.com"
gh config set git_protocol https
- run:
name: Check for Application Services update
command: |
git checkout main
git pull origin main
make update_application_services
if (($(git status --porcelain | wc -c) > 0)); then
git checkout -B update-application-services
git add .
git commit -m "chore(nimbus): Update application-services"
if (($((git diff update-application-services origin/update-application-services || git diff HEAD~1) | wc -c) > 0)); then
git push origin update-application-services -f
gh pr create -t "chore(nimbus): Update application-services" -b "" --base main --head update-application-services --repo mozilla/experimenter || echo "PR already exists, skipping"
else
echo "Changes already committed, skipping"
fi
else
echo "No config changes, skipping"
fi
update_fenix_apks:
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
working_directory: ~/experimenter
steps:
- add_ssh_keys:
fingerprints:
- "32:8e:72:0b:9a:a1:1c:b8:7e:90:e1:53:a3:73:68:47" # for git pushes from circleci, since relies on ssh
- checkout
- gh/setup:
token: GH_TOKEN # for gh commands from circleci, since relies on user token, since por que no los dos?
- run:
name: Setup Git
command: |
git config --local user.name "dataops-ci-bot"
git config --local user.email "dataops+ci-bot@mozilla.com"
gh config set git_protocol https
- run:
name: Check for Fenix Update
command: |
git checkout main
git pull origin main
cd experimenter/tests/integration/nimbus/android
CURRENT_FENIX_BUILD_ID=$(cat fenix-build.env | grep -oP '(?<=FIREFOX_FENIX_TASK_ID=).*')
./update-fenix-apks.sh
LATEST_FENIX_BUILD_ID=$(cat fenix-build.env | grep -oP '(?<=FIREFOX_FENIX_TASK_ID=).*')
if (($(git status --porcelain | wc -c) > 0)); then
git checkout -B update-fenix-apks
git add .
git commit -m "chore(nimbus): Update fenix apks for testing"
if [[ "${CURRENT_FENIX_BUILD_ID}" != "${LATEST_FENIX_BUILD_ID}" ]]; then
git push origin update-fenix-apks
gh pr create -t "chore(nimbus): Update fenix apks for testing" -b "" --base main --head update-fenix-apks --repo mozilla/experimenter || echo "PR already exists, skipping"
fi
else
echo "No config changes, skipping"
fi
build_firefox_versions:
working_directory: ~/experimenter
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
steps:
- checkout
- docker_login:
username: $DOCKER_USER
password: $DOCKER_PASS
- run:
name: Build and upload images
command: |
# Clone last working version to ensure compatibility with aarch64 apple silicon machines
git clone --branch selenium-grid-0.27.0 --depth 1 git@github.com:SeleniumHQ/docker-selenium.git
cd docker-selenium
BUILD_ARGS="--build-arg FIREFOX_VERSION=latest" VERSION="firefox" BUILD_DATE="release" make standalone_firefox
BUILD_ARGS="--build-arg FIREFOX_VERSION=devedition-latest" VERSION="firefox" BUILD_DATE="beta" make standalone_firefox
docker tag selenium/standalone-firefox:firefox-release ${DOCKERHUB_REPO}:nimbus-firefox-release
docker tag selenium/standalone-firefox:firefox-beta ${DOCKERHUB_REPO}:nimbus-firefox-beta
docker push ${DOCKERHUB_REPO}:nimbus-firefox-beta
docker push ${DOCKERHUB_REPO}:nimbus-firefox-release
build_firefox_fenix:
working_directory: ~/experimenter
machine:
image: ubuntu-2004:2023.10.1
docker_layer_caching: true
steps:
- checkout
- docker_login:
username: $DOCKER_USER
password: $DOCKER_PASS
- run:
name: Build and upload images
command: |
cd experimenter/tests/integration/nimbus/android
docker run --name fenix-builder ${DOCKERHUB_REPO}:experimenter-moz-central bash build_android.sh
docker commit fenix-builder moz-central-builder
docker tag moz-central-builder ${DOCKERHUB_REPO}:experimenter-moz-central
docker push ${DOCKERHUB_REPO}:experimenter-moz-central
docker cp fenix-builder:mozilla-central/mobile/android/fenix/app-fenix-debug-androidTest.apk ./
docker cp fenix-builder:mozilla-central/mobile/android/fenix/app-fenix-x86_64-debug.apk ./
docker build -f fenix-apk-store.Dockerfile -t ${DOCKERHUB_REPO}:fenix-apk-store .
docker push ${DOCKERHUB_REPO}:fenix-apk-store
no_output_timeout: 1h
workflows:
build_firefox:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- main
jobs:
- build_firefox_versions
update_configs:
triggers:
- schedule:
cron: "0 * * * *"
filters:
branches:
only:
- main
jobs:
- update_external_configs
- update_application_services
- update_fenix_apks
build:
jobs:
- check_experimenter_x86_64:
name: Check Experimenter x86_64
- check_experimenter_aarch64:
name: Check Experimenter aarch64
- check_cirrus_x86_64:
name: Check Cirrus x86_64
- check_cirrus_aarch64:
name: Check Cirrus aarch64
- check_schemas:
name: Check Schemas
filters:
branches:
ignore:
- main
- integration_nimbus_desktop_release_targeting:
name: Test Desktop Targeting (Release Firefox)
filters:
branches:
ignore:
- main
- integration_nimbus_desktop_beta_targeting:
name: Test Desktop Targeting (Beta Firefox)
filters:
branches:
ignore:
- main
- integration_nimbus_desktop_nightly_targeting:
name: Test Desktop Targeting (Nightly Firefox)
filters:
branches:
ignore:
- main
- integration_nimbus_desktop_ui:
name: Test Desktop Nimbus UI (Release Firefox)
filters:
branches:
ignore:
- main
- integration_nimbus_remote_settings_launch:
name: Test Remote Settings Launch (All Applications)
filters:
branches:
ignore:
- main
- integration_nimbus_remote_settings_all:
name: Test Remote Settings All Workflows (Release Firefox Desktop)
filters:
branches:
ignore:
- main
- integration_nimbus_desktop_enrollment:
name: Test Desktop Enrollment (Release Firefox)
filters:
branches:
ignore:
- main
- integration_nimbus_sdk_targeting:
name: Test SDK Targeting (Release Firefox)
filters:
branches:
ignore:
- main
- integration_nimbus_cirrus:
name: Test Demo app with Cirrus
filters:
branches:
ignore:
- main
- integration_legacy:
name: Test Legacy Desktop (Release Firefox)
filters:
branches:
ignore:
- main
- integration_test_android_fenix:
name: Test Firefox for Android (Fenix)
filters:
branches:
ignore:
- main
- deploy_experimenter:
name: Deploy Experimenter
filters:
branches:
only: main
requires:
- Check Experimenter x86_64
- Check Experimenter aarch64
- deploy_cirrus:
name: Deploy Cirrus
filters:
branches:
only: main
requires:
- Check Cirrus x86_64
- Check Cirrus aarch64
- deploy_schemas:
name: Deploy Schemas
filters:
branches:
only: main
- build_firefox_fenix:
name: Build Fenix APKs
filters:
branches:
only:
- update-fenix-apks