Skip to content

Commit d6f1c95

Browse files
Merge branch 'mongodb:main' into NODE-7379
2 parents d6fb8a4 + 00f3232 commit d6f1c95

758 files changed

Lines changed: 25960 additions & 1733 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/ci_matrix_constants.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ const LATEST_LTS = NODE_VERSIONS[NODE_VERSIONS.length - 1];
1010

1111
const TOPOLOGIES = ['server', 'replica_set', 'sharded_cluster'];
1212
const AWS_AUTH_VERSIONS = ['latest'];
13-
const TLS_VERSIONS = ['latest', '8.0', '7.0', '6.0', '5.0', '4.4', '4.2'];
14-
const LB_VERSIONS = MONGODB_VERSIONS.slice(0, MONGODB_VERSIONS.indexOf('5.0') + 1);
15-
LB_VERSIONS.reverse();
13+
const TLS_VERSIONS = MONGODB_VERSIONS.filter(value => value !== 'rapid');
14+
const LB_VERSIONS = MONGODB_VERSIONS.slice(0, MONGODB_VERSIONS.indexOf('5.0') + 1).toReversed();
1615

1716
const DEFAULT_OS = 'rhel80-large';
1817
const WINDOWS_OS = 'windows-2022-latest-large';

.evergreen/config.in.yml

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ functions:
5050
params:
5151
file: src/expansion.yml
5252

53+
"switch source":
54+
# Checkout the desired source revision if specified
55+
- command: shell.exec
56+
params:
57+
working_dir: src
58+
shell: bash
59+
script: |
60+
set -euxo pipefail
61+
git reset --hard HEAD
62+
git fetch origin "${SOURCE_REV}"
63+
git checkout "${SOURCE_REV}"
64+
npm i
65+
5366
"bootstrap mongo-orchestration":
5467
- command: subprocess.exec
5568
params:
@@ -703,6 +716,26 @@ functions:
703716
args:
704717
- .evergreen/docker/alpine.sh
705718

719+
"log state":
720+
- command: shell.exec
721+
params:
722+
working_dir: "src"
723+
shell: bash
724+
script: |-
725+
set -o errexit
726+
set -o pipefail
727+
728+
echo "=== Driver state ==="
729+
echo "Current commit:"
730+
git rev-parse HEAD
731+
echo
732+
echo "Current branch / status:"
733+
git status --short --branch || true
734+
echo
735+
echo "npm ls (full):"
736+
npm ls
737+
echo "=== end log state ==="
738+
706739
tasks:
707740
- name: "test-gcpkms-task"
708741
commands:
@@ -955,6 +988,93 @@ tasks:
955988
args:
956989
- .evergreen/run-search-index-management-tests.sh
957990

991+
- name: test-bson-latest-driver-7.0.0-unit-tests
992+
commands:
993+
- command: expansions.update
994+
type: setup
995+
params:
996+
updates:
997+
- { key: VERSION, value: latest }
998+
- { key: NODE_LTS_VERSION, value: "20.19.0" }
999+
- func: install dependencies
1000+
- func: switch source
1001+
vars:
1002+
SOURCE_REV: refs/tags/v7.0.0
1003+
- func: install package
1004+
vars:
1005+
PACKAGE: https://github.com/mongodb/js-bson#HEAD
1006+
- func: log state
1007+
- func: run unit tests
1008+
1009+
- name: test-bson-latest-driver-7.0.0-server-tests
1010+
commands:
1011+
- command: expansions.update
1012+
type: setup
1013+
params:
1014+
updates:
1015+
- { key: VERSION, value: latest }
1016+
- { key: TOPOLOGY, value: server }
1017+
- { key: AUTH, value: auth }
1018+
- { key: SSL, value: nossl }
1019+
- { key: CLIENT_ENCRYPTION, value: "false" }
1020+
- { key: NODE_LTS_VERSION, value: "20.19.0" }
1021+
- func: install dependencies
1022+
- func: bootstrap mongo-orchestration
1023+
- func: switch source
1024+
vars:
1025+
SOURCE_REV: refs/tags/v7.0.0
1026+
- func: install package
1027+
vars:
1028+
PACKAGE: https://github.com/mongodb/js-bson#HEAD
1029+
- func: log state
1030+
- func: run tests
1031+
1032+
- name: test-bson-latest-driver-7.0.0-replica_set-tests
1033+
commands:
1034+
- command: expansions.update
1035+
type: setup
1036+
params:
1037+
updates:
1038+
- { key: VERSION, value: latest }
1039+
- { key: TOPOLOGY, value: replica_set }
1040+
- { key: AUTH, value: auth }
1041+
- { key: SSL, value: nossl }
1042+
- { key: CLIENT_ENCRYPTION, value: "false" }
1043+
- { key: NODE_LTS_VERSION, value: "20.19.0" }
1044+
- func: install dependencies
1045+
- func: bootstrap mongo-orchestration
1046+
- func: switch source
1047+
vars:
1048+
SOURCE_REV: refs/tags/v7.0.0
1049+
- func: install package
1050+
vars:
1051+
PACKAGE: https://github.com/mongodb/js-bson#HEAD
1052+
- func: log state
1053+
- func: run tests
1054+
1055+
- name: test-bson-latest-driver-7.0.0-sharded_cluster-tests
1056+
commands:
1057+
- command: expansions.update
1058+
type: setup
1059+
params:
1060+
updates:
1061+
- { key: VERSION, value: latest }
1062+
- { key: TOPOLOGY, value: sharded_cluster }
1063+
- { key: AUTH, value: auth }
1064+
- { key: SSL, value: nossl }
1065+
- { key: CLIENT_ENCRYPTION, value: "false" }
1066+
- { key: NODE_LTS_VERSION, value: "20.19.0" }
1067+
- func: install dependencies
1068+
- func: bootstrap mongo-orchestration
1069+
- func: switch source
1070+
vars:
1071+
SOURCE_REV: refs/tags/v7.0.0
1072+
- func: install package
1073+
vars:
1074+
PACKAGE: https://github.com/mongodb/js-bson#HEAD
1075+
- func: log state
1076+
- func: run tests
1077+
9581078
task_groups:
9591079
- name: test_gcpkms_task_group
9601080
setup_group_can_fail_task: true
@@ -1237,3 +1357,11 @@ buildvariants:
12371357
run_on: ubuntu2204-small
12381358
tasks:
12391359
- .alpine-fle
1360+
- name: BSON compatibility tests
1361+
display_name: BSON compatibility tests
1362+
run_on: rhel80-large
1363+
tasks:
1364+
- test-bson-latest-driver-7.0.0-unit-tests
1365+
- test-bson-latest-driver-7.0.0-server-tests
1366+
- test-bson-latest-driver-7.0.0-replica_set-tests
1367+
- test-bson-latest-driver-7.0.0-sharded_cluster-tests

0 commit comments

Comments
 (0)