From 1aa7b018f2c7e8a841fdd49a3be5ef8b1c0096e4 Mon Sep 17 00:00:00 2001 From: esrrhs Date: Mon, 16 Nov 2026 21:49:11 +0800 Subject: [PATCH] ci: give ASAN separate bounded build and test budgets --- .github/workflows/build.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4fa377a9..1e16d1aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,9 @@ jobs: build_type: [debug, release, asan, cov] runs-on: ubuntu-24.04 - timeout-minutes: 60 + # Cold ASAN builds plus the full instrumented suite can exceed one hour. + # Keep other variants unchanged and retain separate bounded build/test steps. + timeout-minutes: ${{ matrix.build_type == 'asan' && 120 || 60 }} services: mysql: @@ -173,6 +175,17 @@ jobs: cmake ${CMAKE_FLAGS} .. make -j$(nproc) ccache -s + + - name: Test (${{ matrix.build_type }}) + timeout-minutes: 60 + working-directory: build + run: | + set -x + # Step-local exports from Build do not carry over to this step. + export CPM_SOURCE_CACHE=$HOME/.cache/CPM + if [ "${{ matrix.build_type }}" = asan ]; then + export ASAN_OPTIONS=detect_leaks=0 + fi # Run all tests (including MySQL / Redis integration tests) # Must run from test/lua so relative Lua file paths resolve correctly (cd $GITHUB_WORKSPACE/test/lua && $GITHUB_WORKSPACE/build/bin/unit_tests)