Skip to content

Sanitize

Sanitize #2

Workflow file for this run

name: Sanitize
on:
workflow_run:
workflows: ["Tests"]
types: [completed]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build_and_run_sanitizer:
name: ${{ matrix.mode }}${{ matrix.fuzz == 'on' && '-fuzz' || '' }}
strategy:
matrix:
mode: ["asan", "msan", "tsan", "ubsan"]
fuzz: ["off"]
include:
- mode: "asan"
fuzz: "on"
fail-fast: false
runs-on: ubuntu-24.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
- name: Purge runner
# Strip the runner to avoid space quota exceeding
run: |
sudo apt-get purge -y \
azure-cli microsoft-edge-stable google-cloud-cli \
google-chrome-stable temurin-21-jdk temurin-17-jdk \
temurin-11-jdk dotnet-sdk-8.0 firefox temurin-8-jdk \
powershell libllvm17t64 libllvm18 libllvm16t64 \
openjdk-21-jre-headless mysql-server-core-8.0
sudo apt-get autoremove
sudo apt-get autoclean
- name: Build [${{ github.job }}]
run: |
docker build -f ${{ github.workspace }}/docker/sanitizers/Dockerfile \
--no-cache --build-arg SANITIZER_NAME=${{ matrix.mode }} --build-arg \
FUZZER=${{ matrix.fuzz }} -t sanitizer-${{ github.job }} .
- name: UT [c++,${{ github.job }}]
if: ${{ matrix.fuzz == 'off' }}
run: docker run --rm sanitizer-${{ github.job }}
- name: IT [c++,${{ github.job }}]
if: ${{ matrix.fuzz == 'off' }}
run: |
docker run --rm sanitizer-${{ github.job }} /blazingmq/cmake.bld/Linux/run-it.sh -k breathing --reruns=3 --bmq-tolerate-dirty-shutdown