@@ -170,6 +170,22 @@ functions:
170
170
# initialize submodules
171
171
git submodule init
172
172
git submodule update
173
+ - command : shell.exec
174
+ params :
175
+ working_dir : src/go.mongodb.org/mongo-driver
176
+ shell : " bash"
177
+ script : |
178
+ . ${DRIVERS_TOOLS}/.evergreen/venv-utils.sh
179
+ . ${DRIVERS_TOOLS}/.evergreen/find-python3.sh
180
+
181
+ export PYTHON3_BINARY="$(find_python3)"
182
+ venvcreate "$PYTHON3_BINARY" venv
183
+
184
+ echo "PYTHON3_BINARY: $PYTHON3_BINARY" >>expansion.yml
185
+ # Load the expansion file to make an evergreen variable with the current unique version
186
+ - command : expansions.update
187
+ params :
188
+ file : src/go.mongodb.org/mongo-driver/expansion.yml
173
189
174
190
install-linters :
175
191
- command : shell.exec
@@ -603,38 +619,30 @@ functions:
603
619
make evg-test-atlas-data-lake
604
620
605
621
run-valid-ocsp-server :
606
- - command : shell.exec
607
- params :
608
- script : |
609
- cd ${DRIVERS_TOOLS}/.evergreen/ocsp
610
- ${PYTHON3_BINARY} -m venv ./venv
611
- ./venv/${VENV_BIN_DIR|bin}/pip3 install -r mock-ocsp-responder-requirements.txt
612
622
- command : shell.exec
613
623
params :
614
624
background : true
625
+ shell : " bash"
615
626
script : |
616
627
cd ${DRIVERS_TOOLS}/.evergreen/ocsp
628
+ . ./activate-ocspvenv.sh
617
629
618
- ./venv/${VENV_BIN_DIR|bin}/ python ocsp_mock.py \
630
+ python ocsp_mock.py \
619
631
--ca_file ${OCSP_ALGORITHM}/ca.pem \
620
632
--ocsp_responder_cert ${OCSP_ALGORITHM}/ca.crt \
621
633
--ocsp_responder_key ${OCSP_ALGORITHM}/ca.key \
622
634
-p 8100 -v
623
635
624
636
run-revoked-ocsp-server :
625
- - command : shell.exec
626
- params :
627
- script : |
628
- cd ${DRIVERS_TOOLS}/.evergreen/ocsp
629
- ${PYTHON3_BINARY} -m venv ./venv
630
- ./venv/${VENV_BIN_DIR|bin}/pip3 install -r mock-ocsp-responder-requirements.txt
631
637
- command : shell.exec
632
638
params :
633
639
background : true
640
+ shell : " bash"
634
641
script : |
635
642
cd ${DRIVERS_TOOLS}/.evergreen/ocsp
643
+ . ./activate-ocspvenv.sh
636
644
637
- ./venv/${VENV_BIN_DIR|bin}/ python ocsp_mock.py \
645
+ python ocsp_mock.py \
638
646
--ca_file ${OCSP_ALGORITHM}/ca.pem \
639
647
--ocsp_responder_cert ${OCSP_ALGORITHM}/ca.crt \
640
648
--ocsp_responder_key ${OCSP_ALGORITHM}/ca.key \
@@ -643,38 +651,30 @@ functions:
643
651
--fault revoked
644
652
645
653
run-valid-delegate-ocsp-server :
646
- - command : shell.exec
647
- params :
648
- script : |
649
- cd ${DRIVERS_TOOLS}/.evergreen/ocsp
650
- ${PYTHON3_BINARY} -m venv ./venv
651
- ./venv/${VENV_BIN_DIR|bin}/pip3 install -r mock-ocsp-responder-requirements.txt
652
654
- command : shell.exec
653
655
params :
654
656
background : true
657
+ shell : " bash"
655
658
script : |
656
659
cd ${DRIVERS_TOOLS}/.evergreen/ocsp
660
+ . ./activate-ocspvenv.sh
657
661
658
- ./venv/${VENV_BIN_DIR|bin}/ python ocsp_mock.py \
662
+ python ocsp_mock.py \
659
663
--ca_file ${OCSP_ALGORITHM}/ca.pem \
660
664
--ocsp_responder_cert ${OCSP_ALGORITHM}/ocsp-responder.crt \
661
665
--ocsp_responder_key ${OCSP_ALGORITHM}/ocsp-responder.key \
662
666
-p 8100 -v
663
667
664
668
run-revoked-delegate-ocsp-server :
665
- - command : shell.exec
666
- params :
667
- script : |
668
- cd ${DRIVERS_TOOLS}/.evergreen/ocsp
669
- ${PYTHON3_BINARY} -m venv ./venv
670
- ./venv/${VENV_BIN_DIR|bin}/pip3 install -r mock-ocsp-responder-requirements.txt
671
669
- command : shell.exec
672
670
params :
673
671
background : true
672
+ shell : " bash"
674
673
script : |
675
674
cd ${DRIVERS_TOOLS}/.evergreen/ocsp
675
+ . ./activate-ocspvenv.sh
676
676
677
- ./venv/${VENV_BIN_DIR|bin}/ python ocsp_mock.py \
677
+ python ocsp_mock.py \
678
678
--ca_file ${OCSP_ALGORITHM}/ca.pem \
679
679
--ocsp_responder_cert ${OCSP_ALGORITHM}/ocsp-responder.crt \
680
680
--ocsp_responder_key ${OCSP_ALGORITHM}/ocsp-responder.key \
@@ -730,10 +730,11 @@ functions:
730
730
type : test
731
731
params :
732
732
working_dir : " src"
733
+ shell : " bash"
733
734
script : |
734
735
${PREPARE_SHELL}
735
736
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
736
- . ./activate_venv .sh
737
+ . ./activate-authawsvenv .sh
737
738
mongo aws_e2e_regular_aws.js
738
739
- command : shell.exec
739
740
type : test
@@ -760,10 +761,11 @@ functions:
760
761
type : test
761
762
params :
762
763
working_dir : " src"
764
+ shell : " bash"
763
765
script : |
764
766
${PREPARE_SHELL}
765
767
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
766
- . ./activate_venv .sh
768
+ . ./activate-authawsvenv .sh
767
769
mongo aws_e2e_assume_role.js
768
770
- command : shell.exec
769
771
type : test
@@ -796,14 +798,15 @@ functions:
796
798
type : test
797
799
params :
798
800
working_dir : " src"
801
+ shell : " bash"
799
802
script : |
800
803
${PREPARE_SHELL}
801
804
if [ "${SKIP_EC2_AUTH_TEST}" = "true" ]; then
802
805
echo "This platform does not support the EC2 auth test, skipping..."
803
806
exit 0
804
807
fi
805
808
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
806
- . ./activate_venv .sh
809
+ . ./activate-authawsvenv .sh
807
810
mongo aws_e2e_ec2.js
808
811
- command : shell.exec
809
812
type : test
@@ -878,6 +881,7 @@ functions:
878
881
type : test
879
882
params :
880
883
working_dir : " src"
884
+ shell : " bash"
881
885
script : |
882
886
${PREPARE_SHELL}
883
887
if [ "${SKIP_ECS_AUTH_TEST}" = "true" ]; then
@@ -891,7 +895,7 @@ functions:
891
895
cp ${PROJECT_DIRECTORY}/.evergreen/run-mongodb-aws-ecs-test.sh $ECS_SRC_DIR/.evergreen
892
896
tar -czf $ECS_SRC_DIR/src.tgz -C $PROJECT_DIRECTORY .
893
897
cd $AUTH_AWS_DIR
894
- . ./activate_venv .sh
898
+ . ./activate-authawsvenv .sh
895
899
cat <<EOF > setup.js
896
900
const mongo_binaries = "$MONGODB_BINARIES";
897
901
const project_dir = "$ECS_SRC_DIR";
@@ -902,11 +906,12 @@ functions:
902
906
start-kms-mock-server :
903
907
- command : shell.exec
904
908
params :
909
+ shell : " bash"
905
910
script : |
906
911
${PREPARE_SHELL}
907
912
908
913
cd ${DRIVERS_TOOLS}/.evergreen/csfle
909
- . ./activate_venv .sh
914
+ . ./activate-kmstlsvenv .sh
910
915
- command : shell.exec
911
916
params :
912
917
background : true
@@ -917,11 +922,12 @@ functions:
917
922
start-kms-mock-server-require-client-cert :
918
923
- command : shell.exec
919
924
params :
925
+ shell : " bash"
920
926
script : |
921
927
${PREPARE_SHELL}
922
928
923
929
cd ${DRIVERS_TOOLS}/.evergreen/csfle
924
- . ./activate_venv .sh
930
+ . ./activate-kmstlsvenv .sh
925
931
- command : shell.exec
926
932
params :
927
933
background : true
@@ -932,17 +938,13 @@ functions:
932
938
start-cse-servers :
933
939
- command : shell.exec
934
940
params :
941
+ shell : " bash"
935
942
script : |
936
943
${PREPARE_SHELL}
937
944
938
945
cd ${DRIVERS_TOOLS}/.evergreen/csfle
946
+ . ./activate-kmstlsvenv.sh
939
947
940
- # only run this if virtualenv is installed
941
- if ${PYTHON3_BINARY} -m venv ./venv; then
942
- . ./activate_venv.sh
943
- else
944
- echo "Python module venv not found, skipping virtual environment setup..."
945
- fi
946
948
- command : shell.exec
947
949
params :
948
950
background : true
@@ -2074,21 +2076,18 @@ axes:
2074
2076
variables :
2075
2077
GCC_PATH : " /cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
2076
2078
GO_DIST : " C:\\ golang\\ go1.18"
2077
- PYTHON3_BINARY : " C:/python/Python38/python.exe"
2078
2079
VENV_BIN_DIR : " Scripts"
2079
2080
- id : " ubuntu1604-64-go-1-18"
2080
2081
display_name : " Ubuntu 16.04"
2081
2082
run_on : ubuntu1604-build
2082
2083
variables :
2083
2084
GO_DIST : " /opt/golang/go1.18"
2084
- PYTHON3_BINARY : " /opt/python/3.8/bin/python3"
2085
2085
- id : " osx-go-1-18"
2086
2086
display_name : " MacOS 11.0"
2087
2087
run_on : macos-1100
2088
2088
batchtime : 1440 # Run at most once per 24 hours.
2089
2089
variables :
2090
2090
GO_DIST : " /opt/golang/go1.18"
2091
- PYTHON3_BINARY : python3
2092
2091
2093
2092
# OSes that require >= 4.0 for SSL
2094
2093
- id : os-ssl-40
@@ -2101,21 +2100,18 @@ axes:
2101
2100
variables :
2102
2101
GCC_PATH : " /cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
2103
2102
GO_DIST : " C:\\ golang\\ go1.18"
2104
- PYTHON3_BINARY : " C:/python/Python38/python.exe"
2105
2103
VENV_BIN_DIR : " Scripts"
2106
2104
- id : " ubuntu1804-64-go-1-18"
2107
2105
display_name : " Ubuntu 18.04"
2108
2106
run_on : ubuntu1804-build
2109
2107
variables :
2110
2108
GO_DIST : " /opt/golang/go1.18"
2111
- PYTHON3_BINARY : " /opt/python/3.8/bin/python3"
2112
2109
- id : " osx-go-1-18"
2113
2110
display_name : " MacOS 11.0"
2114
2111
run_on : macos-1100
2115
2112
batchtime : 1440 # Run at most once per 24 hours.
2116
2113
variables :
2117
2114
GO_DIST : " /opt/golang/go1.18"
2118
- PYTHON3_BINARY : python3
2119
2115
2120
2116
# OCSP linux tasks need to run against this OS since stapling is disabled on Ubuntu 18.04 (SERVER-51364)
2121
2117
- id : ocsp-rhel-70
@@ -2126,7 +2122,6 @@ axes:
2126
2122
run_on : rhel70-build
2127
2123
variables :
2128
2124
GO_DIST : " /opt/golang/go1.18"
2129
- PYTHON3_BINARY : " /opt/python/3.6/bin/python3"
2130
2125
2131
2126
- id : os-aws-auth
2132
2127
display_name : OS
@@ -2139,13 +2134,11 @@ axes:
2139
2134
GCC_PATH : " /cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
2140
2135
GO_DIST : " C:\\ golang\\ go1.18"
2141
2136
SKIP_ECS_AUTH_TEST : true
2142
- PYTHON3_BINARY : " C:/python/Python38/python.exe"
2143
2137
- id : " ubuntu1804-64-go-1-18"
2144
2138
display_name : " Ubuntu 18.04"
2145
2139
run_on : ubuntu1804-test
2146
2140
variables :
2147
2141
GO_DIST : " /opt/golang/go1.18"
2148
- PYTHON3_BINARY : " /opt/python/3.8/bin/python3"
2149
2142
- id : " osx-go-1-18"
2150
2143
display_name : " MacOS 11.0"
2151
2144
run_on : macos-1100
@@ -2154,7 +2147,6 @@ axes:
2154
2147
GO_DIST : " /opt/golang/go1.18"
2155
2148
SKIP_ECS_AUTH_TEST : true
2156
2149
SKIP_EC2_AUTH_TEST : true
2157
- PYTHON3_BINARY : python3
2158
2150
2159
2151
task_groups :
2160
2152
- name : serverless_task_group
0 commit comments