Skip to content

feat(NODE-6884): remove support for 4.0 #4534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 9, 2025
2 changes: 1 addition & 1 deletion .evergreen/ci_matrix_constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const MONGODB_VERSIONS = ['latest', 'rapid', '8.0', '7.0', '6.0', '5.0', '4.4', '4.2', '4.0'];
const MONGODB_VERSIONS = ['latest', 'rapid', '8.0', '7.0', '6.0', '5.0', '4.4', '4.2'];
const versions = [
{ codeName: 'gallium', versionNumber: 16, npmVersion: 9 },
{ codeName: 'hydrogen', versionNumber: 18, npmVersion: 10 },
Expand Down
152 changes: 0 additions & 152 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1292,51 +1292,6 @@ tasks:
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-4.0-server
tags:
- '4.0'
- server
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: '4.0'}
- {key: TOPOLOGY, value: server}
- {key: AUTH, value: auth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-4.0-replica_set
tags:
- '4.0'
- replica_set
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: '4.0'}
- {key: TOPOLOGY, value: replica_set}
- {key: AUTH, value: auth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-4.0-sharded_cluster
tags:
- '4.0'
- sharded_cluster
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: '4.0'}
- {key: TOPOLOGY, value: sharded_cluster}
- {key: AUTH, value: auth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-latest-server-v1-api
tags:
- latest
Expand Down Expand Up @@ -1506,25 +1461,6 @@ tasks:
- func: start-load-balancer
- func: run-lb-tests
- func: stop-load-balancer
- name: test-auth-kerberos
tags:
- auth
- kerberos
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: NATIVE, value: 'true'}
- func: install dependencies
- func: run kerberos tests
- name: test-auth-ldap
tags:
- auth
- ldap
commands:
- func: install dependencies
- func: run ldap tests
- name: test-socks5
tags: []
commands:
Expand Down Expand Up @@ -2681,54 +2617,6 @@ tasks:
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-4.0-server-noauth
tags:
- '4.0'
- server
- noauth
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: '4.0'}
- {key: TOPOLOGY, value: server}
- {key: AUTH, value: noauth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-4.0-replica_set-noauth
tags:
- '4.0'
- replica_set
- noauth
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: '4.0'}
- {key: TOPOLOGY, value: replica_set}
- {key: AUTH, value: noauth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-4.0-sharded_cluster-noauth
tags:
- '4.0'
- sharded_cluster
- noauth
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: '4.0'}
- {key: TOPOLOGY, value: sharded_cluster}
- {key: AUTH, value: noauth}
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: run tests
- name: test-lambda-example
tags:
- latest
Expand Down Expand Up @@ -3194,9 +3082,6 @@ buildvariants:
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-latest-server-v1-api
- test-x509-authentication
- test-atlas-connectivity
Expand All @@ -3206,8 +3091,6 @@ buildvariants:
- test-8.0-load-balanced
- test-rapid-load-balanced
- test-latest-load-balanced
- test-auth-kerberos
- test-auth-ldap
- test-socks5
- test-socks5-csfle
- test-socks5-tls
Expand Down Expand Up @@ -3254,9 +3137,6 @@ buildvariants:
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-latest-server-v1-api
- test-x509-authentication
- test-atlas-connectivity
Expand All @@ -3266,8 +3146,6 @@ buildvariants:
- test-8.0-load-balanced
- test-rapid-load-balanced
- test-latest-load-balanced
- test-auth-kerberos
- test-auth-ldap
- test-socks5
- test-socks5-csfle
- test-socks5-tls
Expand Down Expand Up @@ -3314,9 +3192,6 @@ buildvariants:
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-latest-server-v1-api
- test-x509-authentication
- test-atlas-connectivity
Expand All @@ -3326,8 +3201,6 @@ buildvariants:
- test-8.0-load-balanced
- test-rapid-load-balanced
- test-latest-load-balanced
- test-auth-kerberos
- test-auth-ldap
- test-socks5
- test-socks5-csfle
- test-socks5-tls
Expand Down Expand Up @@ -3374,9 +3247,6 @@ buildvariants:
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-latest-server-v1-api
- test-x509-authentication
- test-atlas-connectivity
Expand All @@ -3386,8 +3256,6 @@ buildvariants:
- test-8.0-load-balanced
- test-rapid-load-balanced
- test-latest-load-balanced
- test-auth-kerberos
- test-auth-ldap
- test-socks5
- test-socks5-csfle
- test-socks5-tls
Expand Down Expand Up @@ -3432,9 +3300,6 @@ buildvariants:
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-latest-server-v1-api
- test-x509-authentication
- test-atlas-connectivity
Expand All @@ -3444,8 +3309,6 @@ buildvariants:
- test-8.0-load-balanced
- test-rapid-load-balanced
- test-latest-load-balanced
- test-auth-kerberos
- test-auth-ldap
- test-socks5-csfle
- test-socks5-tls
- test-snappy-compression
Expand Down Expand Up @@ -3491,9 +3354,6 @@ buildvariants:
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-latest-server-v1-api
- test-socks5
- test-socks5-tls
Expand Down Expand Up @@ -3540,9 +3400,6 @@ buildvariants:
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-latest-server-v1-api
- test-socks5
- test-socks5-tls
Expand Down Expand Up @@ -3589,9 +3446,6 @@ buildvariants:
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-latest-server-v1-api
- test-socks5
- test-socks5-tls
Expand Down Expand Up @@ -3638,9 +3492,6 @@ buildvariants:
- test-4.2-server
- test-4.2-replica_set
- test-4.2-sharded_cluster
- test-4.0-server
- test-4.0-replica_set
- test-4.0-sharded_cluster
- test-latest-server-v1-api
- test-socks5
- test-socks5-tls
Expand Down Expand Up @@ -3815,9 +3666,6 @@ buildvariants:
- test-4.2-server-noauth
- test-4.2-replica_set-noauth
- test-4.2-sharded_cluster-noauth
- test-4.0-server-noauth
- test-4.0-replica_set-noauth
- test-4.0-sharded_cluster-noauth
- name: rhel8-test-lambda
display_name: AWS Lambda handler tests
run_on: rhel80-large
Expand Down
33 changes: 17 additions & 16 deletions .evergreen/generate_evergreen_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,22 +157,23 @@ TASKS.push(
{ func: 'stop-load-balancer' }
]
})),
{
name: 'test-auth-kerberos',
tags: ['auth', 'kerberos'],
commands: [
updateExpansions({
NATIVE: 'true'
}),
{ func: 'install dependencies' },
{ func: 'run kerberos tests' }
]
},
{
name: 'test-auth-ldap',
tags: ['auth', 'ldap'],
commands: [{ func: 'install dependencies' }, { func: 'run ldap tests' }]
},
// TODO(NODE-6944): Unskip when devprod updates ldaptest servers.
// {
// name: 'test-auth-kerberos',
// tags: ['auth', 'kerberos'],
// commands: [
// updateExpansions({
// NATIVE: 'true'
// }),
// { func: 'install dependencies' },
// { func: 'run kerberos tests' }
// ]
// },
// {
// name: 'test-auth-ldap',
// tags: ['auth', 'ldap'],
// commands: [{ func: 'install dependencies' }, { func: 'run ldap tests' }]
// },
{
name: 'test-socks5',
tags: [],
Expand Down
4 changes: 2 additions & 2 deletions src/cmap/wire_protocol/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const MIN_SUPPORTED_SERVER_VERSION = '4.0';
export const MIN_SUPPORTED_SERVER_VERSION = '4.2';
export const MAX_SUPPORTED_SERVER_VERSION = '8.0';
export const MIN_SUPPORTED_WIRE_VERSION = 7;
export const MIN_SUPPORTED_WIRE_VERSION = 8;
export const MAX_SUPPORTED_WIRE_VERSION = 25;
export const MIN_SUPPORTED_QE_WIRE_VERSION = 21;
export const MIN_SUPPORTED_QE_SERVER_VERSION = '7.0';
Expand Down
Loading