summaryrefslogtreecommitdiff
path: root/etc/system_perf.yml
diff options
context:
space:
mode:
authorRobert Guo <robertguo@me.com>2020-03-11 07:17:08 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-11 15:19:51 +0000
commit5c7ca28df154f602f268bf33f5f5ea5370dd1881 (patch)
tree30f7c7ca94f96360ef59736fccdf923b88f7ab92 /etc/system_perf.yml
parent64adbd359a562ec06c1ce51f63a46f09237646a8 (diff)
downloadmongo-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-xetc/system_perf.yml27
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: