@@ -1139,6 +1139,33 @@ tasks:
1139
1139
TOPOLOGY : " sharded_cluster"
1140
1140
- func : " run tests"
1141
1141
1142
+ - name : " test-5.0-standalone"
1143
+ tags : ["5.0", "standalone"]
1144
+ commands :
1145
+ - func : " bootstrap mongo-orchestration"
1146
+ vars :
1147
+ VERSION : " 5.0"
1148
+ TOPOLOGY : " server"
1149
+ - func : " run tests"
1150
+
1151
+ - name : " test-5.0-replica_set"
1152
+ tags : ["5.0", "replica_set"]
1153
+ commands :
1154
+ - func : " bootstrap mongo-orchestration"
1155
+ vars :
1156
+ VERSION : " 5.0"
1157
+ TOPOLOGY : " replica_set"
1158
+ - func : " run tests"
1159
+
1160
+ - name : " test-5.0-sharded_cluster"
1161
+ tags : ["5.0", "sharded_cluster"]
1162
+ commands :
1163
+ - func : " bootstrap mongo-orchestration"
1164
+ vars :
1165
+ VERSION : " 5.0"
1166
+ TOPOLOGY : " sharded_cluster"
1167
+ - func : " run tests"
1168
+
1142
1169
- name : " test-latest-standalone"
1143
1170
tags : ["latest", "standalone"]
1144
1171
commands :
@@ -1561,6 +1588,22 @@ tasks:
1561
1588
- func : " run aws auth test with aws EC2 credentials"
1562
1589
- func : " run aws ECS auth test"
1563
1590
1591
+ - name : " aws-auth-test-5.0"
1592
+ commands :
1593
+ - func : " bootstrap mongo-orchestration"
1594
+ vars :
1595
+ AUTH : " auth"
1596
+ ORCHESTRATION_FILE : " auth-aws.json"
1597
+ TOPOLOGY : " server"
1598
+ VERSION : " 5.0"
1599
+ - func : " add aws auth variables to file"
1600
+ - func : " run aws auth test with regular aws credentials"
1601
+ - func : " run aws auth test with assume role credentials"
1602
+ - func : " run aws auth test with aws credentials as environment variables"
1603
+ - func : " run aws auth test with aws credentials and session token as environment variables"
1604
+ - func : " run aws auth test with aws EC2 credentials"
1605
+ - func : " run aws ECS auth test"
1606
+
1564
1607
- name : " aws-auth-test-latest"
1565
1608
commands :
1566
1609
- func : " bootstrap mongo-orchestration"
@@ -1619,6 +1662,7 @@ axes:
1619
1662
batchtime : 10080 # 7 days
1620
1663
variables :
1621
1664
libmongocrypt_url : https://s3.amazonaws.com/mciuploads/libmongocrypt/linux-64-amazon-ami/master/latest/libmongocrypt.tar.gz
1665
+ python3_binary : " /opt/python/3.8/bin/python3"
1622
1666
- id : archlinux-test
1623
1667
display_name : " Archlinux"
1624
1668
run_on : archlinux-test
@@ -1669,10 +1713,10 @@ axes:
1669
1713
python3_binary : " /opt/python/3.8/bin/python3"
1670
1714
- id : ubuntu-18.04
1671
1715
display_name : " Ubuntu 18.04"
1672
- run_on : ubuntu1804-test
1716
+ run_on : ubuntu1804-small
1673
1717
batchtime : 10080 # 7 days
1674
1718
variables :
1675
- python3_binary : python3
1719
+ python3_binary : " /opt/python/3.8/bin/ python3"
1676
1720
- id : ubuntu-20.04
1677
1721
display_name : " Ubuntu 20.04"
1678
1722
run_on : ubuntu2004-small
@@ -1801,6 +1845,10 @@ axes:
1801
1845
display_name : " MongoDB latest"
1802
1846
variables :
1803
1847
VERSION : " latest"
1848
+ - id : " 5.0"
1849
+ display_name : " MongoDB 5.0"
1850
+ variables :
1851
+ VERSION : " 5.0"
1804
1852
1805
1853
# Choice of Python runtime version
1806
1854
- id : python-version
@@ -2081,6 +2129,7 @@ buildvariants:
2081
2129
display_name : " ${platform} ${auth-ssl}"
2082
2130
tasks : &all-server-versions
2083
2131
- " .latest"
2132
+ - " .5.0"
2084
2133
- " .4.4"
2085
2134
- " .4.2"
2086
2135
- " .4.0"
@@ -2101,6 +2150,7 @@ buildvariants:
2101
2150
display_name : " Encryption ${platform} ${auth-ssl}"
2102
2151
tasks : &encryption-server-versions
2103
2152
- " .latest"
2153
+ - " .5.0"
2104
2154
- " .4.4"
2105
2155
- " .4.2"
2106
2156
- " .4.0"
@@ -2123,23 +2173,6 @@ buildvariants:
2123
2173
- " .3.0"
2124
2174
- " .2.6"
2125
2175
2126
- - matrix_name : " tests-os-requires-32"
2127
- matrix_spec :
2128
- platform :
2129
- # OSes that support versions of MongoDB>=3.2 with SSL.
2130
- - ubuntu-16.04
2131
- - suse12-x86-64-test
2132
- auth-ssl : " *"
2133
- display_name : " ${platform} ${auth-ssl}"
2134
- tasks :
2135
- - " .latest"
2136
- - " .4.4"
2137
- - " .4.2"
2138
- - " .4.0"
2139
- - " .3.6"
2140
- - " .3.4"
2141
- - " .3.2"
2142
-
2143
2176
- matrix_name : " test-macos"
2144
2177
matrix_spec :
2145
2178
platform :
@@ -2156,6 +2189,7 @@ buildvariants:
2156
2189
display_name : " ${platform} ${auth} ${ssl}"
2157
2190
tasks :
2158
2191
- " .latest"
2192
+ - " .5.0"
2159
2193
- " .4.4"
2160
2194
- " .4.2"
2161
2195
- " .4.0"
@@ -2237,23 +2271,23 @@ buildvariants:
2237
2271
2238
2272
- matrix_name : " tests-pyopenssl"
2239
2273
matrix_spec :
2240
- platform : ubuntu-16.04
2274
+ platform : awslinux
2241
2275
python-version : ["2.7", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9"]
2242
2276
auth : " *"
2243
2277
ssl : " ssl"
2244
2278
pyopenssl : " *"
2245
2279
# Only test "noauth" with Python 3.7.
2246
2280
exclude_spec :
2247
- platform : ubuntu-16.04
2281
+ platform : awslinux
2248
2282
python-version : ["2.7", "3.4", "3.5", "3.6", "3.8", "3.9"]
2249
2283
auth : " noauth"
2250
2284
ssl : " ssl"
2251
2285
pyopenssl : " *"
2252
2286
display_name : " PyOpenSSL ${platform} ${python-version} ${auth}"
2253
2287
tasks :
2254
2288
- ' .replica_set !.2.6 !.3.0'
2255
- # Test standalone and sharded only on 4.4 .
2256
- - ' .4.4 '
2289
+ # Test standalone and sharded only on 5.0 .
2290
+ - ' .5.0 '
2257
2291
2258
2292
- matrix_name : " tests-pyopenssl-pypy"
2259
2293
matrix_spec :
@@ -2265,8 +2299,8 @@ buildvariants:
2265
2299
display_name : " PyOpenSSL ${platform} ${python-version} ${auth}"
2266
2300
tasks :
2267
2301
- ' .replica_set !.2.6 !.3.0 !.3.2 !.3.4'
2268
- # Test standalone and sharded only on 4.4 .
2269
- - ' .4.4 '
2302
+ # Test standalone and sharded only on 5.0 .
2303
+ - ' .5.0 '
2270
2304
2271
2305
- matrix_name : " test-pyopenssl-old-py27"
2272
2306
matrix_spec :
@@ -2340,42 +2374,58 @@ buildvariants:
2340
2374
display_name : " ${c-extensions} ${python-version} ${platform} ${auth} ${ssl} ${coverage}"
2341
2375
tasks : *all-server-versions
2342
2376
2343
- - matrix_name : " tests-python-version-ubuntu16 -compression"
2377
+ - matrix_name : " tests-python-version-ubuntu18 -compression"
2344
2378
matrix_spec :
2345
- # Ubuntu 16.04 images have libsnappy-dev installed, and provides OpenSSL 1.0.2 for testing Python 3.7
2346
- platform : ubuntu-16.04
2379
+ platform : [awslinux, ubuntu-18.04]
2347
2380
python-version : ["2.7", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy", "pypy3.5", "pypy3.6", "pypy3.7", "jython2.7"]
2348
2381
c-extensions : " *"
2349
2382
compression : " *"
2350
2383
exclude_spec :
2384
+ # Only test snappy on Ubuntu-18.04 as Ubuntu 18.04 images have libsnappy-dev installed
2385
+ - platform : awslinux
2386
+ python-version : " *"
2387
+ c-extensions : " *"
2388
+ compression : ["snappy"]
2389
+ # Ubuntu-18.04 does not have Python 3.4 installed
2390
+ - platform : ubuntu-18.04
2391
+ python-version : ["3.4"]
2392
+ c-extensions : " *"
2393
+ compression : ["snappy"]
2394
+ # Only test zlib and zstd on Amazon Linux
2395
+ - platform : ubuntu-18.04
2396
+ python-version : " *"
2397
+ c-extensions : " *"
2398
+ compression : ["zlib", "zstd"]
2351
2399
# These interpreters are always tested without extensions.
2352
- - platform : ubuntu-16.04
2400
+ - platform : " * "
2353
2401
python-version : ["pypy", "pypy3.5", "pypy3.6", "pypy3.7", "jython2.7"]
2354
2402
c-extensions : " with-c-extensions"
2355
2403
compression : " *"
2356
2404
# Jython doesn't support some compression types.
2357
- - platform : ubuntu-16.04
2405
+ - platform : " * "
2358
2406
python-version : ["jython2.7"]
2359
2407
c-extensions : " *"
2360
2408
compression : ["snappy", "zstd"]
2361
2409
# PYTHON-2365 Some tests fail with CPython 3.8+ and python-snappy
2362
- - platform : ubuntu-16.04
2410
+ - platform : " * "
2363
2411
python-version : ["3.8", "3.9"]
2364
2412
c-extensions : " *"
2365
2413
compression : ["snappy"]
2366
2414
display_name : " ${compression} ${c-extensions} ${python-version} ${platform}"
2367
2415
tasks :
2368
2416
- " test-latest-standalone"
2417
+ - " test-5.0-standalone"
2369
2418
- " test-4.4-standalone"
2370
2419
- " test-4.2-standalone"
2371
2420
rules :
2372
- # Server versions 3.6 and 4.0 support snappy and zlib.
2421
+ # Server versions 3.6+ support snappy and zlib.
2373
2422
- if :
2374
2423
python-version : " *"
2375
2424
c-extensions : " *"
2376
2425
compression : ["snappy", "zlib"]
2377
2426
then :
2378
2427
add_tasks :
2428
+ - " test-5.0-standalone"
2379
2429
- " test-4.0-standalone"
2380
2430
- " test-3.6-standalone"
2381
2431
@@ -2610,21 +2660,22 @@ buildvariants:
2610
2660
2611
2661
- matrix_name : " ocsp-test"
2612
2662
matrix_spec :
2613
- platform : ubuntu-16.04
2614
- python-version : ["2.7", "3.4", "3.8", "3.9"]
2615
- mongodb-version : ["4.4", "latest"]
2663
+ platform : awslinux
2664
+ python-version : ["2.7", "3.4", "pypy3.5", "pypy3.6", "pypy3.7", " 3.8", "3.9"]
2665
+ mongodb-version : ["4.4", "5.0", " latest"]
2616
2666
auth : " noauth"
2617
2667
ssl : " ssl"
2618
2668
display_name : " OCSP test ${platform} ${python-version} ${mongodb-version}"
2619
2669
batchtime : 20160 # 14 days
2620
2670
tasks :
2621
2671
- name : " .ocsp"
2622
2672
2623
- - matrix_name : " ocsp-test-pypy"
2673
+ # PyPy2 cannot install cryptography on Amazon Linux so we test it separately
2674
+ - matrix_name : " ocsp-test-pypy2"
2624
2675
matrix_spec :
2625
2676
platform : debian92
2626
- python-version : ["pypy", "pypy3.5", "pypy3.6", "pypy3.7" ]
2627
- mongodb-version : ["4.4", "latest"]
2677
+ python-version : ["pypy"]
2678
+ mongodb-version : ["4.4", "5.0", " latest"]
2628
2679
auth : " noauth"
2629
2680
ssl : " ssl"
2630
2681
display_name : " OCSP test ${platform} ${python-version} ${mongodb-version}"
@@ -2636,7 +2687,7 @@ buildvariants:
2636
2687
matrix_spec :
2637
2688
platform : windows-64-vsMulti-small
2638
2689
python-version-windows : ["2.7", "3.4", "3.9"]
2639
- mongodb-version : ["4.4", "latest"]
2690
+ mongodb-version : ["4.4", "5.0", " latest"]
2640
2691
auth : " noauth"
2641
2692
ssl : " ssl"
2642
2693
display_name : " OCSP test ${platform} ${python-version-windows} ${mongodb-version}"
@@ -2648,7 +2699,7 @@ buildvariants:
2648
2699
- matrix_name : " ocsp-test-macos"
2649
2700
matrix_spec :
2650
2701
platform : macos-1014
2651
- mongodb-version : ["4.4", "latest"]
2702
+ mongodb-version : ["4.4", "5.0", " latest"]
2652
2703
auth : " noauth"
2653
2704
ssl : " ssl"
2654
2705
display_name : " OCSP test ${platform} ${mongodb-version}"
@@ -2664,6 +2715,7 @@ buildvariants:
2664
2715
display_name : " MONGODB-AWS Auth ${platform} ${python-version}"
2665
2716
tasks :
2666
2717
- name : " aws-auth-test-4.4"
2718
+ - name : " aws-auth-test-5.0"
2667
2719
- name : " aws-auth-test-latest"
2668
2720
2669
2721
- matrix_name : " aws-auth-test-windows"
@@ -2673,12 +2725,13 @@ buildvariants:
2673
2725
display_name : " MONGODB-AWS Auth ${platform} ${python-version-windows}"
2674
2726
tasks :
2675
2727
- name : " aws-auth-test-4.4"
2728
+ - name : " aws-auth-test-5.0"
2676
2729
- name : " aws-auth-test-latest"
2677
2730
2678
2731
- matrix_name : " load-balancer"
2679
2732
matrix_spec :
2680
2733
platform : ubuntu-18.04
2681
- mongodb-version : ["latest"]
2734
+ mongodb-version : ["5.0", " latest"]
2682
2735
auth-ssl : " *"
2683
2736
python-version : ["2.7", "3.5", "3.9"]
2684
2737
loadbalancer : " *"
0 commit comments