@@ -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
@@ -511,41 +519,32 @@ functions:
511
519
- .evergreen/scripts/run-with-env.sh
512
520
- .evergreen/scripts/cleanup.sh
513
521
514
- " teardown " :
522
+ " teardown system " :
515
523
- command : subprocess.exec
516
524
params :
517
525
binary : bash
518
526
working_dir : " src"
519
527
args :
520
- - ${DRIVERS_TOOLS}/.evergreen/teardown.sh
521
-
522
- " fix absolute paths " :
528
+ # Ensure the instance profile is reassigned for aws tests.
529
+ - ${DRIVERS_TOOLS}/.evergreen/auth_aws/teardown.sh
523
530
- command : subprocess.exec
524
531
params :
525
532
binary : bash
533
+ working_dir : " src"
526
534
args :
527
- - src/.evergreen/scripts/fix-absolute-paths.sh
528
-
529
- " windows fix " :
535
+ - ${DRIVERS_TOOLS}/.evergreen/csfle/teardown.sh
530
536
- command : subprocess.exec
531
537
params :
532
538
binary : bash
539
+ working_dir : " src"
533
540
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 " :
541
+ - ${DRIVERS_TOOLS}/.evergreen/ocsp/teardown.sh
544
542
- command : subprocess.exec
545
543
params :
546
544
binary : bash
545
+ working_dir : " src"
547
546
args :
548
- - src /.evergreen/scripts/init-test-results .sh
547
+ - ${DRIVERS_TOOLS} /.evergreen/teardown .sh
549
548
550
549
" install dependencies " :
551
550
- command : subprocess.exec
@@ -621,21 +620,6 @@ functions:
621
620
args :
622
621
- src/.evergreen/scripts/stop-load-balancer.sh
623
622
624
- " teardown_docker " :
625
- - command : subprocess.exec
626
- params :
627
- binary : bash
628
- args :
629
- - src/.evergreen/scripts/teardown-docker.sh
630
-
631
- " teardown_aws " :
632
- - command : subprocess.exec
633
- params :
634
- binary : bash
635
- args :
636
- - src/.evergreen/scripts/run-with-env.sh
637
- - src/.evergreen/scripts/teardown-aws.sh
638
-
639
623
" teardown atlas " :
640
624
- command : subprocess.exec
641
625
params :
@@ -665,33 +649,27 @@ functions:
665
649
666
650
pre :
667
651
- 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"
652
+ - func : " setup system"
673
653
- func : " install dependencies"
674
654
- func : " assume ec2 role"
675
655
676
656
post :
677
657
# Disabled, causing timeouts
678
658
# - func: "upload working dir"
679
- - func : " teardown"
659
+ - func : " teardown system "
680
660
- func : " upload coverage"
681
661
- func : " upload mo artifacts"
682
662
- func : " upload test results"
683
663
- func : " stop mongo-orchestration"
684
- - func : " teardown_aws"
685
664
- func : " cleanup"
686
- - func : " teardown_docker"
687
665
688
666
task_groups :
689
667
- name : serverless_task_group
690
668
setup_group_can_fail_task : true
691
669
setup_group_timeout_secs : 1800 # 30 minutes
692
670
setup_group :
693
671
- func : " fetch source"
694
- - func : " prepare resources "
672
+ - func : " setup system "
695
673
- command : subprocess.exec
696
674
params :
697
675
binary : bash
@@ -714,9 +692,7 @@ task_groups:
714
692
setup_group_timeout_secs : 1800 # 30 minutes
715
693
setup_group :
716
694
- func : fetch source
717
- - func : prepare resources
718
- - func : fix absolute paths
719
- - func : make files executable
695
+ - func : setup system
720
696
- command : subprocess.exec
721
697
params :
722
698
binary : bash
@@ -735,9 +711,7 @@ task_groups:
735
711
- name : testazurekms_task_group
736
712
setup_group :
737
713
- func : fetch source
738
- - func : prepare resources
739
- - func : fix absolute paths
740
- - func : make files executable
714
+ - func : setup system
741
715
- command : subprocess.exec
742
716
params :
743
717
binary : bash
@@ -761,9 +735,7 @@ task_groups:
761
735
- name : testazureoidc_task_group
762
736
setup_group :
763
737
- func : fetch source
764
- - func : prepare resources
765
- - func : fix absolute paths
766
- - func : make files executable
738
+ - func : setup system
767
739
- command : subprocess.exec
768
740
params :
769
741
binary : bash
@@ -785,9 +757,7 @@ task_groups:
785
757
- name : testgcpoidc_task_group
786
758
setup_group :
787
759
- func : fetch source
788
- - func : prepare resources
789
- - func : fix absolute paths
790
- - func : make files executable
760
+ - func : setup system
791
761
- command : subprocess.exec
792
762
params :
793
763
binary : bash
@@ -809,9 +779,7 @@ task_groups:
809
779
- name : testk8soidc_task_group
810
780
setup_group :
811
781
- func : fetch source
812
- - func : prepare resources
813
- - func : fix absolute paths
814
- - func : make files executable
782
+ - func : setup system
815
783
- command : ec2.assume_role
816
784
params :
817
785
role_arn : ${aws_test_secrets_role}
@@ -835,9 +803,7 @@ task_groups:
835
803
- name : testoidc_task_group
836
804
setup_group :
837
805
- func : fetch source
838
- - func : prepare resources
839
- - func : fix absolute paths
840
- - func : make files executable
806
+ - func : setup system
841
807
- func : " assume ec2 role"
842
808
- command : subprocess.exec
843
809
params :
@@ -859,7 +825,7 @@ task_groups:
859
825
- name : test_aws_lambda_task_group
860
826
setup_group :
861
827
- func : fetch source
862
- - func : prepare resources
828
+ - func : setup system
863
829
- func : setup atlas
864
830
teardown_task :
865
831
- func : teardown atlas
@@ -871,9 +837,7 @@ task_groups:
871
837
- name : test_atlas_task_group_search_indexes
872
838
setup_group :
873
839
- func : fetch source
874
- - func : prepare resources
875
- - func : fix absolute paths
876
- - func : make files executable
840
+ - func : setup system
877
841
- func : setup atlas
878
842
teardown_task :
879
843
- func : teardown atlas
@@ -1584,7 +1548,7 @@ tasks:
1584
1548
- name : testazurekms-fail-task
1585
1549
commands :
1586
1550
- func : fetch source
1587
- - func : make files executable
1551
+ - func : setup system
1588
1552
- func : " bootstrap mongo-orchestration"
1589
1553
vars :
1590
1554
VERSION : " latest"
@@ -1640,6 +1604,7 @@ tasks:
1640
1604
params :
1641
1605
binary : bash
1642
1606
working_dir : src
1607
+ include_expansions_in_env : ["PYTHON_BINARY"]
1643
1608
args :
1644
1609
- .evergreen/scripts/check-import-time.sh
1645
1610
- ${revision}
0 commit comments