Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
312 changes: 259 additions & 53 deletions .evergreen/config.yml

Large diffs are not rendered by default.

95 changes: 70 additions & 25 deletions .evergreen/config/axes.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,62 @@ axes:
- id: "mongodb-version"
display_name: MongoDB Version
values:
- id: "latest"
display_name: "MongoDB Latest"
variables:
MONGODB_VERSION: "latest"
- id: "8.0"
display_name: "MongoDB 8.0"
variables:
VERSION: "8.0"
MONGODB_VERSION: "8.0"
- id: "7.0"
display_name: "MongoDB 7.0"
variables:
VERSION: "7.0"
MONGODB_VERSION: "7.0"
- id: "6.0"
display_name: "MongoDB 6.0"
variables:
VERSION: "6.0"
MONGODB_VERSION: "6.0"
- id: "5.3"
display_name: "MongoDB 5.3"
variables:
VERSION: "5.3"
MONGODB_VERSION: "5.3"
- id: "5.0"
display_name: "MongoDB 5.0"
variables:
VERSION: "5.0"
MONGODB_VERSION: "5.0"
- id: "4.4"
display_name: "MongoDB 4.4"
variables:
VERSION: "4.4"
MONGODB_VERSION: "4.4"
- id: "4.2"
display_name: "MongoDB 4.2"
variables:
VERSION: "4.2"
MONGODB_VERSION: "4.2"
- id: "4.0"
display_name: "MongoDB 4.0"
variables:
VERSION: "4.0"
MONGODB_VERSION: "4.0"
- id: "3.6"
display_name: "MongoDB 3.6"
variables:
VERSION: "3.6"
MONGODB_VERSION: "3.6"

- id: "topology"
display_name: Topology
values:
- id: "standalone"
- id: "server"
display_name: Standalone
variables:
TOPOLOGY: "standalone"
- id: "replica-set"
TOPOLOGY: "server"
- id: "replica_set"
display_name: Replica Set
variables:
TOPOLOGY: "replica-set"
- id: "sharded-cluster"
TOPOLOGY: "replica_set"
- id: "sharded_cluster"
display_name: Sharded Cluster
variables:
TOPOLOGY: "sharded-cluster"
- id: "load-balanced"
display_name: Load Balanced
variables:
TOPOLOGY: "load-balanced"
TOPOLOGY: "sharded_cluster"

- id: "auth"
display_name: Authentication
Expand All @@ -74,7 +74,7 @@ axes:
- id: "ssl"
display_name: SSL
values:
- id: "ssl"
- id: "yes"
display_name: SSL
variables:
SSL: "ssl"
Expand All @@ -98,23 +98,36 @@ axes:
display_name: ruby-3.1
variables:
RVM_RUBY: "ruby-3.1"
- id: "ruby-3.2"
display_name: ruby-3.2
variables:
RVM_RUBY: "ruby-3.2"
- id: "ruby-3.3"
display_name: ruby-3.3
variables:
RVM_RUBY: "ruby-3.3"
- id: "ruby-head"
display_name: ruby-head
variables:
RVM_RUBY: "ruby-head"

- id: "jruby"
display_name: JRuby Version
values:
- id: "jruby-9.3"
display_name: jruby-9.3
- id: "jruby-9.4"
display_name: jruby-9.4
variables:
RVM_RUBY: "jruby-9.3"
RVM_RUBY: "jruby-9.4"

- id: "os"
display_name: OS
values:
- id: ubuntu-22.04
display_name: "Ubuntu 22.04"
run_on: ubuntu2204-small
- id: ubuntu-20.04
display_name: "Ubuntu 20.04"
run_on: ubuntu2004-small
variables:
DOCKER_DISTRO: ubuntu2004

- id: "driver"
display_name: Driver Version
Expand Down Expand Up @@ -167,6 +180,10 @@ axes:
- id: "rails"
display_name: Rails Version
values:
- id: master
display_name: "Rails master"
variables:
RAILS: "master"
- id: "6.0"
display_name: "Rails 6.0"
variables:
Expand All @@ -179,6 +196,14 @@ axes:
display_name: "Rails 7.0"
variables:
RAILS: "7.0"
- id: "7.1"
display_name: "Rails 7.1"
variables:
RAILS: "7.1"
- id: "8.0"
display_name: "Rails 8.0"
variables:
RAILS: "8.0"

- id: "test-i18n-fallbacks"
display_name: Test i18n fallbacks
Expand All @@ -187,3 +212,23 @@ axes:
display_name: "i18n-fallbacks"
variables:
TEST_I18N_FALLBACKS: yes

- id: app-tests
display_name: Mongoid application tests
values:
- id: yes
display_name: Yes
variables:
APP_TESTS: yes

- id: "fle"
display_name: FLE
values:
- id: "helper"
display_name: via LMC helper
variables:
FLE: helper
- id: "path"
display_name: via LMC path
variables:
FLE: path
58 changes: 51 additions & 7 deletions .evergreen/config/commands.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,24 @@ functions:

git submodule update --init --recursive

if [ ! -d .mod ]; then
mkdir -p .mod
cd .mod
git clone https://github.com/mongodb-labs/drivers-evergreen-tools
fi

"fetch egos":
- command: shell.exec
params:
working_dir: "src"
script: |
set -ex

curl -sfLo egos https://raw.githubusercontent.com/p-mongo/egos/master/egos
chmod +x ./egos

"create expansions":
# Make an evergreen exapansion file with dynamic values
# Make an evergreen exapanstion file with dynamic values
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected spelling of 'exapanstion' to 'expansion'.

Suggested change
# Make an evergreen exapanstion file with dynamic values
# Make an evergreen expansion file with dynamic values

Copilot uses AI. Check for mistakes.
- command: shell.exec
params:
working_dir: "src"
Expand Down Expand Up @@ -52,7 +68,7 @@ functions:
export PATH="$MONGODB_BINARIES:$PATH"
export PROJECT="${project}"

export MONGODB_VERSION="${VERSION}"
export MONGODB_VERSION="${MONGODB_VERSION}"
export TOPOLOGY="${TOPOLOGY}"
export SINGLE_MONGOS="${SINGLE_MONGOS}"
export AUTH="${AUTH}"
Expand All @@ -73,6 +89,24 @@ functions:
params:
file: src/expansion.yml

bootstrap-mongo-orchestration:
- command: shell.exec
params:
shell: "bash"
script: |
set -x
${PREPARE_SHELL}

MONGODB_VERSION=${MONGODB_VERSION} \
TOPOLOGY=${TOPOLOGY} \
AUTH=${AUTH} \
SSL=${SSL} \
ORCHESTRATION_FILE=${ORCHESTRATION_FILE} \
sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
- command: expansions.update
params:
file: mo-expansion.yml

"exec script" :
- command: shell.exec
type: test
Expand Down Expand Up @@ -233,7 +267,7 @@ functions:
"upload test results":
- command: attach.xunit_results
params:
file: ./src/rspec.xml
file: ./src/tmp/*.xml

"run tests":
- command: shell.exec
Expand All @@ -251,7 +285,10 @@ functions:
DRIVER="${DRIVER}" \
TEST_I18N_FALLBACKS="${TEST_I18N_FALLBACKS}" \
FLE="${FLE}" \
.evergreen/run-tests-docker.sh
AUTH="${AUTH}" \
SSL="${SSL}" \
APP_TESTS="${APP_TESTS}" \
.evergreen/run-tests.sh

"fix absolute paths":
- command: shell.exec
Expand All @@ -262,7 +299,13 @@ functions:
perl -p -i -e "s|ABSOLUTE_PATH_REPLACEMENT_TOKEN|${DRIVERS_TOOLS}|g" $filename
done

"install dependencies":
"setup system":
- command: subprocess.exec
params:
binary: bash
include_expansions_in_env: ["PROJECT_DIRECTORY"]
args:
- "${DRIVERS_TOOLS}/.evergreen/setup.sh"
- command: shell.exec
type: test
params:
Expand All @@ -276,13 +319,13 @@ pre:
- func: "fetch source"
- func: "create expansions"
- func: "fix absolute paths"
- func: "install dependencies"
- func: "setup system"

post:
# Removed, causing timeouts
# - func: "upload working dir"
- func: "upload mo artifacts"
# - func: "upload test results"
- func: "upload test results"
- func: "upload test results to s3"

task_groups:
Expand Down Expand Up @@ -333,6 +376,7 @@ task_groups:
tasks:
- name: "test"
commands:
- func: bootstrap-mongo-orchestration
- func: "run tests"
- name: "test-full-atlas-task"
commands:
Expand Down
Loading
Loading