Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .evergreen/config.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@ functions:
directory: "src"
shallow_clone: true # speed things up by limiting clone depth to 100

# Checkout the desired source revision if specified
- command: shell.exec
params:
working_dir: src
shell: bash
script: |
set -euxo pipefail
# Only override if source_rev is set (use | to default to empty)
if [ "${source_rev|}" != "" ]; then
git reset --hard HEAD
git clean -xfd
git fetch origin "${source_rev}"
git checkout "${source_rev}"
fi

# Make an evergreen expansion file with dynamic values
- command: subprocess.exec
params:
Expand Down Expand Up @@ -703,6 +718,26 @@ functions:
args:
- .evergreen/docker/alpine.sh

"log state":
- command: shell.exec
params:
working_dir: "src"
shell: bash
script: |-
set -o errexit
set -o pipefail

echo "=== Driver state ==="
echo "Current commit:"
git rev-parse HEAD
echo
echo "Current branch / status:"
git status --short --branch || true
echo
echo "npm ls (full):"
npm ls
echo "=== end log state ==="

tasks:
- name: "test-gcpkms-task"
commands:
Expand Down Expand Up @@ -955,6 +990,22 @@ tasks:
args:
- .evergreen/run-search-index-management-tests.sh

- name: test-bson-latest-server-7.0.0
commands:
- command: expansions.update
type: setup
params:
updates:
- { key: VERSION, value: "latest" }
- { key: NODE_LTS_VERSION, value: '24'}
- { key: PACKAGE, value: "https://github.com/mongodb/js-bson#HEAD" }
- func: install dependencies
- func: bootstrap mongo-orchestration
- func: fetch source
- func: install package
- func: log state
- func: run unit tests

task_groups:
- name: test_gcpkms_task_group
setup_group_can_fail_task: true
Expand Down Expand Up @@ -1237,3 +1288,10 @@ buildvariants:
run_on: ubuntu2204-small
tasks:
- .alpine-fle
- name: BSON compatibility tests
display_name: BSON compatibility tests
run_on: rhel80-large
expansions:
source_rev: refs/tags/v7.0.0
tasks:
- test-bson-latest-server-7.0.0
54 changes: 54 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ functions:
params:
directory: src
shallow_clone: true
- command: shell.exec
Comment thread
baileympearson marked this conversation as resolved.
Outdated
params:
working_dir: src
shell: bash
script: |
set -euxo pipefail
# Only override if source_rev is set (use | to default to empty)
if [ "${source_rev|}" != "" ]; then
git reset --hard HEAD
git clean -xfd
git fetch origin "${source_rev}"
git checkout "${source_rev}"
fi
- command: subprocess.exec
params:
working_dir: src
Expand Down Expand Up @@ -639,6 +652,25 @@ functions:
add_expansions_to_env: true
args:
- .evergreen/docker/alpine.sh
log state:
- command: shell.exec
params:
working_dir: src
shell: bash
script: |-
set -o errexit
set -o pipefail

echo "=== Driver state ==="
echo "Current commit:"
git rev-parse HEAD
echo
echo "Current branch / status:"
git status --short --branch || true
echo
echo "npm ls (full):"
npm ls
echo "=== end log state ==="
tasks:
- name: test-gcpkms-task
commands:
Expand Down Expand Up @@ -882,6 +914,21 @@ tasks:
add_expansions_to_env: true
args:
- .evergreen/run-search-index-management-tests.sh
- name: test-bson-latest-server-7.0.0
commands:
- command: expansions.update
type: setup
params:
updates:
- {key: VERSION, value: latest}
- {key: NODE_LTS_VERSION, value: '24'}
- {key: PACKAGE, value: https://github.com/mongodb/js-bson#HEAD}
- func: install dependencies
- func: bootstrap mongo-orchestration
Comment thread
baileympearson marked this conversation as resolved.
Outdated
- func: fetch source
- func: install package
Comment thread
baileympearson marked this conversation as resolved.
- func: log state
- func: run unit tests
- name: test-latest-server
tags:
- latest
Expand Down Expand Up @@ -3386,6 +3433,13 @@ buildvariants:
run_on: ubuntu2204-small
tasks:
- .alpine-fle
- name: BSON compatibility tests
display_name: BSON compatibility tests
run_on: rhel80-large
expansions:
source_rev: refs/tags/v7.0.0
tasks:
- test-bson-latest-server-7.0.0
- name: rhel80-large-iron
display_name: rhel8 Node20.19.0
run_on: rhel80-large
Expand Down