Skip to content

Commit 5a2e55b

Browse files
authored
CSHARP-4805: Use Ubuntu 20.04 for MongoDB 7.0+ on Evergreen (#1197)
1 parent 7524611 commit 5a2e55b

File tree

2 files changed

+128
-117
lines changed

2 files changed

+128
-117
lines changed

evergreen/evergreen.yml

Lines changed: 115 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,6 +1844,12 @@ axes:
18441844
OS: "ubuntu-1804"
18451845
python3_binary: "/opt/python/3.8/bin/python3"
18461846
run_on: ubuntu1804-test
1847+
- id: "ubuntu-2004"
1848+
display_name: "Ubuntu 20.04"
1849+
variables:
1850+
OS: "ubuntu-2004"
1851+
python3_binary: "/opt/python/3.8/bin/python3"
1852+
run_on: ubuntu2004-small
18471853
- id: "macos-1100"
18481854
display_name: "macOS 11.00"
18491855
variables:
@@ -2021,120 +2027,121 @@ task_groups:
20212027
- packages-push
20222028

20232029
buildvariants:
2030+
- matrix_name: stable-api-tests
2031+
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", auth: "auth", ssl: "nossl", os: "windows-64" }
2032+
display_name: "Stable API ${version} ${topology} ${auth} ${ssl} ${os}"
2033+
run_on:
2034+
- windows-64-vs2017-test
2035+
tasks:
2036+
- name: stable-api-tests-net472
2037+
- name: stable-api-tests-netstandard20
2038+
- name: stable-api-tests-netstandard21
20242039

2025-
- matrix_name: "secure-tests"
2040+
# Secure tests
2041+
- matrix_name: "secure-tests-windows"
20262042
matrix_spec: { version: "*", topology: "*", auth: "auth", ssl: "ssl", os: "windows-64" }
20272043
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
20282044
tags: ["tests-variant"]
20292045
tasks:
2030-
- name: test-net472
2031-
- name: test-netstandard20
2032-
- name: test-netstandard21
2046+
- name: test-net472
2047+
- name: test-netstandard20
2048+
- name: test-netstandard21
20332049

2034-
- matrix_name: "unsecure-tests"
2035-
matrix_spec: { version: "*", topology: "*", auth: "noauth", ssl: "nossl", os: "windows-64" }
2050+
- matrix_name: "secure-tests-macOS"
2051+
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "replicaset", auth: "auth", ssl: "ssl", os: ["macos-1100", "macos-1100-arm64"] }
20362052
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
20372053
tags: ["tests-variant"]
20382054
tasks:
2039-
- name: test-net472
2040-
- name: test-netstandard20
2041-
- name: test-netstandard21
2055+
- name: test-netstandard21
20422056

2043-
- matrix_name: "tests-zlib-compression"
2044-
matrix_spec: { compressor : "zlib", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "windows-64" }
2045-
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
2057+
- matrix_name: "secure-tests-linux-1804"
2058+
matrix_spec: { version: ["4.0", "4.2", "4.4", "5.0", "6.0"], topology: "*", auth: "auth", ssl: "ssl", os: "ubuntu-1804" }
2059+
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
20462060
tags: ["tests-variant"]
20472061
tasks:
2048-
- name: test-net472
2049-
- name: test-netstandard20
2050-
- name: test-netstandard21
2062+
- name: test-netstandard20
2063+
- name: test-netstandard21
20512064

2052-
- matrix_name: "tests-snappy-compression"
2053-
matrix_spec: { compressor : "snappy", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "windows-64" }
2054-
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
2065+
- matrix_name: "secure-tests-linux-2004"
2066+
matrix_spec: { version: ["7.0", "rapid", "latest"], topology: "*", auth: "auth", ssl: "ssl", os: "ubuntu-2004" }
2067+
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
20552068
tags: ["tests-variant"]
20562069
tasks:
2057-
- name: test-net472
2058-
- name: test-netstandard20
2059-
- name: test-netstandard21
2070+
- name: test-netstandard20
2071+
- name: test-netstandard21
20602072

2061-
- matrix_name: "tests-snappy-compression-linux"
2062-
matrix_spec: { compressor : "snappy", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "ubuntu-1804" }
2063-
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
2073+
# Unsecure tests
2074+
- matrix_name: "unsecure-tests-windows"
2075+
matrix_spec: { version: "*", topology: "*", auth: "noauth", ssl: "nossl", os: "windows-64" }
2076+
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
20642077
tags: ["tests-variant"]
20652078
tasks:
2066-
- name: test-netstandard20
2067-
- name: test-netstandard21
2079+
- name: test-net472
2080+
- name: test-netstandard20
2081+
- name: test-netstandard21
20682082

2069-
- matrix_name: "tests-snappy-compression-macOS"
2070-
matrix_spec: { compressor : "snappy", auth: "noauth", ssl: "nossl", version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", os: ["macos-1100", "macos-1100-arm64"] }
2071-
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
2083+
- matrix_name: "unsecure-tests-macOS"
2084+
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "replicaset", auth: "noauth", ssl: "nossl", os: ["macos-1100", "macos-1100-arm64"] }
2085+
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
20722086
tags: ["tests-variant"]
20732087
tasks:
2074-
- name: test-netstandard21
2088+
- name: test-netstandard21
20752089

2076-
- matrix_name: "tests-zstandard-compression"
2077-
matrix_spec: { compressor : "zstandard", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "windows-64" }
2078-
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
2090+
- matrix_name: "unsecure-tests-linux-1804"
2091+
matrix_spec: { version: ["3.6", "4.0", "4.2", "4.4", "5.0", "6.0"], topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-1804" }
2092+
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
20792093
tags: ["tests-variant"]
20802094
tasks:
2081-
- name: test-net472
2082-
- name: test-netstandard20
2083-
- name: test-netstandard21
2095+
- name: test-netstandard20
2096+
- name: test-netstandard21
20842097

2085-
- matrix_name: "tests-zstandard-compression-linux"
2086-
matrix_spec: { compressor : "zstandard", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "ubuntu-1804" }
2087-
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
2098+
- matrix_name: "unsecure-tests-linux-2004"
2099+
matrix_spec: { version: ["7.0", "rapid", "latest"], topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-2004" }
2100+
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
20882101
tags: ["tests-variant"]
20892102
tasks:
2090-
- name: test-netstandard20
2091-
- name: test-netstandard21
2103+
- name: test-netstandard20
2104+
- name: test-netstandard21
20922105

2093-
- matrix_name: "tests-zstandard-compression-macOS"
2094-
matrix_spec: { compressor : "zstandard", auth: "noauth", ssl: "nossl", version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", os: ["macos-1100", "macos-1100-arm64"] }
2106+
# Compression tests
2107+
- matrix_name: "tests-compression-windows"
2108+
matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "windows-64" }
20952109
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
20962110
tags: ["tests-variant"]
20972111
tasks:
2098-
- name: test-netstandard21
2099-
2100-
# ubuntu 18 does not support SSL until 4.0
2101-
- matrix_name: "secure-tests-linux"
2102-
matrix_spec: { version: ["4.0", "4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest"], topology: "*", auth: "auth", ssl: "ssl", os: "ubuntu-1804" }
2103-
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
2104-
tags: ["tests-variant"]
2105-
tasks:
2106-
- name: test-netstandard20
2107-
- name: test-netstandard21
2112+
- name: test-net472
2113+
- name: test-netstandard20
2114+
- name: test-netstandard21
21082115

2109-
- matrix_name: "unsecure-tests-linux"
2110-
matrix_spec: { version: "*", topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-1804" }
2111-
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
2116+
- matrix_name: "tests-compression-macOS"
2117+
matrix_spec: { compressor : ["snappy", "zstandard"], auth: "noauth", ssl: "nossl", version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", os: ["macos-1100", "macos-1100-arm64"] }
2118+
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
21122119
tags: ["tests-variant"]
21132120
tasks:
2114-
- name: test-netstandard20
2115-
- name: test-netstandard21
2121+
- name: test-netstandard21
21162122

2117-
- matrix_name: "secure-tests-macOS"
2118-
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "replicaset", auth: "auth", ssl: "ssl", os: ["macos-1100", "macos-1100-arm64"] }
2119-
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
2123+
- matrix_name: "tests-compression-linux-1804"
2124+
matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: ["3.6", "4.0", "4.2", "4.4", "5.0", "6.0"], topology: "standalone", os: "ubuntu-1804" }
2125+
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
21202126
tags: ["tests-variant"]
21212127
tasks:
2122-
- name: test-netstandard21
2128+
- name: test-netstandard20
2129+
- name: test-netstandard21
21232130

2124-
- matrix_name: "unsecure-tests-macOS"
2125-
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "replicaset", auth: "noauth", ssl: "nossl", os: ["macos-1100", "macos-1100-arm64"] }
2126-
display_name: "${version} ${topology} ${auth} ${ssl} ${os}"
2131+
- matrix_name: "tests-compression-linux-2004"
2132+
matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: ["7.0", "rapid", "latest"], topology: "standalone", os: "ubuntu-2004" }
2133+
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
21272134
tags: ["tests-variant"]
21282135
tasks:
2129-
- name: test-netstandard21
2136+
- name: test-netstandard20
2137+
- name: test-netstandard21
21302138

2131-
- matrix_name: "tests-zlib-compression-posix"
2132-
matrix_spec: { compressor : "zlib", auth: "noauth", ssl: "nossl", version: "*", topology: "standalone", os: "ubuntu-1804" }
2133-
display_name: "${version} ${compressor} ${topology} ${auth} ${ssl} ${os} "
2134-
tags: ["tests-variant"]
2139+
# Auth tests
2140+
- matrix_name: plain-auth-tests
2141+
matrix_spec: { os: "*" }
2142+
display_name: "PLAIN (LDAP) Auth Tests ${os}"
21352143
tasks:
2136-
- name: test-netstandard20
2137-
- name: test-netstandard21
2144+
- name: plain-auth-tests
21382145

21392146
- matrix_name: "ocsp-tests"
21402147
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "rapid", "latest"], auth: "noauth", ssl: "ssl", topology: "standalone", os: "windows-64" }
@@ -2152,7 +2159,7 @@ buildvariants:
21522159
- name: aws-auth-tests
21532160

21542161
- matrix_name: aws-auth-tests-linux
2155-
matrix_spec: { version: ["6.0", "7.0", "rapid", "latest"], topology: "standalone", os: "ubuntu-1804" }
2162+
matrix_spec: { version: ["6.0", "7.0", "rapid", "latest"], topology: "standalone", os: "ubuntu-2004" }
21562163
display_name: "MONGODB-AWS Auth test ${version} ${os}"
21572164
run_on:
21582165
- ubuntu1804-test
@@ -2167,36 +2174,39 @@ buildvariants:
21672174
tasks:
21682175
- name: aws-auth-tests
21692176

2170-
- matrix_name: stable-api-tests
2171-
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], topology: "standalone", auth: "auth", ssl: "nossl", os: "windows-64" }
2172-
display_name: "Stable API ${version} ${topology} ${auth} ${ssl} ${os}"
2177+
- name: gssapi-auth-tests-windows
21732178
run_on:
21742179
- windows-64-vs2017-test
2180+
display_name: "GSSAPI (Kerberos) Auth tests - Windows"
21752181
tasks:
2176-
- name: stable-api-tests-net472
2177-
- name: stable-api-tests-netstandard20
2178-
- name: stable-api-tests-netstandard21
2182+
- name: test-gssapi-net472
2183+
- name: test-gssapi-netstandard20
2184+
- name: test-gssapi-netstandard21
21792185

2180-
- matrix_name: plain-auth-tests
2181-
matrix_spec: { os: "*" }
2182-
display_name: "PLAIN (LDAP) Auth Tests ${os}"
2186+
- name: gssapi-auth-tests-linux
2187+
run_on:
2188+
- ubuntu1804-test
2189+
display_name: "GSSAPI (Kerberos) Auth tests - Linux"
21832190
tasks:
2184-
- name: plain-auth-tests
2191+
- name: test-gssapi-netstandard20
2192+
- name: test-gssapi-netstandard21
21852193

2194+
# Load balancer tests
21862195
- matrix_name: load-balancer-tests
2187-
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], auth: "noauth", ssl: "nossl", topology: "sharded-cluster", os: "ubuntu-1804" }
2196+
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], auth: "noauth", ssl: "nossl", topology: "sharded-cluster", os: "ubuntu-2004" }
21882197
display_name: "Load Balancer ${version} ${auth} ${ssl} ${os}"
21892198
tasks:
21902199
- name: "test-load-balancer-netstandard20"
21912200
- name: "test-load-balancer-netstandard21"
21922201

21932202
- matrix_name: load-balancer-tests-secure
2194-
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], auth: "auth", ssl: "ssl", topology: "sharded-cluster", os: "ubuntu-1804" }
2203+
matrix_spec: { version: ["5.0", "6.0", "7.0", "rapid", "latest"], auth: "auth", ssl: "ssl", topology: "sharded-cluster", os: "ubuntu-2004" }
21952204
display_name: "Load Balancer ${version} ${auth} ${ssl} ${os}"
21962205
tasks:
21972206
- name: "test-load-balancer-netstandard20"
21982207
- name: "test-load-balancer-netstandard21"
21992208

2209+
# Serverless tests
22002210
- matrix_name: serverless-tests-windows
22012211
matrix_spec: { auth: "auth", ssl: "ssl", compressor: "zlib", os: "windows-64" }
22022212
display_name: "Serverless ${compressor} ${auth} ${ssl} ${os}"
@@ -2212,6 +2222,7 @@ buildvariants:
22122222
- name: test-serverless-netstandard20
22132223
- name: test-serverless-netstandard21
22142224

2225+
# Atlas tests
22152226
- name: atlas-connectivity-tests
22162227
display_name: "Atlas Connectivity Tests"
22172228
run_on:
@@ -2233,25 +2244,9 @@ buildvariants:
22332244
tasks:
22342245
- name: atlas-search-test
22352246

2236-
- name: gssapi-auth-tests-windows
2237-
run_on:
2238-
- windows-64-vs2017-test
2239-
display_name: "GSSAPI (Kerberos) Auth tests - Windows"
2240-
tasks:
2241-
- name: test-gssapi-net472
2242-
- name: test-gssapi-netstandard20
2243-
- name: test-gssapi-netstandard21
2244-
2245-
- name: gssapi-auth-tests-linux
2246-
run_on:
2247-
- ubuntu1804-test
2248-
display_name: "GSSAPI (Kerberos) Auth tests - Linux"
2249-
tasks:
2250-
- name: test-gssapi-netstandard20
2251-
- name: test-gssapi-netstandard21
2252-
2247+
# CSFLE tests
22532248
- matrix_name: "csfle-with-mocked-kms-tests-windows"
2254-
matrix_spec: { os: "windows-64", ssl: "nossl", version: [ "4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest" ], topology: ["replicaset"] }
2249+
matrix_spec: { os: "windows-64", ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest"], topology: ["replicaset"] }
22552250
display_name: "CSFLE Mocked KMS ${version} ${os}"
22562251
tasks:
22572252
- name: test-csfle-with-mocked-kms-tls-net472
@@ -2261,8 +2256,17 @@ buildvariants:
22612256
- name: test-csfle-with-mongocryptd-netstandard20
22622257
- name: test-csfle-with-mongocryptd-netstandard21
22632258

2264-
- matrix_name: "csfle-with-mocked-kms-tests-linux"
2265-
matrix_spec: { os: "ubuntu-1804", ssl: "nossl", version: [ "4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest" ], topology: ["replicaset"] }
2259+
- matrix_name: "csfle-with-mocked-kms-tests-linux-1804"
2260+
matrix_spec: { os: "ubuntu-1804", ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0"], topology: ["replicaset"] }
2261+
display_name: "CSFLE Mocked KMS ${version} ${os}"
2262+
tasks:
2263+
- name: test-csfle-with-mocked-kms-tls-netstandard20
2264+
- name: test-csfle-with-mocked-kms-tls-netstandard21
2265+
- name: test-csfle-with-mongocryptd-netstandard20
2266+
- name: test-csfle-with-mongocryptd-netstandard21
2267+
2268+
- matrix_name: "csfle-with-mocked-kms-tests-linux-2004"
2269+
matrix_spec: { os: "ubuntu-2004", ssl: "nossl", version: ["7.0", "rapid", "latest"], topology: ["replicaset"] }
22662270
display_name: "CSFLE Mocked KMS ${version} ${os}"
22672271
tasks:
22682272
- name: test-csfle-with-mocked-kms-tls-netstandard20
@@ -2271,7 +2275,7 @@ buildvariants:
22712275
- name: test-csfle-with-mongocryptd-netstandard21
22722276

22732277
- matrix_name: "csfle-with-mocked-kms-tests-macOS"
2274-
matrix_spec: { os: [ "macos-1100", "macos-1100-arm64" ], ssl: "nossl", version: [ "4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest" ], topology: ["replicaset"] }
2278+
matrix_spec: { os: ["macos-1100", "macos-1100-arm64"], ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0", "7.0", "rapid", "latest"], topology: ["replicaset"] }
22752279
display_name: "CSFLE Mocked KMS ${version} ${os}"
22762280
tasks:
22772281
- name: test-csfle-with-mocked-kms-tls-netstandard21
@@ -2293,8 +2297,9 @@ buildvariants:
22932297
- name: testgcpkms-task-group
22942298
- name: test-csfle-with-mongocryptd-netstandard21
22952299

2300+
# Smoke tests
22962301
- matrix_name: "smoke-tests-windows"
2297-
matrix_spec: { os: "windows-64", ssl: "nossl", version: [ "5.0", "6.0", "7.0", "latest" ], topology: ["replicaset"] }
2302+
matrix_spec: { os: "windows-64", ssl: "nossl", version: ["5.0", "6.0", "7.0", "latest"], topology: ["replicaset"] }
22982303
display_name: "smoke-tests ${version} ${os}"
22992304
batchtime: 1440 # 1 day
23002305
tasks:
@@ -2305,7 +2310,7 @@ buildvariants:
23052310
- name: test-smoke-tests-net60
23062311

23072312
- matrix_name: "smoke-tests-linux"
2308-
matrix_spec: { os: "ubuntu-1804", ssl: "nossl", version: [ "5.0", "6.0", "7.0", "latest" ], topology: ["replicaset"] }
2313+
matrix_spec: { os: "ubuntu-2004", ssl: "nossl", version: ["5.0", "6.0", "7.0", "latest"], topology: ["replicaset"] }
23092314
display_name: "smoke-tests ${version} ${os}"
23102315
batchtime: 1440 # 1 day
23112316
tasks:
@@ -2315,7 +2320,7 @@ buildvariants:
23152320
- name: test-smoke-tests-net60
23162321

23172322
- matrix_name: "smoke-tests-macOS"
2318-
matrix_spec: { os: "macos-1100", ssl: "nossl", version: [ "5.0", "6.0", "7.0", "latest" ], topology: ["replicaset"] }
2323+
matrix_spec: { os: "macos-1100", ssl: "nossl", version: ["5.0", "6.0", "7.0", "latest"], topology: ["replicaset"] }
23192324
display_name: "smoke-tests ${version} ${os}"
23202325
batchtime: 1440 # 1 day
23212326
tasks:
@@ -2324,6 +2329,7 @@ buildvariants:
23242329
- name: test-smoke-tests-net50
23252330
- name: test-smoke-tests-net60
23262331

2332+
# Package creation
23272333
- name: dev-package-pack
23282334
git_tag_only: true
23292335
display_name: "Dev Package Pack"

0 commit comments

Comments
 (0)