diff --git a/.github/workflows/thread-sanitizer.yaml b/.github/workflows/thread-sanitizer.yaml index 24248427b24..dcbdfecb0d6 100644 --- a/.github/workflows/thread-sanitizer.yaml +++ b/.github/workflows/thread-sanitizer.yaml @@ -1,12 +1,23 @@ name: Thread Sanitizer analysis on: workflow_dispatch: + push: branches: - 'master' + paths-ignore: + - '**.md' + - '**.txt' + - '!**/CMakeLists.txt' + pull_request: branches: - 'master' + paths-ignore: + - '**.md' + - '**.txt' + - '!**/CMakeLists.txt' + env: TSAN_OPTIONS: second_deadlock_stack=1 # ubuntu host doesn't have an environment SHELL value (docker and vm images does)??? @@ -19,6 +30,8 @@ defaults: jobs: ubuntu-sanitizer-run: name: Sanitizer Evaluation + if: ${{ !(contains(github.event.pull_request.labels.*.name, 'no-test') || + contains(github.event.pull_request.labels.*.name, 'skip-ci')) }} runs-on: ubuntu-latest steps: - name: Download the sanitizers cmake module and apply some fixes