From 5122ccc4a0c145e3be8c4149a68800af3a362187 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 23 Feb 2022 17:58:46 +0100 Subject: [PATCH] CI: github: enable pool debugging by default This enables DEBUG_MEMORY_POOLS and DEBUG_POOL_INTEGRITY so that by default the tests run under stricter checks, which are likely to catch more bugs. Note that these ones are permanently used in prod on haproxy.org. (cherry picked from commit a0a6911bdef2dfd908cd1ad1bd074d27f95a252c) Signed-off-by: Willy Tarreau --- .github/workflows/compliance.yml | 2 +- .github/workflows/vtest.yml | 2 +- .github/workflows/windows.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml index 3ce7178..0c48f52 100644 --- a/.github/workflows/compliance.yml +++ b/.github/workflows/compliance.yml @@ -33,7 +33,7 @@ jobs: ERR=1 \ TARGET=${{ matrix.TARGET }} \ CC=${{ matrix.CC }} \ - DEBUG=-DDEBUG_STRICT=1 \ + DEBUG="-DDEBUG_STRICT -DDEBUG_MEMORY_POOLS -DDEBUG_POOL_INTEGRITY" \ USE_OPENSSL=1 sudo make install - name: Show HAProxy version diff --git a/.github/workflows/vtest.yml b/.github/workflows/vtest.yml index b67090a..9662915 100644 --- a/.github/workflows/vtest.yml +++ b/.github/workflows/vtest.yml @@ -79,7 +79,7 @@ jobs: ERR=1 \ TARGET=${{ matrix.TARGET }} \ CC=${{ matrix.CC }} \ - DEBUG=-DDEBUG_STRICT=1 \ + DEBUG="-DDEBUG_STRICT -DDEBUG_MEMORY_POOLS -DDEBUG_POOL_INTEGRITY" \ ${{ join(matrix.FLAGS, ' ') }} \ ADDLIB="-Wl,-rpath,/usr/local/lib/ -Wl,-rpath,$HOME/opt/lib/" sudo make install diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 42bb4e8..ddb98c3 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -55,7 +55,7 @@ jobs: ERR=1 \ TARGET=${{ matrix.TARGET }} \ CC=${{ matrix.CC }} \ - DEBUG=-DDEBUG_STRICT=1 \ + DEBUG="-DDEBUG_STRICT -DDEBUG_MEMORY_POOLS -DDEBUG_POOL_INTEGRITY" \ ${{ join(matrix.FLAGS, ' ') }} - name: Show HAProxy version id: show-version -- 1.7.10.4