Skip to content

Commit

Permalink
Update automated terraform destroy (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenxu95 authored Mar 22, 2023
1 parent b44f8a7 commit 15a45fa
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/periodic-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,21 @@ jobs:
working-directory: integration_tests/sdk
run: pytest aqueduct_tests/ -rP -vv -n 4

- uses: actions/upload-artifact@v3
- name: Teardown K8s Cluster
if: always()
uses: nick-fields/retry@v2
with:
max_attempts: 2
retry_on: error
timeout_minutes: 20
retry_wait_seconds: 300
command: |
cd integration_tests/sdk/compute/k8s
terraform destroy --auto-approve
# This directory is quite large, so we only upload it on failure.
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: Terraform State
path: |
Expand All @@ -64,16 +77,6 @@ jobs:
with:
prefix: K8s Compute

- name: Teardown K8s Cluster
if: always()
uses: nick-fields/retry@v2
with:
max_attempts: 2
retry_on: error
command: |
cd integration_tests/sdk/compute/k8s
terraform destroy --auto-approve
# Sets it as an environmental variable.
- name: Get the Slack ID for the current oncall
if: always()
Expand Down

0 comments on commit 15a45fa

Please sign in to comment.