Skip to content

Commit a6f965c

Browse files
Merge branch 'mongodb:main' into docs-update
2 parents 6441bda + a2cc629 commit a6f965c

469 files changed

Lines changed: 15093 additions & 16602 deletions

File tree

Some content is hidden

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

.evergreen/config.in.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,9 @@ functions:
617617
export AWS_ACCESS_KEY_ID=${aws_key}
618618
export AWS_SECRET_ACCESS_KEY=${aws_secret}
619619
620+
# use Node20
621+
export PATH=/opt/devtools/node20/bin:/opt/dev/tools/bin:$PATH
622+
620623
# Download all the task coverage files.
621624
# NOTE: All coverage files are too large for V8 to handle the resulting call to
622625
# JSON.stringify from within nyc, so with stick to Fermiun to include the

.evergreen/config.yml

Lines changed: 25 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,9 @@ functions:
556556
export AWS_ACCESS_KEY_ID=${aws_key}
557557
export AWS_SECRET_ACCESS_KEY=${aws_secret}
558558
559+
# use Node20
560+
export PATH=/opt/devtools/node20/bin:/opt/dev/tools/bin:$PATH
561+
559562
# Download all the task coverage files.
560563
# NOTE: All coverage files are too large for V8 to handle the resulting call to
561564
# JSON.stringify from within nyc, so with stick to Fermiun to include the
@@ -1400,6 +1403,19 @@ tasks:
14001403
- func: start-load-balancer
14011404
- func: run-lb-tests
14021405
- func: stop-load-balancer
1406+
- name: test-auth-kerberos
1407+
tags:
1408+
- auth
1409+
- kerberos
1410+
commands:
1411+
- command: expansions.update
1412+
type: setup
1413+
params:
1414+
updates:
1415+
- {key: NATIVE, value: 'true'}
1416+
- func: install dependencies
1417+
- func: assume secrets manager role
1418+
- func: run kerberos tests
14031419
- name: test-auth-ldap
14041420
tags:
14051421
- auth
@@ -1465,28 +1481,7 @@ tasks:
14651481
- func: install dependencies
14661482
- func: bootstrap mongo-orchestration
14671483
- func: run-compression-tests
1468-
- name: test-zstd-1.x-compression
1469-
tags:
1470-
- latest
1471-
- zstd
1472-
commands:
1473-
- command: expansions.update
1474-
type: setup
1475-
params:
1476-
updates:
1477-
- {key: VERSION, value: latest}
1478-
- {key: TOPOLOGY, value: replica_set}
1479-
- {key: AUTH, value: auth}
1480-
- {key: COMPRESSOR, value: zstd}
1481-
- {key: CLIENT_ENCRYPTION, value: 'false'}
1482-
- {key: TEST_CSFLE, value: 'false'}
1483-
- func: install dependencies
1484-
- func: bootstrap mongo-orchestration
1485-
- func: install package
1486-
vars:
1487-
PACKAGE: '@mongodb-js/[email protected]'
1488-
- func: run-compression-tests
1489-
- name: test-zstd-2.x-compression
1484+
- name: test-zstd-compression
14901485
tags:
14911486
- latest
14921487
- zstd
@@ -1857,17 +1852,6 @@ tasks:
18571852
- {key: NODE_LTS_VERSION, value: '22'}
18581853
- func: install dependencies
18591854
- func: run lint checks
1860-
- name: run-resource-management-async-dispose
1861-
tags:
1862-
- resource-management
1863-
commands:
1864-
- command: expansions.update
1865-
type: setup
1866-
params:
1867-
updates:
1868-
- {key: NODE_LTS_VERSION, value: '22'}
1869-
- func: install dependencies
1870-
- func: check resource management
18711855
- name: test-explicit-resource-management-feature-integration
18721856
tags:
18731857
- resource-management
@@ -1994,24 +1978,6 @@ tasks:
19941978
- func: install mongodb-client-encryption from source
19951979
- func: assume secrets manager role
19961980
- func: run custom csfle tests
1997-
- name: test-latest-driver-mongodb-client-encryption-6.0.0
1998-
tags:
1999-
- run-custom-dependency-tests
2000-
commands:
2001-
- command: expansions.update
2002-
type: setup
2003-
params:
2004-
updates:
2005-
- {key: NODE_LTS_VERSION, value: 20.19.0}
2006-
- {key: VERSION, value: '7.0'}
2007-
- {key: TOPOLOGY, value: replica_set}
2008-
- {key: CLIENT_ENCRYPTION, value: 'true'}
2009-
- func: install dependencies
2010-
- func: bootstrap mongo-orchestration
2011-
- func: install package
2012-
vars:
2013-
2014-
- func: run tests
20151981
- name: test-alpine-fle
20161982
tags:
20171983
- alpine-fle
@@ -2908,13 +2874,13 @@ buildvariants:
29082874
- test-8.0-load-balanced
29092875
- test-rapid-load-balanced
29102876
- test-latest-load-balanced
2877+
- test-auth-kerberos
29112878
- test-auth-ldap
29122879
- test-socks5
29132880
- test-socks5-csfle
29142881
- test-socks5-tls
29152882
- test-snappy-compression
2916-
- test-zstd-1.x-compression
2917-
- test-zstd-2.x-compression
2883+
- test-zstd-compression
29182884
- test-tls-support-latest
29192885
- test-tls-support-8.0
29202886
- test-tls-support-7.0
@@ -2963,13 +2929,13 @@ buildvariants:
29632929
- test-8.0-load-balanced
29642930
- test-rapid-load-balanced
29652931
- test-latest-load-balanced
2932+
- test-auth-kerberos
29662933
- test-auth-ldap
29672934
- test-socks5
29682935
- test-socks5-csfle
29692936
- test-socks5-tls
29702937
- test-snappy-compression
2971-
- test-zstd-1.x-compression
2972-
- test-zstd-2.x-compression
2938+
- test-zstd-compression
29732939
- test-tls-support-latest
29742940
- test-tls-support-8.0
29752941
- test-tls-support-7.0
@@ -3017,12 +2983,12 @@ buildvariants:
30172983
- test-8.0-load-balanced
30182984
- test-rapid-load-balanced
30192985
- test-latest-load-balanced
2986+
- test-auth-kerberos
30202987
- test-auth-ldap
30212988
- test-socks5-csfle
30222989
- test-socks5-tls
30232990
- test-snappy-compression
3024-
- test-zstd-1.x-compression
3025-
- test-zstd-2.x-compression
2991+
- test-zstd-compression
30262992
- test-tls-support-latest
30272993
- test-tls-support-8.0
30282994
- test-tls-support-7.0
@@ -3066,8 +3032,7 @@ buildvariants:
30663032
- test-socks5
30673033
- test-socks5-tls
30683034
- test-snappy-compression
3069-
- test-zstd-1.x-compression
3070-
- test-zstd-2.x-compression
3035+
- test-zstd-compression
30713036
- test-tls-support-latest
30723037
- test-tls-support-8.0
30733038
- test-tls-support-7.0
@@ -3111,8 +3076,7 @@ buildvariants:
31113076
- test-socks5
31123077
- test-socks5-tls
31133078
- test-snappy-compression
3114-
- test-zstd-1.x-compression
3115-
- test-zstd-2.x-compression
3079+
- test-zstd-compression
31163080
- test-tls-support-latest
31173081
- test-tls-support-8.0
31183082
- test-tls-support-7.0
@@ -3205,7 +3169,6 @@ buildvariants:
32053169
- run-custom-csfle-tests-5.0
32063170
- run-custom-csfle-tests-rapid
32073171
- run-custom-csfle-tests-latest
3208-
- test-latest-driver-mongodb-client-encryption-6.0.0
32093172
- name: rhel8-test-gcp-kms
32103173
display_name: GCP KMS Test
32113174
run_on: debian11-small

.evergreen/generate_evergreen_tasks.js

Lines changed: 35 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -158,19 +158,18 @@ TASKS.push(
158158
{ func: 'stop-load-balancer' }
159159
]
160160
})),
161-
// TODO(NODE-7178): Unskip kerberos tests.
162-
// {
163-
// name: 'test-auth-kerberos',
164-
// tags: ['auth', 'kerberos'],
165-
// commands: [
166-
// updateExpansions({
167-
// NATIVE: 'true'
168-
// }),
169-
// { func: 'install dependencies' },
170-
// { func: 'assume secrets manager role' },
171-
// { func: 'run kerberos tests' }
172-
// ]
173-
// },
161+
{
162+
name: 'test-auth-kerberos',
163+
tags: ['auth', 'kerberos'],
164+
commands: [
165+
updateExpansions({
166+
NATIVE: 'true'
167+
}),
168+
{ func: 'install dependencies' },
169+
{ func: 'assume secrets manager role' },
170+
{ func: 'run kerberos tests' }
171+
]
172+
},
174173
{
175174
name: 'test-auth-ldap',
176175
tags: ['auth', 'ldap'],
@@ -243,31 +242,7 @@ TASKS.push({
243242
});
244243

245244
TASKS.push({
246-
name: `test-zstd-1.x-compression`,
247-
tags: ['latest', 'zstd'],
248-
commands: [
249-
updateExpansions({
250-
VERSION: 'latest',
251-
TOPOLOGY: 'replica_set',
252-
AUTH: 'auth',
253-
COMPRESSOR: 'zstd',
254-
CLIENT_ENCRYPTION: 'false',
255-
TEST_CSFLE: 'false'
256-
}),
257-
{ func: 'install dependencies' },
258-
{ func: 'bootstrap mongo-orchestration' },
259-
{
260-
func: 'install package',
261-
vars: {
262-
PACKAGE: '@mongodb-js/[email protected]'
263-
}
264-
},
265-
{ func: 'run-compression-tests' }
266-
]
267-
});
268-
269-
TASKS.push({
270-
name: `test-zstd-2.x-compression`,
245+
name: `test-zstd-compression`,
271246
tags: ['latest', 'zstd'],
272247
commands: [
273248
updateExpansions({
@@ -280,7 +255,6 @@ TASKS.push({
280255
}),
281256
{ func: 'install dependencies' },
282257
{ func: 'bootstrap mongo-orchestration' },
283-
// no need to manually install zstd - we specify 2.x as a dev dependency in package.json
284258
{ func: 'run-compression-tests' }
285259
]
286260
});
@@ -510,17 +484,6 @@ SINGLETON_TASKS.push(
510484
{ func: 'run lint checks' }
511485
]
512486
},
513-
{
514-
name: 'run-resource-management-async-dispose',
515-
tags: ['resource-management'],
516-
commands: [
517-
updateExpansions({
518-
NODE_LTS_VERSION: LATEST_LTS
519-
}),
520-
{ func: 'install dependencies' },
521-
{ func: 'check resource management' }
522-
]
523-
},
524487
{
525488
name: 'test-explicit-resource-management-feature-integration',
526489
tags: ['resource-management'],
@@ -623,27 +586,28 @@ for (const serverVersion of ['5.0', 'rapid', 'latest']) {
623586
});
624587
}
625588

626-
customDependencyTests.push({
627-
name: `test-latest-driver-mongodb-client-encryption-6.0.0`,
628-
tags: ['run-custom-dependency-tests'],
629-
commands: [
630-
updateExpansions({
631-
NODE_LTS_VERSION: LOWEST_LTS,
632-
VERSION: '7.0',
633-
TOPOLOGY: 'replica_set',
634-
CLIENT_ENCRYPTION: true
635-
}),
636-
{ func: 'install dependencies' },
637-
{ func: 'bootstrap mongo-orchestration' },
638-
{
639-
func: 'install package',
640-
vars: {
641-
PACKAGE: '[email protected]'
642-
}
643-
},
644-
{ func: 'run tests' }
645-
]
646-
});
589+
// TODO(NODE-6997): update to 7.0.0 after release
590+
// customDependencyTests.push({
591+
// name: `test-latest-driver-mongodb-client-encryption-6.0.0`,
592+
// tags: ['run-custom-dependency-tests'],
593+
// commands: [
594+
// updateExpansions({
595+
// NODE_LTS_VERSION: LOWEST_LTS,
596+
// VERSION: '7.0',
597+
// TOPOLOGY: 'replica_set',
598+
// CLIENT_ENCRYPTION: true
599+
// }),
600+
// { func: 'install dependencies' },
601+
// { func: 'bootstrap mongo-orchestration' },
602+
// {
603+
// func: 'install package',
604+
// vars: {
605+
// PACKAGE: '[email protected]'
606+
// }
607+
// },
608+
// { func: 'run tests' }
609+
// ]
610+
// });
647611

648612
const coverageTask = {
649613
name: 'download and merge coverage'.split(' ').join('-'),

.evergreen/install-mongodb-client-encryption.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ rm -rf mongodb-client-encryption
1212
git clone https://github.com/mongodb-js/mongodb-client-encryption.git
1313
pushd mongodb-client-encryption
1414

15+
git checkout main
16+
1517
node --version
1618
npm --version
1719

.evergreen/run-resource-management.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

.evergreen/setup-mongodb-aws-auth-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cd $DRIVERS_TOOLS/.evergreen/auth_aws
1818
# Create a python virtual environment.
1919
. ./activate-authawsvenv.sh
2020
# Source the environment variables. Configure the environment and the server.
21-
. aws_setup.sh $AWS_CREDENTIAL_TYPE
21+
. aws_setup.sh --nouri $AWS_CREDENTIAL_TYPE
2222

2323
cd $BEFORE
2424

.github/dependabot.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,24 @@ updates:
2727
# chai-subset requires @types/chai 4.x.
2828
- dependency-name: "@types/chai"
2929
versions: [">=4.0.0"]
30-
# nyc is Node18+ only starting on [email protected].
31-
- dependency-name: "nyc"
32-
versions: [">=16.0.0"]
3330
# mocha-plugin-eslint breaks our lint configuration
3431
- dependency-name: "mocha-plugin-eslint"
3532
versions: [">=10.0.0"]
3633
# we ignore TS as a part of quarterly dependency updates.
3734
- dependency-name: "typescript"
38-
# stay on the supported major version of gcp-metadata
39-
- dependency-name: "gcp-metadata"
40-
versions: [">=6.0.0"]
4135
# NODE-3773: sinon 19+ breaks the srv polling unit tests
4236
- dependency-name: "sinon"
4337
versions: ["18.x"]
4438

39+
# ignore all peer dependencies
40+
- dependency-name: "@aws-sdk/credential-providers"
41+
- dependency-name: "@mongodb-js/zstd"
42+
- dependency-name: "gcp-metadata"
43+
- dependency-name: "kerberos"
44+
- dependency-name: "mongodb-client-encryption"
45+
- dependency-name: "snappy"
46+
- dependency-name: "socks"
47+
4548
versioning-strategy: increase
4649

4750
groups:

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434

3535
# Initializes the CodeQL tools for scanning.
3636
- name: Initialize CodeQL
37-
uses: github/codeql-action/init@v3
37+
uses: github/codeql-action/init@v4
3838
with:
3939
languages: ${{ matrix.language }}
4040
build-mode: ${{ matrix.build-mode }}
4141
source-root: "./src"
4242

4343
- name: Perform CodeQL Analysis
44-
uses: github/codeql-action/analyze@v3
44+
uses: github/codeql-action/analyze@v4
4545
with:
4646
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)