name: Nightly Sanitizers on: schedule: - cron: '0 6 * * *' workflow_dispatch: env: PIP_BREAK_SYSTEM_PACKAGES: 1 RUNTIME_CHECKS: 1 jobs: asan-ubsan: name: ASan + UBSan (linux, runtime checks on) runs-on: ubuntu-24.04 timeout-minutes: 300 steps: - uses: actions/checkout@v4 - name: Checkout dataset and benchmarks run: | git submodule update --init dataset benchmark # needed for demo db - name: Install build dependencies run: | sudo apt-get update sudo apt-get install -y cmake ninja-build python3 python3-pip git ccache curl - name: Setup ccache uses: hendrikmuhs/ccache-action@5ebbd400eff9e74630f759d94ddd7b6c26299639 # v1.2 with: key: nightly-sanitizers-asan-ubsan-${{ runner.os }}-${{ github.ref }} max-size: 2G restore-keys: | nightly-sanitizers-asan-ubsan-${{ runner.os }}-refs/heads/main nightly-sanitizers-asan-ubsan-${{ runner.os }}- - name: Build (RelWithDebInfo, ASan+UBSan) run: BM_MALLOC=1 ASAN=1 UBSAN=1 make relwithdebinfo NUM_THREADS=$(nproc) env: CFLAGS: -fno-sanitize=alignment CXXFLAGS: -fno-sanitize=alignment - name: Install uv run: pip3 install uv - name: Generate test fixtures run: uv run --with pyarrow python3 scripts/generate-dictionary-bug-fixture.py - name: Test run: BM_MALLOC=1 ASAN=1 UBSAN=1 make test NUM_THREADS=$(nproc) env: ASAN_OPTIONS: detect_leaks=0:abort_on_error=1 UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1 tsan: name: TSan (linux, signal-gathering, non-blocking) runs-on: ubuntu-24.04 timeout-minutes: 300 continue-on-error: true steps: - uses: actions/checkout@v4 - name: Checkout dataset and benchmarks run: | git submodule update --init dataset benchmark # needed for demo db - name: Install build dependencies run: | sudo apt-get update sudo apt-get install -y cmake ninja-build python3 python3-pip git ccache curl - name: Setup ccache uses: hendrikmuhs/ccache-action@5ebbd400eff9e74630f759d94ddd7b6c26299639 # v1.2 with: key: nightly-sanitizers-tsan-${{ runner.os }}-${{ github.ref }} max-size: 2G restore-keys: | nightly-sanitizers-tsan-${{ runner.os }}-refs/heads/main nightly-sanitizers-tsan-${{ runner.os }}- - name: Build (RelWithDebInfo, TSan) run: BM_MALLOC=1 TSAN=1 make relwithdebinfo NUM_THREADS=$(nproc) - name: Install uv run: pip3 install uv - name: Generate test fixtures run: uv run --with pyarrow python3 scripts/generate-dictionary-bug-fixture.py - name: Test run: BM_MALLOC=1 TSAN=1 make test NUM_THREADS=$(nproc) env: TSAN_OPTIONS: halt_on_error=0