Skip to content

declare boringssl as system library, cleanup log entry #2288

declare boringssl as system library, cleanup log entry

declare boringssl as system library, cleanup log entry #2288

Workflow file for this run

name: sanitizers
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
sanitize:
strategy:
fail-fast: false
matrix:
sanitizer:
- asan
- lsan
- tsan
- ubsan
tls:
- tls
- plain
runs-on: ubuntu-20.04
services:
couchbase:
image: couchbase:enterprise-7.2.3
ports:
- 8091-8096:8091-8096
- 11210:11210
- 18091-18096:18091-18096
- 11207:11207
steps:
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libssl-dev cmake curl wget gnupg2 gdb
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo bash -c "echo 'deb https://apt.llvm.org/focal/ llvm-toolchain-focal-13 main' >> /etc/apt/sources.list"
sudo apt-get update -y
sudo apt-get install -y clang-13 clang-tools-13
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Initialize couchbase
env:
CB_TRAVEL_SAMPLE: yes
run: ./bin/init-cluster
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
- name: Build tests
env:
CB_SANITIZER: ${{ matrix.sanitizer }}
CB_CLANG: clang-13
CB_CLANGXX: clang++-13
run: ./bin/build-tests
- name: Check couchbase
run: ./bin/check-cluster
- name: Run tests
timeout-minutes: 30
env:
CB_SANITIZER: ${{ matrix.sanitizer }}
TEST_SERVER_VERSION: 7.2.3
TEST_CONNECTION_STRING: ${{ matrix.tls == 'tls' && 'couchbases://127.0.0.1?trust_certificate=cluster.crt' || 'couchbase://127.0.0.1' }}
TEST_LOG_LEVEL: trace
run: ./bin/run-unit-tests