summaryrefslogtreecommitdiff
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 14:59:39 +0000
commit1abddc055527e3964b71acf98069f41d8e168e1c (patch)
tree462de3bb210d4adb0781de4c37eb445f810130e5
parentfcf0d0ed1ac4bb728cfbcc5597587c703a7f2323 (diff)
downloadmongo-1abddc055527e3964b71acf98069f41d8e168e1c.tar.gz
SERVER-46766 call infrastructure teardown after every perf run
(cherry picked from commit 57f73637ebb18f7a33b6255758fe110e47b94165) (cherry picked from commit 1a8bbca590b26bbe84d47eeb023258023ae9ee68)
-rw-r--r--etc/system_perf.yml27
1 files changed, 18 insertions, 9 deletions
diff --git a/etc/system_perf.yml b/etc/system_perf.yml
index 38d07e8ef00..5fbfec0b7f4 100644
--- 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
@@ -39,15 +57,6 @@ post:
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
-
- - command: shell.exec
- params:
working_dir: src
script: |
# removes files from the (local) scons cache when it's over a