| 1 |
######################################## |
| 2 |
# Evergreen Template for MongoDB Drivers |
| 3 |
######################################## |
| 4 |
|
| 5 |
# When a task that used to pass starts to fail |
| 6 |
# Go through all versions that may have been skipped to detect |
| 7 |
# when the task started failing |
| 8 |
stepback: true |
| 9 |
|
| 10 |
# Mark a failure as a system/bootstrap failure (purple box) rather then a task |
| 11 |
# failure by default. |
| 12 |
# Actual testing tasks are marked with `type: test` |
| 13 |
command_type: setup |
| 14 |
|
| 15 |
# Fail builds when pre tasks fail. |
| 16 |
pre_error_fails_task: true |
| 17 |
|
| 18 |
# Protect the CI from long or indefinite runtimes. |
| 19 |
exec_timeout_secs: 3600 |
| 20 |
|
| 21 |
# What to do when evergreen hits the timeout (`post:` tasks are run automatically) |
| 22 |
timeout: |
| 23 |
- command: shell.exec |
| 24 |
params: |
| 25 |
shell: "bash" |
| 26 |
script: | |
| 27 |
ls -la |
| 28 |
functions: |
| 29 |
assume-test-secrets-ec2-role: |
| 30 |
- command: ec2.assume_role |
| 31 |
params: |
| 32 |
role_arn: ${aws_test_secrets_role} |
| 33 |
|
| 34 |
fetch-source: |
| 35 |
# Executes clone and applies the submitted patch, if any |
| 36 |
- command: git.get_project |
| 37 |
type: system |
| 38 |
params: |
| 39 |
directory: src/go.mongodb.org/mongo-driver |
| 40 |
# Make an evergreen expansion file with dynamic values |
| 41 |
- command: shell.exec |
| 42 |
params: |
| 43 |
shell: "bash" |
| 44 |
working_dir: src/go.mongodb.org/mongo-driver |
| 45 |
script: | |
| 46 |
set -o errexit |
| 47 |
|
| 48 |
# Get the current unique version of this checkout. |
| 49 |
if [ "${is_patch}" = "true" ]; then |
| 50 |
CURRENT_VERSION=$(git describe)-patch-${version_id} |
| 51 |
else |
| 52 |
CURRENT_VERSION=latest |
| 53 |
fi |
| 54 |
|
| 55 |
# Set Golang environment vars. GOROOT is wherever current Go distribution is; GOPATH is always 3 |
| 56 |
# directories up from pwd; GOCACHE is under .cache in the pwd. |
| 57 |
export GOROOT="${GO_DIST}" |
| 58 |
export GOPATH="$(dirname $(dirname $(dirname `pwd`)))" |
| 59 |
export GOCACHE="$(pwd)/.cache" |
| 60 |
|
| 61 |
# Set other relevant variables for Evergreen processes. |
| 62 |
export DRIVERS_TOOLS="$(dirname $(dirname $(dirname `pwd`)))/drivers-tools" |
| 63 |
export PROJECT_DIRECTORY="$(pwd)" |
| 64 |
export MONGO_ORCHESTRATION_HOME="$DRIVERS_TOOLS/.evergreen/orchestration" |
| 65 |
export MONGODB_BINARIES="$DRIVERS_TOOLS/mongodb/bin" |
| 66 |
export UPLOAD_BUCKET="${project}" |
| 67 |
export PROJECT="${project}" |
| 68 |
|
| 69 |
# If on Windows, convert paths with cygpath. GOROOT should not be converted as Windows expects it |
| 70 |
# to be separated with '\'. |
| 71 |
if [ "Windows_NT" = "$OS" ]; then |
| 72 |
export GOPATH=$(cygpath -m $GOPATH) |
| 73 |
export GOCACHE=$(cygpath -m $GOCACHE) |
| 74 |
export DRIVERS_TOOLS=$(cygpath -m $DRIVERS_TOOLS) |
| 75 |
export PROJECT_DIRECTORY=$(cygpath -m $PROJECT_DIRECTORY) |
| 76 |
export MONGO_ORCHESTRATION_HOME=$(cygpath -m $MONGO_ORCHESTRATION_HOME) |
| 77 |
export MONGODB_BINARIES=$(cygpath -m $MONGODB_BINARIES) |
| 78 |
export UPLOAD_BUCKET=$(cygpath -m $UPLOAD_BUCKET) |
| 79 |
export PROJECT=$(cygpath -m $PROJECT) |
| 80 |
|
| 81 |
# Set home variables for Windows, too. |
| 82 |
export USERPROFILE=$(cygpath -w $(dirname $(dirname $(dirname `pwd`)))) |
| 83 |
export HOME=$USERPROFILE |
| 84 |
fi |
| 85 |
|
| 86 |
# Set actual PATH. PATH should contain binaries from GOROOT, GOPATH, GCC_PATH and mongodb. |
| 87 |
export GOROOTBIN="$GOROOT/bin" |
| 88 |
export GOPATHBIN="$GOPATH/bin" |
| 89 |
if [ "Windows_NT" = "$OS" ]; then |
| 90 |
# Convert all Windows-style paths (e.g. C:/) to Bash-style Cygwin paths |
| 91 |
# (e.g. /cygdrive/c/...) because PATH is interpreted by Bash, which uses ":" as a |
| 92 |
# separator so doesn't support Windows-style paths. Other scripts or binaries that |
| 93 |
# aren't part of Cygwin still need the environment variables to use Windows-style |
| 94 |
# paths, so only convert them when setting PATH. Note that GCC_PATH is already a |
| 95 |
# Bash-style Cygwin path for all Windows tasks. |
| 96 |
export PATH="$(cygpath $GOROOTBIN):$(cygpath $GOPATHBIN):${GCC_PATH}:$(cygpath $MONGODB_BINARIES):$PATH" |
| 97 |
else |
| 98 |
export PATH="$GOROOTBIN:$GOPATHBIN:${GCC_PATH}:$MONGODB_BINARIES:$PATH" |
| 99 |
fi |
| 100 |
|
| 101 |
# Check Go installation. |
| 102 |
go version |
| 103 |
go env |
| 104 |
|
| 105 |
# Install libmongocrypt. |
| 106 |
bash etc/install-libmongocrypt.sh |
| 107 |
if [ "Windows_NT" = "$OS" ]; then |
| 108 |
export PATH=$PATH:/cygdrive/c/libmongocrypt/bin |
| 109 |
fi |
| 110 |
|
| 111 |
cat <<EOT > expansion.yml |
| 112 |
CURRENT_VERSION: "$CURRENT_VERSION" |
| 113 |
DRIVERS_TOOLS: "$DRIVERS_TOOLS" |
| 114 |
MONGO_ORCHESTRATION_HOME: "$MONGO_ORCHESTRATION_HOME" |
| 115 |
MONGODB_BINARIES: "$MONGODB_BINARIES" |
| 116 |
UPLOAD_BUCKET: "$UPLOAD_BUCKET" |
| 117 |
PROJECT_DIRECTORY: "$PROJECT_DIRECTORY" |
| 118 |
PREPARE_SHELL: | |
| 119 |
set -o errexit |
| 120 |
export SKIP_LEGACY_SHELL=1 |
| 121 |
export GOROOT="$GOROOT" |
| 122 |
export GOPATH="$GOPATH" |
| 123 |
export GOCACHE="$GOCACHE" |
| 124 |
export DRIVERS_TOOLS="$DRIVERS_TOOLS" |
| 125 |
export PROJECT_DIRECTORY="$PROJECT_DIRECTORY" |
| 126 |
export MONGO_ORCHESTRATION_HOME="$MONGO_ORCHESTRATION_HOME" |
| 127 |
export MONGODB_BINARIES="$MONGODB_BINARIES" |
| 128 |
export UPLOAD_BUCKET="$UPLOAD_BUCKET" |
| 129 |
export PROJECT="$PROJECT" |
| 130 |
export TMPDIR="$MONGO_ORCHESTRATION_HOME/db" |
| 131 |
export PKG_CONFIG_PATH=$(pwd)/install/libmongocrypt/lib64/pkgconfig |
| 132 |
export LD_LIBRARY_PATH=$(pwd)/install/libmongocrypt/lib64 |
| 133 |
export PATH="$PATH" |
| 134 |
EOT |
| 135 |
# See what we variables we've set. |
| 136 |
cat expansion.yml |
| 137 |
# Load the expansion file to make an evergreen variable with the current unique version |
| 138 |
- command: expansions.update |
| 139 |
params: |
| 140 |
file: src/go.mongodb.org/mongo-driver/expansion.yml |
| 141 |
|
| 142 |
prepare-resources: |
| 143 |
- command: shell.exec |
| 144 |
params: |
| 145 |
shell: "bash" |
| 146 |
script: | |
| 147 |
${PREPARE_SHELL} |
| 148 |
rm -rf $DRIVERS_TOOLS |
| 149 |
git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git $DRIVERS_TOOLS |
| 150 |
|
| 151 |
# Pin drivers-evergreen-tools to revision 98f6b0e (Aug 20, 2025). |
| 152 |
# In leu of cutting a dedicated branch, please cherry-pick any required changes inline. |
| 153 |
# For example: |
| 154 |
# git -C $DRIVERS_TOOLS checkout 98f6b0e |
| 155 |
# git -C $DRIVERS_TOOLS cherry-pick <sha> # needed for <reason> |
| 156 |
git -C $DRIVERS_TOOLS checkout 98f6b0e |
| 157 |
|
| 158 |
echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" > $MONGO_ORCHESTRATION_HOME/orchestration.config |
| 159 |
- command: shell.exec |
| 160 |
params: |
| 161 |
shell: "bash" |
| 162 |
working_dir: src/go.mongodb.org/mongo-driver |
| 163 |
script: | |
| 164 |
${PREPARE_SHELL} |
| 165 |
|
| 166 |
# initialize submodules |
| 167 |
git submodule init |
| 168 |
git submodule update |
| 169 |
- command: shell.exec |
| 170 |
params: |
| 171 |
shell: "bash" |
| 172 |
working_dir: src/go.mongodb.org/mongo-driver |
| 173 |
script: | |
| 174 |
. ${DRIVERS_TOOLS}/.evergreen/venv-utils.sh |
| 175 |
. ${DRIVERS_TOOLS}/.evergreen/find-python3.sh |
| 176 |
|
| 177 |
export PYTHON3_BINARY="$(find_python3 2>/dev/null)" |
| 178 |
venvcreate "$PYTHON3_BINARY" venv |
| 179 |
|
| 180 |
echo "PYTHON3_BINARY: $PYTHON3_BINARY" >>expansion.yml |
| 181 |
# Load the expansion file to make an evergreen variable with the current unique version |
| 182 |
- command: expansions.update |
| 183 |
params: |
| 184 |
file: src/go.mongodb.org/mongo-driver/expansion.yml |
| 185 |
|
| 186 |
handle-test-artifacts: |
| 187 |
- command: gotest.parse_files |
| 188 |
params: |
| 189 |
files: |
| 190 |
- "src/go.mongodb.org/mongo-driver/*.suite" |
| 191 |
- command: shell.exec |
| 192 |
params: |
| 193 |
shell: "bash" |
| 194 |
script: | |
| 195 |
${PREPARE_SHELL} |
| 196 |
find $MONGO_ORCHESTRATION_HOME -name \*.log | xargs tar czf mongodb-logs.tar.gz |
| 197 |
- command: ec2.assume_role |
| 198 |
params: |
| 199 |
role_arn: ${assume_role_arn} |
| 200 |
- command: s3.put |
| 201 |
params: |
| 202 |
aws_key: ${AWS_ACCESS_KEY_ID} |
| 203 |
aws_secret: ${AWS_SECRET_ACCESS_KEY} |
| 204 |
aws_session_token: ${AWS_SESSION_TOKEN} |
| 205 |
local_file: mongodb-logs.tar.gz |
| 206 |
remote_file: ${build_variant}/${revision}/${version_id}/${build_id}/logs/${task_id}-${execution}-mongodb-logs.tar.gz |
| 207 |
bucket: ${aws_bucket} |
| 208 |
permissions: public-read |
| 209 |
content_type: ${content_type|application/x-gzip} |
| 210 |
display_name: "mongodb-logs.tar.gz" |
| 211 |
- command: s3.put |
| 212 |
params: |
| 213 |
aws_key: ${AWS_ACCESS_KEY_ID} |
| 214 |
aws_secret: ${AWS_SECRET_ACCESS_KEY} |
| 215 |
aws_session_token: ${AWS_SESSION_TOKEN} |
| 216 |
optional: true |
| 217 |
local_file: ${PROJECT_DIRECTORY}/fuzz.tgz |
| 218 |
remote_file: ${build_variant}/${revision}/${version_id}/${build_id}/${task_id}-${execution}-fuzz.tgz |
| 219 |
bucket: ${aws_bucket} |
| 220 |
permissions: public-read |
| 221 |
content_type: application/x-gzip |
| 222 |
display_name: "fuzz.tgz" |
| 223 |
- command: shell.exec |
| 224 |
params: |
| 225 |
shell: "bash" |
| 226 |
working_dir: src/go.mongodb.org/mongo-driver |
| 227 |
script: | |
| 228 |
${PREPARE_SHELL} |
| 229 |
find . -name \*.suite | xargs tar czf test_suite.tgz |
| 230 |
- command: s3.put |
| 231 |
params: |
| 232 |
aws_key: ${AWS_ACCESS_KEY_ID} |
| 233 |
aws_secret: ${AWS_SECRET_ACCESS_KEY} |
| 234 |
aws_session_token: ${AWS_SESSION_TOKEN} |
| 235 |
local_file: src/go.mongodb.org/mongo-driver/test_suite.tgz |
| 236 |
optional: true |
| 237 |
remote_file: ${build_variant}/${revision}/${version_id}/${build_id}/logs/${task_id}-${execution}-test_suite.tgz |
| 238 |
bucket: ${aws_bucket} |
| 239 |
permissions: public-read |
| 240 |
content_type: ${content_type|text/plain} |
| 241 |
display_name: "test_suite.tgz" |
| 242 |
|
| 243 |
bootstrap-mongohoused: |
| 244 |
- command: ec2.assume_role |
| 245 |
params: |
| 246 |
role_arn: ${aws_test_secrets_role} |
| 247 |
- command: subprocess.exec |
| 248 |
params: |
| 249 |
binary: "bash" |
| 250 |
add_expansions_to_env: true |
| 251 |
args: |
| 252 |
- ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/pull-mongohouse-image.sh |
| 253 |
- command: subprocess.exec |
| 254 |
params: |
| 255 |
binary: "bash" |
| 256 |
args: |
| 257 |
- ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-image.sh |
| 258 |
|
| 259 |
bootstrap-mongo-orchestration: |
| 260 |
- command: shell.exec |
| 261 |
params: |
| 262 |
shell: "bash" |
| 263 |
script: | |
| 264 |
set -x |
| 265 |
${PREPARE_SHELL} |
| 266 |
|
| 267 |
MONGODB_VERSION=${VERSION} \ |
| 268 |
TOPOLOGY=${TOPOLOGY} \ |
| 269 |
AUTH=${AUTH} \ |
| 270 |
SSL=${SSL} \ |
| 271 |
ORCHESTRATION_FILE=${ORCHESTRATION_FILE} \ |
| 272 |
REQUIRE_API_VERSION=${REQUIRE_API_VERSION} \ |
| 273 |
LOAD_BALANCER=${LOAD_BALANCER} \ |
| 274 |
bash ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh |
| 275 |
- command: expansions.update |
| 276 |
params: |
| 277 |
file: mo-expansion.yml |
| 278 |
|
| 279 |
ocsp-bootstrap-mongo-orchestration: |
| 280 |
- command: shell.exec |
| 281 |
params: |
| 282 |
shell: "bash" |
| 283 |
script: | |
| 284 |
${PREPARE_SHELL} |
| 285 |
|
| 286 |
MONGODB_VERSION=${VERSION} \ |
| 287 |
TOPOLOGY=${TOPOLOGY} \ |
| 288 |
AUTH=${AUTH} \ |
| 289 |
SSL=${SSL} \ |
| 290 |
ORCHESTRATION_FILE=${ORCHESTRATION_FILE} \ |
| 291 |
bash ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh |
| 292 |
- command: expansions.update |
| 293 |
params: |
| 294 |
file: mo-expansion.yml |
| 295 |
|
| 296 |
cleanup: |
| 297 |
- command: shell.exec |
| 298 |
params: |
| 299 |
shell: "bash" |
| 300 |
script: | |
| 301 |
# Ensure the instance profile is reassigned for aws tests. |
| 302 |
cd "${DRIVERS_TOOLS}/.evergreen/auth_aws" |
| 303 |
if [ -f "./aws_e2e_setup.json" ]; then |
| 304 |
. ./activate-authawsvenv.sh |
| 305 |
python ./lib/aws_assign_instance_profile.py |
| 306 |
fi |
| 307 |
- command: shell.exec |
| 308 |
params: |
| 309 |
shell: "bash" |
| 310 |
script: | |
| 311 |
# Attempt to shut down a running load balancer. Ignore any errors that happen if the load |
| 312 |
# balancer is not running. |
| 313 |
DRIVERS_TOOLS=${DRIVERS_TOOLS} MONGODB_URI=${MONGODB_URI} bash ${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh stop || echo "Ignoring load balancer stop error" |
| 314 |
- command: shell.exec |
| 315 |
params: |
| 316 |
shell: "bash" |
| 317 |
script: | |
| 318 |
${PREPARE_SHELL} |
| 319 |
# Clean up cse servers |
| 320 |
bash ${DRIVERS_TOOLS}/.evergreen/csfle/stop-servers.sh |
| 321 |
- command: shell.exec |
| 322 |
params: |
| 323 |
shell: "bash" |
| 324 |
script: | |
| 325 |
${PREPARE_SHELL} |
| 326 |
# Stop orchestration and remove drivers tools. |
| 327 |
bash ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh |
| 328 |
cd - |
| 329 |
rm -rf $DRIVERS_TOOLS || true |
| 330 |
|
| 331 |
|
| 332 |
fix-absolute-paths: |
| 333 |
- command: shell.exec |
| 334 |
params: |
| 335 |
shell: "bash" |
| 336 |
script: | |
| 337 |
${PREPARE_SHELL} |
| 338 |
for filename in $(find ${DRIVERS_TOOLS} -name \*.json); do |
| 339 |
perl -p -i -e "s|ABSOLUTE_PATH_REPLACEMENT_TOKEN|${DRIVERS_TOOLS}|g" $filename |
| 340 |
done |
| 341 |
|
| 342 |
windows-fix: |
| 343 |
- command: shell.exec |
| 344 |
params: |
| 345 |
shell: "bash" |
| 346 |
script: | |
| 347 |
${PREPARE_SHELL} |
| 348 |
for i in $(find ${DRIVERS_TOOLS}/.evergreen ${PROJECT_DIRECTORY} -name \*.sh); do |
| 349 |
cat $i | tr -d '\r' > $i.new |
| 350 |
mv $i.new $i |
| 351 |
done |
| 352 |
# Copy client certificate because symlinks do not work on Windows. Ignore any copy errors. |
| 353 |
cp ${DRIVERS_TOOLS}/.evergreen/x509gen/client.pem ${MONGO_ORCHESTRATION_HOME}/lib/client.pem || echo "Ignoring copy error" |
| 354 |
|
| 355 |
make-files-executable: |
| 356 |
- command: shell.exec |
| 357 |
params: |
| 358 |
shell: "bash" |
| 359 |
script: | |
| 360 |
${PREPARE_SHELL} |
| 361 |
for i in $(find ${DRIVERS_TOOLS}/.evergreen ${PROJECT_DIRECTORY} -name \*.sh); do |
| 362 |
chmod +x $i |
| 363 |
done |
| 364 |
|
| 365 |
assume-ec2-role: |
| 366 |
- command: ec2.assume_role |
| 367 |
params: |
| 368 |
role_arn: ${aws_test_secrets_role} |
| 369 |
|
| 370 |
run-oidc-auth-test-with-test-credentials: |
| 371 |
- command: shell.exec |
| 372 |
type: test |
| 373 |
params: |
| 374 |
working_dir: src/go.mongodb.org/mongo-driver |
| 375 |
shell: bash |
| 376 |
include_expansions_in_env: ["DRIVERS_TOOLS", "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"] |
| 377 |
script: | |
| 378 |
${PREPARE_SHELL} |
| 379 |
export OIDC="oidc" |
| 380 |
bash ${PROJECT_DIRECTORY}/etc/run-oidc-test.sh 'make -s evg-test-oidc-auth' |
| 381 |
|
| 382 |
run-make: |
| 383 |
- command: shell.exec |
| 384 |
type: test |
| 385 |
params: |
| 386 |
shell: "bash" |
| 387 |
working_dir: src/go.mongodb.org/mongo-driver |
| 388 |
script: | |
| 389 |
${PREPARE_SHELL} |
| 390 |
${BUILD_ENV|} BUILD_TAGS=${BUILD_TAGS|-tags=cse,gssapi,mongointernal} make ${targets} |
| 391 |
|
| 392 |
run-tests: |
| 393 |
- command: shell.exec |
| 394 |
type: test |
| 395 |
params: |
| 396 |
shell: "bash" |
| 397 |
working_dir: src/go.mongodb.org/mongo-driver |
| 398 |
include_expansions_in_env: ["TOPOLOGY", "AUTH", "SSL", "SKIP_CSOT_TESTS", "MONGODB_URI", "CRYPT_SHARED_LIB_PATH", "SKIP_CRYPT_SHARED_LIB", "RACE", "MONGO_GO_DRIVER_COMPRESSOR", "REQUIRE_API_VERSION", "LOAD_BALANCER"] |
| 399 |
script: | |
| 400 |
${PREPARE_SHELL} |
| 401 |
bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh |
| 402 |
|
| 403 |
create-api-report: |
| 404 |
- command: shell.exec |
| 405 |
type: test |
| 406 |
params: |
| 407 |
shell: "bash" |
| 408 |
working_dir: src/go.mongodb.org/mongo-driver |
| 409 |
add_expansions_to_env: true |
| 410 |
script: | |
| 411 |
${PREPARE_SHELL} |
| 412 |
export BASE_SHA=${revision} |
| 413 |
export HEAD_SHA=${github_commit} |
| 414 |
bash etc/api_report.sh |
| 415 |
|
| 416 |
"backport pr": |
| 417 |
- command: subprocess.exec |
| 418 |
type: test |
| 419 |
params: |
| 420 |
binary: bash |
| 421 |
args: |
| 422 |
- ${DRIVERS_TOOLS}/.evergreen/github_app/backport-pr.sh |
| 423 |
- mongodb |
| 424 |
- mongo-go-driver |
| 425 |
- ${github_commit} |
| 426 |
|
| 427 |
send-perf-data: |
| 428 |
- command: perf.send |
| 429 |
params: |
| 430 |
file: src/go.mongodb.org/mongo-driver/perf.json |
| 431 |
|
| 432 |
run-enterprise-auth-tests: |
| 433 |
- command: ec2.assume_role |
| 434 |
params: |
| 435 |
role_arn: "${aws_test_secrets_role}" |
| 436 |
- command: shell.exec |
| 437 |
type: test |
| 438 |
params: |
| 439 |
shell: "bash" |
| 440 |
working_dir: src/go.mongodb.org/mongo-driver |
| 441 |
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"] |
| 442 |
script: | |
| 443 |
${PREPARE_SHELL} |
| 444 |
bash ./etc/run-enterprise-plain-test.sh |
| 445 |
|
| 446 |
run-enterprise-gssapi-auth-tests: |
| 447 |
- command: ec2.assume_role |
| 448 |
params: |
| 449 |
role_arn: "${aws_test_secrets_role}" |
| 450 |
- command: shell.exec |
| 451 |
type: test |
| 452 |
params: |
| 453 |
shell: "bash" |
| 454 |
working_dir: src/go.mongodb.org/mongo-driver |
| 455 |
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"] |
| 456 |
script: | |
| 457 |
${PREPARE_SHELL} |
| 458 |
bash ./etc/run-enterprise-gssapi-test.sh |
| 459 |
|
| 460 |
run-atlas-test: |
| 461 |
- command: ec2.assume_role |
| 462 |
params: |
| 463 |
role_arn: "${aws_test_secrets_role}" |
| 464 |
- command: shell.exec |
| 465 |
type: test |
| 466 |
params: |
| 467 |
shell: "bash" |
| 468 |
working_dir: src/go.mongodb.org/mongo-driver |
| 469 |
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"] |
| 470 |
script: | |
| 471 |
${PREPARE_SHELL} |
| 472 |
bash etc/run-atlas-test.sh |
| 473 |
|
| 474 |
run-ocsp-test: |
| 475 |
- command: shell.exec |
| 476 |
type: test |
| 477 |
params: |
| 478 |
shell: "bash" |
| 479 |
working_dir: src/go.mongodb.org/mongo-driver |
| 480 |
script: | |
| 481 |
${PREPARE_SHELL} |
| 482 |
export MONGO_GO_DRIVER_CA_FILE="$DRIVERS_TOOLS/.evergreen/ocsp/${OCSP_ALGORITHM}/ca.pem" |
| 483 |
if [ "Windows_NT" = "$OS" ]; then # Magic variable in cygwin |
| 484 |
export MONGO_GO_DRIVER_CA_FILE=$(cygpath -m $MONGO_GO_DRIVER_CA_FILE) |
| 485 |
fi |
| 486 |
|
| 487 |
AUTH="auth" \ |
| 488 |
SSL="ssl" \ |
| 489 |
TOPOLOGY="server" \ |
| 490 |
MONGODB_URI="${MONGODB_URI}" \ |
| 491 |
OCSP_TLS_SHOULD_SUCCEED="${OCSP_TLS_SHOULD_SUCCEED}" \ |
| 492 |
make evg-test-ocsp |
| 493 |
|
| 494 |
run-versioned-api-test: |
| 495 |
- command: shell.exec |
| 496 |
type: test |
| 497 |
params: |
| 498 |
shell: "bash" |
| 499 |
working_dir: src/go.mongodb.org/mongo-driver |
| 500 |
script: | |
| 501 |
${PREPARE_SHELL} |
| 502 |
source ./secrets-export.sh |
| 503 |
|
| 504 |
if [ "${SKIP_CRYPT_SHARED_LIB}" = "true" ]; then |
| 505 |
CRYPT_SHARED_LIB_PATH="" |
| 506 |
echo "crypt_shared library is skipped" |
| 507 |
elif [ -z "${CRYPT_SHARED_LIB_PATH}" ]; then |
| 508 |
echo "crypt_shared library path is empty" |
| 509 |
else |
| 510 |
CRYPT_SHARED_LIB_PATH=${CRYPT_SHARED_LIB_PATH} |
| 511 |
echo "crypt_shared library will be loaded from path: $CRYPT_SHARED_LIB_PATH" |
| 512 |
fi |
| 513 |
|
| 514 |
export GOFLAGS=-mod=vendor |
| 515 |
AUTH="${AUTH}" \ |
| 516 |
SSL="${SSL}" \ |
| 517 |
MONGODB_URI="${MONGODB_URI}" \ |
| 518 |
TOPOLOGY="${TOPOLOGY}" \ |
| 519 |
MONGO_GO_DRIVER_COMPRESSOR=${MONGO_GO_DRIVER_COMPRESSOR} \ |
| 520 |
BUILD_TAGS="-tags=cse" \ |
| 521 |
REQUIRE_API_VERSION="${REQUIRE_API_VERSION}" \ |
| 522 |
CRYPT_SHARED_LIB_PATH="$CRYPT_SHARED_LIB_PATH" \ |
| 523 |
make evg-test-versioned-api \ |
| 524 |
PKG_CONFIG_PATH=$PKG_CONFIG_PATH \ |
| 525 |
LD_LIBRARY_PATH=$LD_LIBRARY_PATH |
| 526 |
|
| 527 |
run-load-balancer-tests: |
| 528 |
- command: shell.exec |
| 529 |
type: test |
| 530 |
params: |
| 531 |
shell: "bash" |
| 532 |
working_dir: src/go.mongodb.org/mongo-driver |
| 533 |
script: | |
| 534 |
${PREPARE_SHELL} |
| 535 |
|
| 536 |
if [ ${SSL} = "ssl" ]; then |
| 537 |
export MONGO_GO_DRIVER_CA_FILE="$DRIVERS_TOOLS/.evergreen/x509gen/ca.pem" |
| 538 |
export MONGO_GO_DRIVER_KEY_FILE="$DRIVERS_TOOLS/.evergreen/x509gen/client.pem" |
| 539 |
export MONGO_GO_DRIVER_PKCS8_ENCRYPTED_KEY_FILE="$DRIVERS_TOOLS/.evergreen/x509gen/client-pkcs8-encrypted.pem" |
| 540 |
export MONGO_GO_DRIVER_PKCS8_UNENCRYPTED_KEY_FILE="$DRIVERS_TOOLS/.evergreen/x509gen/client-pkcs8-unencrypted.pem" |
| 541 |
if [ "Windows_NT" = "$OS" ]; then # Magic variable in cygwin |
| 542 |
export MONGO_GO_DRIVER_CA_FILE=$(cygpath -m $MONGO_GO_DRIVER_CA_FILE) |
| 543 |
export MONGO_GO_DRIVER_KEY_FILE=$(cygpath -m $MONGO_GO_DRIVER_KEY_FILE) |
| 544 |
export MONGO_GO_DRIVER_PKCS8_ENCRYPTED_KEY_FILE=$(cygpath -m $MONGO_GO_DRIVER_PKCS8_ENCRYPTED_KEY_FILE) |
| 545 |
export MONGO_GO_DRIVER_PKCS8_UNENCRYPTED_KEY_FILE=$(cygpath -m $MONGO_GO_DRIVER_PKCS8_UNENCRYPTED_KEY_FILE) |
| 546 |
fi |
| 547 |
fi |
| 548 |
|
| 549 |
# Verify that the required LB URI expansions are set to ensure that the test runner can correctly connect to |
| 550 |
# the LBs. |
| 551 |
if [ -z "${SINGLE_MONGOS_LB_URI}" ]; then |
| 552 |
echo "SINGLE_MONGOS_LB_URI must be set for testing against LBs" |
| 553 |
exit 1 |
| 554 |
fi |
| 555 |
if [ -z "${MULTI_MONGOS_LB_URI}" ]; then |
| 556 |
echo "MULTI_MONGOS_LB_URI must be set for testing against LBs" |
| 557 |
exit 1 |
| 558 |
fi |
| 559 |
|
| 560 |
# Per the LB testing spec, the URI of an LB fronting a single mongos should be used to configure internal |
| 561 |
# testing Client instances, so we set MONGODB_URI to SINGLE_MONGOS_LB_URI. |
| 562 |
export GOFLAGS=-mod=vendor |
| 563 |
AUTH="${AUTH}" \ |
| 564 |
SSL="${SSL}" \ |
| 565 |
MONGODB_URI="${SINGLE_MONGOS_LB_URI}" \ |
| 566 |
SINGLE_MONGOS_LB_URI="${SINGLE_MONGOS_LB_URI}" \ |
| 567 |
MULTI_MONGOS_LB_URI="${MULTI_MONGOS_LB_URI}" \ |
| 568 |
TOPOLOGY="${TOPOLOGY}" \ |
| 569 |
MONGO_GO_DRIVER_COMPRESSOR=${MONGO_GO_DRIVER_COMPRESSOR} \ |
| 570 |
make evg-test-load-balancers |
| 571 |
|
| 572 |
run-atlas-data-lake-test: |
| 573 |
- command: shell.exec |
| 574 |
type: test |
| 575 |
params: |
| 576 |
shell: "bash" |
| 577 |
working_dir: src/go.mongodb.org/mongo-driver |
| 578 |
script: | |
| 579 |
${PREPARE_SHELL} |
| 580 |
AUTH="auth" \ |
| 581 |
SSL="nossl" \ |
| 582 |
TOPOLOGY="server" \ |
| 583 |
MONGODB_URI="mongodb://mhuser:pencil@localhost" \ |
| 584 |
make evg-test-atlas-data-lake |
| 585 |
|
| 586 |
run-docker-test: |
| 587 |
- command: shell.exec |
| 588 |
type: test |
| 589 |
params: |
| 590 |
shell: "bash" |
| 591 |
working_dir: src/go.mongodb.org/mongo-driver |
| 592 |
script: | |
| 593 |
${PREPARE_SHELL} |
| 594 |
bash etc/run_docker.sh |
| 595 |
TOPOLOGY=sharded_cluster bash etc/run_docker.sh test-short |
| 596 |
|
| 597 |
run-goleak-test: |
| 598 |
- command: shell.exec |
| 599 |
type: test |
| 600 |
params: |
| 601 |
shell: "bash" |
| 602 |
working_dir: src/go.mongodb.org/mongo-driver |
| 603 |
include_expansions_in_env: ["MONGODB_URI"] |
| 604 |
script: | |
| 605 |
${PREPARE_SHELL} |
| 606 |
bash etc/run-goleak-test.sh |
| 607 |
|
| 608 |
run-valid-ocsp-server: |
| 609 |
- command: shell.exec |
| 610 |
params: |
| 611 |
shell: "bash" |
| 612 |
background: true |
| 613 |
script: | |
| 614 |
cd ${DRIVERS_TOOLS}/.evergreen/ocsp |
| 615 |
. ./activate-ocspvenv.sh |
| 616 |
|
| 617 |
python ocsp_mock.py \ |
| 618 |
--ca_file ${OCSP_ALGORITHM}/ca.pem \ |
| 619 |
--ocsp_responder_cert ${OCSP_ALGORITHM}/ca.crt \ |
| 620 |
--ocsp_responder_key ${OCSP_ALGORITHM}/ca.key \ |
| 621 |
-p 8100 -v |
| 622 |
|
| 623 |
run-revoked-ocsp-server: |
| 624 |
- command: shell.exec |
| 625 |
params: |
| 626 |
shell: "bash" |
| 627 |
background: true |
| 628 |
script: | |
| 629 |
cd ${DRIVERS_TOOLS}/.evergreen/ocsp |
| 630 |
. ./activate-ocspvenv.sh |
| 631 |
|
| 632 |
python ocsp_mock.py \ |
| 633 |
--ca_file ${OCSP_ALGORITHM}/ca.pem \ |
| 634 |
--ocsp_responder_cert ${OCSP_ALGORITHM}/ca.crt \ |
| 635 |
--ocsp_responder_key ${OCSP_ALGORITHM}/ca.key \ |
| 636 |
-p 8100 \ |
| 637 |
-v \ |
| 638 |
--fault revoked |
| 639 |
|
| 640 |
run-valid-delegate-ocsp-server: |
| 641 |
- command: shell.exec |
| 642 |
params: |
| 643 |
shell: "bash" |
| 644 |
background: true |
| 645 |
script: | |
| 646 |
cd ${DRIVERS_TOOLS}/.evergreen/ocsp |
| 647 |
. ./activate-ocspvenv.sh |
| 648 |
|
| 649 |
python ocsp_mock.py \ |
| 650 |
--ca_file ${OCSP_ALGORITHM}/ca.pem \ |
| 651 |
--ocsp_responder_cert ${OCSP_ALGORITHM}/ocsp-responder.crt \ |
| 652 |
--ocsp_responder_key ${OCSP_ALGORITHM}/ocsp-responder.key \ |
| 653 |
-p 8100 -v |
| 654 |
|
| 655 |
run-revoked-delegate-ocsp-server: |
| 656 |
- command: shell.exec |
| 657 |
params: |
| 658 |
shell: "bash" |
| 659 |
background: true |
| 660 |
script: | |
| 661 |
cd ${DRIVERS_TOOLS}/.evergreen/ocsp |
| 662 |
. ./activate-ocspvenv.sh |
| 663 |
|
| 664 |
python ocsp_mock.py \ |
| 665 |
--ca_file ${OCSP_ALGORITHM}/ca.pem \ |
| 666 |
--ocsp_responder_cert ${OCSP_ALGORITHM}/ocsp-responder.crt \ |
| 667 |
--ocsp_responder_key ${OCSP_ALGORITHM}/ocsp-responder.key \ |
| 668 |
-p 8100 \ |
| 669 |
-v \ |
| 670 |
--fault revoked |
| 671 |
|
| 672 |
run-load-balancer: |
| 673 |
- command: shell.exec |
| 674 |
params: |
| 675 |
shell: "bash" |
| 676 |
script: | |
| 677 |
DRIVERS_TOOLS=${DRIVERS_TOOLS} MONGODB_URI=${MONGODB_URI} bash ${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh start |
| 678 |
- command: expansions.update |
| 679 |
params: |
| 680 |
file: lb-expansion.yml |
| 681 |
|
| 682 |
run-search-index-tests: |
| 683 |
- command: shell.exec |
| 684 |
type: test |
| 685 |
params: |
| 686 |
shell: "bash" |
| 687 |
working_dir: src/go.mongodb.org/mongo-driver |
| 688 |
script: | |
| 689 |
${PREPARE_SHELL} |
| 690 |
TEST_INDEX_URI="${TEST_INDEX_URI}" \ |
| 691 |
make evg-test-search-index |
| 692 |
|
| 693 |
add-aws-auth-variables-to-file: |
| 694 |
- command: ec2.assume_role |
| 695 |
params: |
| 696 |
role_arn: ${aws_test_secrets_role} |
| 697 |
- command: subprocess.exec |
| 698 |
type: test |
| 699 |
params: |
| 700 |
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"] |
| 701 |
binary: "bash" |
| 702 |
args: |
| 703 |
- ${DRIVERS_TOOLS}/.evergreen/auth_aws/setup-secrets.sh |
| 704 |
|
| 705 |
run-aws-auth-test-with-regular-aws-credentials: |
| 706 |
- command: shell.exec |
| 707 |
type: test |
| 708 |
params: |
| 709 |
shell: "bash" |
| 710 |
working_dir: "src" |
| 711 |
script: | |
| 712 |
${PREPARE_SHELL} |
| 713 |
${PROJECT_DIRECTORY}/.evergreen/run-mongodb-aws-test.sh regular |
| 714 |
|
| 715 |
run-aws-auth-test-with-assume-role-credentials: |
| 716 |
- command: shell.exec |
| 717 |
type: test |
| 718 |
params: |
| 719 |
shell: "bash" |
| 720 |
working_dir: "src" |
| 721 |
script: | |
| 722 |
${PREPARE_SHELL} |
| 723 |
${PROJECT_DIRECTORY}/.evergreen/run-mongodb-aws-test.sh assume-role |
| 724 |
|
| 725 |
run-aws-auth-test-with-aws-EC2-credentials: |
| 726 |
- command: shell.exec |
| 727 |
type: test |
| 728 |
params: |
| 729 |
shell: "bash" |
| 730 |
working_dir: "src" |
| 731 |
script: | |
| 732 |
${PREPARE_SHELL} |
| 733 |
if [ "${SKIP_EC2_AUTH_TEST}" = "true" ]; then |
| 734 |
echo "This platform does not support the EC2 auth test, skipping..." |
| 735 |
exit 0 |
| 736 |
fi |
| 737 |
${PROJECT_DIRECTORY}/.evergreen/run-mongodb-aws-test.sh ec2 |
| 738 |
|
| 739 |
run-aws-auth-test-with-aws-credentials-as-environment-variables: |
| 740 |
- command: shell.exec |
| 741 |
type: test |
| 742 |
params: |
| 743 |
shell: "bash" |
| 744 |
working_dir: "src" |
| 745 |
script: | |
| 746 |
${PREPARE_SHELL} |
| 747 |
${PROJECT_DIRECTORY}/.evergreen/run-mongodb-aws-test.sh env-creds |
| 748 |
|
| 749 |
run-aws-auth-test-with-aws-credentials-and-session-token-as-environment-variables: |
| 750 |
- command: shell.exec |
| 751 |
type: test |
| 752 |
params: |
| 753 |
shell: "bash" |
| 754 |
working_dir: "src" |
| 755 |
script: | |
| 756 |
${PREPARE_SHELL} |
| 757 |
${PROJECT_DIRECTORY}/.evergreen/run-mongodb-aws-test.sh session-creds |
| 758 |
|
| 759 |
run-aws-ECS-auth-test: |
| 760 |
- command: shell.exec |
| 761 |
type: test |
| 762 |
params: |
| 763 |
shell: "bash" |
| 764 |
working_dir: src/go.mongodb.org/mongo-driver |
| 765 |
script: | |
| 766 |
${PREPARE_SHELL} |
| 767 |
if [ "${SKIP_ECS_AUTH_TEST}" = "true" ]; then |
| 768 |
echo "This platform does not support the ECS auth test, skipping..." |
| 769 |
exit 0 |
| 770 |
fi |
| 771 |
make build-aws-ecs-test |
| 772 |
- command: shell.exec |
| 773 |
type: test |
| 774 |
params: |
| 775 |
shell: "bash" |
| 776 |
working_dir: "src" |
| 777 |
script: | |
| 778 |
${PREPARE_SHELL} |
| 779 |
if [ "${SKIP_ECS_AUTH_TEST}" = "true" ]; then |
| 780 |
exit 0 |
| 781 |
fi |
| 782 |
AUTH_AWS_DIR=${DRIVERS_TOOLS}/.evergreen/auth_aws |
| 783 |
ECS_SRC_DIR=$AUTH_AWS_DIR/src |
| 784 |
# pack up project directory to ssh it to the container |
| 785 |
mkdir -p $ECS_SRC_DIR/.evergreen |
| 786 |
cp ${PROJECT_DIRECTORY}/main $ECS_SRC_DIR |
| 787 |
cp ${PROJECT_DIRECTORY}/.evergreen/run-mongodb-aws-ecs-test.sh $ECS_SRC_DIR/.evergreen |
| 788 |
tar -czf $ECS_SRC_DIR/src.tgz -C $PROJECT_DIRECTORY . |
| 789 |
|
| 790 |
export PROJECT_DIRECTORY="$ECS_SRC_DIR" |
| 791 |
$AUTH_AWS_DIR/aws_setup.sh ecs |
| 792 |
|
| 793 |
run-aws-auth-test-with-aws-web-identity-credentials: |
| 794 |
- command: shell.exec |
| 795 |
type: test |
| 796 |
params: |
| 797 |
shell: "bash" |
| 798 |
working_dir: "src" |
| 799 |
script: | |
| 800 |
${PREPARE_SHELL} |
| 801 |
if [ "${SKIP_WEB_IDENTITY_AUTH_TEST}" = "true" ]; then |
| 802 |
echo "This platform does not support the web identity auth test, skipping..." |
| 803 |
exit 0 |
| 804 |
fi |
| 805 |
${PROJECT_DIRECTORY}/.evergreen/run-mongodb-aws-test.sh web-identity |
| 806 |
- command: shell.exec |
| 807 |
type: test |
| 808 |
params: |
| 809 |
shell: "bash" |
| 810 |
working_dir: "src" |
| 811 |
script: | |
| 812 |
${PREPARE_SHELL} |
| 813 |
if [ "${SKIP_WEB_IDENTITY_AUTH_TEST}" = "true" ]; then |
| 814 |
echo "This platform does not support the web identity auth test, skipping..." |
| 815 |
exit 0 |
| 816 |
fi |
| 817 |
export AWS_ROLE_SESSION_NAME="test" |
| 818 |
${PROJECT_DIRECTORY}/.evergreen/run-mongodb-aws-test.sh web-identity |
| 819 |
|
| 820 |
start-cse-servers: |
| 821 |
- command: ec2.assume_role |
| 822 |
params: |
| 823 |
role_arn: ${aws_test_secrets_role} |
| 824 |
- command: subprocess.exec |
| 825 |
params: |
| 826 |
working_dir: src/go.mongodb.org/mongo-driver |
| 827 |
binary: bash |
| 828 |
background: true |
| 829 |
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "DRIVERS_TOOLS"] |
| 830 |
args: |
| 831 |
- etc/setup-encryption.sh |
| 832 |
- command: subprocess.exec |
| 833 |
params: |
| 834 |
working_dir: src/go.mongodb.org/mongo-driver |
| 835 |
binary: bash |
| 836 |
args: |
| 837 |
- ${DRIVERS_TOOLS}/.evergreen/csfle/await-servers.sh |
| 838 |
|
| 839 |
run-kms-tls-test: |
| 840 |
- command: shell.exec |
| 841 |
type: test |
| 842 |
params: |
| 843 |
shell: "bash" |
| 844 |
working_dir: src/go.mongodb.org/mongo-driver |
| 845 |
script: | |
| 846 |
${PREPARE_SHELL} |
| 847 |
source ./secrets-export.sh |
| 848 |
export KMS_TLS_TESTCASE="${KMS_TLS_TESTCASE}" |
| 849 |
|
| 850 |
export GOFLAGS=-mod=vendor |
| 851 |
AUTH="${AUTH}" \ |
| 852 |
SSL="${SSL}" \ |
| 853 |
MONGODB_URI="${MONGODB_URI}" \ |
| 854 |
TOPOLOGY="${TOPOLOGY}" \ |
| 855 |
MONGO_GO_DRIVER_COMPRESSOR=${MONGO_GO_DRIVER_COMPRESSOR} \ |
| 856 |
BUILD_TAGS="-tags=cse" \ |
| 857 |
make evg-test-kms \ |
| 858 |
PKG_CONFIG_PATH=$PKG_CONFIG_PATH \ |
| 859 |
LD_LIBRARY_PATH=$LD_LIBRARY_PATH |
| 860 |
|
| 861 |
run-kmip-tests: |
| 862 |
- command: shell.exec |
| 863 |
type: test |
| 864 |
params: |
| 865 |
shell: "bash" |
| 866 |
working_dir: src/go.mongodb.org/mongo-driver |
| 867 |
script: | |
| 868 |
${PREPARE_SHELL} |
| 869 |
source ./secrets-export.sh |
| 870 |
export KMS_MOCK_SERVERS_RUNNING="true" |
| 871 |
|
| 872 |
export GOFLAGS=-mod=vendor |
| 873 |
AUTH="${AUTH}" \ |
| 874 |
SSL="${SSL}" \ |
| 875 |
MONGODB_URI="${MONGODB_URI}" \ |
| 876 |
TOPOLOGY="${TOPOLOGY}" \ |
| 877 |
MONGO_GO_DRIVER_COMPRESSOR=${MONGO_GO_DRIVER_COMPRESSOR} \ |
| 878 |
BUILD_TAGS="-tags=cse" \ |
| 879 |
make evg-test-kmip \ |
| 880 |
PKG_CONFIG_PATH=$PKG_CONFIG_PATH \ |
| 881 |
LD_LIBRARY_PATH=$LD_LIBRARY_PATH |
| 882 |
|
| 883 |
run-fuzz-tests: |
| 884 |
- command: shell.exec |
| 885 |
type: test |
| 886 |
params: |
| 887 |
shell: "bash" |
| 888 |
working_dir: "src" |
| 889 |
script: | |
| 890 |
${PREPARE_SHELL} |
| 891 |
${PROJECT_DIRECTORY}/.evergreen/run-fuzz.sh |
| 892 |
|
| 893 |
pre: |
| 894 |
- func: fetch-source |
| 895 |
- func: prepare-resources |
| 896 |
- func: windows-fix |
| 897 |
- func: fix-absolute-paths |
| 898 |
- func: make-files-executable |
| 899 |
|
| 900 |
post: |
| 901 |
- func: handle-test-artifacts |
| 902 |
- func: cleanup |
| 903 |
|
| 904 |
tasks: |
| 905 |
- name: static-analysis |
| 906 |
tags: ["static-analysis"] |
| 907 |
commands: |
| 908 |
- func: run-make |
| 909 |
vars: |
| 910 |
targets: "check-fmt check-license check-modules lint" |
| 911 |
|
| 912 |
- name: pull-request-helpers |
| 913 |
allowed_requesters: ["patch", "github_pr"] |
| 914 |
commands: |
| 915 |
- func: assume-test-secrets-ec2-role |
| 916 |
- func: "create-api-report" |
| 917 |
|
| 918 |
- name: backport-pr |
| 919 |
allowed_requesters: ["commit"] |
| 920 |
commands: |
| 921 |
- func: "backport pr" |
| 922 |
|
| 923 |
- name: perf |
| 924 |
tags: ["performance"] |
| 925 |
exec_timeout_secs: 7200 |
| 926 |
commands: |
| 927 |
- func: bootstrap-mongo-orchestration |
| 928 |
vars: |
| 929 |
TOPOLOGY: "server" |
| 930 |
AUTH: "noauth" |
| 931 |
SSL: "nossl" |
| 932 |
- func: run-make |
| 933 |
vars: |
| 934 |
targets: driver-benchmark |
| 935 |
- func: send-perf-data |
| 936 |
|
| 937 |
- name: test-standalone-noauth-nossl |
| 938 |
tags: ["test", "standalone"] |
| 939 |
commands: |
| 940 |
- func: bootstrap-mongo-orchestration |
| 941 |
vars: |
| 942 |
TOPOLOGY: "server" |
| 943 |
AUTH: "noauth" |
| 944 |
SSL: "nossl" |
| 945 |
- func: start-cse-servers |
| 946 |
- func: run-tests |
| 947 |
vars: |
| 948 |
TOPOLOGY: "server" |
| 949 |
AUTH: "noauth" |
| 950 |
SSL: "nossl" |
| 951 |
|
| 952 |
- name: test-standalone-noauth-nossl-snappy-compression |
| 953 |
tags: ["test", "standalone", "compression", "snappy"] |
| 954 |
commands: |
| 955 |
- func: bootstrap-mongo-orchestration |
| 956 |
vars: |
| 957 |
TOPOLOGY: "server" |
| 958 |
AUTH: "noauth" |
| 959 |
SSL: "nossl" |
| 960 |
- func: start-cse-servers |
| 961 |
- func: run-tests |
| 962 |
vars: |
| 963 |
TOPOLOGY: "server" |
| 964 |
AUTH: "noauth" |
| 965 |
SSL: "nossl" |
| 966 |
MONGO_GO_DRIVER_COMPRESSOR: "snappy" |
| 967 |
|
| 968 |
- name: test-standalone-noauth-nossl-zlib-compression |
| 969 |
tags: ["test", "standalone", "compression", "zlib"] |
| 970 |
commands: |
| 971 |
- func: bootstrap-mongo-orchestration |
| 972 |
vars: |
| 973 |
TOPOLOGY: "server" |
| 974 |
AUTH: "noauth" |
| 975 |
SSL: "nossl" |
| 976 |
- func: start-cse-servers |
| 977 |
- func: run-tests |
| 978 |
vars: |
| 979 |
TOPOLOGY: "server" |
| 980 |
AUTH: "noauth" |
| 981 |
SSL: "nossl" |
| 982 |
MONGO_GO_DRIVER_COMPRESSOR: "zlib" |
| 983 |
|
| 984 |
- name: test-standalone-noauth-nossl-zstd-compression |
| 985 |
tags: ["test", "standalone", "compression", "zstd"] |
| 986 |
commands: |
| 987 |
- func: bootstrap-mongo-orchestration |
| 988 |
vars: |
| 989 |
TOPOLOGY: "server" |
| 990 |
AUTH: "noauth" |
| 991 |
SSL: "nossl" |
| 992 |
- func: start-cse-servers |
| 993 |
- func: run-tests |
| 994 |
vars: |
| 995 |
TOPOLOGY: "server" |
| 996 |
AUTH: "noauth" |
| 997 |
SSL: "nossl" |
| 998 |
MONGO_GO_DRIVER_COMPRESSOR: "zstd" |
| 999 |
|
| 1000 |
- name: test-standalone-auth-ssl |
| 1001 |
tags: ["test", "standalone", "authssl"] |
| 1002 |
commands: |
| 1003 |
- func: bootstrap-mongo-orchestration |
| 1004 |
vars: |
| 1005 |
TOPOLOGY: "server" |
| 1006 |
AUTH: "auth" |
| 1007 |
SSL: "ssl" |
| 1008 |
- func: start-cse-servers |
| 1009 |
- func: run-tests |
| 1010 |
vars: |
| 1011 |
TOPOLOGY: "server" |
| 1012 |
AUTH: "auth" |
| 1013 |
SSL: "ssl" |
| 1014 |
|
| 1015 |
- name: test-standalone-auth-nossl |
| 1016 |
tags: ["test", "standalone", "authssl"] |
| 1017 |
commands: |
| 1018 |
- func: bootstrap-mongo-orchestration |
| 1019 |
vars: |
| 1020 |
TOPOLOGY: "server" |
| 1021 |
AUTH: "auth" |
| 1022 |
SSL: "nossl" |
| 1023 |
- func: start-cse-servers |
| 1024 |
- func: run-tests |
| 1025 |
vars: |
| 1026 |
TOPOLOGY: "server" |
| 1027 |
AUTH: "auth" |
| 1028 |
SSL: "nossl" |
| 1029 |
|
| 1030 |
- name: test-standalone-auth-ssl-snappy-compression |
| 1031 |
tags: ["test", "standalone", "authssl", "compression", "snappy"] |
| 1032 |
commands: |
| 1033 |
- func: bootstrap-mongo-orchestration |
| 1034 |
vars: |
| 1035 |
TOPOLOGY: "server" |
| 1036 |
AUTH: "auth" |
| 1037 |
SSL: "ssl" |
| 1038 |
- func: start-cse-servers |
| 1039 |
- func: run-tests |
| 1040 |
vars: |
| 1041 |
TOPOLOGY: "server" |
| 1042 |
AUTH: "auth" |
| 1043 |
SSL: "ssl" |
| 1044 |
MONGO_GO_DRIVER_COMPRESSOR: "snappy" |
| 1045 |
|
| 1046 |
- name: test-standalone-auth-ssl-zlib-compression |
| 1047 |
tags: ["test", "standalone", "authssl", "compression", "zlib"] |
| 1048 |
commands: |
| 1049 |
- func: bootstrap-mongo-orchestration |
| 1050 |
vars: |
| 1051 |
TOPOLOGY: "server" |
| 1052 |
AUTH: "auth" |
| 1053 |
SSL: "ssl" |
| 1054 |
- func: start-cse-servers |
| 1055 |
- func: run-tests |
| 1056 |
vars: |
| 1057 |
TOPOLOGY: "server" |
| 1058 |
AUTH: "auth" |
| 1059 |
SSL: "ssl" |
| 1060 |
MONGO_GO_DRIVER_COMPRESSOR: "zlib" |
| 1061 |
|
| 1062 |
- name: test-standalone-auth-ssl-zstd-compression |
| 1063 |
tags: ["test", "standalone", "authssl", "compression", "zstd"] |
| 1064 |
commands: |
| 1065 |
- func: bootstrap-mongo-orchestration |
| 1066 |
vars: |
| 1067 |
TOPOLOGY: "server" |
| 1068 |
AUTH: "auth" |
| 1069 |
SSL: "ssl" |
| 1070 |
- func: start-cse-servers |
| 1071 |
- func: run-tests |
| 1072 |
vars: |
| 1073 |
TOPOLOGY: "server" |
| 1074 |
AUTH: "auth" |
| 1075 |
SSL: "ssl" |
| 1076 |
MONGO_GO_DRIVER_COMPRESSOR: "zstd" |
| 1077 |
|
| 1078 |
- name: test-ocsp-rsa-valid-cert-server-staples |
| 1079 |
tags: ["ocsp", "ocsp-rsa", "ocsp-staple"] |
| 1080 |
commands: |
| 1081 |
- func: run-valid-ocsp-server |
| 1082 |
vars: |
| 1083 |
OCSP_ALGORITHM: "rsa" |
| 1084 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1085 |
vars: |
| 1086 |
ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple.json" |
| 1087 |
- func: run-ocsp-test |
| 1088 |
vars: |
| 1089 |
OCSP_ALGORITHM: "rsa" |
| 1090 |
OCSP_TLS_SHOULD_SUCCEED: "true" |
| 1091 |
|
| 1092 |
- name: test-ocsp-rsa-invalid-cert-server-staples |
| 1093 |
tags: ["ocsp", "ocsp-rsa", "ocsp-staple"] |
| 1094 |
commands: |
| 1095 |
- func: run-revoked-ocsp-server |
| 1096 |
vars: |
| 1097 |
OCSP_ALGORITHM: "rsa" |
| 1098 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1099 |
vars: |
| 1100 |
ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple.json" |
| 1101 |
- func: run-ocsp-test |
| 1102 |
vars: |
| 1103 |
OCSP_ALGORITHM: "rsa" |
| 1104 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1105 |
|
| 1106 |
- name: test-ocsp-rsa-valid-cert-server-does-not-staple |
| 1107 |
tags: ["ocsp", "ocsp-rsa"] |
| 1108 |
commands: |
| 1109 |
- func: run-valid-ocsp-server |
| 1110 |
vars: |
| 1111 |
OCSP_ALGORITHM: "rsa" |
| 1112 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1113 |
vars: |
| 1114 |
ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-disableStapling.json" |
| 1115 |
- func: run-ocsp-test |
| 1116 |
vars: |
| 1117 |
OCSP_ALGORITHM: "rsa" |
| 1118 |
OCSP_TLS_SHOULD_SUCCEED: "true" |
| 1119 |
|
| 1120 |
- name: test-ocsp-rsa-invalid-cert-server-does-not-staple |
| 1121 |
tags: ["ocsp", "ocsp-rsa"] |
| 1122 |
commands: |
| 1123 |
- func: run-revoked-ocsp-server |
| 1124 |
vars: |
| 1125 |
OCSP_ALGORITHM: "rsa" |
| 1126 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1127 |
vars: |
| 1128 |
ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-disableStapling.json" |
| 1129 |
- func: run-ocsp-test |
| 1130 |
vars: |
| 1131 |
OCSP_ALGORITHM: "rsa" |
| 1132 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1133 |
|
| 1134 |
- name: test-ocsp-rsa-soft-fail |
| 1135 |
tags: ["ocsp", "ocsp-rsa"] |
| 1136 |
commands: |
| 1137 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1138 |
vars: |
| 1139 |
ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-disableStapling.json" |
| 1140 |
- func: run-ocsp-test |
| 1141 |
vars: |
| 1142 |
OCSP_ALGORITHM: "rsa" |
| 1143 |
OCSP_TLS_SHOULD_SUCCEED: "true" |
| 1144 |
|
| 1145 |
- name: test-ocsp-rsa-malicious-invalid-cert-mustStaple-server-does-not-staple |
| 1146 |
tags: ["ocsp", "ocsp-rsa"] |
| 1147 |
commands: |
| 1148 |
- func: run-revoked-ocsp-server |
| 1149 |
vars: |
| 1150 |
OCSP_ALGORITHM: "rsa" |
| 1151 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1152 |
vars: |
| 1153 |
ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple-disableStapling.json" |
| 1154 |
- func: run-ocsp-test |
| 1155 |
vars: |
| 1156 |
OCSP_ALGORITHM: "rsa" |
| 1157 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1158 |
|
| 1159 |
- name: test-ocsp-rsa-malicious-no-responder-mustStaple-server-does-not-staple |
| 1160 |
tags: ["ocsp", "ocsp-rsa"] |
| 1161 |
commands: |
| 1162 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1163 |
vars: |
| 1164 |
ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple-disableStapling.json" |
| 1165 |
- func: run-ocsp-test |
| 1166 |
vars: |
| 1167 |
OCSP_ALGORITHM: "rsa" |
| 1168 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1169 |
|
| 1170 |
- name: test-ocsp-rsa-delegate-valid-cert-server-staples |
| 1171 |
tags: ["ocsp", "ocsp-rsa", "ocsp-staple"] |
| 1172 |
commands: |
| 1173 |
- func: run-valid-delegate-ocsp-server |
| 1174 |
vars: |
| 1175 |
OCSP_ALGORITHM: "rsa" |
| 1176 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1177 |
vars: |
| 1178 |
ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple.json" |
| 1179 |
- func: run-ocsp-test |
| 1180 |
vars: |
| 1181 |
OCSP_ALGORITHM: "rsa" |
| 1182 |
OCSP_TLS_SHOULD_SUCCEED: "true" |
| 1183 |
|
| 1184 |
- name: test-ocsp-rsa-delegate-invalid-cert-server-staples |
| 1185 |
tags: ["ocsp", "ocsp-rsa", "ocsp-staple"] |
| 1186 |
commands: |
| 1187 |
- func: run-revoked-delegate-ocsp-server |
| 1188 |
vars: |
| 1189 |
OCSP_ALGORITHM: "rsa" |
| 1190 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1191 |
vars: |
| 1192 |
ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple.json" |
| 1193 |
- func: run-ocsp-test |
| 1194 |
vars: |
| 1195 |
OCSP_ALGORITHM: "rsa" |
| 1196 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1197 |
|
| 1198 |
- name: test-ocsp-rsa-delegate-valid-cert-server-does-not-staple |
| 1199 |
tags: ["ocsp", "ocsp-rsa"] |
| 1200 |
commands: |
| 1201 |
- func: run-valid-delegate-ocsp-server |
| 1202 |
vars: |
| 1203 |
OCSP_ALGORITHM: "rsa" |
| 1204 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1205 |
vars: |
| 1206 |
ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-disableStapling.json" |
| 1207 |
- func: run-ocsp-test |
| 1208 |
vars: |
| 1209 |
OCSP_ALGORITHM: "rsa" |
| 1210 |
OCSP_TLS_SHOULD_SUCCEED: "true" |
| 1211 |
|
| 1212 |
- name: test-ocsp-rsa-delegate-invalid-cert-server-does-not-staple |
| 1213 |
tags: ["ocsp", "ocsp-rsa"] |
| 1214 |
commands: |
| 1215 |
- func: run-revoked-delegate-ocsp-server |
| 1216 |
vars: |
| 1217 |
OCSP_ALGORITHM: "rsa" |
| 1218 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1219 |
vars: |
| 1220 |
ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-disableStapling.json" |
| 1221 |
- func: run-ocsp-test |
| 1222 |
vars: |
| 1223 |
OCSP_ALGORITHM: "rsa" |
| 1224 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1225 |
|
| 1226 |
- name: test-ocsp-rsa-delegate-malicious-invalid-cert-mustStaple-server-does-not-staple |
| 1227 |
tags: ["ocsp", "ocsp-rsa"] |
| 1228 |
commands: |
| 1229 |
- func: run-revoked-delegate-ocsp-server |
| 1230 |
vars: |
| 1231 |
OCSP_ALGORITHM: "rsa" |
| 1232 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1233 |
vars: |
| 1234 |
ORCHESTRATION_FILE: "rsa-basic-tls-ocsp-mustStaple-disableStapling.json" |
| 1235 |
- func: run-ocsp-test |
| 1236 |
vars: |
| 1237 |
OCSP_ALGORITHM: "rsa" |
| 1238 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1239 |
|
| 1240 |
- name: test-ocsp-ecdsa-valid-cert-server-staples |
| 1241 |
tags: ["ocsp", "ocsp-ecdsa", "ocsp-staple"] |
| 1242 |
commands: |
| 1243 |
- func: run-valid-ocsp-server |
| 1244 |
vars: |
| 1245 |
OCSP_ALGORITHM: "ecdsa" |
| 1246 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1247 |
vars: |
| 1248 |
ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple.json" |
| 1249 |
- func: run-ocsp-test |
| 1250 |
vars: |
| 1251 |
OCSP_ALGORITHM: "ecdsa" |
| 1252 |
OCSP_TLS_SHOULD_SUCCEED: "true" |
| 1253 |
|
| 1254 |
- name: test-ocsp-ecdsa-invalid-cert-server-staples |
| 1255 |
tags: ["ocsp", "ocsp-ecdsa", "ocsp-staple"] |
| 1256 |
commands: |
| 1257 |
- func: run-revoked-ocsp-server |
| 1258 |
vars: |
| 1259 |
OCSP_ALGORITHM: "ecdsa" |
| 1260 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1261 |
vars: |
| 1262 |
ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple.json" |
| 1263 |
- func: run-ocsp-test |
| 1264 |
vars: |
| 1265 |
OCSP_ALGORITHM: "ecdsa" |
| 1266 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1267 |
|
| 1268 |
- name: test-ocsp-ecdsa-valid-cert-server-does-not-staple |
| 1269 |
tags: ["ocsp", "ocsp-ecdsa"] |
| 1270 |
commands: |
| 1271 |
- func: run-valid-ocsp-server |
| 1272 |
vars: |
| 1273 |
OCSP_ALGORITHM: "ecdsa" |
| 1274 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1275 |
vars: |
| 1276 |
ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-disableStapling.json" |
| 1277 |
- func: run-ocsp-test |
| 1278 |
vars: |
| 1279 |
OCSP_ALGORITHM: "ecdsa" |
| 1280 |
OCSP_TLS_SHOULD_SUCCEED: "true" |
| 1281 |
|
| 1282 |
- name: test-ocsp-ecdsa-invalid-cert-server-does-not-staple |
| 1283 |
tags: ["ocsp", "ocsp-ecdsa"] |
| 1284 |
commands: |
| 1285 |
- func: run-revoked-ocsp-server |
| 1286 |
vars: |
| 1287 |
OCSP_ALGORITHM: "ecdsa" |
| 1288 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1289 |
vars: |
| 1290 |
ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-disableStapling.json" |
| 1291 |
- func: run-ocsp-test |
| 1292 |
vars: |
| 1293 |
OCSP_ALGORITHM: "ecdsa" |
| 1294 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1295 |
|
| 1296 |
- name: test-ocsp-ecdsa-soft-fail |
| 1297 |
tags: ["ocsp", "ocsp-ecdsa"] |
| 1298 |
commands: |
| 1299 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1300 |
vars: |
| 1301 |
ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-disableStapling.json" |
| 1302 |
- func: run-ocsp-test |
| 1303 |
vars: |
| 1304 |
OCSP_ALGORITHM: "ecdsa" |
| 1305 |
OCSP_TLS_SHOULD_SUCCEED: "true" |
| 1306 |
|
| 1307 |
- name: test-ocsp-ecdsa-malicious-invalid-cert-mustStaple-server-does-not-staple |
| 1308 |
tags: ["ocsp", "ocsp-ecdsa"] |
| 1309 |
commands: |
| 1310 |
- func: run-revoked-ocsp-server |
| 1311 |
vars: |
| 1312 |
OCSP_ALGORITHM: "ecdsa" |
| 1313 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1314 |
vars: |
| 1315 |
ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple-disableStapling.json" |
| 1316 |
- func: run-ocsp-test |
| 1317 |
vars: |
| 1318 |
OCSP_ALGORITHM: "ecdsa" |
| 1319 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1320 |
|
| 1321 |
- name: test-ocsp-ecdsa-malicious-no-responder-mustStaple-server-does-not-staple |
| 1322 |
tags: ["ocsp", "ocsp-ecdsa"] |
| 1323 |
commands: |
| 1324 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1325 |
vars: |
| 1326 |
ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple-disableStapling.json" |
| 1327 |
- func: run-ocsp-test |
| 1328 |
vars: |
| 1329 |
OCSP_ALGORITHM: "ecdsa" |
| 1330 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1331 |
|
| 1332 |
- name: test-ocsp-ecdsa-delegate-valid-cert-server-staples |
| 1333 |
tags: ["ocsp", "ocsp-ecdsa", "ocsp-staple"] |
| 1334 |
commands: |
| 1335 |
- func: run-valid-delegate-ocsp-server |
| 1336 |
vars: |
| 1337 |
OCSP_ALGORITHM: "ecdsa" |
| 1338 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1339 |
vars: |
| 1340 |
ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple.json" |
| 1341 |
- func: run-ocsp-test |
| 1342 |
vars: |
| 1343 |
OCSP_ALGORITHM: "ecdsa" |
| 1344 |
OCSP_TLS_SHOULD_SUCCEED: "true" |
| 1345 |
|
| 1346 |
- name: test-ocsp-ecdsa-delegate-invalid-cert-server-staples |
| 1347 |
tags: ["ocsp", "ocsp-ecdsa", "ocsp-staple"] |
| 1348 |
commands: |
| 1349 |
- func: run-revoked-delegate-ocsp-server |
| 1350 |
vars: |
| 1351 |
OCSP_ALGORITHM: "ecdsa" |
| 1352 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1353 |
vars: |
| 1354 |
ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple.json" |
| 1355 |
- func: run-ocsp-test |
| 1356 |
vars: |
| 1357 |
OCSP_ALGORITHM: "ecdsa" |
| 1358 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1359 |
|
| 1360 |
- name: test-ocsp-ecdsa-delegate-valid-cert-server-does-not-staple |
| 1361 |
tags: ["ocsp", "ocsp-ecdsa"] |
| 1362 |
commands: |
| 1363 |
- func: run-valid-delegate-ocsp-server |
| 1364 |
vars: |
| 1365 |
OCSP_ALGORITHM: "ecdsa" |
| 1366 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1367 |
vars: |
| 1368 |
ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-disableStapling.json" |
| 1369 |
- func: run-ocsp-test |
| 1370 |
vars: |
| 1371 |
OCSP_ALGORITHM: "ecdsa" |
| 1372 |
OCSP_TLS_SHOULD_SUCCEED: "true" |
| 1373 |
|
| 1374 |
- name: test-ocsp-ecdsa-delegate-invalid-cert-server-does-not-staple |
| 1375 |
tags: ["ocsp", "ocsp-ecdsa"] |
| 1376 |
commands: |
| 1377 |
- func: run-revoked-delegate-ocsp-server |
| 1378 |
vars: |
| 1379 |
OCSP_ALGORITHM: "ecdsa" |
| 1380 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1381 |
vars: |
| 1382 |
ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-disableStapling.json" |
| 1383 |
- func: run-ocsp-test |
| 1384 |
vars: |
| 1385 |
OCSP_ALGORITHM: "ecdsa" |
| 1386 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1387 |
|
| 1388 |
- name: test-ocsp-ecdsa-delegate-malicious-invalid-cert-mustStaple-server-does-not-staple |
| 1389 |
tags: ["ocsp", "ocsp-ecdsa"] |
| 1390 |
commands: |
| 1391 |
- func: run-revoked-delegate-ocsp-server |
| 1392 |
vars: |
| 1393 |
OCSP_ALGORITHM: "ecdsa" |
| 1394 |
- func: ocsp-bootstrap-mongo-orchestration |
| 1395 |
vars: |
| 1396 |
ORCHESTRATION_FILE: "ecdsa-basic-tls-ocsp-mustStaple-disableStapling.json" |
| 1397 |
- func: run-ocsp-test |
| 1398 |
vars: |
| 1399 |
OCSP_ALGORITHM: "ecdsa" |
| 1400 |
OCSP_TLS_SHOULD_SUCCEED: "false" |
| 1401 |
|
| 1402 |
- name: test-atlas-data-lake |
| 1403 |
commands: |
| 1404 |
- func: bootstrap-mongohoused |
| 1405 |
- func: run-atlas-data-lake-test |
| 1406 |
|
| 1407 |
- name: test-docker-runner |
| 1408 |
commands: |
| 1409 |
- func: bootstrap-mongo-orchestration |
| 1410 |
- func: run-docker-test |
| 1411 |
|
| 1412 |
- name: test-goroutine-leaks-replicaset |
| 1413 |
tags: ["goleak"] |
| 1414 |
commands: |
| 1415 |
- func: bootstrap-mongo-orchestration |
| 1416 |
vars: |
| 1417 |
TOPOLOGY: "replica_set" |
| 1418 |
AUTH: "noauth" |
| 1419 |
SSL: "nossl" |
| 1420 |
- func: run-goleak-test |
| 1421 |
|
| 1422 |
- name: test-goroutine-leaks-sharded |
| 1423 |
tags: ["goleak"] |
| 1424 |
commands: |
| 1425 |
- func: bootstrap-mongo-orchestration |
| 1426 |
vars: |
| 1427 |
TOPOLOGY: "sharded_cluster" |
| 1428 |
AUTH: "noauth" |
| 1429 |
SSL: "nossl" |
| 1430 |
- func: run-goleak-test |
| 1431 |
|
| 1432 |
- name: test-load-balancer-noauth-nossl |
| 1433 |
tags: ["load-balancer"] |
| 1434 |
commands: |
| 1435 |
- func: bootstrap-mongo-orchestration |
| 1436 |
vars: |
| 1437 |
TOPOLOGY: "sharded_cluster" |
| 1438 |
AUTH: "noauth" |
| 1439 |
SSL: "nossl" |
| 1440 |
LOAD_BALANCER: "true" |
| 1441 |
- func: run-load-balancer |
| 1442 |
- func: run-load-balancer-tests |
| 1443 |
vars: |
| 1444 |
AUTH: "noauth" |
| 1445 |
SSL: "nossl" |
| 1446 |
|
| 1447 |
- name: test-load-balancer-auth-ssl |
| 1448 |
tags: ["load-balancer"] |
| 1449 |
commands: |
| 1450 |
- func: bootstrap-mongo-orchestration |
| 1451 |
vars: |
| 1452 |
TOPOLOGY: "sharded_cluster" |
| 1453 |
AUTH: "auth" |
| 1454 |
SSL: "ssl" |
| 1455 |
LOAD_BALANCER: "true" |
| 1456 |
- func: run-load-balancer |
| 1457 |
- func: run-load-balancer-tests |
| 1458 |
vars: |
| 1459 |
AUTH: "auth" |
| 1460 |
SSL: "ssl" |
| 1461 |
|
| 1462 |
- name: test-race |
| 1463 |
tags: ["race"] |
| 1464 |
commands: |
| 1465 |
- func: bootstrap-mongo-orchestration |
| 1466 |
vars: |
| 1467 |
TOPOLOGY: "replica_set" |
| 1468 |
AUTH: "noauth" |
| 1469 |
SSL: "nossl" |
| 1470 |
- func: start-cse-servers |
| 1471 |
- func: run-tests |
| 1472 |
vars: |
| 1473 |
TOPOLOGY: "replica_set" |
| 1474 |
AUTH: "noauth" |
| 1475 |
SSL: "nossl" |
| 1476 |
RACE: "-race" |
| 1477 |
|
| 1478 |
- name: test-replicaset-noauth-nossl |
| 1479 |
tags: ["test", "replicaset"] |
| 1480 |
commands: |
| 1481 |
- func: bootstrap-mongo-orchestration |
| 1482 |
vars: |
| 1483 |
TOPOLOGY: "replica_set" |
| 1484 |
AUTH: "noauth" |
| 1485 |
SSL: "nossl" |
| 1486 |
- func: start-cse-servers |
| 1487 |
- func: run-tests |
| 1488 |
vars: |
| 1489 |
TOPOLOGY: "replica_set" |
| 1490 |
AUTH: "noauth" |
| 1491 |
SSL: "nossl" |
| 1492 |
|
| 1493 |
- name: test-replicaset-auth-ssl |
| 1494 |
tags: ["test", "replicaset", "authssl"] |
| 1495 |
commands: |
| 1496 |
- func: bootstrap-mongo-orchestration |
| 1497 |
vars: |
| 1498 |
TOPOLOGY: "replica_set" |
| 1499 |
AUTH: "auth" |
| 1500 |
SSL: "ssl" |
| 1501 |
- func: start-cse-servers |
| 1502 |
- func: run-tests |
| 1503 |
vars: |
| 1504 |
TOPOLOGY: "replica_set" |
| 1505 |
AUTH: "auth" |
| 1506 |
SSL: "ssl" |
| 1507 |
|
| 1508 |
- name: test-replicaset-auth-ssl-mongocryptd |
| 1509 |
tags: ["test", "replicaset", "authssl", "mongocryptd"] |
| 1510 |
commands: |
| 1511 |
- func: bootstrap-mongo-orchestration |
| 1512 |
vars: |
| 1513 |
TOPOLOGY: "replica_set" |
| 1514 |
AUTH: "auth" |
| 1515 |
SSL: "ssl" |
| 1516 |
- func: start-cse-servers |
| 1517 |
- func: run-tests |
| 1518 |
vars: |
| 1519 |
TOPOLOGY: "replica_set" |
| 1520 |
AUTH: "auth" |
| 1521 |
SSL: "ssl" |
| 1522 |
# Don't use the crypt_shared library, which should cause all of the tests to fall |
| 1523 |
# back to using mongocryptd instead of crypt_shared. |
| 1524 |
SKIP_CRYPT_SHARED_LIB: "true" |
| 1525 |
|
| 1526 |
- name: test-replicaset-auth-nossl |
| 1527 |
tags: ["test", "replicaset", "authssl"] |
| 1528 |
commands: |
| 1529 |
- func: bootstrap-mongo-orchestration |
| 1530 |
vars: |
| 1531 |
TOPOLOGY: "replica_set" |
| 1532 |
AUTH: "auth" |
| 1533 |
SSL: "nossl" |
| 1534 |
- func: start-cse-servers |
| 1535 |
- func: run-tests |
| 1536 |
vars: |
| 1537 |
TOPOLOGY: "replica_set" |
| 1538 |
AUTH: "auth" |
| 1539 |
SSL: "nossl" |
| 1540 |
|
| 1541 |
- name: test-sharded-noauth-nossl |
| 1542 |
tags: ["test", "sharded"] |
| 1543 |
commands: |
| 1544 |
- func: bootstrap-mongo-orchestration |
| 1545 |
vars: |
| 1546 |
TOPOLOGY: "sharded_cluster" |
| 1547 |
AUTH: "noauth" |
| 1548 |
SSL: "nossl" |
| 1549 |
- func: start-cse-servers |
| 1550 |
- func: run-tests |
| 1551 |
vars: |
| 1552 |
TOPOLOGY: "sharded_cluster" |
| 1553 |
AUTH: "noauth" |
| 1554 |
SSL: "nossl" |
| 1555 |
|
| 1556 |
- name: test-sharded-noauth-nossl-snappy-compression |
| 1557 |
tags: ["test", "sharded", "compression", "snappy"] |
| 1558 |
commands: |
| 1559 |
- func: bootstrap-mongo-orchestration |
| 1560 |
vars: |
| 1561 |
TOPOLOGY: "sharded_cluster" |
| 1562 |
AUTH: "noauth" |
| 1563 |
SSL: "nossl" |
| 1564 |
- func: start-cse-servers |
| 1565 |
- func: run-tests |
| 1566 |
vars: |
| 1567 |
TOPOLOGY: "sharded_cluster" |
| 1568 |
AUTH: "noauth" |
| 1569 |
SSL: "nossl" |
| 1570 |
MONGO_GO_DRIVER_COMPRESSOR: "snappy" |
| 1571 |
|
| 1572 |
- name: test-sharded-noauth-nossl-zlib-compression |
| 1573 |
tags: ["test", "sharded", "compression", "zlib"] |
| 1574 |
commands: |
| 1575 |
- func: bootstrap-mongo-orchestration |
| 1576 |
vars: |
| 1577 |
TOPOLOGY: "sharded_cluster" |
| 1578 |
AUTH: "noauth" |
| 1579 |
SSL: "nossl" |
| 1580 |
- func: start-cse-servers |
| 1581 |
- func: run-tests |
| 1582 |
vars: |
| 1583 |
TOPOLOGY: "sharded_cluster" |
| 1584 |
AUTH: "noauth" |
| 1585 |
SSL: "nossl" |
| 1586 |
MONGO_GO_DRIVER_COMPRESSOR: "zlib" |
| 1587 |
|
| 1588 |
- name: test-sharded-noauth-nossl-zstd-compression |
| 1589 |
tags: ["test", "sharded", "compression", "zstd"] |
| 1590 |
commands: |
| 1591 |
- func: bootstrap-mongo-orchestration |
| 1592 |
vars: |
| 1593 |
TOPOLOGY: "sharded_cluster" |
| 1594 |
AUTH: "noauth" |
| 1595 |
SSL: "nossl" |
| 1596 |
- func: start-cse-servers |
| 1597 |
- func: run-tests |
| 1598 |
vars: |
| 1599 |
TOPOLOGY: "sharded_cluster" |
| 1600 |
AUTH: "noauth" |
| 1601 |
SSL: "nossl" |
| 1602 |
MONGO_GO_DRIVER_COMPRESSOR: "zstd" |
| 1603 |
|
| 1604 |
- name: test-sharded-auth-ssl |
| 1605 |
tags: ["test", "sharded", "authssl"] |
| 1606 |
commands: |
| 1607 |
- func: bootstrap-mongo-orchestration |
| 1608 |
vars: |
| 1609 |
TOPOLOGY: "sharded_cluster" |
| 1610 |
AUTH: "auth" |
| 1611 |
SSL: "ssl" |
| 1612 |
- func: start-cse-servers |
| 1613 |
- func: run-tests |
| 1614 |
vars: |
| 1615 |
TOPOLOGY: "sharded_cluster" |
| 1616 |
AUTH: "auth" |
| 1617 |
SSL: "ssl" |
| 1618 |
|
| 1619 |
- name: test-sharded-auth-ssl-snappy-compression |
| 1620 |
tags: ["test", "sharded", "authssl", "compression", "snappy"] |
| 1621 |
commands: |
| 1622 |
- func: bootstrap-mongo-orchestration |
| 1623 |
vars: |
| 1624 |
TOPOLOGY: "sharded_cluster" |
| 1625 |
AUTH: "auth" |
| 1626 |
SSL: "ssl" |
| 1627 |
- func: start-cse-servers |
| 1628 |
- func: run-tests |
| 1629 |
vars: |
| 1630 |
TOPOLOGY: "sharded_cluster" |
| 1631 |
AUTH: "auth" |
| 1632 |
SSL: "ssl" |
| 1633 |
MONGO_GO_DRIVER_COMPRESSOR: "snappy" |
| 1634 |
|
| 1635 |
- name: test-sharded-auth-ssl-zlib-compression |
| 1636 |
tags: ["test", "sharded", "authssl", "compression", "zlib"] |
| 1637 |
commands: |
| 1638 |
- func: bootstrap-mongo-orchestration |
| 1639 |
vars: |
| 1640 |
TOPOLOGY: "sharded_cluster" |
| 1641 |
AUTH: "auth" |
| 1642 |
SSL: "ssl" |
| 1643 |
- func: start-cse-servers |
| 1644 |
- func: run-tests |
| 1645 |
vars: |
| 1646 |
TOPOLOGY: "sharded_cluster" |
| 1647 |
AUTH: "auth" |
| 1648 |
SSL: "ssl" |
| 1649 |
MONGO_GO_DRIVER_COMPRESSOR: "zlib" |
| 1650 |
|
| 1651 |
- name: test-sharded-auth-ssl-zstd-compression |
| 1652 |
tags: ["test", "sharded", "authssl", "compression", "zstd"] |
| 1653 |
commands: |
| 1654 |
- func: bootstrap-mongo-orchestration |
| 1655 |
vars: |
| 1656 |
TOPOLOGY: "sharded_cluster" |
| 1657 |
AUTH: "auth" |
| 1658 |
SSL: "ssl" |
| 1659 |
- func: start-cse-servers |
| 1660 |
- func: run-tests |
| 1661 |
vars: |
| 1662 |
TOPOLOGY: "sharded_cluster" |
| 1663 |
AUTH: "auth" |
| 1664 |
SSL: "ssl" |
| 1665 |
MONGO_GO_DRIVER_COMPRESSOR: "zstd" |
| 1666 |
|
| 1667 |
- name: test-sharded-auth-nossl |
| 1668 |
tags: ["test", "sharded", "authssl"] |
| 1669 |
commands: |
| 1670 |
- func: bootstrap-mongo-orchestration |
| 1671 |
vars: |
| 1672 |
TOPOLOGY: "sharded_cluster" |
| 1673 |
AUTH: "auth" |
| 1674 |
SSL: "nossl" |
| 1675 |
- func: start-cse-servers |
| 1676 |
- func: run-tests |
| 1677 |
vars: |
| 1678 |
TOPOLOGY: "sharded_cluster" |
| 1679 |
AUTH: "auth" |
| 1680 |
SSL: "nossl" |
| 1681 |
|
| 1682 |
- name: test-enterprise-auth-plain |
| 1683 |
tags: ["test", "enterprise-auth"] |
| 1684 |
commands: |
| 1685 |
- func: run-enterprise-auth-tests |
| 1686 |
|
| 1687 |
- name: test-enterprise-auth-gssapi |
| 1688 |
tags: ["test", "enterprise-auth"] |
| 1689 |
commands: |
| 1690 |
- func: run-enterprise-gssapi-auth-tests |
| 1691 |
vars: |
| 1692 |
MONGO_GO_DRIVER_COMPRESSOR: "snappy" |
| 1693 |
|
| 1694 |
# Build with the oldest supported version of Go. |
| 1695 |
- name: go1.18-build |
| 1696 |
tags: ["compile-check"] |
| 1697 |
commands: |
| 1698 |
- func: run-make |
| 1699 |
vars: |
| 1700 |
targets: "build-compile-check" |
| 1701 |
BUILD_ENV: "PATH=/opt/golang/go1.18/bin:$PATH GOROOT=/opt/golang/go1.18" |
| 1702 |
|
| 1703 |
# Build with the same Go version that we're using for tests. |
| 1704 |
- name: build |
| 1705 |
tags: ["compile-check"] |
| 1706 |
commands: |
| 1707 |
- func: run-make |
| 1708 |
vars: |
| 1709 |
targets: "build" |
| 1710 |
|
| 1711 |
- name: "atlas-test" |
| 1712 |
commands: |
| 1713 |
- func: "run-atlas-test" |
| 1714 |
|
| 1715 |
- name: "aws-auth-test" |
| 1716 |
commands: |
| 1717 |
- func: bootstrap-mongo-orchestration |
| 1718 |
vars: |
| 1719 |
AUTH: "auth" |
| 1720 |
ORCHESTRATION_FILE: "auth-aws.json" |
| 1721 |
TOPOLOGY: "server" |
| 1722 |
- func: add-aws-auth-variables-to-file |
| 1723 |
- func: run-aws-auth-test-with-regular-aws-credentials |
| 1724 |
- func: run-aws-auth-test-with-assume-role-credentials |
| 1725 |
- func: run-aws-auth-test-with-aws-credentials-as-environment-variables |
| 1726 |
- func: run-aws-auth-test-with-aws-credentials-and-session-token-as-environment-variables |
| 1727 |
- func: run-aws-auth-test-with-aws-EC2-credentials |
| 1728 |
- func: run-aws-ECS-auth-test |
| 1729 |
- func: run-aws-auth-test-with-aws-web-identity-credentials |
| 1730 |
|
| 1731 |
- name: "test-standalone-versioned-api" |
| 1732 |
tags: ["versioned-api"] |
| 1733 |
commands: |
| 1734 |
- func: bootstrap-mongo-orchestration |
| 1735 |
vars: |
| 1736 |
TOPOLOGY: "server" |
| 1737 |
AUTH: "auth" |
| 1738 |
SSL: "nossl" |
| 1739 |
REQUIRE_API_VERSION: true |
| 1740 |
- func: start-cse-servers |
| 1741 |
- func: run-versioned-api-test |
| 1742 |
vars: |
| 1743 |
TOPOLOGY: "server" |
| 1744 |
AUTH: "auth" |
| 1745 |
SSL: "nossl" |
| 1746 |
REQUIRE_API_VERSION: true |
| 1747 |
|
| 1748 |
- name: "test-standalone-versioned-api-test-commands" |
| 1749 |
tags: ["versioned-api"] |
| 1750 |
commands: |
| 1751 |
- func: bootstrap-mongo-orchestration |
| 1752 |
vars: |
| 1753 |
TOPOLOGY: "server" |
| 1754 |
AUTH: "noauth" |
| 1755 |
SSL: "nossl" |
| 1756 |
ORCHESTRATION_FILE: "versioned-api-testing.json" |
| 1757 |
- func: start-cse-servers |
| 1758 |
- func: run-versioned-api-test |
| 1759 |
vars: |
| 1760 |
TOPOLOGY: "server" |
| 1761 |
AUTH: "noauth" |
| 1762 |
SSL: "nossl" |
| 1763 |
|
| 1764 |
- name: "test-kms-tls-invalid-cert" |
| 1765 |
tags: ["kms-tls"] |
| 1766 |
commands: |
| 1767 |
- func: bootstrap-mongo-orchestration |
| 1768 |
vars: |
| 1769 |
TOPOLOGY: "server" |
| 1770 |
AUTH: "noauth" |
| 1771 |
SSL: "nossl" |
| 1772 |
- func: start-cse-servers |
| 1773 |
- func: run-kms-tls-test |
| 1774 |
vars: |
| 1775 |
KMS_TLS_TESTCASE: "INVALID_CERT" |
| 1776 |
TOPOLOGY: "server" |
| 1777 |
AUTH: "noauth" |
| 1778 |
SSL: "nossl" |
| 1779 |
|
| 1780 |
- name: "test-kms-tls-invalid-hostname" |
| 1781 |
tags: ["kms-tls"] |
| 1782 |
commands: |
| 1783 |
- func: bootstrap-mongo-orchestration |
| 1784 |
vars: |
| 1785 |
TOPOLOGY: "server" |
| 1786 |
AUTH: "noauth" |
| 1787 |
SSL: "nossl" |
| 1788 |
- func: start-cse-servers |
| 1789 |
- func: run-kms-tls-test |
| 1790 |
vars: |
| 1791 |
KMS_TLS_TESTCASE: "INVALID_HOSTNAME" |
| 1792 |
TOPOLOGY: "server" |
| 1793 |
AUTH: "noauth" |
| 1794 |
SSL: "nossl" |
| 1795 |
|
| 1796 |
- name: "test-kms-kmip" |
| 1797 |
tags: ["kms-kmip"] |
| 1798 |
commands: |
| 1799 |
- func: bootstrap-mongo-orchestration |
| 1800 |
vars: |
| 1801 |
TOPOLOGY: "server" |
| 1802 |
AUTH: "noauth" |
| 1803 |
SSL: "nossl" |
| 1804 |
- func: start-cse-servers |
| 1805 |
- func: run-kmip-tests |
| 1806 |
vars: |
| 1807 |
TOPOLOGY: "server" |
| 1808 |
AUTH: "noauth" |
| 1809 |
SSL: "nossl" |
| 1810 |
|
| 1811 |
- name: "testgcpkms-task" |
| 1812 |
commands: |
| 1813 |
- command: shell.exec |
| 1814 |
type: test |
| 1815 |
params: |
| 1816 |
shell: "bash" |
| 1817 |
working_dir: src/go.mongodb.org/mongo-driver |
| 1818 |
script: | |
| 1819 |
${PREPARE_SHELL} |
| 1820 |
echo "Building build-kms-test ... begin" |
| 1821 |
BUILD_TAGS="-tags=cse" \ |
| 1822 |
PKG_CONFIG_PATH=$PKG_CONFIG_PATH \ |
| 1823 |
make build-kms-test |
| 1824 |
echo "Building build-kms-test ... end" |
| 1825 |
source $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/secrets-export.sh |
| 1826 |
echo "Copying files ... begin" |
| 1827 |
tar czf testgcpkms.tgz ./testkms ./install/libmongocrypt/lib64/libmongocrypt.* |
| 1828 |
GCPKMS_SRC=testgcpkms.tgz GCPKMS_DST=$GCPKMS_INSTANCENAME: $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/copy-file.sh |
| 1829 |
echo "Copying files ... end" |
| 1830 |
|
| 1831 |
echo "Untarring file ... begin" |
| 1832 |
GCPKMS_CMD="tar xf testgcpkms.tgz" $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/run-command.sh |
| 1833 |
echo "Untarring file ... end" |
| 1834 |
|
| 1835 |
- command: shell.exec |
| 1836 |
type: test |
| 1837 |
params: |
| 1838 |
shell: "bash" |
| 1839 |
working_dir: src/go.mongodb.org/mongo-driver |
| 1840 |
script: | |
| 1841 |
${PREPARE_SHELL} |
| 1842 |
source $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/secrets-export.sh |
| 1843 |
GCPKMS_CMD="LD_LIBRARY_PATH=./install/libmongocrypt/lib64 MONGODB_URI='mongodb://localhost:27017' PROVIDER='gcp' ./testkms" $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/run-command.sh |
| 1844 |
|
| 1845 |
- name: "testgcpkms-fail-task" |
| 1846 |
# testgcpkms-fail-task runs in a non-GCE environment. |
| 1847 |
# It is expected to fail to obtain GCE credentials. |
| 1848 |
commands: |
| 1849 |
- command: shell.exec |
| 1850 |
type: test |
| 1851 |
params: |
| 1852 |
shell: "bash" |
| 1853 |
working_dir: src/go.mongodb.org/mongo-driver |
| 1854 |
script: | |
| 1855 |
${PREPARE_SHELL} |
| 1856 |
echo "Building build-kms-test ... begin" |
| 1857 |
BUILD_TAGS="-tags=cse" \ |
| 1858 |
PKG_CONFIG_PATH=$PKG_CONFIG_PATH \ |
| 1859 |
make build-kms-test |
| 1860 |
echo "Building build-kms-test ... end" |
| 1861 |
LD_LIBRARY_PATH=./install/libmongocrypt/lib64 \ |
| 1862 |
MONGODB_URI='mongodb://localhost:27017/' \ |
| 1863 |
EXPECT_ERROR='unable to retrieve GCP credentials' \ |
| 1864 |
PROVIDER='gcp' \ |
| 1865 |
./testkms |
| 1866 |
|
| 1867 |
- name: "testawskms-task" |
| 1868 |
commands: |
| 1869 |
- func: assume-test-secrets-ec2-role |
| 1870 |
- command: shell.exec |
| 1871 |
type: test |
| 1872 |
params: |
| 1873 |
shell: "bash" |
| 1874 |
add_expansions_to_env: true |
| 1875 |
working_dir: src/go.mongodb.org/mongo-driver |
| 1876 |
script: | |
| 1877 |
${PREPARE_SHELL} |
| 1878 |
bash etc/run-awskms-test.sh |
| 1879 |
|
| 1880 |
- name: "testawskms-fail-task" |
| 1881 |
# testawskms-fail-task runs without environment variables. |
| 1882 |
# It is expected to fail to obtain credentials. |
| 1883 |
commands: |
| 1884 |
- func: assume-test-secrets-ec2-role |
| 1885 |
- command: shell.exec |
| 1886 |
type: test |
| 1887 |
params: |
| 1888 |
shell: "bash" |
| 1889 |
add_expansions_to_env: true |
| 1890 |
working_dir: src/go.mongodb.org/mongo-driver |
| 1891 |
script: | |
| 1892 |
${PREPARE_SHELL} |
| 1893 |
export EXPECT_ERROR='status=400' |
| 1894 |
bash etc/run-awskms-test.sh |
| 1895 |
|
| 1896 |
- name: "testazurekms-task" |
| 1897 |
commands: |
| 1898 |
- command: shell.exec |
| 1899 |
type: test |
| 1900 |
params: |
| 1901 |
shell: "bash" |
| 1902 |
add_expansions_to_env: true |
| 1903 |
working_dir: src/go.mongodb.org/mongo-driver |
| 1904 |
script: | |
| 1905 |
${PREPARE_SHELL} |
| 1906 |
echo "Building build-kms-test ... begin" |
| 1907 |
BUILD_TAGS="-tags=cse" \ |
| 1908 |
PKG_CONFIG_PATH=$PKG_CONFIG_PATH \ |
| 1909 |
make build-kms-test |
| 1910 |
echo "Building build-kms-test ... end" |
| 1911 |
|
| 1912 |
echo "Copying files ... begin" |
| 1913 |
source $DRIVERS_TOOLS/.evergreen/csfle/azurekms/secrets-export.sh |
| 1914 |
tar czf testazurekms.tgz ./testkms ./install/libmongocrypt/lib64/libmongocrypt.* |
| 1915 |
AZUREKMS_SRC=testazurekms.tgz AZUREKMS_DST=/tmp $DRIVERS_TOOLS/.evergreen/csfle/azurekms/copy-file.sh |
| 1916 |
echo "Copying files ... end" |
| 1917 |
echo "Untarring file ... begin" |
| 1918 |
AZUREKMS_CMD="tar xf /tmp/testazurekms.tgz" $DRIVERS_TOOLS/.evergreen/csfle/azurekms/run-command.sh |
| 1919 |
echo "Untarring file ... end" |
| 1920 |
|
| 1921 |
- command: shell.exec |
| 1922 |
type: test |
| 1923 |
params: |
| 1924 |
shell: "bash" |
| 1925 |
working_dir: src/go.mongodb.org/mongo-driver |
| 1926 |
script: | |
| 1927 |
${PREPARE_SHELL} |
| 1928 |
source ${DRIVERS_TOOLS}/.evergreen/csfle/azurekms/secrets-export.sh |
| 1929 |
AZUREKMS_CMD="LD_LIBRARY_PATH=./install/libmongocrypt/lib64 MONGODB_URI='mongodb://localhost:27017' PROVIDER='azure' AZUREKMS_KEY_NAME=$AZUREKMS_KEYNAME AZUREKMS_KEY_VAULT_ENDPOINT=$AZUREKMS_KEYVAULTENDPOINT ./testkms" $DRIVERS_TOOLS/.evergreen/csfle/azurekms/run-command.sh |
| 1930 |
|
| 1931 |
- name: "testazurekms-fail-task" |
| 1932 |
# testazurekms-fail-task runs without environment variables. |
| 1933 |
# It is expected to fail to obtain credentials. |
| 1934 |
commands: |
| 1935 |
- func: assume-test-secrets-ec2-role |
| 1936 |
- command: shell.exec |
| 1937 |
type: test |
| 1938 |
params: |
| 1939 |
shell: "bash" |
| 1940 |
add_expansions_to_env: true |
| 1941 |
working_dir: src/go.mongodb.org/mongo-driver |
| 1942 |
script: | |
| 1943 |
${PREPARE_SHELL} |
| 1944 |
echo "Building build-kms-test ... begin" |
| 1945 |
BUILD_TAGS="-tags=cse" \ |
| 1946 |
PKG_CONFIG_PATH=$PKG_CONFIG_PATH \ |
| 1947 |
make build-kms-test |
| 1948 |
echo "Building build-kms-test ... end" |
| 1949 |
|
| 1950 |
. ${DRIVERS_TOOLS}/.evergreen/csfle/azurekms/setup-secrets.sh |
| 1951 |
|
| 1952 |
LD_LIBRARY_PATH=./install/libmongocrypt/lib64 \ |
| 1953 |
MONGODB_URI='mongodb://localhost:27017' \ |
| 1954 |
EXPECT_ERROR='unable to retrieve azure credentials' \ |
| 1955 |
PROVIDER='azure' AZUREKMS_KEY_NAME=$AZUREKMS_KEYNAME AZUREKMS_KEY_VAULT_ENDPOINT=$AZUREKMS_KEYVAULTENDPOINT \ |
| 1956 |
./testkms |
| 1957 |
|
| 1958 |
- name: "test-fuzz" |
| 1959 |
commands: |
| 1960 |
- func: bootstrap-mongo-orchestration |
| 1961 |
- func: run-fuzz-tests |
| 1962 |
|
| 1963 |
- name: "test-aws-lambda-deployed" |
| 1964 |
commands: |
| 1965 |
- command: shell.exec |
| 1966 |
type: test |
| 1967 |
params: |
| 1968 |
working_dir: src/go.mongodb.org/mongo-driver |
| 1969 |
shell: bash |
| 1970 |
add_expansions_to_env: true |
| 1971 |
env: |
| 1972 |
TEST_LAMBDA_DIRECTORY: ${PROJECT_DIRECTORY}/internal/test/faas/awslambda |
| 1973 |
LAMBDA_STACK_NAME: dbx-go-lambda |
| 1974 |
AWS_REGION: us-east-1 |
| 1975 |
script: | |
| 1976 |
${PREPARE_SHELL} |
| 1977 |
pushd $TEST_LAMBDA_DIRECTORY/mongodb |
| 1978 |
go mod tidy |
| 1979 |
popd |
| 1980 |
./.evergreen/run-deployed-lambda-aws-tests.sh |
| 1981 |
|
| 1982 |
- name: "oidc-auth-test" |
| 1983 |
commands: |
| 1984 |
- func: "run-oidc-auth-test-with-test-credentials" |
| 1985 |
|
| 1986 |
- name: "oidc-auth-test-azure" |
| 1987 |
commands: |
| 1988 |
- command: shell.exec |
| 1989 |
type: test |
| 1990 |
params: |
| 1991 |
working_dir: src/go.mongodb.org/mongo-driver |
| 1992 |
shell: bash |
| 1993 |
script: |- |
| 1994 |
set -o errexit |
| 1995 |
${PREPARE_SHELL} |
| 1996 |
export AZUREOIDC_DRIVERS_TAR_FILE=/tmp/mongo-go-driver.tar.gz |
| 1997 |
# we need to statically link libc to avoid the situation where the VM has a different |
| 1998 |
# version of libc |
| 1999 |
go build -tags osusergo,netgo -ldflags '-w -extldflags "-static -lgcc -lc"' -o test ./cmd/testoidcauth/main.go |
| 2000 |
rm "$AZUREOIDC_DRIVERS_TAR_FILE" || true |
| 2001 |
tar -cf $AZUREOIDC_DRIVERS_TAR_FILE ./test |
| 2002 |
tar -uf $AZUREOIDC_DRIVERS_TAR_FILE ./etc |
| 2003 |
rm "$AZUREOIDC_DRIVERS_TAR_FILE".gz || true |
| 2004 |
gzip $AZUREOIDC_DRIVERS_TAR_FILE |
| 2005 |
export AZUREOIDC_DRIVERS_TAR_FILE=/tmp/mongo-go-driver.tar.gz |
| 2006 |
# Define the command to run on the azure VM. |
| 2007 |
# Ensure that we source the environment file created for us, set up any other variables we need, |
| 2008 |
# and then run our test suite on the vm. |
| 2009 |
export AZUREOIDC_TEST_CMD="PROJECT_DIRECTORY='.' OIDC_ENV=azure OIDC=oidc ./etc/run-oidc-test.sh ./test" |
| 2010 |
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/azure/run-driver-test.sh |
| 2011 |
|
| 2012 |
- name: "oidc-auth-test-gcp" |
| 2013 |
commands: |
| 2014 |
- command: shell.exec |
| 2015 |
type: test |
| 2016 |
params: |
| 2017 |
working_dir: src/go.mongodb.org/mongo-driver |
| 2018 |
shell: bash |
| 2019 |
script: |- |
| 2020 |
set -o errexit |
| 2021 |
${PREPARE_SHELL} |
| 2022 |
export GCPOIDC_DRIVERS_TAR_FILE=/tmp/mongo-go-driver.tar.gz |
| 2023 |
# we need to statically link libc to avoid the situation where the VM has a different |
| 2024 |
# version of libc |
| 2025 |
go build -tags osusergo,netgo -ldflags '-w -extldflags "-static -lgcc -lc"' -o test ./cmd/testoidcauth/main.go |
| 2026 |
rm "$GCPOIDC_DRIVERS_TAR_FILE" || true |
| 2027 |
tar -cf $GCPOIDC_DRIVERS_TAR_FILE ./test |
| 2028 |
tar -uf $GCPOIDC_DRIVERS_TAR_FILE ./etc |
| 2029 |
rm "$GCPOIDC_DRIVERS_TAR_FILE".gz || true |
| 2030 |
gzip $GCPOIDC_DRIVERS_TAR_FILE |
| 2031 |
export GCPOIDC_DRIVERS_TAR_FILE=/tmp/mongo-go-driver.tar.gz |
| 2032 |
# Define the command to run on the gcp VM. |
| 2033 |
# Ensure that we source the environment file created for us, set up any other variables we need, |
| 2034 |
# and then run our test suite on the vm. |
| 2035 |
export GCPOIDC_TEST_CMD="PROJECT_DIRECTORY='.' OIDC_ENV=gcp OIDC=oidc ./etc/run-oidc-test.sh ./test" |
| 2036 |
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/gcp/run-driver-test.sh |
| 2037 |
|
| 2038 |
- name: "test-search-index" |
| 2039 |
commands: |
| 2040 |
- func: "bootstrap-mongo-orchestration" |
| 2041 |
vars: |
| 2042 |
VERSION: "8.0" |
| 2043 |
TOPOLOGY: "replica_set" |
| 2044 |
- func: "run-search-index-tests" |
| 2045 |
|
| 2046 |
axes: |
| 2047 |
- id: version |
| 2048 |
display_name: MongoDB Version |
| 2049 |
values: |
| 2050 |
- id: "8.0" |
| 2051 |
display_name: "8.0" |
| 2052 |
variables: |
| 2053 |
VERSION: "8.0" |
| 2054 |
- id: "7.0" |
| 2055 |
display_name: "7.0" |
| 2056 |
variables: |
| 2057 |
VERSION: "7.0" |
| 2058 |
- id: "6.0" |
| 2059 |
display_name: "6.0" |
| 2060 |
variables: |
| 2061 |
VERSION: "6.0" |
| 2062 |
- id: "5.0" |
| 2063 |
display_name: "5.0" |
| 2064 |
variables: |
| 2065 |
VERSION: "5.0" |
| 2066 |
- id: "4.4" |
| 2067 |
display_name: "4.4" |
| 2068 |
variables: |
| 2069 |
VERSION: "4.4" |
| 2070 |
- id: "4.2" |
| 2071 |
display_name: "4.2" |
| 2072 |
variables: |
| 2073 |
VERSION: "4.2" |
| 2074 |
- id: "4.0" |
| 2075 |
display_name: "4.0" |
| 2076 |
variables: |
| 2077 |
VERSION: "4.0" |
| 2078 |
- id: "3.6" |
| 2079 |
display_name: "3.6" |
| 2080 |
variables: |
| 2081 |
VERSION: "3.6" |
| 2082 |
- id: "rapid" |
| 2083 |
display_name: "rapid" |
| 2084 |
variables: |
| 2085 |
VERSION: "rapid" |
| 2086 |
|
| 2087 |
# OSes that require >= 3.2 for SSL |
| 2088 |
- id: os-ssl-32 |
| 2089 |
display_name: OS |
| 2090 |
values: |
| 2091 |
- id: "windows-64" |
| 2092 |
display_name: "Windows 64-bit" |
| 2093 |
run_on: |
| 2094 |
- windows-vsCurrent-small |
| 2095 |
variables: |
| 2096 |
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin" |
| 2097 |
GO_DIST: "C:\\golang\\go1.22" |
| 2098 |
VENV_BIN_DIR: "Scripts" |
| 2099 |
# CSOT tests are unreliable on our slow Windows hosts. |
| 2100 |
SKIP_CSOT_TESTS: true |
| 2101 |
- id: "rhel87-64" |
| 2102 |
display_name: "RHEL 8.7" |
| 2103 |
run_on: rhel8.7-large |
| 2104 |
variables: |
| 2105 |
GO_DIST: "/opt/golang/go1.22" |
| 2106 |
- id: "macos11" |
| 2107 |
display_name: "MacOS 11.0" |
| 2108 |
run_on: macos-1100 |
| 2109 |
batchtime: 1440 # Run at most once per 24 hours. |
| 2110 |
variables: |
| 2111 |
GO_DIST: "/opt/golang/go1.22" |
| 2112 |
# CSOT tests are unreliable on our slow macOS hosts. |
| 2113 |
SKIP_CSOT_TESTS: true |
| 2114 |
|
| 2115 |
# OSes that require >= 4.0 for SSL |
| 2116 |
- id: os-ssl-40 |
| 2117 |
display_name: OS |
| 2118 |
values: |
| 2119 |
- id: "windows-64" |
| 2120 |
display_name: "Windows 64-bit" |
| 2121 |
run_on: |
| 2122 |
- windows-vsCurrent-small |
| 2123 |
variables: |
| 2124 |
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin" |
| 2125 |
GO_DIST: "C:\\golang\\go1.22" |
| 2126 |
VENV_BIN_DIR: "Scripts" |
| 2127 |
# CSOT tests are unreliable on our slow Windows hosts. |
| 2128 |
SKIP_CSOT_TESTS: true |
| 2129 |
- id: "rhel87-64" |
| 2130 |
display_name: "RHEL 8.7" |
| 2131 |
run_on: rhel8.7-large |
| 2132 |
variables: |
| 2133 |
GO_DIST: "/opt/golang/go1.22" |
| 2134 |
- id: "macos11" |
| 2135 |
display_name: "MacOS 11.0" |
| 2136 |
run_on: macos-1100 |
| 2137 |
batchtime: 1440 # Run at most once per 24 hours. |
| 2138 |
variables: |
| 2139 |
GO_DIST: "/opt/golang/go1.22" |
| 2140 |
# CSOT tests are unreliable on our slow macOS hosts. |
| 2141 |
SKIP_CSOT_TESTS: true |
| 2142 |
|
| 2143 |
- id: ocsp-rhel-87 |
| 2144 |
display_name: OS |
| 2145 |
values: |
| 2146 |
- id: "rhel87" |
| 2147 |
display_name: "RHEL 8.7" |
| 2148 |
run_on: rhel8.7-large |
| 2149 |
variables: |
| 2150 |
GO_DIST: "/opt/golang/go1.22" |
| 2151 |
|
| 2152 |
- id: os-aws-auth |
| 2153 |
display_name: OS |
| 2154 |
values: |
| 2155 |
- id: "windows-64-vsCurrent-latest-small" |
| 2156 |
display_name: "Windows 64-bit" |
| 2157 |
run_on: |
| 2158 |
- windows-vsCurrent-small |
| 2159 |
variables: |
| 2160 |
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin" |
| 2161 |
GO_DIST: "C:\\golang\\go1.22" |
| 2162 |
SKIP_ECS_AUTH_TEST: true |
| 2163 |
# CSOT tests are unreliable on our slow Windows hosts. |
| 2164 |
SKIP_CSOT_TESTS: true |
| 2165 |
- id: "ubuntu2004-64" |
| 2166 |
display_name: "Ubuntu 20.04" |
| 2167 |
run_on: ubuntu2004-test |
| 2168 |
variables: |
| 2169 |
GO_DIST: "/opt/golang/go1.22" |
| 2170 |
- id: "macos11" |
| 2171 |
display_name: "MacOS 11.0" |
| 2172 |
run_on: macos-1100 |
| 2173 |
batchtime: 1440 # Run at most once per 24 hours. |
| 2174 |
variables: |
| 2175 |
GO_DIST: "/opt/golang/go1.22" |
| 2176 |
SKIP_ECS_AUTH_TEST: true |
| 2177 |
SKIP_EC2_AUTH_TEST: true |
| 2178 |
SKIP_WEB_IDENTITY_AUTH_TEST: true |
| 2179 |
# CSOT tests are unreliable on our slow macOS hosts. |
| 2180 |
SKIP_CSOT_TESTS: true |
| 2181 |
|
| 2182 |
- id: os-faas-80 |
| 2183 |
display_name: OS |
| 2184 |
values: |
| 2185 |
- id: "rhel87-large" |
| 2186 |
display_name: "RHEL 8.7" |
| 2187 |
run_on: rhel8.7-large |
| 2188 |
variables: |
| 2189 |
GO_DIST: "/opt/golang/go1.22" |
| 2190 |
|
| 2191 |
task_groups: |
| 2192 |
- name: testgcpkms_task_group |
| 2193 |
setup_group_can_fail_task: true |
| 2194 |
setup_group_timeout_secs: 1800 # 30 minutes |
| 2195 |
setup_group: |
| 2196 |
- func: fetch-source |
| 2197 |
- func: prepare-resources |
| 2198 |
- func: fix-absolute-paths |
| 2199 |
- func: make-files-executable |
| 2200 |
- func: assume-test-secrets-ec2-role |
| 2201 |
- command: shell.exec |
| 2202 |
params: |
| 2203 |
shell: "bash" |
| 2204 |
add_expansions_to_env: true |
| 2205 |
script: | |
| 2206 |
${PREPARE_SHELL} |
| 2207 |
$DRIVERS_TOOLS/.evergreen/csfle/gcpkms/setup.sh |
| 2208 |
teardown_group: |
| 2209 |
- command: shell.exec |
| 2210 |
params: |
| 2211 |
shell: "bash" |
| 2212 |
script: | |
| 2213 |
${PREPARE_SHELL} |
| 2214 |
$DRIVERS_TOOLS/.evergreen/csfle/gcpkms/teardown.sh |
| 2215 |
- func: handle-test-artifacts |
| 2216 |
- func: cleanup |
| 2217 |
tasks: |
| 2218 |
- testgcpkms-task |
| 2219 |
|
| 2220 |
- name: testazurekms_task_group |
| 2221 |
setup_group_can_fail_task: true |
| 2222 |
teardown_group_can_fail_task: true |
| 2223 |
setup_group_timeout_secs: 1800 # 30 minutes |
| 2224 |
setup_group: |
| 2225 |
- func: fetch-source |
| 2226 |
- func: prepare-resources |
| 2227 |
- func: fix-absolute-paths |
| 2228 |
- func: make-files-executable |
| 2229 |
- func: assume-test-secrets-ec2-role |
| 2230 |
- command: shell.exec |
| 2231 |
params: |
| 2232 |
shell: "bash" |
| 2233 |
add_expansions_to_env: true |
| 2234 |
script: | |
| 2235 |
${PREPARE_SHELL} |
| 2236 |
export AZUREKMS_VMNAME_PREFIX="GODRIVER" |
| 2237 |
export AZUREKMS_DRIVERS_TOOLS=$DRIVERS_TOOLS |
| 2238 |
# Get azurekms credentials from the vault. |
| 2239 |
. ${DRIVERS_TOOLS}/.evergreen/csfle/azurekms/setup-secrets.sh |
| 2240 |
${DRIVERS_TOOLS}/.evergreen/csfle/azurekms/create-and-setup-vm.sh |
| 2241 |
teardown_group: |
| 2242 |
- command: subprocess.exec |
| 2243 |
params: |
| 2244 |
binary: "bash" |
| 2245 |
args: |
| 2246 |
- ${DRIVERS_TOOLS}/.evergreen/csfle/azurekms/teardown.sh |
| 2247 |
|
| 2248 |
- func: handle-test-artifacts |
| 2249 |
- func: cleanup |
| 2250 |
tasks: |
| 2251 |
- testazurekms-task |
| 2252 |
|
| 2253 |
- name: testoidc_task_group |
| 2254 |
setup_group: |
| 2255 |
- func: fetch-source |
| 2256 |
- func: prepare-resources |
| 2257 |
- func: fix-absolute-paths |
| 2258 |
- func: make-files-executable |
| 2259 |
- func: assume-ec2-role |
| 2260 |
- command: subprocess.exec |
| 2261 |
params: |
| 2262 |
binary: bash |
| 2263 |
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"] |
| 2264 |
env: |
| 2265 |
MONGODB_VERSION: "8.0" |
| 2266 |
args: |
| 2267 |
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/setup.sh |
| 2268 |
teardown_task: |
| 2269 |
- command: subprocess.exec |
| 2270 |
params: |
| 2271 |
binary: bash |
| 2272 |
args: |
| 2273 |
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/teardown.sh |
| 2274 |
setup_group_can_fail_task: true |
| 2275 |
setup_group_timeout_secs: 1800 |
| 2276 |
tasks: |
| 2277 |
- oidc-auth-test |
| 2278 |
|
| 2279 |
- name: testazureoidc_task_group |
| 2280 |
setup_group: |
| 2281 |
- func: fetch-source |
| 2282 |
- func: prepare-resources |
| 2283 |
- func: fix-absolute-paths |
| 2284 |
- func: make-files-executable |
| 2285 |
- func: assume-test-secrets-ec2-role |
| 2286 |
- command: subprocess.exec |
| 2287 |
params: |
| 2288 |
binary: bash |
| 2289 |
add_expansions_to_env: true |
| 2290 |
env: |
| 2291 |
AZUREOIDC_VMNAME_PREFIX: "GO_DRIVER" |
| 2292 |
args: |
| 2293 |
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/azure/create-and-setup-vm.sh |
| 2294 |
teardown_task: |
| 2295 |
- command: subprocess.exec |
| 2296 |
params: |
| 2297 |
binary: bash |
| 2298 |
args: |
| 2299 |
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/azure/delete-vm.sh |
| 2300 |
setup_group_can_fail_task: true |
| 2301 |
setup_group_timeout_secs: 1800 |
| 2302 |
tasks: |
| 2303 |
- oidc-auth-test-azure |
| 2304 |
|
| 2305 |
- name: testgcpoidc_task_group |
| 2306 |
setup_group: |
| 2307 |
- func: fetch-source |
| 2308 |
- func: prepare-resources |
| 2309 |
- func: fix-absolute-paths |
| 2310 |
- func: make-files-executable |
| 2311 |
- func: assume-test-secrets-ec2-role |
| 2312 |
- command: subprocess.exec |
| 2313 |
params: |
| 2314 |
binary: bash |
| 2315 |
add_expansions_to_env: true |
| 2316 |
env: |
| 2317 |
AZUREOIDC_VMNAME_PREFIX: "GO_DRIVER" |
| 2318 |
args: |
| 2319 |
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/gcp/setup.sh |
| 2320 |
teardown_task: |
| 2321 |
- command: subprocess.exec |
| 2322 |
params: |
| 2323 |
binary: bash |
| 2324 |
args: |
| 2325 |
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/gcp/teardown.sh |
| 2326 |
setup_group_can_fail_task: true |
| 2327 |
setup_group_timeout_secs: 1800 |
| 2328 |
tasks: |
| 2329 |
- oidc-auth-test-gcp |
| 2330 |
|
| 2331 |
- name: test-aws-lambda-task-group |
| 2332 |
setup_group: |
| 2333 |
- func: fetch-source |
| 2334 |
- func: prepare-resources |
| 2335 |
- func: assume-test-secrets-ec2-role |
| 2336 |
- command: subprocess.exec |
| 2337 |
params: |
| 2338 |
working_dir: src/go.mongodb.org/mongo-driver |
| 2339 |
binary: bash |
| 2340 |
add_expansions_to_env: true |
| 2341 |
env: |
| 2342 |
LAMBDA_STACK_NAME: dbx-go-lambda |
| 2343 |
AWS_REGION: us-east-1 |
| 2344 |
task_id: ${task_id} |
| 2345 |
execution: ${execution} |
| 2346 |
args: |
| 2347 |
- ${DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh |
| 2348 |
teardown_group: |
| 2349 |
- command: subprocess.exec |
| 2350 |
params: |
| 2351 |
working_dir: src/go.mongodb.org/mongo-driver |
| 2352 |
binary: bash |
| 2353 |
add_expansions_to_env: true |
| 2354 |
env: |
| 2355 |
LAMBDA_STACK_NAME: dbx-go-lambda |
| 2356 |
AWS_REGION: us-east-1 |
| 2357 |
args: |
| 2358 |
- ${DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh |
| 2359 |
- func: handle-test-artifacts |
| 2360 |
- func: cleanup |
| 2361 |
setup_group_can_fail_task: true |
| 2362 |
setup_group_timeout_secs: 1800 |
| 2363 |
tasks: |
| 2364 |
- test-aws-lambda-deployed |
| 2365 |
|
| 2366 |
- name: test-search-index-task-group |
| 2367 |
setup_group: |
| 2368 |
- func: fetch-source |
| 2369 |
- func: prepare-resources |
| 2370 |
- command: subprocess.exec |
| 2371 |
params: |
| 2372 |
working_dir: src/go.mongodb.org/mongo-driver |
| 2373 |
binary: bash |
| 2374 |
env: |
| 2375 |
MONGODB_VERSION: "7.0" |
| 2376 |
LAMBDA_STACK_NAME: dbx-go-lambda |
| 2377 |
AWS_REGION: us-east-1 |
| 2378 |
task_id: ${task_id} |
| 2379 |
execution: ${execution} |
| 2380 |
args: |
| 2381 |
- ${DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh |
| 2382 |
- command: expansions.update |
| 2383 |
params: |
| 2384 |
file: src/go.mongodb.org/mongo-driver/atlas-expansion.yml |
| 2385 |
- command: shell.exec |
| 2386 |
params: |
| 2387 |
working_dir: src/go.mongodb.org/mongo-driver |
| 2388 |
shell: bash |
| 2389 |
script: |- |
| 2390 |
echo "TEST_INDEX_URI: ${MONGODB_URI}" > atlas-expansion.yml |
| 2391 |
- command: expansions.update |
| 2392 |
params: |
| 2393 |
file: src/go.mongodb.org/mongo-driver/atlas-expansion.yml |
| 2394 |
teardown_group: |
| 2395 |
- command: subprocess.exec |
| 2396 |
params: |
| 2397 |
working_dir: src/go.mongodb.org/mongo-driver |
| 2398 |
binary: bash |
| 2399 |
args: |
| 2400 |
- ${DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh |
| 2401 |
- func: handle-test-artifacts |
| 2402 |
- func: cleanup |
| 2403 |
setup_group_can_fail_task: true |
| 2404 |
setup_group_timeout_secs: 1800 |
| 2405 |
tasks: |
| 2406 |
- test-search-index |
| 2407 |
|
| 2408 |
buildvariants: |
| 2409 |
- name: static-analysis |
| 2410 |
tags: ["pullrequest"] |
| 2411 |
display_name: "Static Analysis" |
| 2412 |
run_on: |
| 2413 |
- rhel8.7-large |
| 2414 |
expansions: |
| 2415 |
GO_DIST: "/opt/golang/go1.22" |
| 2416 |
tasks: |
| 2417 |
- name: ".static-analysis" |
| 2418 |
|
| 2419 |
- name: pull-request-helpers |
| 2420 |
tags: ["pullrequest"] |
| 2421 |
display_name: "Pull Request Helpers" |
| 2422 |
run_on: |
| 2423 |
- rhel8.7-small |
| 2424 |
expansions: |
| 2425 |
GO_DIST: "/opt/golang/go1.22" |
| 2426 |
tasks: |
| 2427 |
- name: "pull-request-helpers" |
| 2428 |
|
| 2429 |
- name: perf |
| 2430 |
display_name: "Performance" |
| 2431 |
run_on: |
| 2432 |
- rhel8.7-large |
| 2433 |
expansions: |
| 2434 |
GO_DIST: "/opt/golang/go1.22" |
| 2435 |
tasks: |
| 2436 |
- name: ".performance" |
| 2437 |
|
| 2438 |
- name: build-check |
| 2439 |
tags: ["pullrequest"] |
| 2440 |
display_name: "Compile Only Checks" |
| 2441 |
run_on: |
| 2442 |
- rhel8.7-large |
| 2443 |
expansions: |
| 2444 |
GO_DIST: "/opt/golang/go1.22" |
| 2445 |
tasks: |
| 2446 |
- name: ".compile-check" |
| 2447 |
|
| 2448 |
- name: backport-pr |
| 2449 |
display_name: "Backport PR" |
| 2450 |
run_on: |
| 2451 |
- rhel8.7-large |
| 2452 |
expansions: |
| 2453 |
GO_DIST: "/opt/golang/go1.22" |
| 2454 |
tasks: |
| 2455 |
- name: "backport-pr" |
| 2456 |
|
| 2457 |
- name: atlas-test |
| 2458 |
tags: ["pullrequest"] |
| 2459 |
display_name: "Atlas test" |
| 2460 |
run_on: |
| 2461 |
- rhel8.7-large |
| 2462 |
expansions: |
| 2463 |
GO_DIST: "/opt/golang/go1.22" |
| 2464 |
tasks: |
| 2465 |
- name: "atlas-test" |
| 2466 |
|
| 2467 |
- name: atlas-data-lake-test |
| 2468 |
tags: ["pullrequest"] |
| 2469 |
display_name: "Atlas Data Lake Test" |
| 2470 |
run_on: |
| 2471 |
- ubuntu2004-large |
| 2472 |
expansions: |
| 2473 |
GO_DIST: "/opt/golang/go1.22" |
| 2474 |
tasks: |
| 2475 |
- name: "test-atlas-data-lake" |
| 2476 |
|
| 2477 |
- name: docker-runner-test |
| 2478 |
tags: ["pullrequest"] |
| 2479 |
display_name: "Docker Runner Test" |
| 2480 |
run_on: |
| 2481 |
- ubuntu2204-large |
| 2482 |
expansions: |
| 2483 |
GO_DIST: "/opt/golang/go1.22" |
| 2484 |
tasks: |
| 2485 |
- name: "test-docker-runner" |
| 2486 |
|
| 2487 |
- name: goroutine-leaks-test |
| 2488 |
tags: ["pullrequest"] |
| 2489 |
display_name: "Goroutine Leaks Test" |
| 2490 |
run_on: |
| 2491 |
- ubuntu2204-large |
| 2492 |
expansions: |
| 2493 |
GO_DIST: "/opt/golang/go1.22" |
| 2494 |
tasks: |
| 2495 |
- name: ".goleak" |
| 2496 |
|
| 2497 |
- matrix_name: "tests-rhel-36-with-zlib-support" |
| 2498 |
tags: ["pullrequest"] |
| 2499 |
matrix_spec: { version: ["3.6"], os-ssl-32: ["rhel87-64"] } |
| 2500 |
display_name: "${version} ${os-ssl-32}" |
| 2501 |
tasks: |
| 2502 |
- name: ".test !.enterprise-auth !.snappy !.zstd" |
| 2503 |
|
| 2504 |
- matrix_name: "tests-windows-36-with-zlib-support" |
| 2505 |
matrix_spec: { version: ["3.6"], os-ssl-32: ["windows-64"] } |
| 2506 |
display_name: "${version} ${os-ssl-32}" |
| 2507 |
tasks: |
| 2508 |
- name: ".test !.enterprise-auth !.snappy !.zstd" |
| 2509 |
|
| 2510 |
- matrix_name: "tests-rhel-40-with-zlib-support" |
| 2511 |
tags: ["pullrequest"] |
| 2512 |
matrix_spec: { version: ["4.0"], os-ssl-40: ["rhel87-64"] } |
| 2513 |
display_name: "${version} ${os-ssl-40}" |
| 2514 |
tasks: |
| 2515 |
- name: ".test !.enterprise-auth !.snappy !.zstd" |
| 2516 |
|
| 2517 |
- matrix_name: "tests-windows-40-with-zlib-support" |
| 2518 |
matrix_spec: { version: ["4.0"], os-ssl-40: ["windows-64"] } |
| 2519 |
display_name: "${version} ${os-ssl-40}" |
| 2520 |
tasks: |
| 2521 |
- name: ".test !.enterprise-auth !.snappy !.zstd" |
| 2522 |
|
| 2523 |
- matrix_name: "tests-rhel-42-plus-zlib-zstd-support" |
| 2524 |
tags: ["pullrequest"] |
| 2525 |
matrix_spec: { version: ["4.2", "4.4", "5.0", "6.0", "7.0", "8.0"], os-ssl-40: ["rhel87-64"] } |
| 2526 |
display_name: "${version} ${os-ssl-40}" |
| 2527 |
tasks: |
| 2528 |
- name: ".test !.enterprise-auth !.snappy" |
| 2529 |
|
| 2530 |
- matrix_name: "tests-windows-42-plus-zlib-zstd-support" |
| 2531 |
matrix_spec: { version: ["4.2", "4.4", "5.0", "6.0", "7.0"], os-ssl-40: ["windows-64"] } |
| 2532 |
display_name: "${version} ${os-ssl-40}" |
| 2533 |
tasks: |
| 2534 |
- name: ".test !.enterprise-auth !.snappy" |
| 2535 |
|
| 2536 |
- matrix_name: "tests-windows-80-zlib-zstd-support" |
| 2537 |
tags: ["pullrequest"] |
| 2538 |
matrix_spec: { version: ["8.0"], os-ssl-40: ["windows-64"] } |
| 2539 |
display_name: "${version} ${os-ssl-40}" |
| 2540 |
tasks: |
| 2541 |
- name: ".test !.enterprise-auth !.snappy" |
| 2542 |
|
| 2543 |
- matrix_name: "enterprise-auth-tests" |
| 2544 |
matrix_spec: { os-ssl-32: "*" } |
| 2545 |
display_name: "Enterprise Auth - ${os-ssl-32}" |
| 2546 |
tasks: |
| 2547 |
- name: ".test .enterprise-auth" |
| 2548 |
|
| 2549 |
- matrix_name: "aws-auth-test" |
| 2550 |
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "8.0"], os-aws-auth: "*" } |
| 2551 |
display_name: "MONGODB-AWS Auth ${version} ${os-aws-auth}" |
| 2552 |
tasks: |
| 2553 |
- name: "aws-auth-test" |
| 2554 |
|
| 2555 |
- matrix_name: "ocsp-test" |
| 2556 |
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "8.0"], ocsp-rhel-87: ["rhel87"] } |
| 2557 |
display_name: "OCSP ${version} ${ocsp-rhel-87}" |
| 2558 |
batchtime: 20160 # Use a batchtime of 14 days as suggested by the OCSP test README |
| 2559 |
tasks: |
| 2560 |
- name: ".ocsp" |
| 2561 |
|
| 2562 |
- matrix_name: "ocsp-test-windows" |
| 2563 |
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "8.0"], os-ssl-40: ["windows-64"] } |
| 2564 |
display_name: "OCSP ${version} ${os-ssl-40}" |
| 2565 |
batchtime: 20160 # Use a batchtime of 14 days as suggested by the OCSP test README |
| 2566 |
tasks: |
| 2567 |
# Windows MongoDB servers do not staple OCSP responses and only support RSA. |
| 2568 |
- name: ".ocsp-rsa !.ocsp-staple" |
| 2569 |
|
| 2570 |
- matrix_name: "ocsp-test-macos" |
| 2571 |
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "8.0"], os-ssl-40: ["macos11"] } |
| 2572 |
display_name: "OCSP ${version} ${os-ssl-40}" |
| 2573 |
batchtime: 20160 # Use a batchtime of 14 days as suggested by the OCSP test README |
| 2574 |
tasks: |
| 2575 |
# macos MongoDB servers do not staple OCSP responses and only support RSA. |
| 2576 |
- name: ".ocsp-rsa !.ocsp-staple" |
| 2577 |
|
| 2578 |
- matrix_name: "race-test" |
| 2579 |
tags: ["pullrequest"] |
| 2580 |
matrix_spec: { version: ["7.0"], os-ssl-40: ["rhel87-64"] } |
| 2581 |
display_name: "Race Detector Test" |
| 2582 |
tasks: |
| 2583 |
- name: ".race" |
| 2584 |
|
| 2585 |
- matrix_name: "versioned-api-test" |
| 2586 |
tags: ["pullrequest"] |
| 2587 |
matrix_spec: { version: ["5.0", "6.0", "7.0", "8.0"], os-ssl-40: ["windows-64", "rhel87-64"] } |
| 2588 |
display_name: "API Version ${version} ${os-ssl-40}" |
| 2589 |
tasks: |
| 2590 |
- name: ".versioned-api" |
| 2591 |
|
| 2592 |
- matrix_name: "kms-tls-test" |
| 2593 |
matrix_spec: { version: ["7.0"], os-ssl-40: ["rhel87-64"] } |
| 2594 |
display_name: "KMS TLS ${os-ssl-40}" |
| 2595 |
tasks: |
| 2596 |
- name: ".kms-tls" |
| 2597 |
|
| 2598 |
- matrix_name: "load-balancer-test" |
| 2599 |
tags: ["pullrequest"] |
| 2600 |
matrix_spec: { version: ["5.0", "6.0", "7.0", "8.0"], os-ssl-40: ["rhel87-64"] } |
| 2601 |
display_name: "Load Balancer Support ${version} ${os-ssl-40}" |
| 2602 |
tasks: |
| 2603 |
- name: ".load-balancer" |
| 2604 |
|
| 2605 |
- matrix_name: "kms-kmip-test" |
| 2606 |
matrix_spec: { version: ["7.0"], os-ssl-40: ["rhel87-64"] } |
| 2607 |
display_name: "KMS KMIP ${os-ssl-40}" |
| 2608 |
tasks: |
| 2609 |
- name: ".kms-kmip" |
| 2610 |
|
| 2611 |
- matrix_name: "fuzz-test" |
| 2612 |
matrix_spec: { version: ["5.0"], os-ssl-40: ["rhel87-64"] } |
| 2613 |
display_name: "Fuzz ${version} ${os-ssl-40}" |
| 2614 |
tasks: |
| 2615 |
- name: "test-fuzz" |
| 2616 |
batchtime: 1440 # Run at most once per 24 hours. |
| 2617 |
|
| 2618 |
- matrix_name: "faas-test" |
| 2619 |
matrix_spec: { version: ["7.0"], os-faas-80: ["rhel87-large"] } |
| 2620 |
display_name: "FaaS ${version} ${os-faas-80}" |
| 2621 |
tasks: |
| 2622 |
- test-aws-lambda-task-group |
| 2623 |
|
| 2624 |
- matrix_name: "searchindex-test" |
| 2625 |
matrix_spec: { version: ["7.0"], os-faas-80: ["rhel87-large"] } |
| 2626 |
display_name: "Search Index ${version} ${os-faas-80}" |
| 2627 |
tasks: |
| 2628 |
- test-search-index-task-group |
| 2629 |
|
| 2630 |
- name: testgcpkms-variant |
| 2631 |
display_name: "GCP KMS" |
| 2632 |
run_on: |
| 2633 |
- rhel8.7-small |
| 2634 |
expansions: |
| 2635 |
GO_DIST: "/opt/golang/go1.22" |
| 2636 |
tasks: |
| 2637 |
- name: testgcpkms_task_group |
| 2638 |
batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README |
| 2639 |
- testgcpkms-fail-task |
| 2640 |
|
| 2641 |
- name: testawskms-variant |
| 2642 |
display_name: "AWS KMS" |
| 2643 |
run_on: |
| 2644 |
- rhel8.7-small |
| 2645 |
expansions: |
| 2646 |
GO_DIST: "/opt/golang/go1.22" |
| 2647 |
tasks: |
| 2648 |
- testawskms-task |
| 2649 |
- testawskms-fail-task |
| 2650 |
|
| 2651 |
- name: testazurekms-variant |
| 2652 |
display_name: "AZURE KMS" |
| 2653 |
run_on: |
| 2654 |
- rhel8.7-small |
| 2655 |
expansions: |
| 2656 |
GO_DIST: "/opt/golang/go1.22" |
| 2657 |
tasks: |
| 2658 |
- name: testazurekms_task_group |
| 2659 |
batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README |
| 2660 |
- testazurekms-fail-task |
| 2661 |
|
| 2662 |
- name: testoidc-variant |
| 2663 |
display_name: "OIDC" |
| 2664 |
run_on: |
| 2665 |
- ubuntu2204-small |
| 2666 |
expansions: |
| 2667 |
GO_DIST: "/opt/golang/go1.22" |
| 2668 |
tasks: |
| 2669 |
- name: testoidc_task_group |
| 2670 |
batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README |
| 2671 |
- name: testazureoidc_task_group |
| 2672 |
batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README |
| 2673 |
- name: testgcpoidc_task_group |
| 2674 |
batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README |