From 55a8949f2af5ee52452b23769079649ff1fd79f7 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Mon, 8 Dec 2025 21:26:02 -0600 Subject: [PATCH] GHA: Always grab the test logs, core dumps --- .github/workflows/linux.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index c4a65ee62..99c9195db 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -108,11 +108,14 @@ jobs: cd /tmp/h5l tar czf $HOME/heimdal-install-linux-${{ matrix.compiler }}.tgz . - name: Core dump stacks + if: ${{ always() }} run: | + find . -name '*core*' -print echo "thread apply all bt" > /tmp/x - find . -name core -print | while read core; do gdb -batch -x x `file "$core"|sed -e "s/^[^']*'//" -e "s/[ '].*$//"` "$core"; done + find . -name core\* -print | while read core; do gdb -batch -x x `file "$core"|sed -e "s/^[^']*'//" -e "s/[ '].*$//"` "$core"; done if [ "$(find . -name core -print | wc -l)" -gt 0 ]; then false; fi - name: Test logs + if: ${{ always() }} run: | find build -depth -name \*.trs | xargs grep -lw FAIL | sed -e 's/trs$/log/' | tar -czf $HOME/logs-linux-${{ matrix.compiler }}.tgz --verbatim-files-from --files-from - find build -name \*.trs | xargs grep -lw FAIL | sed -e 's/trs$/log/' | xargs cat