Skip to content
Merged
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
176 changes: 91 additions & 85 deletions .evergreen/config.yml

Large diffs are not rendered by default.

64 changes: 21 additions & 43 deletions .evergreen/config/axes.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,59 +5,59 @@ axes:
- id: "latest"
display_name: "MongoDB Latest"
variables:
VERSION: "latest"
MONGODB_VERSION: "latest"
- id: "8.0"
display_name: "MongoDB 8.0"
variables:
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 Down Expand Up @@ -122,34 +122,12 @@ axes:
- id: "os"
display_name: OS
values:
- id: actual-ubuntu-22.04
display_name: "Ubuntu 22.04"
run_on: ubuntu2204-small
- id: ubuntu-22.04
display_name: "Ubuntu 20.04"
display_name: "Ubuntu 22.04"
run_on: ubuntu2204-small
variables:
DOCKER_DISTRO: ubuntu2204
- id: ubuntu-20.04
display_name: "Ubuntu 20.04"
run_on: ubuntu2004-small
variables:
DOCKER_DISTRO: ubuntu2004
- id: ubuntu-18.04
display_name: "Ubuntu 22.04"
run_on: ubuntu1804-small
variables:
DOCKER_DISTRO: ubuntu1804
- id: debian11
display_name: "Debian 11"
run_on: ubuntu2004-small
variables:
DOCKER_DISTRO: debian11
- id: rhel80
display_name: "RHEL 8.0"
run_on: ubuntu2004-small
variables:
DOCKER_DISTRO: rhel80

- id: "driver"
display_name: Driver Version
Expand Down
39 changes: 33 additions & 6 deletions .evergreen/config/commands.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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 +73,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 +251,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 +269,9 @@ functions:
DRIVER="${DRIVER}" \
TEST_I18N_FALLBACKS="${TEST_I18N_FALLBACKS}" \
FLE="${FLE}" \
.evergreen/run-tests-docker.sh
AUTH="${AUTH}" \
SSL="${SSL}" \
.evergreen/run-tests.sh

"fix absolute paths":
- command: shell.exec
Expand All @@ -262,7 +282,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 +302,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 +359,7 @@ task_groups:
tasks:
- name: "test"
commands:
- func: bootstrap-mongo-orchestration
- func: "run tests"
- name: "test-full-atlas-task"
commands:
Expand Down
Loading