]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: github: improve the Wolfssl job
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 25 Nov 2024 09:54:39 +0000 (10:54 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 25 Nov 2024 10:00:03 +0000 (11:00 +0100)
Improve the WolfSSL job by adding the missing socat command.
Also add gdb and output corefiles like it's done on the VTest job.

.github/workflows/wolfssl.yml

index c33e89e128539d730d333a086c356ed6a273cab5..35247c3e0bd08bdb7e1756e1b6a5a32572939ebc 100644 (file)
@@ -28,6 +28,10 @@ jobs:
         with:
           path: '~/opt/'
           key: ssl-${{ steps.get_wolfssl_release.outputs.result }}-Ubuntu-latest-gcc
+      - name: Install apt dependencies
+        run: |
+          sudo apt-get update -o Acquire::Languages=none -o Acquire::Translation=none
+          sudo apt-get --no-install-recommends -y install socat gdb
       - name: Install WolfSSL
         if: ${{ steps.cache_ssl.outputs.cache-hit != 'true' }}
         run: env ${{ steps.get_wolfssl_release.outputs.result }} scripts/build-ssl.sh
@@ -64,3 +68,17 @@ jobs:
             echo "::endgroup::"
           done
           exit 1
+      - name: Show coredumps
+        if: ${{ failure() && steps.vtest.outcome == 'failure' }}
+        run: |
+          failed=false
+          shopt -s nullglob
+          for file in /tmp/core.*; do
+            failed=true
+            printf "::group::"
+            gdb -ex 'thread apply all bt full' ./haproxy $file
+            echo "::endgroup::"
+          done
+          if [ "$failed" = true ]; then
+            exit 1;
+          fi