@@ -20,10 +20,9 @@ exec_timeout_secs: 3600 # 60 minutes is the longest we'll ever run (primarily
20
20
21
21
# What to do when evergreen hits the timeout (`post:` tasks are run automatically)
22
22
timeout :
23
- - command : shell .exec
23
+ - command : subprocess .exec
24
24
params :
25
- script : |
26
- ls -la
25
+ binary : ls -la
27
26
28
27
include :
29
28
- filename : .evergreen/generated_configs/tasks.yml
@@ -97,13 +96,17 @@ functions:
97
96
args :
98
97
- .evergreen/combine-coverage.sh
99
98
# Upload the resulting html coverage report.
100
- - command : shell .exec
99
+ - command : subprocess .exec
101
100
params :
102
101
silent : true
102
+ binary : bash
103
103
working_dir : " src"
104
104
include_expansions_in_env : ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
105
- script : |
106
- aws s3 cp htmlcov/ s3://${bucket_name}/coverage/${revision}/${version_id}/htmlcov/ --recursive --acl public-read --region us-east-1
105
+ args :
106
+ - src/.evergreen/scripts/upload-coverage-report.sh
107
+ - ${bucket_name}
108
+ - ${revision}
109
+ - ${version_id}
107
110
# Attach the index.html with s3.put so it shows up in the Evergreen UI.
108
111
- command : s3.put
109
112
params :
@@ -483,16 +486,12 @@ functions:
483
486
- .evergreen/scripts/run-aws-ecs-auth-test.sh
484
487
485
488
" cleanup " :
486
- - command : shell .exec
489
+ - command : subprocess .exec
487
490
params :
491
+ binary : bash
488
492
working_dir : " src"
489
- script : |
490
- . .evergreen/scripts/env.sh
491
- if [ -f $DRIVERS_TOOLS/.evergreen/csfle/secrets-export.sh ]; then
492
- . .evergreen/hatch.sh encryption:teardown
493
- fi
494
- rm -rf ${DRIVERS_TOOLS} || true
495
- rm -f ./secrets-export.sh || true
493
+ args :
494
+ - .evergreen/scripts/cleanup.sh
496
495
497
496
" fix absolute paths " :
498
497
- command : subprocess.exec
@@ -553,7 +552,7 @@ functions:
553
552
- command : subprocess.exec
554
553
type : test
555
554
params :
556
- include_expansions_in_env : ["OCSP_ALGORITHM", "OCSP_TLS_SHOULD_SUCCEED"]
555
+ include_expansions_in_env : ["OCSP_ALGORITHM", "OCSP_TLS_SHOULD_SUCCEED", "PYTHON_BINARY" ]
557
556
binary : bash
558
557
working_dir : " src"
559
558
args :
@@ -569,42 +568,36 @@ functions:
569
568
- ${DRIVERS_TOOLS}/.evergreen/ocsp/setup.sh
570
569
571
570
" run load-balancer " :
572
- - command : shell .exec
571
+ - command : subprocess .exec
573
572
params :
574
- script : |
575
- DRIVERS_TOOLS=${DRIVERS_TOOLS} MONGODB_URI=${MONGODB_URI} bash ${DRIVERS_TOOLS}/.evergreen/run-load-balancer.sh start
573
+ binary : bash
574
+ include_expansions_in_env : ["MONGODB_URI"]
575
+ args :
576
+ - src/.evergreen/scripts/run-load-balancer.sh
576
577
- command : expansions.update
577
578
params :
578
579
file : lb-expansion.yml
579
580
580
581
" stop load-balancer " :
581
- - command : shell .exec
582
+ - command : subprocess .exec
582
583
params :
583
- script : |
584
- cd ${DRIVERS_TOOLS}/.evergreen
585
- DRIVERS_TOOLS=${DRIVERS_TOOLS} bash ${DRIVERS_TOOLS} /.evergreen/run -load-balancer.sh stop
584
+ binary : bash
585
+ args :
586
+ - src /.evergreen/scripts/stop -load-balancer.sh
586
587
587
588
" teardown_docker " :
588
- - command : shell .exec
589
+ - command : subprocess .exec
589
590
params :
590
- script : |
591
- # Remove all Docker images
592
- DOCKER=$(command -v docker) || true
593
- if [ -n "$DOCKER" ]; then
594
- docker rmi -f $(docker images -a -q) &> /dev/null || true
595
- fi
591
+ binary : bash
592
+ args :
593
+ - src/.evergreen/scripts/teardown-docker.sh
596
594
597
595
" teardown_aws " :
598
- - command : shell .exec
596
+ - command : subprocess .exec
599
597
params :
600
- shell : " bash"
601
- script : |
602
- . src/.evergreen/scripts/env.sh
603
- cd "${DRIVERS_TOOLS}/.evergreen/auth_aws"
604
- if [ -f "./aws_e2e_setup.json" ]; then
605
- . ./activate-authawsvenv.sh
606
- python ./lib/aws_assign_instance_profile.py
607
- fi
598
+ binary : bash
599
+ args :
600
+ - src/.evergreen/scripts/teardown-aws.sh
608
601
609
602
" teardown atlas " :
610
603
- command : subprocess.exec
@@ -614,10 +607,13 @@ functions:
614
607
- ${DRIVERS_TOOLS}/.evergreen/atlas/teardown-atlas-cluster.sh
615
608
616
609
" run perf tests " :
617
- - command : shell .exec
610
+ - command : subprocess .exec
618
611
type : test
619
612
params :
620
613
working_dir : " src"
614
+ binary : bash
615
+ args :
616
+ - .evergreen/scripts/run-perf-tests.sh
621
617
script : |
622
618
. .evergreen/scripts/env.sh
623
619
PROJECT_DIRECTORY=${PROJECT_DIRECTORY} bash ${PROJECT_DIRECTORY}/.evergreen/run-perf-tests.sh
@@ -858,31 +854,12 @@ tasks:
858
854
# Throw it here, and execute this task on all buildvariants
859
855
- name : getdata
860
856
commands :
861
- - command : shell.exec
857
+ - command : subprocess.exec
858
+ binary : bash
862
859
type : test
863
860
params :
864
- script : |
865
- set -o xtrace
866
- . ${DRIVERS_TOOLS}/.evergreen/download-mongodb.sh || true
867
- get_distro || true
868
- echo $DISTRO
869
- echo $MARCH
870
- echo $OS
871
- uname -a || true
872
- ls /etc/*release* || true
873
- cc --version || true
874
- gcc --version || true
875
- clang --version || true
876
- gcov --version || true
877
- lcov --version || true
878
- llvm-cov --version || true
879
- echo $PATH
880
- ls -la /usr/local/Cellar/llvm/*/bin/ || true
881
- ls -la /usr/local/Cellar/ || true
882
- scan-build --version || true
883
- genhtml --version || true
884
- valgrind --version || true
885
-
861
+ args :
862
+ - src/.evergreen/scripts/run-getdata.sh
886
863
# Standard test tasks {{{
887
864
888
865
- name : " mockupdb"
@@ -1552,17 +1529,13 @@ tasks:
1552
1529
vars :
1553
1530
VERSION : " latest"
1554
1531
TOPOLOGY : " server"
1555
- - command : shell .exec
1532
+ - command : subprocess .exec
1556
1533
type : test
1557
1534
params :
1558
1535
working_dir : " src"
1559
- shell : " bash"
1560
- script : |
1561
- . .evergreen/scripts/env.sh
1562
- export PYTHON_BINARY=/opt/mongodbtoolchain/v4/bin/python3
1563
- export LIBMONGOCRYPT_URL=https://s3.amazonaws.com/mciuploads/libmongocrypt/debian11/master/latest/libmongocrypt.tar.gz
1564
- SKIP_SERVERS=1 bash ./.evergreen/setup-encryption.sh
1565
- SUCCESS=false TEST_FLE_GCP_AUTO=1 ./.evergreen/hatch.sh test:test-eg
1536
+ binary : " bash"
1537
+ args :
1538
+ - .evergreen/scripts/run-gcpkms-fail-test.sh
1566
1539
1567
1540
- name : testazurekms-task
1568
1541
commands :
@@ -1628,18 +1601,15 @@ tasks:
1628
1601
- name : " check-import-time"
1629
1602
tags : ["pr"]
1630
1603
commands :
1631
- - command : shell .exec
1604
+ - command : subprocess .exec
1632
1605
type : test
1633
1606
params :
1634
1607
shell : " bash"
1635
1608
working_dir : src
1636
- script : |
1637
- . .evergreen/scripts/env.sh
1638
- set -x
1639
- export BASE_SHA=${revision}
1640
- export HEAD_SHA=${github_commit}
1641
- bash .evergreen/run-import-time-test.sh
1642
-
1609
+ args :
1610
+ - .evergreen/scripts/check-import-time.sh
1611
+ - ${revision}
1612
+ - ${github_commit}
1643
1613
- name : " backport-pr"
1644
1614
allowed_requesters : ["commit"]
1645
1615
commands :
0 commit comments