@@ -37,6 +37,8 @@ functions:
37
37
# Applies the subitted patch, if any
38
38
# Deprecated. Should be removed. But still needed for certain agents (ZAP)
39
39
- command : git.apply_patch
40
+
41
+ " setup system " :
40
42
# Make an evergreen expansion file with dynamic values
41
43
- command : subprocess.exec
42
44
params :
@@ -49,13 +51,19 @@ functions:
49
51
- command : expansions.update
50
52
params :
51
53
file : src/expansion.yml
52
-
53
- " prepare resources " :
54
54
- command : subprocess.exec
55
55
params :
56
+ include_expansions_in_env : ["PROJECT_DIRECTORY", "DRIVERS_TOOLS"]
56
57
binary : bash
57
58
args :
58
59
- src/.evergreen/scripts/prepare-resources.sh
60
+ # Run drivers-evergreen-tools system setup
61
+ - command : subprocess.exec
62
+ params :
63
+ include_expansions_in_env : ["PROJECT_DIRECTORY", "DRIVERS_TOOLS"]
64
+ binary : bash
65
+ args :
66
+ - ${DRIVERS_TOOLS}/.evergreen/setup.sh
59
67
60
68
" upload coverage" :
61
69
- command : ec2.assume_role
@@ -519,34 +527,6 @@ functions:
519
527
args :
520
528
- ${DRIVERS_TOOLS}/.evergreen/teardown.sh
521
529
522
- " fix absolute paths " :
523
- - command : subprocess.exec
524
- params :
525
- binary : bash
526
- args :
527
- - src/.evergreen/scripts/fix-absolute-paths.sh
528
-
529
- " windows fix " :
530
- - command : subprocess.exec
531
- params :
532
- binary : bash
533
- args :
534
- - src/.evergreen/scripts/windows-fix.sh
535
-
536
- " make files executable " :
537
- - command : subprocess.exec
538
- params :
539
- binary : bash
540
- args :
541
- - src/.evergreen/scripts/make-files-executable.sh
542
-
543
- " init test-results " :
544
- - command : subprocess.exec
545
- params :
546
- binary : bash
547
- args :
548
- - src/.evergreen/scripts/init-test-results.sh
549
-
550
530
" install dependencies " :
551
531
- command : subprocess.exec
552
532
params :
@@ -665,11 +645,7 @@ functions:
665
645
666
646
pre :
667
647
- func : " fetch source"
668
- - func : " prepare resources"
669
- - func : " windows fix"
670
- - func : " fix absolute paths"
671
- - func : " init test-results"
672
- - func : " make files executable"
648
+ - func : " setup system"
673
649
- func : " install dependencies"
674
650
- func : " assume ec2 role"
675
651
@@ -691,7 +667,7 @@ task_groups:
691
667
setup_group_timeout_secs : 1800 # 30 minutes
692
668
setup_group :
693
669
- func : " fetch source"
694
- - func : " prepare resources "
670
+ - func : " setup system "
695
671
- command : subprocess.exec
696
672
params :
697
673
binary : bash
@@ -714,9 +690,7 @@ task_groups:
714
690
setup_group_timeout_secs : 1800 # 30 minutes
715
691
setup_group :
716
692
- func : fetch source
717
- - func : prepare resources
718
- - func : fix absolute paths
719
- - func : make files executable
693
+ - func : setup system
720
694
- command : subprocess.exec
721
695
params :
722
696
binary : bash
@@ -735,9 +709,7 @@ task_groups:
735
709
- name : testazurekms_task_group
736
710
setup_group :
737
711
- func : fetch source
738
- - func : prepare resources
739
- - func : fix absolute paths
740
- - func : make files executable
712
+ - func : setup system
741
713
- command : subprocess.exec
742
714
params :
743
715
binary : bash
@@ -761,9 +733,7 @@ task_groups:
761
733
- name : testazureoidc_task_group
762
734
setup_group :
763
735
- func : fetch source
764
- - func : prepare resources
765
- - func : fix absolute paths
766
- - func : make files executable
736
+ - func : setup system
767
737
- command : subprocess.exec
768
738
params :
769
739
binary : bash
@@ -785,9 +755,7 @@ task_groups:
785
755
- name : testgcpoidc_task_group
786
756
setup_group :
787
757
- func : fetch source
788
- - func : prepare resources
789
- - func : fix absolute paths
790
- - func : make files executable
758
+ - func : setup system
791
759
- command : subprocess.exec
792
760
params :
793
761
binary : bash
@@ -809,9 +777,7 @@ task_groups:
809
777
- name : testk8soidc_task_group
810
778
setup_group :
811
779
- func : fetch source
812
- - func : prepare resources
813
- - func : fix absolute paths
814
- - func : make files executable
780
+ - func : setup system
815
781
- command : ec2.assume_role
816
782
params :
817
783
role_arn : ${aws_test_secrets_role}
@@ -835,9 +801,7 @@ task_groups:
835
801
- name : testoidc_task_group
836
802
setup_group :
837
803
- func : fetch source
838
- - func : prepare resources
839
- - func : fix absolute paths
840
- - func : make files executable
804
+ - func : setup system
841
805
- func : " assume ec2 role"
842
806
- command : subprocess.exec
843
807
params :
@@ -859,7 +823,7 @@ task_groups:
859
823
- name : test_aws_lambda_task_group
860
824
setup_group :
861
825
- func : fetch source
862
- - func : prepare resources
826
+ - func : setup system
863
827
- func : setup atlas
864
828
teardown_task :
865
829
- func : teardown atlas
@@ -871,9 +835,7 @@ task_groups:
871
835
- name : test_atlas_task_group_search_indexes
872
836
setup_group :
873
837
- func : fetch source
874
- - func : prepare resources
875
- - func : fix absolute paths
876
- - func : make files executable
838
+ - func : setup system
877
839
- func : setup atlas
878
840
teardown_task :
879
841
- func : teardown atlas
@@ -1584,7 +1546,7 @@ tasks:
1584
1546
- name : testazurekms-fail-task
1585
1547
commands :
1586
1548
- func : fetch source
1587
- - func : make files executable
1549
+ - func : setup system
1588
1550
- func : " bootstrap mongo-orchestration"
1589
1551
vars :
1590
1552
VERSION : " latest"
0 commit comments