@@ -336,15 +336,9 @@ functions:
336
336
script : |
337
337
set -o xtrace
338
338
set -o errexit
339
-
340
- if [ "${SWIFT_MINOR_VERSION}" = "main-snapshot" ]; then
341
- export SWIFT_VERSION="${SWIFT_MINOR_VERSION}"
342
- else
343
- # otherwise, find the latest patch release for the specified version
344
- ${PYTHON} -m virtualenv ./requests-env
345
- ./requests-env/${VENV_BIN_DIR}/python3 -m pip install requests
346
- export SWIFT_VERSION="$(./requests-env/${VENV_BIN_DIR}/python3 .evergreen/get_latest_swift_patch.py ${SWIFT_MINOR_VERSION})"
347
- fi
339
+ ${PYTHON} -m virtualenv ./requests-env
340
+ ./requests-env/${VENV_BIN_DIR}/python3 -m pip install requests
341
+ export SWIFT_VERSION="$(./requests-env/${VENV_BIN_DIR}/python3 .evergreen/get_latest_swift_patch.py ${SWIFT_MINOR_VERSION})"
348
342
echo "SWIFT_VERSION: $SWIFT_VERSION" > swift-version.yml
349
343
cat swift-version.yml
350
344
- command : expansions.update
@@ -620,6 +614,72 @@ tasks:
620
614
MONGODB_VERSION : " 5.0"
621
615
TOPOLOGY : " sharded_cluster"
622
616
- func : " run tests"
617
+
618
+ - name : " test-5.0-load_balancer"
619
+ tags : ["5.0", "load-balancer"]
620
+ commands :
621
+ - func : " prepare resources"
622
+ - func : " fix absolute paths"
623
+ - func : " bootstrap mongo-orchestration"
624
+ vars :
625
+ MONGODB_VERSION : " 5.0"
626
+ TOPOLOGY : " sharded_cluster"
627
+ LOAD_BALANCER : " true"
628
+ - func : start-load-balancer
629
+ - func : " run-lb-tests"
630
+ vars :
631
+ TOPOLOGY : " load_balanced"
632
+ - func : stop-load-balancer
633
+
634
+ - name : " test-6.0-standalone"
635
+ tags : ["6.0", "standalone"]
636
+ commands :
637
+ - func : " prepare resources"
638
+ - func : " fix absolute paths"
639
+ - func : " bootstrap mongo-orchestration"
640
+ vars :
641
+ MONGODB_VERSION : " 6.0"
642
+ TOPOLOGY : " server"
643
+ - func : " run tests"
644
+
645
+ - name : " test-6.0-replica_set"
646
+ tags : ["6.0", "replica_set"]
647
+ commands :
648
+ - func : " prepare resources"
649
+ - func : " fix absolute paths"
650
+ - func : " bootstrap mongo-orchestration"
651
+ vars :
652
+ MONGODB_VERSION : " 6.0"
653
+ TOPOLOGY : " replica_set"
654
+ - func : " run tests"
655
+
656
+ - name : " test-6.0-sharded_cluster"
657
+ tags : ["6.0", "sharded_cluster"]
658
+ exec_timeout_secs : 3600 # TODO SWIFT-1410: remove
659
+ commands :
660
+ - func : " prepare resources"
661
+ - func : " fix absolute paths"
662
+ - func : " bootstrap mongo-orchestration"
663
+ vars :
664
+ MONGODB_VERSION : " 6.0"
665
+ TOPOLOGY : " sharded_cluster"
666
+ - func : " run tests"
667
+
668
+ - name : " test-6.0-load_balancer"
669
+ tags : ["6.0", "load-balancer"]
670
+ commands :
671
+ - func : " prepare resources"
672
+ - func : " fix absolute paths"
673
+ - func : " bootstrap mongo-orchestration"
674
+ vars :
675
+ MONGODB_VERSION : " 6.0"
676
+ TOPOLOGY : " sharded_cluster"
677
+ LOAD_BALANCER : " true"
678
+ - func : start-load-balancer
679
+ - func : " run-lb-tests"
680
+ vars :
681
+ TOPOLOGY : " load_balanced"
682
+ - func : stop-load-balancer
623
683
624
684
- name : " test-latest-standalone"
625
685
tags : ["latest", "standalone"]
@@ -671,6 +731,56 @@ tasks:
671
731
TOPOLOGY : " load_balanced"
672
732
- func : stop-load-balancer
673
733
734
+ - name : " test-rapid-standalone"
735
+ tags : ["rapid", "standalone"]
736
+ commands :
737
+ - func : " prepare resources"
738
+ - func : " fix absolute paths"
739
+ - func : " bootstrap mongo-orchestration"
740
+ vars :
741
+ MONGODB_VERSION : " rapid"
742
+ TOPOLOGY : " server"
743
+ - func : " run tests"
744
+
745
+ - name : " test-rapid-replica_set"
746
+ tags : ["rapid", "replica_set"]
747
+ commands :
748
+ - func : " prepare resources"
749
+ - func : " fix absolute paths"
750
+ - func : " bootstrap mongo-orchestration"
751
+ vars :
752
+ MONGODB_VERSION : " rapid"
753
+ TOPOLOGY : " replica_set"
754
+ - func : " run tests"
755
+
756
+ - name : " test-rapid-sharded_cluster"
757
+ tags : ["rapid", "sharded_cluster"]
758
+ exec_timeout_secs : 3600 # TODO SWIFT-1410: remove
759
+ commands :
760
+ - func : " prepare resources"
761
+ - func : " fix absolute paths"
762
+ - func : " bootstrap mongo-orchestration"
763
+ vars :
764
+ MONGODB_VERSION : " rapid"
765
+ TOPOLOGY : " sharded_cluster"
766
+ - func : " run tests"
767
+
768
+ - name : " test-rapid-load_balancer"
769
+ tags : ["rapid", "load-balancer"]
770
+ commands :
771
+ - func : " prepare resources"
772
+ - func : " fix absolute paths"
773
+ - func : " bootstrap mongo-orchestration"
774
+ vars :
775
+ MONGODB_VERSION : " rapid"
776
+ TOPOLOGY : " sharded_cluster"
777
+ LOAD_BALANCER : " true"
778
+ - func : start-load-balancer
779
+ - func : " run-lb-tests"
780
+ vars :
781
+ TOPOLOGY : " load_balanced"
782
+ - func : stop-load-balancer
783
+
674
784
- name : " test-atlas-connectivity"
675
785
tags : ["atlas-connect"]
676
786
commands :
@@ -1049,6 +1159,14 @@ axes:
1049
1159
display_name : " latest"
1050
1160
variables :
1051
1161
MONGODB_VERSION : " latest"
1162
+ - id : " rapid"
1163
+ display_name : " rapid"
1164
+ variables :
1165
+ MONGODB_VERSION : " rapid"
1166
+ - id : " 6.0"
1167
+ display_name : " 6.0"
1168
+ variables :
1169
+ MONGODB_VERSION : " 6.0"
1052
1170
- id : " 5.0"
1053
1171
display_name : " 5.0"
1054
1172
variables :
@@ -1087,6 +1205,13 @@ axes:
1087
1205
PYTHON : " /opt/mongodbtoolchain/v3/bin/python3"
1088
1206
VENV_BIN_DIR : " bin"
1089
1207
1208
+ - id : macos-10.14
1209
+ display_name : " macOS 10.14"
1210
+ run_on : macos-1014
1211
+ variables :
1212
+ PYTHON : " /opt/mongodbtoolchain/v3/bin/python3"
1213
+ VENV_BIN_DIR : " bin"
1214
+
1090
1215
- id : macos-11
1091
1216
display_name : " macOS 11"
1092
1217
run_on : macos-1100
@@ -1112,10 +1237,6 @@ axes:
1112
1237
- id : swift-version
1113
1238
display_name : " Swift"
1114
1239
values :
1115
- - id : " 5.1"
1116
- display_name : " Swift 5.1"
1117
- variables :
1118
- SWIFT_MINOR_VERSION : " 5.1"
1119
1240
- id : " 5.2"
1120
1241
display_name : " Swift 5.2"
1121
1242
variables :
@@ -1250,27 +1371,32 @@ buildvariants:
1250
1371
1251
1372
- matrix_name : " min-version-compile"
1252
1373
matrix_spec :
1253
- # Ubuntu 20.04 does not have Swift 5.1 toolchains.
1254
1374
os-fully-featured :
1255
- - " macos-11"
1256
- - " ubuntu-18.04"
1257
- swift-version : " 5.1"
1375
+ - macos-10.14
1376
+ - ubuntu-18.04
1377
+ - ubuntu-20.04
1378
+ swift-version : " 5.2"
1258
1379
display_name : " Compile ${swift-version} ${os-fully-featured}"
1259
1380
tasks :
1260
1381
- " compile"
1261
1382
1262
1383
- matrix_name : " tests-all"
1263
1384
matrix_spec :
1264
- os-fully-featured : " *"
1385
+ os-fully-featured :
1386
+ - macos-11
1387
+ - ubuntu-18.04
1388
+ - ubuntu-20.04
1265
1389
swift-version :
1266
1390
- " 5.5"
1267
1391
- " 5.6"
1268
1392
- " 5.7-dev"
1269
1393
ssl-auth : " *"
1270
1394
display_name : " ${swift-version} ${os-fully-featured} ${ssl-auth}"
1271
1395
tasks :
1396
+ - " .rapid !.load-balancer"
1272
1397
- " .latest !.load-balancer"
1273
- - " .5.0"
1398
+ - " .6.0 !.load-balancer"
1399
+ - " .5.0 !.load-balancer"
1274
1400
- " .4.4"
1275
1401
- " .4.2"
1276
1402
- " .4.0"
@@ -1302,7 +1428,10 @@ buildvariants:
1302
1428
1303
1429
- matrix_name : " atlas-connect"
1304
1430
matrix_spec :
1305
- os-fully-featured : " *"
1431
+ os-fully-featured :
1432
+ - macos-11
1433
+ - ubuntu-18.04
1434
+ - ubuntu-20.04
1306
1435
swift-version :
1307
1436
- " 5.5"
1308
1437
- " 5.6"
@@ -1340,6 +1469,8 @@ buildvariants:
1340
1469
- " ubuntu-20.04"
1341
1470
versions :
1342
1471
- latest
1472
+ - rapid
1473
+ - 6.0
1343
1474
- 5.0
1344
1475
- 4.4
1345
1476
swift-version : " 5.6"
@@ -1363,6 +1494,8 @@ buildvariants:
1363
1494
swift-version : " 5.6"
1364
1495
versions :
1365
1496
- latest
1497
+ - rapid
1498
+ - 6.0
1366
1499
- 5.0
1367
1500
- 4.4
1368
1501
display_name : " OCSP ${swift-version} ${os-fully-featured} ${versions}"
@@ -1382,6 +1515,9 @@ buildvariants:
1382
1515
tasks :
1383
1516
# Versioned API was introduced in MongoDB 4.7
1384
1517
- " test-latest-standalone"
1518
+ - " test-rapid-standalone"
1519
+ - " test-6.0-standalone"
1520
+ - " test-5.0-standalone"
1385
1521
1386
1522
- matrix_name : " format-lint"
1387
1523
display_name : " Format and Lint"
@@ -1418,4 +1554,4 @@ buildvariants:
1418
1554
ssl-auth : " *"
1419
1555
check-leaks : " leaks"
1420
1556
tasks :
1421
- - " .5.0 "
1557
+ - " .6.0 !.load-balancer "
0 commit comments