From 83ce55f860671f1a00ec548da23eefc49367c042 Mon Sep 17 00:00:00 2001 From: Seth Levine Date: Mon, 15 Apr 2024 12:15:06 -0400 Subject: [PATCH] Keep EC2 Integration Tests Open --- .github/workflows/ec2-integration-test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ec2-integration-test.yml b/.github/workflows/ec2-integration-test.yml index cfdff394da..eb175a7268 100644 --- a/.github/workflows/ec2-integration-test.yml +++ b/.github/workflows/ec2-integration-test.yml @@ -84,7 +84,7 @@ jobs: if: steps.cache_if_success.outputs.cache-hit != 'true' uses: nick-fields/retry@v2 with: - max_attempts: 3 + max_attempts: 1 timeout_minutes: 60 retry_wait_seconds: 5 command: | @@ -113,16 +113,16 @@ jobs: -var="excluded_tests='${{ matrix.arrays.excludedTests }}'" \ -var="ssh_key_name=${{env.KEY_NAME}}" \ -var="test_dir=${{ matrix.arrays.test_dir }}" \ - -var="agent_start=${{ matrix.arrays.agentStartCommand }}"; then terraform destroy -var="region=${{ inputs.region }}" -var="ami=${{ matrix.arrays.ami }}" -auto-approve + -var="agent_start=${{ matrix.arrays.agentStartCommand }}"; then echo done else - terraform destroy -var="region=${{ inputs.region }}" -var="ami=${{ matrix.arrays.ami }}" -auto-approve && exit 1 + echo fail && exit 1 fi #This is here just in case workflow cancel - name: Terraform destroy if: ${{ cancelled() || failure() }} uses: nick-fields/retry@v2 with: - max_attempts: 3 + max_attempts: 1 timeout_minutes: 8 retry_wait_seconds: 5 - command: cd ${{ inputs.test_dir }} && terraform destroy -var="region=${{ inputs.region }}" -var="ami=${{ matrix.arrays.ami }}" --auto-approve \ No newline at end of file + command: cd ${{ inputs.test_dir }} \ No newline at end of file