diff options
author | Robert Guo <robertguo@me.com> | 2020-03-11 07:17:08 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-11 15:19:51 +0000 |
commit | 5c7ca28df154f602f268bf33f5f5ea5370dd1881 (patch) | |
tree | 30f7c7ca94f96360ef59736fccdf923b88f7ab92 /etc/system_perf.yml | |
parent | 64adbd359a562ec06c1ce51f63a46f09237646a8 (diff) | |
download | mongo-5c7ca28df154f602f268bf33f5f5ea5370dd1881.tar.gz |
SERVER-46766 call infrastructure teardown after every perf run
(cherry picked from commit 57f73637ebb18f7a33b6255758fe110e47b94165)
Diffstat (limited to 'etc/system_perf.yml')
-rwxr-xr-x | etc/system_perf.yml | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/etc/system_perf.yml b/etc/system_perf.yml index 98f9e7cfde7..b49e9406461 100755 --- a/etc/system_perf.yml +++ b/etc/system_perf.yml @@ -4,6 +4,24 @@ command_type: system pre: post: + # Do cluster teardown first to ensure runtime is below Evergreen's post timeout. Other post tasks + # will not have been run if the timeout is exceeded. + - command: shell.exec + params: + working_dir: work + script: | + source ./dsienv.sh + if [ -e /data/infrastructure_provisioning/terraform/provisioned.${cluster} ]; then + mark_idle.sh + fi + - command: shell.exec + params: + working_dir: work + script: | + set -e + set -v + source ./dsienv.sh + ../src/dsi/dsi/run-dsi infrastructure_teardown.py - command: shell.exec params: working_dir: work @@ -37,15 +55,6 @@ post: params: name: "perf" file: "work/perf.json" - - command: shell.exec - params: - working_dir: work - script: | - source ./dsienv.sh - if [ -e /data/infrastructure_provisioning/terraform/provisioned.${cluster} ]; then - mark_idle.sh - fi - - func: "upload pip requirements" - command: shell.exec params: |