-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
definitions.yml
9938 lines (9088 loc) · 288 KB
/
definitions.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
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
####################################################
# This file contains static Evergreen config definitions used by other YAML files.
# It is not run directly by any Evergreen project.
#
# Any global task, function, or taskgroup definition can be added here. Note that if
# the definition is added to another file, YAML anchors from this file can't be used.
# Files that match an ignore-list pattern will not trigger a build, if they're the only modified
# files in the patch.
ignore:
- ".*"
- "!.clang-format"
- "!.eslintrc.yml"
- "*.md"
- "*.rst"
- "*.txt"
- "/distsrc/**"
- "/docs/**"
- "/etc/*.yml"
- "!/etc/evergreen.yml"
- "README"
#######################################
# Variable #
#######################################
## Some variables for convenience:
variables:
# Used when the tests it runs depend only on mongod, mongos, the jstestshell and the tools.
- &task_template
name: template
depends_on:
- name: archive_dist_test_debug
commands:
- func: "do setup"
- func: "run tests"
vars:
resmoke_args: --help
resmoke_jobs_max: 0 # No cap on number of jobs.
- &gen_task_template
name: gen_task_template
depends_on:
- name: version_gen
variant: generate-tasks-for-version
# This is added because of EVG-18211.
# Without this we are adding extra dependencies on evergreen and it is causing strain
omit_generated_tasks: true
- name: archive_dist_test_debug
commands:
- func: "generate resmoke tasks"
vars:
resmoke_args: --help
- &gen_burn_in_task_template
name: gen_burn_in_task_template
depends_on:
- name: version_burn_in_gen
variant: generate-tasks-for-version
# This is added because of EVG-18211.
# Without this we are adding extra dependencies on evergreen and it is causing strain
omit_generated_tasks: true
- name: archive_dist_test_debug
commands:
- func: "generate resmoke tasks"
vars:
resmoke_args: --help
- &benchmark_template
name: benchmark_template
depends_on:
- name: compile_upload_benchmarks
commands:
- func: "do benchmark setup"
- func: "run tests"
vars:
resmoke_args: --help
resmoke_jobs_max: 1
- func: "send benchmark results"
# - func: "analyze benchmark results"
vars:
suite: benchmark_suite
- &jepsen_config_vars
jepsen_key_time_limit: --key-time-limit 15
jepsen_protocol_version: --protocol-version 1
jepsen_read_concern: ""
jepsen_read_with_find_and_modify: ""
jepsen_storage_engine: ""
jepsen_test_name: ""
# Empirically, we've had greater success in reproducing the issues found in MongoDB versions
# 3.4.0-rc3 and 3.4.0-rc4 when running Jepsen with at least --time-limit=600.
jepsen_time_limit: --time-limit 1200
jepsen_write_concern: ""
mongod_conf: --mongod-conf mongod_verbose.conf
# Template for running Jepsen tests
- &run_jepsen_template
name: run_jepsen_template
depends_on:
- name: archive_dist_test_debug
commands:
- func: "do setup"
- func: "do jepsen setup"
- func: "run jepsen test"
vars:
<<: *jepsen_config_vars
- &jstestfuzz_config_vars
is_jstestfuzz: true
num_files: 15
num_tasks: 5 # Upperbound by `max_sub_suites` specified through the variant with each task still running `num_files` files.
# It is error prone to require each fuzzer-related Evergreen task to need to override the
# resmoke_args variable. However, the resmoke_args variable must be defined as a string in the
# task generation configuration to satisfy mongodb/mongo-task-generator. We therefore specify an
# empty string for the variable to reflect there are no additional arguments provided to resmoke
# by default for the fuzzer-related tasks.
resmoke_args: ""
resmoke_jobs_max: 1
should_shuffle: false
continue_on_failure: false
# Terminate the function when there has been no output to stdout for 30 minutes. E.g. when something is stuck in an infinite loop.
# resmoke.py writes the test output to logkeeper and only writes to stdout when starting the next test.
# resmoke.py not producing output on stdout means that the test is still running and presumably not going to finish.
# Note that timeout_secs is different from exec_timeout_secs, which applies to a task and times out regardless of whether output has been written to stdout.
timeout_secs: 1800
# Used for tests that invoke 'resmoke.py --suites=jstestfuzz*'.
- &jstestfuzz_template
name: jstestfuzz_template
exec_timeout_secs: 14400 # Time out the task if it runs for more than 4 hours.
depends_on:
- name: version_gen
variant: generate-tasks-for-version
# This is added because of EVG-18211.
# Without this we are adding extra dependencies on evergreen and it is causing strain
omit_generated_tasks: true
- archive_dist_test_debug
commands:
- func: "generate resmoke tasks"
# Templates used by powercycle
- &powercycle_remote_credentials
private_key_file: src/powercycle.pem
private_key_remote: ${__project_aws_ssh_key_value}
- &compile_bazel_task_group_template
name: compile_bazel_task_group_template
max_hosts: -1
tasks: []
setup_group_can_fail_task: true
setup_group:
- command: manifest.load
- func: "git get project and add git tag"
- func: "set task expansion macros"
- func: "f_expansions_write"
- func: "set up venv"
- func: "upload pip requirements"
- func: "configure evergreen api credentials"
- func: "get buildnumber"
- func: "f_expansions_write"
- func: "set up credentials"
- func: "f_expansions_write"
- func: "get engflow creds"
- &compile_task_group_template
name: compile_task_group_template
max_hosts: 1
tasks: []
setup_task:
- func: "f_expansions_write"
- func: "apply compile expansions"
- func: "set task expansion macros"
- func: "f_expansions_write"
teardown_task:
- func: "f_expansions_write"
- func: "attach scons logs"
- func: "send scons cedar report"
- func: "attach report"
- func: "attach artifacts"
- func: "attach local resmoke invocation"
- func: "attach multiversion download links"
- func: "kill processes"
- func: "save mongo coredumps"
- func: "generate hang analyzer tasks"
- func: "save failed unittests"
- func: "save UndoDB recordings"
- func: "save unstripped dbtest"
- func: "save hang analyzer debugger files"
- func: "save disk statistics"
- func: "save system resource information"
- func: "save libfuzzertest corpora"
- func: "remove files"
vars:
files: >-
src/resmoke_error_code
src/build/scons/config.log
src/*.gcda.gcov
src/gcov-intermediate-files.tgz
src/*.core src/*.mdmp src/*.core.gz src/*.mdmp.gz
mongo-coredumps.json
src/dist-unittests/bin/*
src/dist-unittests/lib/*
mongo-unittests.tgz
src/debugger*.*
src/mongo-hanganalyzer.tgz
diskstats.tgz
system-resource-info.tgz
${report_file|src/report.json}
${archive_file|src/archive.json}
setup_group_can_fail_task: true
setup_group:
- command: manifest.load
- func: "git get project and add git tag"
- func: "set task expansion macros"
- func: "f_expansions_write"
- func: "kill processes"
- func: "cleanup environment"
# The python virtual environment is installed in ${workdir}, which is created in
# "set up venv".
- func: "set up venv"
- func: "upload pip requirements"
- func: "f_expansions_write"
- func: "configure evergreen api credentials"
- func: "get buildnumber"
- func: "f_expansions_write"
- func: "set up credentials"
- func: "use WiredTiger develop" # noop if ${use_wt_develop} is not "true"
- func: "set up win mount script"
- func: "generate compile expansions"
- func: "f_expansions_write"
teardown_group:
- func: "f_expansions_write"
- func: "umount shared scons directory"
- func: "cleanup environment"
timeout:
- func: "f_expansions_write"
- func: "run hang analyzer"
- func: "wait for resmoke to shutdown"
- &stitch_support_task_group_template
name: stitch_support_task_group_template
setup_task:
- func: "apply compile expansions"
- func: "set task expansion macros"
- func: "f_expansions_write"
teardown_task:
- func: "attach scons logs"
- func: "send scons cedar report"
setup_group_can_fail_task: true
setup_group:
- command: manifest.load
- func: "git get project and add git tag"
- func: "set task expansion macros"
- func: "f_expansions_write"
- func: "kill processes"
- func: "cleanup environment"
- func: "set up venv"
- func: "upload pip requirements"
- func: "get buildnumber"
- func: "f_expansions_write"
- func: "set up win mount script"
- func: "generate compile expansions"
teardown_group:
- func: "umount shared scons directory"
- &antithesis_task_template
name: antithesis_task_template
tags: ["antithesis"]
depends_on:
name: archive_dist_test_debug
commands:
- func: "do setup"
- func: "do setup for antithesis"
- func: "antithesis image build and push"
vars:
suite: suite_name
resmoke_args: >-
--arg=val
--flag
# TODO: split this up into the user files.
# List of all variants that make mongocryptd
# If a variant is listed here and has a push task, mongocryptd is pushed
- mongocryptd_variants: &mongocryptd_variants
- enterprise-amazon2
- enterprise-amazon2-arm64
- enterprise-amazon2023
- enterprise-amazon2023-lto
- enterprise-amazon2023-arm64
- enterprise-amazon2023-arm64-lto
- enterprise-debian11-64
- enterprise-debian12-64
- enterprise-linux-64-amazon-ami
- enterprise-macos
- enterprise-macos-arm64
- enterprise-rhel-70-64-bit
- enterprise-rhel-81-ppc64le
- enterprise-rhel-80-64-bit
- enterprise-rhel-80-64-bit-coverage
- enterprise-rhel-80-64-bit-suggested
- enterprise-rhel-82-arm64
- enterprise-rhel-83-s390x
- enterprise-rhel-90-64-bit
- enterprise-rhel-90-arm64
- enterprise-suse12-64
- enterprise-suse15-64
- enterprise-ubuntu2004-arm64
- enterprise-ubuntu2204-arm64
- enterprise-ubuntu2004-64
- enterprise-ubuntu2204-64
- enterprise-windows
- enterprise-windows-debug-unoptimized
- enterprise-windows-inmem
- enterprise-windows-wtdevelop
# List of all variants that use the packages.tgz
- package_variants: &package_variants
- amazon
- enterprise-linux-64-amazon-ami
- amazon2
- amazon2023
- amazon2023-arm64
- enterprise-amazon2
- enterprise-amazon2-arm64
- enterprise-amazon2023
- enterprise-amazon2023-arm64
- debian11
- debian12
- enterprise-debian11-64
- enterprise-debian12-64
- rhel70
- rhel76_compile_rhel70
- enterprise-rhel-70-64-bit
- enterprise-rhel-81-ppc64le
- ubi8
- rhel80
- rhel-82-arm64
- rhel90
- rhel90-arm64
- enterprise-rhel-80-64-bit
- enterprise-rhel-80-64-bit-suggested # For testing selinux.
- enterprise-rhel-82-arm64
- enterprise-rhel-83-s390x
- enterprise-rhel-90-64-bit
- enterprise-rhel-90-arm64
- suse12
- enterprise-suse12-64
- suse15
- enterprise-suse15-64
- ubuntu2004-arm64
- ubuntu2204-arm64
- ubuntu2004
- ubuntu2204
- enterprise-ubuntu2004-arm64
- enterprise-ubuntu2204-arm64
- enterprise-ubuntu2004-64
- enterprise-windows
- windows
#######################################
# Functions #
#######################################
functions:
"f_expansions_write": &f_expansions_write
command: expansions.write
params:
file: expansions.yml
redacted: true
"remove files":
- *f_expansions_write
- command: subprocess.exec
params:
binary: bash
args:
- "src/evergreen/functions/files_remove.sh"
"configure evergreen api credentials": &configure_evergreen_api_credentials
command: subprocess.exec
type: test
params:
binary: bash
args:
- "src/evergreen/functions/evergreen_api_credentials_configure.sh"
"git get project": &git_get_project
command: git.get_project
params:
directory: ${git_project_directory|src}
revisions: # for each module include revision as <module_name> : ${<module_name>_rev}
enterprise: ${enterprise_rev}
wtdevelop: ${wtdevelop_rev}
dsi: ${dsi_rev}
genny: ${genny_rev}
linkbench: ${linkbench_rev}
linkbench2: ${linkbench2_rev}
tsbs: ${tsbs_rev}
workloads: ${workloads_rev}
YCSB: ${YCSB_rev}
flamegraph: ${flamegraph_rev}
PrivateWorkloads: ${PrivateWorkloads_rev}
# Get get the mongo repo, no modules. Useful for inspecting the commit history with the
# `git` Python tool.
"git get project no modules":
- *f_expansions_write
- command: git.get_project
params:
directory: ${git_project_directory|src}
"add git tag": &add_git_tag
command: subprocess.exec
params:
binary: bash
args:
- "src/evergreen/functions/add_git_tag.sh"
env:
future_git_tag: ${future_git_tag}
bv_future_git_tag: ${bv_future_git_tag}
"git get project and add git tag":
- *f_expansions_write
- *git_get_project
- *add_git_tag
"gen feature flags": &gen_feature_flags
command: subprocess.exec
type: test
params:
binary: bash
args:
- "src/evergreen/gen_feature_flags.sh"
"fetch artifacts": &fetch_artifacts
command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
remote_file: ${mongo_artifacts}
bucket: mciuploads
extract_to: src
"fetch venv": &fetch_venv
command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
remote_file: ${mongo_venv}
bucket: mciuploads
extract_to: "."
"get engflow creds": &get_engflow_creds
- command: s3.get
params:
aws_key: ${engflow_key}
aws_secret: ${engflow_secret}
remote_file: engflow/engflow.key
bucket: serverengflow
local_file: "src/engflow.key"
- command: s3.get
params:
aws_key: ${engflow_key}
aws_secret: ${engflow_secret}
remote_file: engflow/engflow.cert
bucket: serverengflow
local_file: "src/engflow.cert"
- command: subprocess.exec
params:
binary: bash
args:
- "src/evergreen/generate_evergreen_engflow_bazelrc.sh"
"adjust venv": &adjust_venv
command: subprocess.exec
params:
binary: bash
args:
- "src/evergreen/functions/venv_adjust.sh"
"fetch packages": &fetch_packages
command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
remote_file: ${project}/${build_variant}/${revision}/artifacts/${build_id}-packages.tgz
bucket: mciuploads
extract_to: src
build_variants: *package_variants
"fetch dist tarball": &fetch_dist_tarball
command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
remote_file: ${project}/${build_variant}/${revision}/dist/mongo-${build_id}.${ext|tgz}
bucket: mciuploads
local_file: src/mongo-binaries.tgz
"fetch dist debugsymbols": &fetch_dist_debugsymbols
command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
remote_file: ${project}/${build_variant}/${revision}/dist/mongo-${build_id}-debugsymbols.${ext|tgz}
bucket: mciuploads
local_file: src/mongo-debugsymbols.tgz
optional: true
"fetch binaries": &fetch_binaries
command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
remote_file: ${mongo_binaries}
bucket: mciuploads
local_file: src/mongo-binaries.tgz
"extract binaries": &extract_binaries
command: subprocess.exec
params:
binary: bash
args:
- "src/evergreen/run_python_script.sh"
- "evergreen/functions/binaries_extract.py"
- "--tarball=mongo-binaries.tgz"
- "--extraction-command=${decompress}"
- "--change-dir=${extraction_change_dir}"
- "${move_outputs}"
"get version expansions": &get_version_expansions
command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
remote_file: ${project}/${version_id}/${bv_future_git_tag|version}_expansions.yml
bucket: mciuploads
local_file: src/version_expansions.yml
"apply version expansions": &apply_version_expansions
command: expansions.update
params:
file: src/version_expansions.yml
"get and apply version expansions":
- *get_version_expansions
- *apply_version_expansions
"fetch benchmarks": &fetch_benchmarks
command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
remote_file: ${project}/${build_variant}/${revision}/benchmarks/${build_id}.tgz
bucket: mciuploads
extract_to: src
"fetch corpus": &fetch_corpus
command: s3.get
params:
aws_key: ${s3_access_key_id}
aws_secret: ${s3_secret_access_key}
bucket: fuzzer-artifacts
extract_to: src/corpora
remote_file: ${mongo_fuzzer_corpus}
optional: true
"archive new corpus": &archive_new_corpus
command: archive.targz_pack
params:
target: corpora.tgz
source_dir: src/corpora-merged
include:
- "**"
"upload new corpus": &upload_new_corpus
command: s3.put
params:
aws_key: ${s3_access_key_id}
aws_secret: ${s3_secret_access_key}
bucket: fuzzer-artifacts
content_type: ${content_type|application/gzip}
display_name: "Fuzzer Tests Corpus Tar Archive"
local_file: corpora.${ext|tgz}
optional: true
permissions: private
remote_file: ${mongo_fuzzer_corpus}
visibility: signed
"upload new corpus for mciuploads": &upload_new_corpus_mciuploads
command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
bucket: mciuploads
content_type: ${content_type|application/gzip}
display_name: Input Corpora
local_file: corpora.${ext|tgz}
optional: true
permissions: private
remote_file: ${mongo_fuzzer_corpus_mciuploads}
visibility: signed
"get buildnumber": &get_buildnumber
command: keyval.inc
params:
key: "${build_variant}_master"
destination: "builder_num"
"run diskstats": &run_diskstats
command: subprocess.exec
params:
background: true
system_log: true
binary: bash
args:
- "./src/evergreen/functions/run_diskstats.sh"
"collect system resource info": &collect_system_resource_info
command: subprocess.exec
params:
background: true
system_log: true
binary: bash
args:
- "./src/evergreen/functions/system_resource_info_collect.sh"
"collect ulimit info": &collect_ulimit_info
command: subprocess.exec
params:
background: true
system_log: true
binary: bash
args:
- "./src/evergreen/functions/ulimit_info_collect.sh"
# Run a monitor process as a background, system task to periodically
# display how many threads interesting processes are using.
"monitor process threads": &monitor_process_threads
command: subprocess.exec
params:
background: true
system_log: true
binary: bash
args:
- "./src/evergreen/functions/process_threads_monitor.sh"
"set up credentials": &set_up_credentials
command: subprocess.exec
params:
binary: bash
silent: true
args:
- "./src/evergreen/functions/credentials_setup.sh"
"set up win mount script":
- *f_expansions_write
- command: subprocess.exec
params:
binary: bash
silent: true
args:
- "./src/evergreen/functions/win_mount_script_setup.sh"
"set up notary client credentials":
- *f_expansions_write
- command: subprocess.exec
params:
binary: bash
silent: true
args:
- "./src/evergreen/functions/notary_client_credentials_setup.sh"
"f_remote_credentials_setup_exec": &set_up_remote_credentials
command: subprocess.exec
params:
binary: bash
args:
- "./src/evergreen/functions/remote_credentials_setup.sh"
env:
private_key_remote_bash_var: ${private_key_remote}
"set up remote credentials":
- *f_expansions_write
- *set_up_remote_credentials
"upload debugsymbols": &upload_debugsymbols
command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: src/mongo-debugsymbols.${ext|tgz}
remote_file: ${mongo_debugsymbols}
bucket: mciuploads
permissions: public-read
content_type: ${content_type|application/gzip}
"use WiredTiger develop":
- *f_expansions_write
- command: subprocess.exec
params:
binary: bash
args:
- "./src/evergreen/functions/wiredtiger_develop_use.sh"
"shared scons cache pruning":
- *f_expansions_write
- command: subprocess.exec
type: system
params:
binary: bash
args:
- "./src/evergreen/functions/shared_scons_cache_pruning.sh"
"umount shared scons directory":
- *f_expansions_write
- command: subprocess.exec
params:
binary: bash
args:
- "./src/evergreen/functions/shared_scons_directory_umount.sh"
"umount tmp directory":
- *f_expansions_write
- command: subprocess.exec
params:
binary: bash
args:
- "./src/evergreen/functions/tmp_directory_umount.sh"
"determine resmoke jobs": &determine_resmoke_jobs
command: subprocess.exec
params:
binary: bash
args:
- "./src/evergreen/functions/resmoke_jobs_determine.sh"
"update resmoke jobs expansions": &update_resmoke_jobs_expansions
command: expansions.update
params:
ignore_missing_file: true
file: src/resmoke_jobs_expansion.yml
"determine task timeout": &determine_task_timeout
command: subprocess.exec
params:
binary: bash
args:
- "./src/evergreen/functions/task_timeout_determine.sh"
"update task timeout expansions": &update_task_timeout_expansions
command: expansions.update
params:
ignore_missing_file: true
file: src/task_timeout_expansions.yml
"update task timeout": &update_task_timeout
command: timeout.update
params:
exec_timeout_secs: ${exec_timeout_secs}
timeout_secs: ${timeout_secs}
### Set expansion macros used in each task.
"set task expansion macros": &set_task_expansion_macros
command: expansions.update
params:
updates:
- key: mongo_binaries
value: ${project}/${compile_variant}/${version_id}/binaries/mongo-${revision_order_id}.${ext|tgz}
- key: mongo_cryptd
value: ${project}/${compile_variant}/${version_id}/binaries/mongo-cryptd-${revision_order_id}.${ext|tgz}
- key: mongo_cryptd_debugsymbols
value: ${project}/${compile_variant}/${version_id}/binaries/mongo-cryptd-debugsymbols-${revision_order_id}.${ext|tgz}
- key: mongo_debugsymbols
value: ${project}/${compile_variant}/${version_id}/debugsymbols/debugsymbols-${revision_order_id}.${ext|tgz}
- key: mongo_jstestshell
value: ${project}/${compile_variant}/${version_id}/binaries/mongo-jstestshell-${revision_order_id}.${ext|tgz}
- key: mongo_jstestshell_debugsymbols
value: ${project}/${compile_variant}/${version_id}/binaries/mongo-jstestshell-debugsymbols-${revision_order_id}.tgz
- key: mongo_artifacts
value: ${project}/${compile_variant}/${version_id}/artifacts/${revision_order_id}.tgz
- key: mongo_venv
value: ${project}/${compile_variant}/${version_id}/venv/${revision_order_id}.tgz
- key: mongo_fuzzer_corpus_mciuploads
value: ${project}/${build_variant}/${version_id}/libfuzzer-corpora/corpora-${revision_order_id}.${ext|tgz}
- key: mongo_fuzzer_corpus
value: corpora-${project}-${build_variant}.${ext|tgz}
- key: skip_tests
value: skip_test-${build_id}
"set up venv": &set_up_venv
command: subprocess.exec
params:
binary: bash
args:
- "src/evergreen/functions/venv_setup.sh"
# This needs to be run after "set up venv"
# This depends on having a venv already setup
# This just installs the extra deps needed for libdeps
"set up libdeps venv": &set_up_libdeps_venv
command: subprocess.exec
params:
binary: bash
args:
- "src/evergreen/libdeps_setup.sh"
"upload pip requirements": &upload_pip_requirements
command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: pip-requirements.txt
remote_file: ${project}/${build_variant}/${version_id}/pip-requirements-${task_id}-${execution}.txt
bucket: mciuploads
permissions: public-read
content_type: text/plain
display_name: Pip Requirements
"upload clang tidy results": &upload_clang_tidy_results
- command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: src/clang_tidy_fixes.tgz
remote_file: ${project}/${build_variant}/${version_id}/${task_id}/clang_tidy_fixes.tgz
bucket: mciuploads
permissions: public-read
content_type: application/gzip
display_name: clang_tidy_fixes.tgz
- command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: src/clang_tidy_fixes/clang_tidy_fixes.json
remote_file: ${project}/${build_variant}/${version_id}/${task_id}/clang_tidy_fixes.json
bucket: mciuploads
permissions: public-read
content_type: application/json
display_name: clang_tidy_fixes.json
"send benchmark results":
- command: perf.send
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
bucket: mciuploads
prefix: ${task_id}_${execution}
file: src/cedar_report.json
"analyze benchmark results":
- *f_expansions_write
- *configure_evergreen_api_credentials
- command: subprocess.exec
type: test
params:
binary: bash
args:
- "./src/evergreen/functions/benchmark_results_analyze.sh"
"cleanup environment": &cleanup_environment
command: subprocess.exec
params:
binary: bash
args:
- "./src/evergreen/cleanup_environment.sh"
"kill processes": &kill_processes
command: subprocess.exec
params:
silent: true
binary: bash
args:
- "./src/evergreen/kill_processes.sh"
"do setup":
- *f_expansions_write
- *fetch_artifacts
- *kill_processes
- *cleanup_environment
- *fetch_venv
- *adjust_venv
- *fetch_binaries
- *extract_binaries
- *get_buildnumber
- *f_expansions_write
- *set_up_credentials
- *run_diskstats
- *monitor_process_threads
- *collect_system_resource_info
- *collect_ulimit_info
"do setup for antithesis":
- command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
remote_file: ${mongo_debugsymbols}
bucket: mciuploads
local_file: src/mongo-debugsymbols.${ext|tgz}
- command: subprocess.exec
params:
binary: bash
args:
- "./src/evergreen/modify_debug_symbols.sh"
- command: git.get_project
params:
directory: src/buildscripts/antithesis/base_images/workload/src
- *configure_evergreen_api_credentials
"do non-compile setup":
- command: manifest.load
- *git_get_project
- *f_expansions_write
- *add_git_tag
- *kill_processes
- *cleanup_environment
- *set_up_venv
- *upload_pip_requirements
- *get_buildnumber
- *f_expansions_write
- *set_up_credentials
"do benchmark setup":
- command: manifest.load
- *git_get_project
- *f_expansions_write
- *add_git_tag
- *kill_processes
- *cleanup_environment
- *set_up_venv
- *upload_pip_requirements
- *get_buildnumber
- *f_expansions_write
- *set_up_credentials
- *fetch_benchmarks
"f_multiversion_setup_exec": &do_multiversion_setup
command: subprocess.exec
params:
binary: bash
args:
- "./src/evergreen/multiversion_setup.sh"
"do multiversion setup":
- *f_expansions_write
- *set_up_venv
- *do_multiversion_setup
# Used by generator
"get compiled binaries":
command: subprocess.exec
params:
binary: bash
args:
- "./src/evergreen/compiled_binaries_get.sh"
"generate powercycle tasks":
- command: manifest.load
- *git_get_project
- *f_expansions_write
- *add_git_tag
- *kill_processes
- *cleanup_environment
- *set_up_venv
- *upload_pip_requirements
- command: subprocess.exec
params:
binary: bash
args:
- "./src/evergreen/powercycle_tasks_generate.sh"
- command: archive.targz_pack
params:
target: powercycle_tasks_config.tgz
source_dir: "./"
include:
- "powercycle_tasks.json"
- command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: powercycle_tasks_config.tgz
remote_file: ${project}/${build_variant}/${revision}/powercycle_tasks/${task_name}-${build_id}.tgz
bucket: mciuploads
permissions: public-read
content_type: application/gzip
display_name: Generated Task Config - Execution ${execution}
- command: generate.tasks
params:
files:
- powercycle_tasks.json