Skip to content

Commit 1e1eb50

Browse files
committed
ci: Clean up potentially leftover state in case job was cancelled
Happened in https://buildkite.com/materialize/nightly/builds/10992#0194ae51-f610-4440-84f7-84fb30f17361 The usual cleanup logic can't be run even though it's in a `finally` block in our Python test code. The `pre-exit` hook is still being run.
1 parent 19a17fd commit 1e1eb50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/plugins/mzcompose/hooks/pre-exit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,7 @@ ci_unimportant_heading ":docker: Cleaning up after mzcompose"
145145
run kill || true
146146
run rm --force -v
147147
run down --volumes
148+
149+
ci_unimportant_heading "terraform: Destroying leftover state in case job was cancelled or timed out..."
150+
bin/ci-builder run stable terraform -chdir=test/terraform/aws destroy || true
151+
bin/ci-builder run stable terraform -chdir=test/terraform/gcp destroy || true

0 commit comments

Comments
 (0)