@@ -29,6 +29,17 @@ functions:
2929 - command : expansions.update
3030 params :
3131 file : src/expansion.yml
32+ switch source :
33+ - command : shell.exec
34+ params :
35+ working_dir : src
36+ shell : bash
37+ script : |
38+ set -euxo pipefail
39+ git reset --hard HEAD
40+ git fetch origin "${SOURCE_REV}"
41+ git checkout "${SOURCE_REV}"
42+ npm i
3243 bootstrap mongo-orchestration :
3344 - command : subprocess.exec
3445 params :
@@ -639,6 +650,25 @@ functions:
639650 add_expansions_to_env : true
640651 args :
641652 - .evergreen/docker/alpine.sh
653+ log state :
654+ - command : shell.exec
655+ params :
656+ working_dir : src
657+ shell : bash
658+ script : |-
659+ set -o errexit
660+ set -o pipefail
661+
662+ echo "=== Driver state ==="
663+ echo "Current commit:"
664+ git rev-parse HEAD
665+ echo
666+ echo "Current branch / status:"
667+ git status --short --branch || true
668+ echo
669+ echo "npm ls (full):"
670+ npm ls
671+ echo "=== end log state ==="
642672tasks :
643673 - name : test-gcpkms-task
644674 commands :
@@ -882,6 +912,89 @@ tasks:
882912 add_expansions_to_env : true
883913 args :
884914 - .evergreen/run-search-index-management-tests.sh
915+ - name : test-bson-latest-driver-7.0.0-unit-tests
916+ commands :
917+ - command : expansions.update
918+ type : setup
919+ params :
920+ updates :
921+ - {key: VERSION, value: latest}
922+ - {key: NODE_LTS_VERSION, value: 20.19.0}
923+ - func : install dependencies
924+ - func : switch source
925+ vars :
926+ SOURCE_REV : refs/tags/v7.0.0
927+ - func : install package
928+ vars :
929+ PACKAGE : https://github.com/mongodb/js-bson#HEAD
930+ - func : log state
931+ - func : run unit tests
932+ - name : test-bson-latest-driver-7.0.0-server-tests
933+ commands :
934+ - command : expansions.update
935+ type : setup
936+ params :
937+ updates :
938+ - {key: VERSION, value: latest}
939+ - {key: TOPOLOGY, value: server}
940+ - {key: AUTH, value: auth}
941+ - {key: SSL, value: nossl}
942+ - {key: CLIENT_ENCRYPTION, value: 'false'}
943+ - {key: NODE_LTS_VERSION, value: 20.19.0}
944+ - func : install dependencies
945+ - func : bootstrap mongo-orchestration
946+ - func : switch source
947+ vars :
948+ SOURCE_REV : refs/tags/v7.0.0
949+ - func : install package
950+ vars :
951+ PACKAGE : https://github.com/mongodb/js-bson#HEAD
952+ - func : log state
953+ - func : run tests
954+ - name : test-bson-latest-driver-7.0.0-replica_set-tests
955+ commands :
956+ - command : expansions.update
957+ type : setup
958+ params :
959+ updates :
960+ - {key: VERSION, value: latest}
961+ - {key: TOPOLOGY, value: replica_set}
962+ - {key: AUTH, value: auth}
963+ - {key: SSL, value: nossl}
964+ - {key: CLIENT_ENCRYPTION, value: 'false'}
965+ - {key: NODE_LTS_VERSION, value: 20.19.0}
966+ - func : install dependencies
967+ - func : bootstrap mongo-orchestration
968+ - func : switch source
969+ vars :
970+ SOURCE_REV : refs/tags/v7.0.0
971+ - func : install package
972+ vars :
973+ PACKAGE : https://github.com/mongodb/js-bson#HEAD
974+ - func : log state
975+ - func : run tests
976+ - name : test-bson-latest-driver-7.0.0-sharded_cluster-tests
977+ commands :
978+ - command : expansions.update
979+ type : setup
980+ params :
981+ updates :
982+ - {key: VERSION, value: latest}
983+ - {key: TOPOLOGY, value: sharded_cluster}
984+ - {key: AUTH, value: auth}
985+ - {key: SSL, value: nossl}
986+ - {key: CLIENT_ENCRYPTION, value: 'false'}
987+ - {key: NODE_LTS_VERSION, value: 20.19.0}
988+ - func : install dependencies
989+ - func : bootstrap mongo-orchestration
990+ - func : switch source
991+ vars :
992+ SOURCE_REV : refs/tags/v7.0.0
993+ - func : install package
994+ vars :
995+ PACKAGE : https://github.com/mongodb/js-bson#HEAD
996+ - func : log state
997+ - func : run tests
885998 - name : test-latest-server
886999 tags :
8871000 - latest
@@ -3386,6 +3499,14 @@ buildvariants:
33863499 run_on : ubuntu2204-small
33873500 tasks :
33883501 - .alpine-fle
3502+ - name : BSON compatibility tests
3503+ display_name : BSON compatibility tests
3504+ run_on : rhel80-large
3505+ tasks :
3506+ - test-bson-latest-driver-7.0.0-unit-tests
3507+ - test-bson-latest-driver-7.0.0-server-tests
3508+ - test-bson-latest-driver-7.0.0-replica_set-tests
3509+ - test-bson-latest-driver-7.0.0-sharded_cluster-tests
33893510 - name : rhel80-large-iron
33903511 display_name : rhel8 Node20.19.0
33913512 run_on : rhel80-large
0 commit comments