From: William Lallemand Date: Wed, 18 Nov 2026 10:18:51 +0000 (+0000) Subject: CI: github: restrict WolfSSL sanitizer flags to debug jobs X-Git-Tag: v3.5-dev13~17 X-Git-Url: https://git.kaiwu.me/web//%22?a=commitdiff_plain;h=1b54817a7c15faac3c981adba2bbb8a7a308d477;p=haproxy.git CI: github: restrict WolfSSL sanitizer flags to debug jobs Only override WolfSSL CFLAGS and HAProxy ARCH_FLAGS when debug=1. Keep WolfSSL debugging and AddressSanitizer enabled for that variant. For debug=0, use the default WolfSSL compiler flags and HAProxy's default ARCH_FLAGS=-g, matching the flags of the removed VTest job. Leave the shared HAProxy debug defines unchanged. --- diff --git a/.github/workflows/wolfssl.yml b/.github/workflows/wolfssl.yml index 3d4c5eb2c..2a9762766 100644 --- a/.github/workflows/wolfssl.yml +++ b/.github/workflows/wolfssl.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: wolfssl: [5.7.0] - # Cover both normal builds and WolfSSL's --enable-debug configuration. + # Keep normal build flags at debug=0; enable WolfSSL debugging and ASan at debug=1. debug: [0, 1] runs-on: ubuntu-latest if: ${{ github.repository_owner == 'haproxy' || github.event_name == 'workflow_dispatch' }} @@ -26,7 +26,7 @@ jobs: sudo apt-get update -o Acquire::Languages=none -o Acquire::Translation=none sudo apt-get --no-install-recommends -y install socat gdb jose - name: Install WolfSSL - run: env WOLFSSL_VERSION=${{ matrix.wolfssl }} WOLFSSL_DEBUG=${{ matrix.debug }} CFLAGS="-fsanitize=address -g" scripts/build-ssl.sh + run: env WOLFSSL_VERSION=${{ matrix.wolfssl }} WOLFSSL_DEBUG=${{ matrix.debug }} ${{ matrix.debug == 1 && 'CFLAGS="-fsanitize=address -g"' || '' }} scripts/build-ssl.sh - name: Compile HAProxy run: | make -j$(nproc) ERR=1 CC=gcc TARGET=linux-glibc \ @@ -34,7 +34,7 @@ jobs: SSL_LIB=${HOME}/opt/lib SSL_INC=${HOME}/opt/include \ DEBUG="-DDEBUG_POOL_INTEGRITY -DDEBUG_UNIT" \ ADDLIB="-Wl,-rpath,/usr/local/lib/ -Wl,-rpath,$HOME/opt/lib/" \ - ARCH_FLAGS="-ggdb3 -fsanitize=address" + ${{ matrix.debug == 1 && 'ARCH_FLAGS="-ggdb3 -fsanitize=address"' || '' }} sudo make install - name: Show HAProxy version id: show-version