@@ -129,13 +129,21 @@ functions:
129
129
params :
130
130
role_arn : ${aws_test_secrets_role}
131
131
132
+ " gradle-cache " :
133
+ - command : shell.exec
134
+ params :
135
+ working_dir : " src"
136
+ script : |
137
+ export GRADLE_RO_DEP_CACHE="$(pwd)/build/gradle-cache"
138
+ .evergreen/gradle-cache.sh
139
+
132
140
" create-archive-tar-file " :
133
141
- command : shell.exec
134
142
params :
135
143
working_dir : " src"
136
144
script : |
137
145
echo "Creating archive tar file at ${ARCHIVE_FILE_PATH}"
138
- tar --exclude="**build/" --exclude -vcs -czf "${ARCHIVE_FILE_PATH}" .
146
+ tar --exclude-vcs -czf "${ARCHIVE_FILE_PATH}" .
139
147
echo "Created archive tar file at ${ARCHIVE_FILE_PATH}"
140
148
141
149
" start-mongo-orchestration " :
@@ -820,7 +828,7 @@ functions:
820
828
${PREPARE_SHELL}
821
829
export K8S_VARIANT=${VARIANT}
822
830
export K8S_DRIVERS_TAR_FILE=$ARCHIVE_FILE_PATH
823
- export K8S_TEST_CMD="OIDC_ENV=k8s VARIANT=${VARIANT} ./.evergreen/run-mongodb-oidc-test.sh"
831
+ export K8S_TEST_CMD="GRADLE_RO_DEP_CACHE='./build/gradle-cache' OIDC_ENV=k8s VARIANT=${VARIANT} ./.evergreen/run-mongodb-oidc-test.sh"
824
832
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/setup-pod.sh
825
833
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/run-self-test.sh
826
834
source $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/secrets-export.sh
@@ -936,6 +944,8 @@ tasks:
936
944
- .evergreen/run-mongodb-oidc-test.sh
937
945
938
946
- name : " oidc-auth-test-azure-task"
947
+ # Might exceed 1 hour of execution.
948
+ exec_timeout_secs : 7200
939
949
commands :
940
950
- command : shell.exec
941
951
params :
@@ -948,11 +958,13 @@ tasks:
948
958
set -o errexit
949
959
${PREPARE_SHELL}
950
960
export AZUREOIDC_DRIVERS_TAR_FILE=$ARCHIVE_FILE_PATH
951
- export AZUREOIDC_TEST_CMD="OIDC_ENV=azure ./.evergreen/run-mongodb-oidc-test.sh"
952
- tar --exclude="**build/" --exclude -vcs -czf $AZUREOIDC_DRIVERS_TAR_FILE .
961
+ export AZUREOIDC_TEST_CMD="GRADLE_RO_DEP_CACHE='/home/azureuser/build/gradle-cache' OIDC_ENV=azure ./.evergreen/run-mongodb-oidc-test.sh"
962
+ tar --exclude-vcs -czf $AZUREOIDC_DRIVERS_TAR_FILE .
953
963
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/azure/run-driver-test.sh
954
964
955
965
- name : " oidc-auth-test-gcp-task"
966
+ # Might exceed 1 hour of execution.
967
+ exec_timeout_secs : 7200
956
968
commands :
957
969
- command : shell.exec
958
970
params :
@@ -966,8 +978,8 @@ tasks:
966
978
# Define the command to run on the VM.
967
979
# Ensure that we source the environment file created for us, set up any other variables we need,
968
980
# and then run our test suite on the vm.
969
- export GCPOIDC_TEST_CMD="OIDC_ENV=gcp ./.evergreen/run-mongodb-oidc-test.sh"
970
- tar --exclude="**build/" --exclude -vcs -czf $GCPOIDC_DRIVERS_TAR_FILE .
981
+ export GCPOIDC_TEST_CMD="GRADLE_RO_DEP_CACHE='./build/gradle-cache' OIDC_ENV=gcp ./.evergreen/run-mongodb-oidc-test.sh"
982
+ tar --exclude-vcs -czf $GCPOIDC_DRIVERS_TAR_FILE .
971
983
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/gcp/run-driver-test.sh
972
984
973
985
- name : " oidc-auth-test-k8s-task"
@@ -1711,7 +1723,7 @@ tasks:
1711
1723
export AZUREKMS_RESOURCEGROUP=${testazurekms_resourcegroup}
1712
1724
export AZUREKMS_VMNAME=${AZUREKMS_VMNAME}
1713
1725
export AZUREKMS_PRIVATEKEYPATH=/tmp/testazurekms_privatekey
1714
- AZUREKMS_CMD="MONGODB_URI=mongodb://localhost:27017 PROVIDER=azure AZUREKMS_KEY_VAULT_ENDPOINT=${testazurekms_keyvaultendpoint} AZUREKMS_KEY_NAME=${testazurekms_keyname} ./.evergreen/run-fle-on-demand-credential-test.sh" $DRIVERS_TOOLS/.evergreen/csfle/azurekms/run-command.sh
1726
+ AZUREKMS_CMD="GRADLE_RO_DEP_CACHE='/home/azureuser/build/gradle-cache' MONGODB_URI=mongodb://localhost:27017 PROVIDER=azure AZUREKMS_KEY_VAULT_ENDPOINT=${testazurekms_keyvaultendpoint} AZUREKMS_KEY_NAME=${testazurekms_keyname} ./.evergreen/run-fle-on-demand-credential-test.sh" $DRIVERS_TOOLS/.evergreen/csfle/azurekms/run-command.sh
1715
1727
1716
1728
- name : " test-socks5-task"
1717
1729
tags : [ ]
@@ -1970,6 +1982,7 @@ task_groups:
1970
1982
- func : " fetch-source"
1971
1983
- func : " prepare-resources"
1972
1984
- func : " fix-absolute-paths"
1985
+ - func : " gradle-cache"
1973
1986
- func : " create-archive-tar-file"
1974
1987
- command : shell.exec
1975
1988
params :
@@ -2007,6 +2020,7 @@ task_groups:
2007
2020
- func : " fetch-source"
2008
2021
- func : " prepare-resources"
2009
2022
- func : " fix-absolute-paths"
2023
+ - func : " gradle-cache"
2010
2024
- func : " create-archive-tar-file"
2011
2025
- func : " assume-aws-test-secrets-role"
2012
2026
- command : shell.exec
@@ -2082,6 +2096,7 @@ task_groups:
2082
2096
- func : " fetch-source"
2083
2097
- func : " prepare-resources"
2084
2098
- func : " fix-absolute-paths"
2099
+ - func : " gradle-cache"
2085
2100
- func : " create-archive-tar-file"
2086
2101
- func : " assume-aws-test-secrets-role"
2087
2102
- command : subprocess.exec
@@ -2110,6 +2125,7 @@ task_groups:
2110
2125
- func : " fetch-source"
2111
2126
- func : " prepare-resources"
2112
2127
- func : " fix-absolute-paths"
2128
+ - func : " gradle-cache"
2113
2129
- func : " create-archive-tar-file"
2114
2130
- func : " assume-aws-test-secrets-role"
2115
2131
- command : subprocess.exec
@@ -2139,6 +2155,7 @@ task_groups:
2139
2155
- func : " fetch-source"
2140
2156
- func : " prepare-resources"
2141
2157
- func : " fix-absolute-paths"
2158
+ - func : " gradle-cache"
2142
2159
- func : " create-archive-tar-file"
2143
2160
- func : " assume-aws-test-secrets-role"
2144
2161
- command : subprocess.exec
@@ -2192,14 +2209,14 @@ buildvariants:
2192
2209
2193
2210
- name : " test-oidc-azure-variant"
2194
2211
display_name : " OIDC Auth Azure"
2195
- run_on : ubuntu2204-small
2212
+ run_on : ubuntu2204-large
2196
2213
tasks :
2197
2214
- name : " test-oidc-azure-task-group"
2198
2215
batchtime : 20160 # 14 days
2199
2216
2200
2217
- name : " test-oidc-gcp-variant"
2201
2218
display_name : " OIDC Auth GCP"
2202
- run_on : ubuntu2204-small
2219
+ run_on : ubuntu2204-large
2203
2220
tasks :
2204
2221
- name : " test-oidc-gcp-task-group"
2205
2222
batchtime : 20160 # 14 days
0 commit comments