1
1
stepback : true
2
2
command_type : system
3
3
exec_timeout_secs : 2100
4
+ patch_aliases :
5
+ - alias : nightly
6
+ variant_tags :
7
+ - nightly
8
+ task_tags :
9
+ - .*
4
10
timeout :
5
11
- command : subprocess.exec
6
12
params :
@@ -241,10 +247,31 @@ functions:
241
247
- command : shell.exec
242
248
type : test
243
249
params :
250
+ shell : bash
244
251
working_dir : src
245
252
timeout_secs : 300
246
253
script : |
247
254
${PREPARE_SHELL}
255
+ # Disable xtrace (just in case it was accidentally set).
256
+ set +x
257
+
258
+ cat <<EOT > prepare_client_encryption.sh
259
+ export CLIENT_ENCRYPTION=${CLIENT_ENCRYPTION}
260
+ export RUN_WITH_MONGOCRYPTD=${RUN_WITH_MONGOCRYPTD}
261
+ export CSFLE_KMS_PROVIDERS='${CSFLE_KMS_PROVIDERS}'
262
+ export FLE_AWS_KEY2='${FLE_AWS_KEY2}'
263
+ export FLE_AWS_SECRET2='${FLE_AWS_SECRET2}'
264
+ export AWS_ACCESS_KEY_ID='${AWS_ACCESS_KEY_ID}'
265
+ export AWS_SECRET_ACCESS_KEY='${AWS_SECRET_ACCESS_KEY}'
266
+ export AWS_REGION='${AWS_REGION}'
267
+ export AWS_CMK_ID='${AWS_CMK_ID}'
268
+ export AWS_DEFAULT_REGION='us-east-1'
269
+ export KMIP_TLS_CA_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/ca.pem"
270
+ export KMIP_TLS_CERT_FILE="${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem"
271
+ EOT
272
+
273
+ source prepare_client_encryption.sh
274
+ rm prepare_client_encryption.sh
248
275
249
276
MONGODB_URI="${MONGODB_URI}" \
250
277
AUTH=${AUTH} \
@@ -428,8 +455,6 @@ functions:
428
455
export AWS_CMK_ID='${AWS_CMK_ID}'
429
456
export AWS_ACCESS_KEY_ID='${AWS_ACCESS_KEY_ID}'
430
457
export AWS_SECRET_ACCESS_KEY='${AWS_SECRET_ACCESS_KEY}'
431
- export CSFLE_GIT_REF='${CSFLE_GIT_REF}'
432
- export CDRIVER_GIT_REF='${CDRIVER_GIT_REF}'
433
458
EOT
434
459
- command : shell.exec
435
460
type : test
@@ -886,8 +911,6 @@ functions:
886
911
export AWS_SECRET_ACCESS_KEY='${AWS_SECRET_ACCESS_KEY}'
887
912
export AWS_REGION='${AWS_REGION}'
888
913
export AWS_CMK_ID='${AWS_CMK_ID}'
889
- export CSFLE_GIT_REF='${CSFLE_GIT_REF}'
890
- export CDRIVER_GIT_REF='${CDRIVER_GIT_REF}'
891
914
EOT
892
915
- command : shell.exec
893
916
type : test
@@ -1035,6 +1058,17 @@ functions:
1035
1058
binary : bash
1036
1059
args :
1037
1060
- ${PROJECT_DIRECTORY}/.evergreen/run-x509-tests.sh
1061
+ install mongodb-client-encryption :
1062
+ - command : subprocess.exec
1063
+ type : setup
1064
+ params :
1065
+ working_dir : src
1066
+ env :
1067
+ INSTALL_DIR : mongodb-client-encryption
1068
+ PROJECT_DIRECTORY : ${PROJECT_DIRECTORY}
1069
+ binary : bash
1070
+ args :
1071
+ - ${PROJECT_DIRECTORY}/.evergreen/install-mongodb-client-encryption.sh
1038
1072
tasks :
1039
1073
- name : test-atlas-data-lake
1040
1074
tags :
@@ -3516,24 +3550,7 @@ tasks:
3516
3550
variant : ' *'
3517
3551
status : ' *'
3518
3552
patch_optional : true
3519
- - name : run-custom-csfle-tests-5.0-pinned-commit
3520
- tags :
3521
- - run-custom-dependency-tests
3522
- commands :
3523
- - command : expansions.update
3524
- type : setup
3525
- params :
3526
- updates :
3527
- - {key: NODE_LTS_VERSION, value: '16'}
3528
- - {key: NPM_VERSION, value: '9'}
3529
- - {key: VERSION, value: '5.0'}
3530
- - {key: TOPOLOGY, value: replica_set}
3531
- - {key: CSFLE_GIT_REF, value: 974a4614f8c1c3786e5e39fa63568d83f4f69ebd}
3532
- - func : install dependencies
3533
- - func : bootstrap mongo-orchestration
3534
- - func : bootstrap kms servers
3535
- - func : run custom csfle tests
3536
- - name : run-custom-csfle-tests-5.0-master
3553
+ - name : run-custom-csfle-tests-5.0
3537
3554
tags :
3538
3555
- run-custom-dependency-tests
3539
3556
commands :
@@ -3545,29 +3562,12 @@ tasks:
3545
3562
- {key: NPM_VERSION, value: '9'}
3546
3563
- {key: VERSION, value: '5.0'}
3547
3564
- {key: TOPOLOGY, value: replica_set}
3548
- - {key: CSFLE_GIT_REF, value: master}
3549
- - func : install dependencies
3550
- - func : bootstrap mongo-orchestration
3551
- - func : bootstrap kms servers
3552
- - func : run custom csfle tests
3553
- - name : run-custom-csfle-tests-rapid-pinned-commit
3554
- tags :
3555
- - run-custom-dependency-tests
3556
- commands :
3557
- - command : expansions.update
3558
- type : setup
3559
- params :
3560
- updates :
3561
- - {key: NODE_LTS_VERSION, value: '16'}
3562
- - {key: NPM_VERSION, value: '9'}
3563
- - {key: VERSION, value: rapid}
3564
- - {key: TOPOLOGY, value: replica_set}
3565
- - {key: CSFLE_GIT_REF, value: 974a4614f8c1c3786e5e39fa63568d83f4f69ebd}
3566
3565
- func : install dependencies
3567
3566
- func : bootstrap mongo-orchestration
3568
3567
- func : bootstrap kms servers
3568
+ - func : install mongodb-client-encryption
3569
3569
- func : run custom csfle tests
3570
- - name : run-custom-csfle-tests-rapid-master
3570
+ - name : run-custom-csfle-tests-rapid
3571
3571
tags :
3572
3572
- run-custom-dependency-tests
3573
3573
commands :
@@ -3579,12 +3579,12 @@ tasks:
3579
3579
- {key: NPM_VERSION, value: '9'}
3580
3580
- {key: VERSION, value: rapid}
3581
3581
- {key: TOPOLOGY, value: replica_set}
3582
- - {key: CSFLE_GIT_REF, value: master}
3583
3582
- func : install dependencies
3584
3583
- func : bootstrap mongo-orchestration
3585
3584
- func : bootstrap kms servers
3585
+ - func : install mongodb-client-encryption
3586
3586
- func : run custom csfle tests
3587
- - name : run-custom-csfle-tests-latest-pinned-commit
3587
+ - name : run-custom-csfle-tests-latest
3588
3588
tags :
3589
3589
- run-custom-dependency-tests
3590
3590
commands :
@@ -3596,27 +3596,10 @@ tasks:
3596
3596
- {key: NPM_VERSION, value: '9'}
3597
3597
- {key: VERSION, value: latest}
3598
3598
- {key: TOPOLOGY, value: replica_set}
3599
- - {key: CSFLE_GIT_REF, value: 974a4614f8c1c3786e5e39fa63568d83f4f69ebd}
3600
- - func : install dependencies
3601
- - func : bootstrap mongo-orchestration
3602
- - func : bootstrap kms servers
3603
- - func : run custom csfle tests
3604
- - name : run-custom-csfle-tests-latest-master
3605
- tags :
3606
- - run-custom-dependency-tests
3607
- commands :
3608
- - command : expansions.update
3609
- type : setup
3610
- params :
3611
- updates :
3612
- - {key: NODE_LTS_VERSION, value: '16'}
3613
- - {key: NPM_VERSION, value: '9'}
3614
- - {key: VERSION, value: latest}
3615
- - {key: TOPOLOGY, value: replica_set}
3616
- - {key: CSFLE_GIT_REF, value: master}
3617
3599
- func : install dependencies
3618
3600
- func : bootstrap mongo-orchestration
3619
3601
- func : bootstrap kms servers
3602
+ - func : install mongodb-client-encryption
3620
3603
- func : run custom csfle tests
3621
3604
- name : test-latest-driver-mongodb-client-encryption-6.0.0
3622
3605
tags :
@@ -4348,6 +4331,26 @@ tasks:
4348
4331
- func : bootstrap mongo-orchestration
4349
4332
- func : bootstrap kms servers
4350
4333
- func : run tests
4334
+ - name : run-custom-csfle-tests-with-libmongocrypt-latest
4335
+ tags :
4336
+ - run-custom-dependency-tests
4337
+ - nightly
4338
+ commands :
4339
+ - command : expansions.update
4340
+ type : setup
4341
+ params :
4342
+ updates :
4343
+ - {key: NODE_LTS_VERSION, value: '16'}
4344
+ - {key: NPM_VERSION, value: '9'}
4345
+ - {key: VERSION, value: '8.0'}
4346
+ - {key: TOPOLOGY, value: replica_set}
4347
+ - func : install dependencies
4348
+ - func : bootstrap mongo-orchestration
4349
+ - func : bootstrap kms servers
4350
+ - func : install mongodb-client-encryption
4351
+ vars :
4352
+ LIBMONGOCRYPT_VERSION : latest
4353
+ - func : run custom csfle tests
4351
4354
task_groups :
4352
4355
- name : serverless_task_group
4353
4356
setup_group_can_fail_task : true
@@ -5118,12 +5121,9 @@ buildvariants:
5118
5121
display_name : Custom Dependency Version Test
5119
5122
run_on : rhel80-large
5120
5123
tasks :
5121
- - run-custom-csfle-tests-5.0-pinned-commit
5122
- - run-custom-csfle-tests-5.0-master
5123
- - run-custom-csfle-tests-rapid-pinned-commit
5124
- - run-custom-csfle-tests-rapid-master
5125
- - run-custom-csfle-tests-latest-pinned-commit
5126
- - run-custom-csfle-tests-latest-master
5124
+ - run-custom-csfle-tests-5.0
5125
+ - run-custom-csfle-tests-rapid
5126
+ - run-custom-csfle-tests-latest
5127
5127
- test-latest-driver-mongodb-client-encryption-6.0.0
5128
5128
- name : rhel8-test-serverless
5129
5129
display_name : Serverless Test
@@ -5217,3 +5217,8 @@ buildvariants:
5217
5217
run_on : rhel80-large
5218
5218
tasks :
5219
5219
- test_atlas_task_group_search_indexes
5220
+ - name : nightly
5221
+ display_name : Nightly Build
5222
+ run_on : rhel80-large
5223
+ tasks :
5224
+ - .nightly
0 commit comments