Skip to content

Commit

Permalink
WORKFLOW
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Dec 26, 2023
1 parent cfe9ae9 commit 8b2dfb5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/code_sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,24 @@ on: [push, pull_request, workflow_dispatch]

jobs:
linux_sanitizers:
name: Linux [${{ matrix.SANITIZER }}] [${{ matrix.BACKEND }} | ${{ matrix.COMPILER }}]
name: Linux [${{ matrix.SANITIZER.name }}] [${{ matrix.BACKEND }} | ${{ matrix.COMPILER }}]
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
BACKEND: [lmdb, rocksdb]
COMPILER: [clang]
SANITIZER: [ASAN, ASAN_INT, TSAN]
SANITIZER:
- { name: UBSAN, ignore_errors: false }
- { name: ASAN, ignore_errors: true }
- { name: ASAN_INT, ignore_errors: true }
- { name: TSAN, ignore_errors: false }
runs-on: ubuntu-22.04
env:
COMPILER: ${{ matrix.COMPILER }}
BACKEND: ${{ matrix.BACKEND }}
SANITIZER: ${{ matrix.SANITIZER }}
SANITIZER: ${{ matrix.SANITIZER.name }}
IGNORE_ERRORS: ${{ matrix.SANITIZER.ignore_errors }}
TEST_USE_ROCKSDB: ${{ matrix.BACKEND == 'rocksdb' && '1' || '0' }}
DEADLINE_SCALE_FACTOR: ${{ matrix.BACKEND == 'rocksdb' && '2' || '1' }}
ASAN_OPTIONS: log_exe_name=1:log_path=sanitizer_report:suppressions=../asan_suppressions
Expand Down Expand Up @@ -50,6 +55,6 @@ jobs:

- name: Reports
if: steps.build.outcome == 'success' && (success() || failure())
continue-on-error: true
continue-on-error: ${{ env.IGNORE_ERRORS == 'true' }}
run: ../ci/tests/show-sanitizer-reports.sh
working-directory: build
3 changes: 3 additions & 0 deletions ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ if [[ ${SANITIZER:-} ]]; then
TSAN)
CMAKE_SANITIZER="-DNANO_TSAN=ON"
;;
UBSAN)
CMAKE_SANITIZER="-DNANO_UBSAN=ON"
;;
*)
echo "Unknown sanitizer: '${SANITIZER}'"
exit 1
Expand Down

0 comments on commit 8b2dfb5

Please sign in to comment.