summaryrefslogtreecommitdiff
path: root/etc/system_perf.yml
diff options
context:
space:
mode:
Diffstat (limited to 'etc/system_perf.yml')
-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