Skip to content

Commit

Permalink
ci: run unit tests with sanitizers
Browse files Browse the repository at this point in the history
Running with sanitizers in CI will help prevent us from introducing new
memory safety errors.
  • Loading branch information
morehouse authored and cdecker committed Jun 7, 2023
1 parent debec7d commit 117b80d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,40 @@ jobs:
./configure
make -j $(nproc) check-units installcheck
check-units-sanitizers:
name: Run unit tests with ASan and UBSan
runs-on: ubuntu-22.04
timeout-minutes: 30
env:
COMPAT: 1
ASAN: 1
UBSAN: 1
VALGRIND: 0
needs:
- prebuild
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7

- name: Install dependencies
run: |
bash -x .github/scripts/setup.sh
sudo apt-get install -y -qq lowdown
pip install -U pip wheel poetry
# Export and then use pip to install into the current env
poetry export -o /tmp/requirements.txt --without-hashes --with dev
pip install -r /tmp/requirements.txt
- name: Build
run: |
./configure CC=clang
make -j $(nproc) check-units installcheck
check-fuzz:
name: Run fuzz regression tests
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 117b80d

Please sign in to comment.