summaryrefslogtreecommitdiff
path: root/evergreen/burn_in_tests.sh
diff options
context:
space:
mode:
authorRichard Samuels <richard.l.samuels@gmail.com>2021-04-08 10:13:06 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-08 16:38:18 +0000
commit376a983186c48cacd42f0205b93a90aef3b30690 (patch)
tree4264231b68d1bdbb155024105fb06dc345918243 /evergreen/burn_in_tests.sh
parent6fc3aec96786f0f3f8afd90b83de2486decccd35 (diff)
downloadmongo-376a983186c48cacd42f0205b93a90aef3b30690.tar.gz
SERVER-55626 Extract shell scripts from evergreen.yml part 2
Diffstat (limited to 'evergreen/burn_in_tests.sh')
-rwxr-xr-xevergreen/burn_in_tests.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/evergreen/burn_in_tests.sh b/evergreen/burn_in_tests.sh
new file mode 100755
index 00000000000..2ef93e46958
--- /dev/null
+++ b/evergreen/burn_in_tests.sh
@@ -0,0 +1,22 @@
+DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
+. "$DIR/prelude.sh"
+
+cd src
+
+set -o errexit
+set -o verbose
+activate_venv
+
+# Multiversion exclusions can be used when selecting tests.
+$python buildscripts/evergreen_gen_multiversion_tests.py generate-exclude-tags --task-path-suffix=/data/multiversion --output=multiversion_exclude_tags.yml
+
+# Capture a list of new and modified tests. The expansion macro burn_in_tests_build_variant
+# is used to for finding the associated tasks from a different build varaint than the
+# burn_in_tests_gen task executes on.
+build_variant_opts="--build-variant=${build_variant}"
+if [ -n "${burn_in_tests_build_variant}" ]; then
+ build_variant_opts="--build-variant=${burn_in_tests_build_variant} --run-build-variant=${build_variant}"
+fi
+burn_in_args="$burn_in_args --repeat-tests-min=2 --repeat-tests-max=1000 --repeat-tests-secs=600"
+# Evergreen executable is in $HOME.
+PATH="$PATH:$HOME" eval $python buildscripts/evergreen_burn_in_tests.py --project=${project} $build_variant_opts --distro=${distro_id} --generate-tasks-file=burn_in_tests_gen.json --task_id ${task_id} $burn_in_args --verbose