From be3da18a48528ed0c22db27ec4d68b07c79f4d45 Mon Sep 17 00:00:00 2001 From: "Douglas Cerna (Soy Douglas)" Date: Mon, 14 Oct 2024 19:49:47 +0000 Subject: [PATCH] Show mysql logs on failures --- .github/workflows/archivematica-acceptance-tests.yml | 5 +++++ .github/workflows/archivematica-upgrade.yml | 5 +++++ .github/workflows/dip-upload.yml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/.github/workflows/archivematica-acceptance-tests.yml b/.github/workflows/archivematica-acceptance-tests.yml index acba659..87ce0a5 100644 --- a/.github/workflows/archivematica-acceptance-tests.yml +++ b/.github/workflows/archivematica-acceptance-tests.yml @@ -134,6 +134,11 @@ jobs: -u ubuntu \ -e "archivematica_src_am_version=${{ env.am_version }} archivematica_src_ss_version=${{ env.ss_version }}" \ -vvv + - name: "Debug" + if: ${{ failure() }} + working-directory: "${{ github.workspace }}/tests/archivematica-acceptance-tests" + run: | + podman-compose exec -u root archivematica bash -c "journalctl -xeu mysql.service --no-pager" - name: "Disable machine learning in Elasticsearch" working-directory: "${{ github.workspace }}/tests/archivematica-acceptance-tests" run: | diff --git a/.github/workflows/archivematica-upgrade.yml b/.github/workflows/archivematica-upgrade.yml index d30a17f..e4ddc54 100644 --- a/.github/workflows/archivematica-upgrade.yml +++ b/.github/workflows/archivematica-upgrade.yml @@ -70,6 +70,11 @@ jobs: -e "archivematica_src_configure_am_site_url=http://archivematica" \ -e "archivematica_src_configure_ss_url=http://archivematica:8000" \ -vvv + - name: "Debug" + if: ${{ failure() }} + working-directory: "${{ github.workspace }}/tests/archivematica-upgrade" + run: | + podman-compose exec -u root archivematica bash -c "journalctl -xeu mysql.service --no-pager" - name: "Get the Archivematica version" run: | curl \ diff --git a/.github/workflows/dip-upload.yml b/.github/workflows/dip-upload.yml index cb87397..ecab31a 100644 --- a/.github/workflows/dip-upload.yml +++ b/.github/workflows/dip-upload.yml @@ -75,6 +75,11 @@ jobs: -u ubuntu \ -e "archivematica_src_am_version=${{ env.am_version }} archivematica_src_ss_version=${{ env.ss_version }}" \ -vvv + - name: "Debug" + if: ${{ failure() }} + working-directory: "${{ github.workspace }}/tests/dip-upload" + run: | + podman-compose exec -u root archivematica bash -c "journalctl -xeu mysql.service --no-pager" - name: "Add the ubuntu user to the archivematica group" working-directory: "${{ github.workspace }}/tests/dip-upload" run: |