Skip to content

Commit 890d311

Browse files
authored
Merge branch 'main' into type-templates-auto-encryption
2 parents 6194951 + f6d7868 commit 890d311

File tree

1,331 files changed

+46501
-3220
lines changed

Some content is hidden

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

1,331 files changed

+46501
-3220
lines changed

.evergreen/ci_matrix_constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const MONGODB_VERSIONS = ['latest', 'rapid', '8.0', '7.0', '6.0', '5.0', '4.4',
22
const versions = [
33
{ codeName: 'gallium', versionNumber: 16, npmVersion: 9 },
44
{ codeName: 'hydrogen', versionNumber: 18, npmVersion: 'latest' },
5-
{ codeName: 'iron', versionNumber: 20, npmVersion: 'latest' }
5+
{ codeName: 'iron', versionNumber: 20, npmVersion: 'latest' },
6+
{ codeName: 'jod', versionNumber: 22, npmVersion: 'latest' },
67
];
78
const NODE_VERSIONS = versions.map(({ versionNumber }) => versionNumber).sort();
89
const LOWEST_LTS = NODE_VERSIONS[0];

.evergreen/config.in.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ functions:
321321
params:
322322
working_dir: src
323323
script: |
324+
source ${DRIVERS_TOOLS}/.evergreen/init-node-and-npm-env.sh
324325
npm install --force ${PACKAGE}
325326
326327
"run lint checks":
@@ -1221,6 +1222,28 @@ tasks:
12211222
- command: perf.send
12221223
params:
12231224
file: src/results.json
1225+
1226+
- name: run-spec-benchmark-tests-node-server-monitorCommands-true
1227+
tags:
1228+
- run-spec-benchmark-tests
1229+
- performance
1230+
exec_timeout_secs: 3600
1231+
commands:
1232+
- command: expansions.update
1233+
type: setup
1234+
params:
1235+
updates:
1236+
- { key: NODE_LTS_VERSION, value: v22.11.0 }
1237+
- { key: VERSION, value: v6.0-perf }
1238+
- { key: TOPOLOGY, value: server }
1239+
- { key: AUTH, value: noauth }
1240+
- { key: MONGODB_CLIENT_OPTIONS, value: '{"monitorCommands": true}' }
1241+
- func: install dependencies
1242+
- func: bootstrap mongo-orchestration
1243+
- func: run spec driver benchmarks
1244+
- command: perf.send
1245+
params:
1246+
file: src/results.json
12241247

12251248
- name: "test-gcpkms-task"
12261249
commands:
@@ -1793,3 +1816,4 @@ buildvariants:
17931816
- run-spec-benchmark-tests-node-server
17941817
- run-spec-benchmark-tests-node-server-timeoutMS-120000
17951818
- run-spec-benchmark-tests-node-server-timeoutMS-0
1819+
- run-spec-benchmark-tests-node-server-monitorCommands-true

.evergreen/config.yml

Lines changed: 191 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ functions:
287287
params:
288288
working_dir: src
289289
script: |
290+
source ${DRIVERS_TOOLS}/.evergreen/init-node-and-npm-env.sh
290291
npm install --force ${PACKAGE}
291292
run lint checks:
292293
- command: subprocess.exec
@@ -1179,6 +1180,27 @@ tasks:
11791180
- command: perf.send
11801181
params:
11811182
file: src/results.json
1183+
- name: run-spec-benchmark-tests-node-server-monitorCommands-true
1184+
tags:
1185+
- run-spec-benchmark-tests
1186+
- performance
1187+
exec_timeout_secs: 3600
1188+
commands:
1189+
- command: expansions.update
1190+
type: setup
1191+
params:
1192+
updates:
1193+
- {key: NODE_LTS_VERSION, value: v22.11.0}
1194+
- {key: VERSION, value: v6.0-perf}
1195+
- {key: TOPOLOGY, value: server}
1196+
- {key: AUTH, value: noauth}
1197+
- {key: MONGODB_CLIENT_OPTIONS, value: '{"monitorCommands": true}'}
1198+
- func: install dependencies
1199+
- func: bootstrap mongo-orchestration
1200+
- func: run spec driver benchmarks
1201+
- command: perf.send
1202+
params:
1203+
file: src/results.json
11821204
- name: test-gcpkms-task
11831205
commands:
11841206
- command: expansions.update
@@ -2105,7 +2127,23 @@ tasks:
21052127
- func: install dependencies
21062128
- func: bootstrap mongo-orchestration
21072129
- func: run socks5 tests
2108-
- name: test-zstd-compression
2130+
- name: test-snappy-compression
2131+
tags:
2132+
- latest
2133+
- snappy
2134+
commands:
2135+
- command: expansions.update
2136+
type: setup
2137+
params:
2138+
updates:
2139+
- {key: VERSION, value: latest}
2140+
- {key: TOPOLOGY, value: replica_set}
2141+
- {key: AUTH, value: auth}
2142+
- {key: COMPRESSOR, value: snappy}
2143+
- func: install dependencies
2144+
- func: bootstrap mongo-orchestration
2145+
- func: run-compression-tests
2146+
- name: test-zstd-1.x-compression
21092147
tags:
21102148
- latest
21112149
- zstd
@@ -2120,11 +2158,14 @@ tasks:
21202158
- {key: COMPRESSOR, value: zstd}
21212159
- func: install dependencies
21222160
- func: bootstrap mongo-orchestration
2161+
- func: install package
2162+
vars:
2163+
PACKAGE: '@mongodb-js/[email protected]'
21232164
- func: run-compression-tests
2124-
- name: test-snappy-compression
2165+
- name: test-zstd-2.x-compression
21252166
tags:
21262167
- latest
2127-
- snappy
2168+
- zstd
21282169
commands:
21292170
- command: expansions.update
21302171
type: setup
@@ -2133,7 +2174,7 @@ tasks:
21332174
- {key: VERSION, value: latest}
21342175
- {key: TOPOLOGY, value: replica_set}
21352176
- {key: AUTH, value: auth}
2136-
- {key: COMPRESSOR, value: snappy}
2177+
- {key: COMPRESSOR, value: zstd}
21372178
- func: install dependencies
21382179
- func: bootstrap mongo-orchestration
21392180
- func: run-compression-tests
@@ -3555,6 +3596,18 @@ tasks:
35553596
- {key: NPM_VERSION, value: latest}
35563597
- func: install dependencies
35573598
- func: run unit tests
3599+
- name: run-unit-tests-node-22
3600+
tags:
3601+
- unit-tests
3602+
commands:
3603+
- command: expansions.update
3604+
type: setup
3605+
params:
3606+
updates:
3607+
- {key: NODE_LTS_VERSION, value: '22'}
3608+
- {key: NPM_VERSION, value: latest}
3609+
- func: install dependencies
3610+
- func: run unit tests
35583611
- name: run-lint-checks
35593612
tags:
35603613
- lint-checks
@@ -4724,6 +4777,7 @@ buildvariants:
47244777
- run-spec-benchmark-tests-node-server
47254778
- run-spec-benchmark-tests-node-server-timeoutMS-120000
47264779
- run-spec-benchmark-tests-node-server-timeoutMS-0
4780+
- run-spec-benchmark-tests-node-server-monitorCommands-true
47274781
- name: rhel80-large-gallium
47284782
display_name: rhel8 Node16
47294783
run_on: rhel80-large
@@ -4773,6 +4827,9 @@ buildvariants:
47734827
- test-socks5
47744828
- test-socks5-csfle
47754829
- test-socks5-tls
4830+
- test-snappy-compression
4831+
- test-zstd-1.x-compression
4832+
- test-zstd-2.x-compression
47764833
- test-tls-support-latest
47774834
- test-tls-support-8.0
47784835
- test-tls-support-7.0
@@ -4829,6 +4886,9 @@ buildvariants:
48294886
- test-socks5
48304887
- test-socks5-csfle
48314888
- test-socks5-tls
4889+
- test-snappy-compression
4890+
- test-zstd-1.x-compression
4891+
- test-zstd-2.x-compression
48324892
- test-tls-support-latest
48334893
- test-tls-support-8.0
48344894
- test-tls-support-7.0
@@ -4885,6 +4945,68 @@ buildvariants:
48854945
- test-socks5
48864946
- test-socks5-csfle
48874947
- test-socks5-tls
4948+
- test-snappy-compression
4949+
- test-zstd-1.x-compression
4950+
- test-zstd-2.x-compression
4951+
- test-tls-support-latest
4952+
- test-tls-support-8.0
4953+
- test-tls-support-7.0
4954+
- test-tls-support-6.0
4955+
- test-tls-support-5.0
4956+
- test-tls-support-4.4
4957+
- test-tls-support-4.2
4958+
- name: rhel80-large-Node22
4959+
display_name: rhel8 Node22
4960+
run_on: rhel80-large
4961+
expansions:
4962+
NODE_LTS_VERSION: 22
4963+
NPM_VERSION: latest
4964+
CLIENT_ENCRYPTION: true
4965+
tasks:
4966+
- test-latest-server
4967+
- test-latest-replica_set
4968+
- test-latest-sharded_cluster
4969+
- test-rapid-server
4970+
- test-rapid-replica_set
4971+
- test-rapid-sharded_cluster
4972+
- test-8.0-server
4973+
- test-8.0-replica_set
4974+
- test-8.0-sharded_cluster
4975+
- test-7.0-server
4976+
- test-7.0-replica_set
4977+
- test-7.0-sharded_cluster
4978+
- test-6.0-server
4979+
- test-6.0-replica_set
4980+
- test-6.0-sharded_cluster
4981+
- test-5.0-server
4982+
- test-5.0-replica_set
4983+
- test-5.0-sharded_cluster
4984+
- test-4.4-server
4985+
- test-4.4-replica_set
4986+
- test-4.4-sharded_cluster
4987+
- test-4.2-server
4988+
- test-4.2-replica_set
4989+
- test-4.2-sharded_cluster
4990+
- test-4.0-server
4991+
- test-4.0-replica_set
4992+
- test-4.0-sharded_cluster
4993+
- test-latest-server-v1-api
4994+
- test-x509-authentication
4995+
- test-atlas-connectivity
4996+
- test-5.0-load-balanced
4997+
- test-6.0-load-balanced
4998+
- test-7.0-load-balanced
4999+
- test-8.0-load-balanced
5000+
- test-rapid-load-balanced
5001+
- test-latest-load-balanced
5002+
- test-auth-kerberos
5003+
- test-auth-ldap
5004+
- test-socks5
5005+
- test-socks5-csfle
5006+
- test-socks5-tls
5007+
- test-snappy-compression
5008+
- test-zstd-1.x-compression
5009+
- test-zstd-2.x-compression
48885010
- test-tls-support-latest
48895011
- test-tls-support-8.0
48905012
- test-tls-support-7.0
@@ -4939,8 +5061,9 @@ buildvariants:
49395061
- test-auth-ldap
49405062
- test-socks5-csfle
49415063
- test-socks5-tls
4942-
- test-zstd-compression
49435064
- test-snappy-compression
5065+
- test-zstd-1.x-compression
5066+
- test-zstd-2.x-compression
49445067
- test-tls-support-latest
49455068
- test-tls-support-8.0
49465069
- test-tls-support-7.0
@@ -4985,6 +5108,9 @@ buildvariants:
49855108
- test-latest-server-v1-api
49865109
- test-socks5
49875110
- test-socks5-tls
5111+
- test-snappy-compression
5112+
- test-zstd-1.x-compression
5113+
- test-zstd-2.x-compression
49885114
- test-tls-support-latest
49895115
- test-tls-support-8.0
49905116
- test-tls-support-7.0
@@ -5029,6 +5155,9 @@ buildvariants:
50295155
- test-latest-server-v1-api
50305156
- test-socks5
50315157
- test-socks5-tls
5158+
- test-snappy-compression
5159+
- test-zstd-1.x-compression
5160+
- test-zstd-2.x-compression
50325161
- test-tls-support-latest
50335162
- test-tls-support-8.0
50345163
- test-tls-support-7.0
@@ -5073,6 +5202,56 @@ buildvariants:
50735202
- test-latest-server-v1-api
50745203
- test-socks5
50755204
- test-socks5-tls
5205+
- test-snappy-compression
5206+
- test-zstd-1.x-compression
5207+
- test-zstd-2.x-compression
5208+
- test-tls-support-latest
5209+
- test-tls-support-8.0
5210+
- test-tls-support-7.0
5211+
- test-tls-support-6.0
5212+
- test-tls-support-5.0
5213+
- test-tls-support-4.4
5214+
- test-tls-support-4.2
5215+
- name: windows-vsCurrent-large-Node22
5216+
display_name: Windows Node22
5217+
run_on: windows-vsCurrent-large
5218+
expansions:
5219+
NODE_LTS_VERSION: 22
5220+
NPM_VERSION: latest
5221+
tasks:
5222+
- test-latest-server
5223+
- test-latest-replica_set
5224+
- test-latest-sharded_cluster
5225+
- test-rapid-server
5226+
- test-rapid-replica_set
5227+
- test-rapid-sharded_cluster
5228+
- test-8.0-server
5229+
- test-8.0-replica_set
5230+
- test-8.0-sharded_cluster
5231+
- test-7.0-server
5232+
- test-7.0-replica_set
5233+
- test-7.0-sharded_cluster
5234+
- test-6.0-server
5235+
- test-6.0-replica_set
5236+
- test-6.0-sharded_cluster
5237+
- test-5.0-server
5238+
- test-5.0-replica_set
5239+
- test-5.0-sharded_cluster
5240+
- test-4.4-server
5241+
- test-4.4-replica_set
5242+
- test-4.4-sharded_cluster
5243+
- test-4.2-server
5244+
- test-4.2-replica_set
5245+
- test-4.2-sharded_cluster
5246+
- test-4.0-server
5247+
- test-4.0-replica_set
5248+
- test-4.0-sharded_cluster
5249+
- test-latest-server-v1-api
5250+
- test-socks5
5251+
- test-socks5-tls
5252+
- test-snappy-compression
5253+
- test-zstd-1.x-compression
5254+
- test-zstd-2.x-compression
50765255
- test-tls-support-latest
50775256
- test-tls-support-8.0
50785257
- test-tls-support-7.0
@@ -5097,8 +5276,8 @@ buildvariants:
50975276
- test-5.0-csfle-mongocryptd
50985277
- test-4.4-csfle-mongocryptd
50995278
- test-4.2-csfle-mongocryptd
5100-
- name: rhel8-node20-test-csfle-mongocryptd
5101-
display_name: rhel 8 Node20 test mongocryptd
5279+
- name: rhel8-node22-test-csfle-mongocryptd
5280+
display_name: rhel 8 Node22 test mongocryptd
51025281
run_on: rhel80-large
51035282
expansions:
51045283
CLIENT_ENCRYPTION: true
@@ -5115,10 +5294,10 @@ buildvariants:
51155294
- test-4.4-csfle-mongocryptd
51165295
- test-4.2-csfle-mongocryptd
51175296
- name: macos-1100
5118-
display_name: MacOS 11 Node20
5297+
display_name: MacOS 11 Node22
51195298
run_on: macos-1100
51205299
expansions:
5121-
NODE_LTS_VERSION: 20
5300+
NODE_LTS_VERSION: 22
51225301
CLIENT_ENCRYPTION: true
51235302
tasks:
51245303
- test-rapid-server
@@ -5138,7 +5317,7 @@ buildvariants:
51385317
display_name: MONGODB-AWS Auth test
51395318
run_on: ubuntu2004-small
51405319
expansions:
5141-
NODE_LTS_VERSION: 20
5320+
NODE_LTS_VERSION: 22
51425321
tasks:
51435322
- aws-latest-auth-test-run-aws-auth-test-with-regular-aws-credentials
51445323
- aws-latest-auth-test-run-aws-auth-test-with-assume-role-credentials
@@ -5228,7 +5407,7 @@ buildvariants:
52285407
display_name: Atlas Data Lake Tests
52295408
run_on: ubuntu2204-large
52305409
expansions:
5231-
NODE_LTS_VERSION: 20
5410+
NODE_LTS_VERSION: 22
52325411
tasks:
52335412
- test-atlas-data-lake
52345413
- name: rhel8-custom-dependency-tests
@@ -5264,7 +5443,7 @@ buildvariants:
52645443
display_name: MONGODB-OIDC Auth Tests
52655444
run_on: ubuntu2004-small
52665445
expansions:
5267-
NODE_LTS_VERSION: 20
5446+
NODE_LTS_VERSION: 22
52685447
batchtime: 20160
52695448
tasks:
52705449
- testtestoidc_task_group

0 commit comments

Comments
 (0)