From 9acff95fd661cc60b11058ae0cb680762a7c6ba0 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Mon, 9 Oct 2023 09:32:34 -0400 Subject: [PATCH] chore(e2e): Add logs for aws dependencies error (#3796) --- .github/workflows/enos-run.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/enos-run.yml b/.github/workflows/enos-run.yml index bdb0e24e4e..9025fda5f8 100644 --- a/.github/workflows/enos-run.yml +++ b/.github/workflows/enos-run.yml @@ -289,6 +289,17 @@ jobs: run: | export ENOS_VAR_enos_user=$GITHUB_ACTOR && \ enos scenario destroy --timeout 60m0s --chdir ./enos ${{ matrix.filter }} + - name: Get logs for aws dependencies error + # Retrieve logs from the terraform to help diagnose some aws cleanup issues + if: (contains(matrix.filter, 'e2e_aws') || matrix.filter == 'e2e_database') && steps.destroy.outcome == 'failure' + continue-on-error: true + run: | + enos scenario exec --cmd graph --chdir ./enos ${{ matrix.filter }} + TF_DIR=$(find ./enos/.enos/ -type d -mindepth 1 -maxdepth 1 | tail -1) + pushd "${TF_DIR}" + terraform state list + terraform state show module.create_base_infra.aws_route.igw + popd - name: Destroy Enos scenario (Retry) if: ${{ always() && steps.destroy.outcome == 'failure' }} run: |