Skip to content

Commit

Permalink
ci: Clean up potentially leftover state in case job was cancelled
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
def- committed Jan 29, 2025
1 parent 19a17fd commit 1e1eb50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/plugins/mzcompose/hooks/pre-exit
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,7 @@ ci_unimportant_heading ":docker: Cleaning up after mzcompose"
run kill || true
run rm --force -v
run down --volumes

ci_unimportant_heading "terraform: Destroying leftover state in case job was cancelled or timed out..."
bin/ci-builder run stable terraform -chdir=test/terraform/aws destroy || true
bin/ci-builder run stable terraform -chdir=test/terraform/gcp destroy || true

0 comments on commit 1e1eb50

Please sign in to comment.