diff options
author | Robert Guo <robert.guo@mongodb.com> | 2021-06-18 10:51:28 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-18 15:38:39 +0000 |
commit | 424e5742516e01be5ea7638712e273d6bc175dc4 (patch) | |
tree | 6834be91c40c6991c06d577292f9e998a883dcf1 /evergreen/resmoke_tests_execute.sh | |
parent | 90c6c2c99ac81fdb5119e8441b0799b4d4db6632 (diff) | |
download | mongo-424e5742516e01be5ea7638712e273d6bc175dc4.tar.gz |
SERVER-57778 add QE and QO patch build variants
Diffstat (limited to 'evergreen/resmoke_tests_execute.sh')
-rw-r--r-- | evergreen/resmoke_tests_execute.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/evergreen/resmoke_tests_execute.sh b/evergreen/resmoke_tests_execute.sh index fbd3decd4a5..99daa890f0d 100644 --- a/evergreen/resmoke_tests_execute.sh +++ b/evergreen/resmoke_tests_execute.sh @@ -15,6 +15,31 @@ if [[ ${disable_unit_tests} = "false" && ! -f ${skip_tests} ]]; then # activate the virtualenv if it has been set up activate_venv + if [[ -f "patch_test_tags.tgz" ]]; then + tags_build_variant="${build_variant}" + + # TODO SERVER-56382: create a more robust mapping between query builders and existing required builders. + if [[ "${build_variant}" =~ .*"-query-patch-only" ]]; then + # Use the RHEL 8 all feature flags variant for the classic engine variant. The original + # classic engine variant is not a required builder and therefore not captured in patch + # test failure history. + tags_build_variant="enterprise-rhel-80-64-bit-dynamic-all-feature-flags-required" + fi + + $python buildscripts/testmatrix/getdisplaytaskname.py "${task_name}" "${build_variant}" >display_task_name.txt + display_task_name=$(cat display_task_name.txt) + + tar -xzf patch_test_tags.tgz + + calculated_tags_file_path="failedtesttags/${tags_build_variant}/${display_task_name}.yml" + + if [[ -f $calculated_tags_file_path ]]; then + extra_args="$extra_args --tagFile=failedtesttags/${tags_build_variant}/${display_task_name}.yml --includeWithAllTags=recent_failure" + else + echo "calculated tags file does not exist: $calculated_tags_file_path" + fi + fi + # on *SAN builds, extract the debug symbols so they're available # to the symbolizer if [[ -n "${san_options}" ]]; then |