From 315a5d342f23bb3f0500e9f3fa2ab4ea2406eed2 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Mon, 23 Oct 2023 10:08:28 -0400 Subject: [PATCH] chore(e2e): Rename log files to ensure uniqueness This updates the log files to be based on the scenario name instead of just the test package in case some scenarios run the same test package --- .github/workflows/enos-run.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/enos-run.yml b/.github/workflows/enos-run.yml index 5c41c12ced9..42bf8d82392 100644 --- a/.github/workflows/enos-run.yml +++ b/.github/workflows/enos-run.yml @@ -249,11 +249,18 @@ jobs: mkdir -p ./enos/terraform-plugin-cache export ENOS_VAR_enos_user=$GITHUB_ACTOR && \ enos scenario launch --timeout 60m0s --chdir ./enos ${{ matrix.filter }} + - name: Rename e2e tests output + run : | + pushd enos + scenario=${{ matrix.filter }} + for f in *.log; do mv -- "$f" "${f%.log}_${scenario%% *}.log"; done + popd + // echo ${ss%% *} - name: Upload e2e tests output uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: name: test-e2e-output - path: enos/test*.log + path: enos/*.log retention-days: 5 - name: Get logs from postgres container # Retrieve logs from the postgres container on a failed