reduce test log level to avoid too much debug logs (#771) #1124
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tsan Build & Test Parallel | |
on: | |
push: | |
branches: [ "main", "0.*" ] | |
pull_request: | |
branches: [ "main", "0.*" ] | |
jobs: | |
build_tsan: | |
name: Build with TSAN | |
runs-on: ubuntu-22.04 | |
concurrency: | |
group: test_tsan_x86-${{ github.event.pull_request.number }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
container: | |
image: vsaglib/vsag:ci-x86 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Load Cache | |
uses: actions/cache@v4 | |
with: | |
path: ./build.tar.gz | |
key: build-tsan-${{ hashFiles('./CMakeLists.txt') }}-${{ hashFiles('./.circleci/fresh_ci_cache.commit') }} | |
- name: Extract | |
run: | | |
if [ -f build.tar.gz ]; then | |
tar -xzvf build.tar.gz; | |
rm -rf build.tar.gz; | |
else | |
mkdir -p build; | |
fi | |
- name: Make Tsan | |
run: export CMAKE_GENERATOR="Ninja"; make tsan | |
- name: Save Test | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ./build | |
name: test_x86-${{ github.run_id }}-tsan | |
compression-level: 1 | |
retention-days: 1 | |
overwrite: 'true' | |
- name: Compress | |
run: | | |
sudo apt install pigz -y; | |
tar -cf - ./build | pigz -p 4 > build.tar.gz | |
test_tsan: | |
name: Run TSAN Tests | |
needs: build_tsan | |
runs-on: ubuntu-22.04 | |
concurrency: | |
group: test_tsan_x86-${{ github.event.pull_request.number }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
container: | |
image: vsaglib/vsag:ci-x86 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Clean Env | |
run: rm -rf ./build | |
- name: Download Test | |
uses: actions/download-artifact@v4 | |
with: | |
name: test_x86-${{ github.run_id }}-tsan | |
path: ./build/ | |
- name: Run TSAN tests | |
run: | | |
echo leak:libomp.so > omp.supp | |
export LSAN_OPTIONS=suppressions=omp.supp | |
chmod +x ./build/tests/functests | |
./build/tests/functests "[concurrent]" |