Skip to content

Commit

Permalink
Add support for canceled/failed integration_test pipeline
Browse files Browse the repository at this point in the history
If a buildkite pipeline fails or is cancelled sufficient signals are NOT
passed to the script that was running within a docker container to
allow the script to gracefully clean up after itself.

As such there is a high potential for orphaned resources to be left
running in AWS if this happens to the integration_test pipeline.

This commit attempts to add expeditor listeners to cancellation or
failures of the integration_test pipeline and attempt to perform the
cleanup of orphaned resources associated with the aborted job.

Signed-off-by: Christopher A. Snapp <[email protected]>
  • Loading branch information
snapp committed Dec 31, 2019
1 parent 12c67cf commit 804ce23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ subscriptions:
post_commit: true
- bash:.expeditor/purge_cdn.sh:
post_commit: true
- workload: buildkite_build_canceled:{{agent_id}}:integration_test:*
actions:
- bash:.expeditor/integration_test.pipeline.sh destroy
- workload: buildkite_build_failed:{{agent_id}}:integration_test:*
actions:
- bash:.expeditor/integration_test.pipeline.sh destroy

promote:
actions:
Expand Down

0 comments on commit 804ce23

Please sign in to comment.