Skip to content

Commit fec362d

Browse files
committed
made log state a function
1 parent 82094d6 commit fec362d

2 files changed

Lines changed: 55 additions & 43 deletions

File tree

.evergreen/config.in.yml

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,26 @@ functions:
718718
args:
719719
- .evergreen/docker/alpine.sh
720720

721+
"log state":
722+
- command: shell.exec
723+
params:
724+
working_dir: "src"
725+
shell: bash
726+
script: |-
727+
set -o errexit
728+
set -o pipefail
729+
730+
echo "=== Driver state ==="
731+
echo "Current commit:"
732+
git rev-parse HEAD
733+
echo
734+
echo "Current branch / status:"
735+
git status --short --branch || true
736+
echo
737+
echo "npm ls (full):"
738+
npm ls
739+
echo "=== end log state ==="
740+
721741
tasks:
722742
- name: "test-gcpkms-task"
723743
commands:
@@ -970,27 +990,6 @@ tasks:
970990
args:
971991
- .evergreen/run-search-index-management-tests.sh
972992

973-
- name: log-state
974-
commands:
975-
- command: shell.exec
976-
params:
977-
working_dir: "src"
978-
shell: bash
979-
script: |-
980-
set -o errexit
981-
set -o pipefail
982-
983-
echo "=== Driver state ==="
984-
echo "Current commit:"
985-
git rev-parse HEAD
986-
echo
987-
echo "Current branch / status:"
988-
git status --short --branch || true
989-
echo
990-
echo "npm ls (full):"
991-
npm ls
992-
echo "=== end log state ==="
993-
994993
- name: test-bson-latest-server-7.0.0
995994
tags:
996995
- "bson-compat"
@@ -1010,7 +1009,7 @@ tasks:
10101009
- func: bootstrap mongo-orchestration
10111010
- func: fetch source
10121011
- func: install package
1013-
- func: log-state
1012+
- func: log state
10141013
- func: run unit tests
10151014

10161015
task_groups:
@@ -1303,3 +1302,10 @@ buildvariants:
13031302
run_on: ubuntu2204-small
13041303
tasks:
13051304
- .alpine-fle
1305+
- name: BSON compatibility tests
1306+
display_name: BSON compatibility tests
1307+
run_on: rhel80-large
1308+
expansions:
1309+
source_rev: 2512137b5d94b238e7cf5ee753f867e8d1e2e0fc
1310+
tasks:
1311+
- test-bson-latest-server-7.0.0

.evergreen/config.yml

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,25 @@ functions:
652652
add_expansions_to_env: true
653653
args:
654654
- .evergreen/docker/alpine.sh
655+
log state:
656+
- command: shell.exec
657+
params:
658+
working_dir: src
659+
shell: bash
660+
script: |-
661+
set -o errexit
662+
set -o pipefail
663+
664+
echo "=== Driver state ==="
665+
echo "Current commit:"
666+
git rev-parse HEAD
667+
echo
668+
echo "Current branch / status:"
669+
git status --short --branch || true
670+
echo
671+
echo "npm ls (full):"
672+
npm ls
673+
echo "=== end log state ==="
655674
tasks:
656675
- name: test-gcpkms-task
657676
commands:
@@ -895,26 +914,6 @@ tasks:
895914
add_expansions_to_env: true
896915
args:
897916
- .evergreen/run-search-index-management-tests.sh
898-
- name: log-state
899-
commands:
900-
- command: shell.exec
901-
params:
902-
working_dir: src
903-
shell: bash
904-
script: |-
905-
set -o errexit
906-
set -o pipefail
907-
908-
echo "=== Driver state ==="
909-
echo "Current commit:"
910-
git rev-parse HEAD
911-
echo
912-
echo "Current branch / status:"
913-
git status --short --branch || true
914-
echo
915-
echo "npm ls (full):"
916-
npm ls
917-
echo "=== end log state ==="
918917
- name: test-bson-latest-server-7.0.0
919918
tags:
920919
- bson-compat
@@ -934,7 +933,7 @@ tasks:
934933
- func: bootstrap mongo-orchestration
935934
- func: fetch source
936935
- func: install package
937-
- func: log-state
936+
- func: log state
938937
- func: run unit tests
939938
- name: test-latest-server
940939
tags:
@@ -3447,6 +3446,13 @@ buildvariants:
34473446
run_on: ubuntu2204-small
34483447
tasks:
34493448
- .alpine-fle
3449+
- name: BSON compatibility tests
3450+
display_name: BSON compatibility tests
3451+
run_on: rhel80-large
3452+
expansions:
3453+
source_rev: 2512137b5d94b238e7cf5ee753f867e8d1e2e0fc
3454+
tasks:
3455+
- test-bson-latest-server-7.0.0
34503456
- name: rhel80-large-iron
34513457
display_name: rhel8 Node20.19.0
34523458
run_on: rhel80-large

0 commit comments

Comments
 (0)