Skip to content

Commit 6fe6ccc

Browse files
feat(NODE-6884): remove support for 4.0 (#4534)
Co-authored-by: Bailey Pearson <[email protected]>
1 parent fcbc6ed commit 6fe6ccc

File tree

61 files changed

+539
-2348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+539
-2348
lines changed

.evergreen/ci_matrix_constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const MONGODB_VERSIONS = ['latest', 'rapid', '8.0', '7.0', '6.0', '5.0', '4.4', '4.2', '4.0'];
1+
const MONGODB_VERSIONS = ['latest', 'rapid', '8.0', '7.0', '6.0', '5.0', '4.4', '4.2'];
22
const versions = [
33
{ codeName: 'gallium', versionNumber: 16, npmVersion: 9 },
44
{ codeName: 'hydrogen', versionNumber: 18, npmVersion: 10 },

.evergreen/config.yml

-152
Original file line numberDiff line numberDiff line change
@@ -1292,51 +1292,6 @@ tasks:
12921292
- func: install dependencies
12931293
- func: bootstrap mongo-orchestration
12941294
- func: run tests
1295-
- name: test-4.0-server
1296-
tags:
1297-
- '4.0'
1298-
- server
1299-
commands:
1300-
- command: expansions.update
1301-
type: setup
1302-
params:
1303-
updates:
1304-
- {key: VERSION, value: '4.0'}
1305-
- {key: TOPOLOGY, value: server}
1306-
- {key: AUTH, value: auth}
1307-
- func: install dependencies
1308-
- func: bootstrap mongo-orchestration
1309-
- func: run tests
1310-
- name: test-4.0-replica_set
1311-
tags:
1312-
- '4.0'
1313-
- replica_set
1314-
commands:
1315-
- command: expansions.update
1316-
type: setup
1317-
params:
1318-
updates:
1319-
- {key: VERSION, value: '4.0'}
1320-
- {key: TOPOLOGY, value: replica_set}
1321-
- {key: AUTH, value: auth}
1322-
- func: install dependencies
1323-
- func: bootstrap mongo-orchestration
1324-
- func: run tests
1325-
- name: test-4.0-sharded_cluster
1326-
tags:
1327-
- '4.0'
1328-
- sharded_cluster
1329-
commands:
1330-
- command: expansions.update
1331-
type: setup
1332-
params:
1333-
updates:
1334-
- {key: VERSION, value: '4.0'}
1335-
- {key: TOPOLOGY, value: sharded_cluster}
1336-
- {key: AUTH, value: auth}
1337-
- func: install dependencies
1338-
- func: bootstrap mongo-orchestration
1339-
- func: run tests
13401295
- name: test-latest-server-v1-api
13411296
tags:
13421297
- latest
@@ -1506,25 +1461,6 @@ tasks:
15061461
- func: start-load-balancer
15071462
- func: run-lb-tests
15081463
- func: stop-load-balancer
1509-
- name: test-auth-kerberos
1510-
tags:
1511-
- auth
1512-
- kerberos
1513-
commands:
1514-
- command: expansions.update
1515-
type: setup
1516-
params:
1517-
updates:
1518-
- {key: NATIVE, value: 'true'}
1519-
- func: install dependencies
1520-
- func: run kerberos tests
1521-
- name: test-auth-ldap
1522-
tags:
1523-
- auth
1524-
- ldap
1525-
commands:
1526-
- func: install dependencies
1527-
- func: run ldap tests
15281464
- name: test-socks5
15291465
tags: []
15301466
commands:
@@ -2681,54 +2617,6 @@ tasks:
26812617
- func: install dependencies
26822618
- func: bootstrap mongo-orchestration
26832619
- func: run tests
2684-
- name: test-4.0-server-noauth
2685-
tags:
2686-
- '4.0'
2687-
- server
2688-
- noauth
2689-
commands:
2690-
- command: expansions.update
2691-
type: setup
2692-
params:
2693-
updates:
2694-
- {key: VERSION, value: '4.0'}
2695-
- {key: TOPOLOGY, value: server}
2696-
- {key: AUTH, value: noauth}
2697-
- func: install dependencies
2698-
- func: bootstrap mongo-orchestration
2699-
- func: run tests
2700-
- name: test-4.0-replica_set-noauth
2701-
tags:
2702-
- '4.0'
2703-
- replica_set
2704-
- noauth
2705-
commands:
2706-
- command: expansions.update
2707-
type: setup
2708-
params:
2709-
updates:
2710-
- {key: VERSION, value: '4.0'}
2711-
- {key: TOPOLOGY, value: replica_set}
2712-
- {key: AUTH, value: noauth}
2713-
- func: install dependencies
2714-
- func: bootstrap mongo-orchestration
2715-
- func: run tests
2716-
- name: test-4.0-sharded_cluster-noauth
2717-
tags:
2718-
- '4.0'
2719-
- sharded_cluster
2720-
- noauth
2721-
commands:
2722-
- command: expansions.update
2723-
type: setup
2724-
params:
2725-
updates:
2726-
- {key: VERSION, value: '4.0'}
2727-
- {key: TOPOLOGY, value: sharded_cluster}
2728-
- {key: AUTH, value: noauth}
2729-
- func: install dependencies
2730-
- func: bootstrap mongo-orchestration
2731-
- func: run tests
27322620
- name: test-lambda-example
27332621
tags:
27342622
- latest
@@ -3194,9 +3082,6 @@ buildvariants:
31943082
- test-4.2-server
31953083
- test-4.2-replica_set
31963084
- test-4.2-sharded_cluster
3197-
- test-4.0-server
3198-
- test-4.0-replica_set
3199-
- test-4.0-sharded_cluster
32003085
- test-latest-server-v1-api
32013086
- test-x509-authentication
32023087
- test-atlas-connectivity
@@ -3206,8 +3091,6 @@ buildvariants:
32063091
- test-8.0-load-balanced
32073092
- test-rapid-load-balanced
32083093
- test-latest-load-balanced
3209-
- test-auth-kerberos
3210-
- test-auth-ldap
32113094
- test-socks5
32123095
- test-socks5-csfle
32133096
- test-socks5-tls
@@ -3254,9 +3137,6 @@ buildvariants:
32543137
- test-4.2-server
32553138
- test-4.2-replica_set
32563139
- test-4.2-sharded_cluster
3257-
- test-4.0-server
3258-
- test-4.0-replica_set
3259-
- test-4.0-sharded_cluster
32603140
- test-latest-server-v1-api
32613141
- test-x509-authentication
32623142
- test-atlas-connectivity
@@ -3266,8 +3146,6 @@ buildvariants:
32663146
- test-8.0-load-balanced
32673147
- test-rapid-load-balanced
32683148
- test-latest-load-balanced
3269-
- test-auth-kerberos
3270-
- test-auth-ldap
32713149
- test-socks5
32723150
- test-socks5-csfle
32733151
- test-socks5-tls
@@ -3314,9 +3192,6 @@ buildvariants:
33143192
- test-4.2-server
33153193
- test-4.2-replica_set
33163194
- test-4.2-sharded_cluster
3317-
- test-4.0-server
3318-
- test-4.0-replica_set
3319-
- test-4.0-sharded_cluster
33203195
- test-latest-server-v1-api
33213196
- test-x509-authentication
33223197
- test-atlas-connectivity
@@ -3326,8 +3201,6 @@ buildvariants:
33263201
- test-8.0-load-balanced
33273202
- test-rapid-load-balanced
33283203
- test-latest-load-balanced
3329-
- test-auth-kerberos
3330-
- test-auth-ldap
33313204
- test-socks5
33323205
- test-socks5-csfle
33333206
- test-socks5-tls
@@ -3374,9 +3247,6 @@ buildvariants:
33743247
- test-4.2-server
33753248
- test-4.2-replica_set
33763249
- test-4.2-sharded_cluster
3377-
- test-4.0-server
3378-
- test-4.0-replica_set
3379-
- test-4.0-sharded_cluster
33803250
- test-latest-server-v1-api
33813251
- test-x509-authentication
33823252
- test-atlas-connectivity
@@ -3386,8 +3256,6 @@ buildvariants:
33863256
- test-8.0-load-balanced
33873257
- test-rapid-load-balanced
33883258
- test-latest-load-balanced
3389-
- test-auth-kerberos
3390-
- test-auth-ldap
33913259
- test-socks5
33923260
- test-socks5-csfle
33933261
- test-socks5-tls
@@ -3432,9 +3300,6 @@ buildvariants:
34323300
- test-4.2-server
34333301
- test-4.2-replica_set
34343302
- test-4.2-sharded_cluster
3435-
- test-4.0-server
3436-
- test-4.0-replica_set
3437-
- test-4.0-sharded_cluster
34383303
- test-latest-server-v1-api
34393304
- test-x509-authentication
34403305
- test-atlas-connectivity
@@ -3444,8 +3309,6 @@ buildvariants:
34443309
- test-8.0-load-balanced
34453310
- test-rapid-load-balanced
34463311
- test-latest-load-balanced
3447-
- test-auth-kerberos
3448-
- test-auth-ldap
34493312
- test-socks5-csfle
34503313
- test-socks5-tls
34513314
- test-snappy-compression
@@ -3491,9 +3354,6 @@ buildvariants:
34913354
- test-4.2-server
34923355
- test-4.2-replica_set
34933356
- test-4.2-sharded_cluster
3494-
- test-4.0-server
3495-
- test-4.0-replica_set
3496-
- test-4.0-sharded_cluster
34973357
- test-latest-server-v1-api
34983358
- test-socks5
34993359
- test-socks5-tls
@@ -3540,9 +3400,6 @@ buildvariants:
35403400
- test-4.2-server
35413401
- test-4.2-replica_set
35423402
- test-4.2-sharded_cluster
3543-
- test-4.0-server
3544-
- test-4.0-replica_set
3545-
- test-4.0-sharded_cluster
35463403
- test-latest-server-v1-api
35473404
- test-socks5
35483405
- test-socks5-tls
@@ -3589,9 +3446,6 @@ buildvariants:
35893446
- test-4.2-server
35903447
- test-4.2-replica_set
35913448
- test-4.2-sharded_cluster
3592-
- test-4.0-server
3593-
- test-4.0-replica_set
3594-
- test-4.0-sharded_cluster
35953449
- test-latest-server-v1-api
35963450
- test-socks5
35973451
- test-socks5-tls
@@ -3638,9 +3492,6 @@ buildvariants:
36383492
- test-4.2-server
36393493
- test-4.2-replica_set
36403494
- test-4.2-sharded_cluster
3641-
- test-4.0-server
3642-
- test-4.0-replica_set
3643-
- test-4.0-sharded_cluster
36443495
- test-latest-server-v1-api
36453496
- test-socks5
36463497
- test-socks5-tls
@@ -3815,9 +3666,6 @@ buildvariants:
38153666
- test-4.2-server-noauth
38163667
- test-4.2-replica_set-noauth
38173668
- test-4.2-sharded_cluster-noauth
3818-
- test-4.0-server-noauth
3819-
- test-4.0-replica_set-noauth
3820-
- test-4.0-sharded_cluster-noauth
38213669
- name: rhel8-test-lambda
38223670
display_name: AWS Lambda handler tests
38233671
run_on: rhel80-large

.evergreen/generate_evergreen_tasks.js

+17-16
Original file line numberDiff line numberDiff line change
@@ -157,22 +157,23 @@ TASKS.push(
157157
{ func: 'stop-load-balancer' }
158158
]
159159
})),
160-
{
161-
name: 'test-auth-kerberos',
162-
tags: ['auth', 'kerberos'],
163-
commands: [
164-
updateExpansions({
165-
NATIVE: 'true'
166-
}),
167-
{ func: 'install dependencies' },
168-
{ func: 'run kerberos tests' }
169-
]
170-
},
171-
{
172-
name: 'test-auth-ldap',
173-
tags: ['auth', 'ldap'],
174-
commands: [{ func: 'install dependencies' }, { func: 'run ldap tests' }]
175-
},
160+
// TODO(NODE-6944): Unskip when devprod updates ldaptest servers.
161+
// {
162+
// name: 'test-auth-kerberos',
163+
// tags: ['auth', 'kerberos'],
164+
// commands: [
165+
// updateExpansions({
166+
// NATIVE: 'true'
167+
// }),
168+
// { func: 'install dependencies' },
169+
// { func: 'run kerberos tests' }
170+
// ]
171+
// },
172+
// {
173+
// name: 'test-auth-ldap',
174+
// tags: ['auth', 'ldap'],
175+
// commands: [{ func: 'install dependencies' }, { func: 'run ldap tests' }]
176+
// },
176177
{
177178
name: 'test-socks5',
178179
tags: [],

src/cmap/wire_protocol/constants.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export const MIN_SUPPORTED_SERVER_VERSION = '4.0';
1+
export const MIN_SUPPORTED_SERVER_VERSION = '4.2';
22
export const MAX_SUPPORTED_SERVER_VERSION = '8.0';
3-
export const MIN_SUPPORTED_WIRE_VERSION = 7;
3+
export const MIN_SUPPORTED_WIRE_VERSION = 8;
44
export const MAX_SUPPORTED_WIRE_VERSION = 25;
55
export const MIN_SUPPORTED_QE_WIRE_VERSION = 21;
66
export const MIN_SUPPORTED_QE_SERVER_VERSION = '7.0';

0 commit comments

Comments
 (0)