From 6438b7e992aace97a814df8b15ca95f311ac0f74 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 18 Oct 2025 09:03:46 +0100 Subject: [PATCH] [Test] Disable leak detection for rspamadm and rspamc utilities Set ASAN_OPTIONS=detect_leaks=0 for CLI tools to avoid false positives, while rspamd daemon still has leak detection enabled --- .github/workflows/integration-test.yml | 3 +++ test/integration/scripts/integration-test.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 3587105241..00b02ae6ec 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -84,6 +84,9 @@ jobs: # Use rspamadm from build export PATH="${GITHUB_WORKSPACE}/install/bin:$PATH" + # Disable leak detection for rspamadm utility + export ASAN_OPTIONS=detect_leaks=0 + # Generate keypair for fuzzy worker KEYPAIR=$(rspamadm keypair -u) FUZZY_PRIVKEY=$(echo "$KEYPAIR" | grep privkey | cut -d'"' -f2) diff --git a/test/integration/scripts/integration-test.sh b/test/integration/scripts/integration-test.sh index c9c01606c5..4cc80a34d6 100755 --- a/test/integration/scripts/integration-test.sh +++ b/test/integration/scripts/integration-test.sh @@ -4,6 +4,9 @@ set -e +# Disable leak detection for rspamc utility to avoid false positives +export ASAN_OPTIONS=detect_leaks=0 + # Configuration RSPAMD_HOST=${RSPAMD_HOST:-localhost} CONTROLLER_PORT=${CONTROLLER_PORT:-50002} -- 2.47.3