From 81eebc10d84d093b12b616143398bca955b68769 Mon Sep 17 00:00:00 2001 From: Twenty Panda Date: Sun, 17 Mar 2024 21:19:13 +0100 Subject: [PATCH] show the full logs in a separate step for forensic analysis --- .forgejo/workflows/end-to-end.yml | 6 ++++++ lib/lib.sh | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/.forgejo/workflows/end-to-end.yml b/.forgejo/workflows/end-to-end.yml index 04072cd..e136f40 100644 --- a/.forgejo/workflows/end-to-end.yml +++ b/.forgejo/workflows/end-to-end.yml @@ -46,6 +46,9 @@ jobs: - uses: https://code.forgejo.org/actions/checkout@v4 - uses: ./.forgejo/prepare-end-to-end - run: su forgejo -c "./end-to-end.sh test_packages" + - name: full logs + if: always() + run: su forgejo -c "./end-to-end.sh show_logs" upgrade: name: upgrade and storage @@ -70,3 +73,6 @@ jobs: - uses: ./.forgejo/prepare-end-to-end - run: su forgejo -c "./end-to-end.sh test_upgrades" - run: su forgejo -c "./end-to-end.sh test_storage" + - name: full logs + if: always() + run: su forgejo -c "./end-to-end.sh show_logs" diff --git a/lib/lib.sh b/lib/lib.sh index fa6375f..349d1a4 100644 --- a/lib/lib.sh +++ b/lib/lib.sh @@ -298,6 +298,13 @@ function stop() { cleanup_logs } +function show_logs() { + ( + cd $DIR + grep '' *.out + ) +} + function run() { local fun=$1 shift