]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: github: improve the AWS-LC job
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 25 Nov 2024 10:14:33 +0000 (11:14 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 25 Nov 2024 10:14:33 +0000 (11:14 +0100)
Like the WolfSSL job, improve the AWS-LC job by adding the socat command
so all SSL reg-tests can be run.
Also add gdb and output of corefiles.

.github/workflows/aws-lc.yml

index a8d841fd9a9fdcf86661f948fef53c55dc724583..d55e8d1067d84177d563fe71f75706b430a97250 100644 (file)
@@ -28,6 +28,10 @@ jobs:
         with:
           path: '~/opt/'
           key: ssl-${{ steps.get_aws_lc_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 AWS-LC
         if: ${{ steps.cache_ssl.outputs.cache-hit != 'true' }}
         run: env ${{ steps.get_aws_lc_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