diff options
author | David Bradford <david.bradford@mongodb.com> | 2021-05-11 13:26:16 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-12 00:38:08 +0000 |
commit | d2da02cf6654b60948408cdcaaf9c520e8d1bc0e (patch) | |
tree | 8c11f430ec8068f5eb90a632e3ffc6558982eeeb /etc | |
parent | 100811c3e5cc533c922e23ede0e5935eabc5da0c (diff) | |
download | mongo-d2da02cf6654b60948408cdcaaf9c520e8d1bc0e.tar.gz |
SERVER-56751: Add patch build task for todo comment checks
Diffstat (limited to 'etc')
-rw-r--r-- | etc/evergreen.yml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index 022921feaef..22caadc1485 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -7799,6 +7799,7 @@ tasks: - *f_expansions_write - func: "set task expansion macros" - *f_expansions_write + - func: "configure evergreen api credentials" - func: "set up venv" - command: shell.exec type: test @@ -7806,13 +7807,15 @@ tasks: working_dir: src shell: bash script: | + ${activate_virtualenv} + set -o verbose set -o errexit + # Since `commit_message` is an evergreen expansion, we need a way to ensure we + # properly deal with any special characters that could cause issues (like "). To + # do this, we will write it out to a file, then read that file into a variable. if [ "${is_commit_queue}" = "true" ]; then - # Since `commit_message` is an evergreen expansion, we need a way to ensure we - # properly deal with any special characters that could cause issues (like "). To - # do this, we will write it out to a file, then read that file into a variable. cat > commit_message.txt <<END_OF_COMMIT_MSG ${commit_message} END_OF_COMMIT_MSG @@ -7820,8 +7823,9 @@ tasks: commit_message_content=$(cat commit_message.txt) rm commit_message.txt - ${activate_virtualenv} $python buildscripts/todo_check.py --commit-message "$commit_message_content" + else + $python buildscripts/todo_check.py --patch-build ${version_id} fi - <<: *task_template @@ -9792,6 +9796,7 @@ buildvariants: - name: test_api_version_compatibility - name: burn_in_tests_gen - name: burn_in_tests_multiversion_gen + - name: check_for_todos - name: .aggfuzzer - name: .aggregation - name: audit |