Skip to content

Commit bfc4156

Browse files
committed
move changes to config.in.yml
1 parent 4343e25 commit bfc4156

2 files changed

Lines changed: 113 additions & 48 deletions

File tree

.evergreen/config.in.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ functions:
3434
directory: "src"
3535
shallow_clone: true # speed things up by limiting clone depth to 100
3636

37+
# Checkout the desired source revision if specified
38+
- command: shell.exec
39+
params:
40+
working_dir: src
41+
shell: bash
42+
script: |
43+
set -euxo pipefail
44+
# Only override if source_rev is set (use | to default to empty)
45+
if [ "${source_rev|}" != "" ]; then
46+
git reset --hard HEAD
47+
git clean -xfd
48+
git fetch origin "${source_rev}"
49+
git checkout "${source_rev}"
50+
fi
51+
3752
# Make an evergreen expansion file with dynamic values
3853
- command: subprocess.exec
3954
params:
@@ -955,6 +970,48 @@ tasks:
955970
args:
956971
- .evergreen/run-search-index-management-tests.sh
957972

973+
- name: test-bson-latest-server-7.0.0
974+
tags:
975+
- "bson-compat"
976+
- "driver-7.0.0"
977+
commands:
978+
- command: expansions.update
979+
type: setup
980+
params:
981+
updates:
982+
- { key: VERSION, value: "7.0" }
983+
- { key: TOPOLOGY, value: "replica_set" }
984+
- { key: AUTH, value: "auth" }
985+
- { key: SSL, value: "ssl" }
986+
- { key: NODE_LTS_VERSION, value: '24'}
987+
- { key: PACKAGE, value: "https://github.com/mongodb/js-bson#HEAD" }
988+
- func: install dependencies
989+
- func: bootstrap mongo-orchestration
990+
- func: fetch source
991+
- func: install package
992+
- func: log state
993+
- func: run unit tests
994+
995+
- name: log state
996+
commands:
997+
- command: shell.exec
998+
params:
999+
working_dir: "src"
1000+
shell: bash
1001+
script: |-
1002+
set -o errexit
1003+
set -o pipefail
1004+
1005+
echo "=== Driver state ==="
1006+
echo "Current commit:"
1007+
git rev-parse HEAD
1008+
echo
1009+
echo "Current branch / status:"
1010+
git status --short --branch || true
1011+
echo
1012+
echo "npm ls (full):"
1013+
npm ls
1014+
echo "=== end log state ==="
9581015
task_groups:
9591016
- name: test_gcpkms_task_group
9601017
setup_group_can_fail_task: true
@@ -1216,6 +1273,14 @@ task_groups:
12161273
tasks:
12171274
- test-search-index-helpers
12181275

1276+
- name: BSON compatibility tests
1277+
display_name: BSON compatibility tests
1278+
run_on: rhel80-large
1279+
expansions:
1280+
source_rev: 2512137b5d94b238e7cf5ee753f867e8d1e2e0fc
1281+
tasks:
1282+
- test-bson-latest-server-7.0.0
1283+
12191284
pre:
12201285
- func: "fetch source"
12211286
- func: "fix absolute paths"

.evergreen/config.yml

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ functions:
4242
- command: expansions.update
4343
params:
4444
file: src/expansion.yml
45-
file: src/expansion.yml
4645
bootstrap mongo-orchestration:
4746
- command: subprocess.exec
4847
params:
@@ -653,25 +652,6 @@ functions:
653652
add_expansions_to_env: true
654653
args:
655654
- .evergreen/docker/alpine.sh
656-
log state:
657-
- command: shell.exec
658-
params:
659-
working_dir: "src"
660-
shell: bash
661-
script: |-
662-
set -o errexit
663-
set -o pipefail
664-
665-
echo "=== Driver state ==="
666-
echo "Current commit:"
667-
git rev-parse HEAD
668-
echo
669-
echo "Current branch / status:"
670-
git status --short --branch || true
671-
echo
672-
echo "npm ls (full):"
673-
npm ls
674-
echo "=== end log state ==="
675655
tasks:
676656
- name: test-gcpkms-task
677657
commands:
@@ -915,6 +895,47 @@ tasks:
915895
add_expansions_to_env: true
916896
args:
917897
- .evergreen/run-search-index-management-tests.sh
898+
- name: test-bson-latest-server-7.0.0
899+
tags:
900+
- bson-compat
901+
- driver-7.0.0
902+
commands:
903+
- command: expansions.update
904+
type: setup
905+
params:
906+
updates:
907+
- {key: VERSION, value: '7.0'}
908+
- {key: TOPOLOGY, value: replica_set}
909+
- {key: AUTH, value: auth}
910+
- {key: SSL, value: ssl}
911+
- {key: NODE_LTS_VERSION, value: '24'}
912+
- {key: PACKAGE, value: https://github.com/mongodb/js-bson#HEAD}
913+
- func: install dependencies
914+
- func: bootstrap mongo-orchestration
915+
- func: fetch source
916+
- func: install package
917+
- func: log state
918+
- func: run unit tests
919+
- name: log state
920+
commands:
921+
- command: shell.exec
922+
params:
923+
working_dir: src
924+
shell: bash
925+
script: |-
926+
set -o errexit
927+
set -o pipefail
928+
929+
echo "=== Driver state ==="
930+
echo "Current commit:"
931+
git rev-parse HEAD
932+
echo
933+
echo "Current branch / status:"
934+
git status --short --branch || true
935+
echo
936+
echo "npm ls (full):"
937+
npm ls
938+
echo "=== end log state ==="
918939
- name: test-latest-server
919940
tags:
920941
- latest
@@ -3151,27 +3172,6 @@ tasks:
31513172
- func: install dependencies
31523173
- func: bootstrap mongo-orchestration
31533174
- func: run tests
3154-
- name: test-bson-latest-server-7.0.0
3155-
tags:
3156-
- "bson-compat"
3157-
- "driver-7.0.0"
3158-
commands:
3159-
- command: expansions.update
3160-
type: setup
3161-
params:
3162-
updates:
3163-
- { key: VERSION, value: "7.0" }
3164-
- { key: TOPOLOGY, value: "replica_set" }
3165-
- { key: AUTH, value: "auth" }
3166-
- { key: SSL, value: "ssl" }
3167-
- { key: NODE_LTS_VERSION, value: '24'}
3168-
- { key: PACKAGE, value: "https://github.com/mongodb/js-bson#HEAD" }
3169-
- func: install dependencies
3170-
- func: bootstrap mongo-orchestration
3171-
- func: fetch source
3172-
- func: install package
3173-
- func: log state
3174-
- func: run unit tests
31753175
task_groups:
31763176
- name: test_gcpkms_task_group
31773177
setup_group_can_fail_task: true
@@ -3422,6 +3422,13 @@ task_groups:
34223422
setup_group_timeout_secs: 1800
34233423
tasks:
34243424
- test-search-index-helpers
3425+
- name: BSON compatibility tests
3426+
display_name: BSON compatibility tests
3427+
run_on: rhel80-large
3428+
expansions:
3429+
source_rev: 2512137b5d94b238e7cf5ee753f867e8d1e2e0fc
3430+
tasks:
3431+
- test-bson-latest-server-7.0.0
34253432
pre:
34263433
- func: fetch source
34273434
- func: fix absolute paths
@@ -3957,10 +3964,3 @@ buildvariants:
39573964
run_on: rhel80-large
39583965
tasks:
39593966
- .ssl
3960-
- name: BSON compatibility tests
3961-
display_name: BSON compatibility tests
3962-
run_on: rhel80-large
3963-
expansions:
3964-
source_rev: 2512137b5d94b238e7cf5ee753f867e8d1e2e0fc
3965-
tasks:
3966-
- test-bson-latest-server-7.0.0

0 commit comments

Comments
 (0)