From 917b0c2a7e1a308af18dc6520ec96edaf1873d86 Mon Sep 17 00:00:00 2001 From: "Douglas Cerna (Soy Douglas)" Date: Tue, 30 Jan 2024 16:43:06 +0100 Subject: [PATCH] Save AM docker logs on AMAUAT failures --- .github/workflows/acceptance-test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/acceptance-test.yml b/.github/workflows/acceptance-test.yml index 60a7b9b99a..8ef4d18974 100644 --- a/.github/workflows/acceptance-test.yml +++ b/.github/workflows/acceptance-test.yml @@ -60,3 +60,18 @@ jobs: - name: "Run AMAUAT tag" run: | make -C hack/ test-at-behave TAGS="${{ matrix.tag }}" BROWSER=${{ matrix.browser }} + - name: "Save docker logs on failure" + if: failure() + run: | + mkdir docker-logs + docker compose logs --no-log-prefix --no-color archivematica-mcp-server > docker-logs/mcp-server.log + docker compose logs --no-log-prefix --no-color archivematica-mcp-client > docker-logs/mcp-client.log + docker compose logs --no-log-prefix --no-color archivematica-dashboard > docker-logs/dashboard.log + docker compose logs --no-log-prefix --no-color archivematica-storage-service > docker-logs/storage-service.log + working-directory: ./hack + - name: "Upload docker logs on failure" + if: failure() + uses: "actions/upload-artifact@v4" + with: + name: "docker-logs-${{ matrix.tag }}-${{ matrix.browser }}" + path: "./hack/docker-logs"