From 0e72f1ce8e9f467b590bf82090be645b531229d9 Mon Sep 17 00:00:00 2001 From: Miguel Barro Date: Wed, 6 Jul 2022 14:16:46 +0200 Subject: [PATCH 1/3] Refs 15025. Dont' run CI if no-test label is enforced or non-sources are modified Signed-off-by: Miguel Barro --- .github/workflows/thread-sanitizer.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/thread-sanitizer.yaml b/.github/workflows/thread-sanitizer.yaml index 24248427b24..66d72c85a59 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: + - '**/CMakeLists.txt' + - '**.[hc]*' + - '**.cmake' + pull_request: branches: - 'master' + paths: + - '**/CMakeLists.txt' + - '**.[hc]*' + - '**.cmake' + env: TSAN_OPTIONS: second_deadlock_stack=1 # ubuntu host doesn't have an environment SHELL value (docker and vm images does)??? @@ -19,6 +30,7 @@ defaults: jobs: ubuntu-sanitizer-run: name: Sanitizer Evaluation + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') }} runs-on: ubuntu-latest steps: - name: Download the sanitizers cmake module and apply some fixes From d88c7b2e0d282e04d974dad390bc1733bb6acb61 Mon Sep 17 00:00:00 2001 From: Miguel Barro Date: Wed, 6 Jul 2022 14:26:36 +0200 Subject: [PATCH 2/3] Refs 15025. Python & powershell scripts are sources too. Signed-off-by: Miguel Barro --- .github/workflows/thread-sanitizer.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/thread-sanitizer.yaml b/.github/workflows/thread-sanitizer.yaml index 66d72c85a59..797edb30b3f 100644 --- a/.github/workflows/thread-sanitizer.yaml +++ b/.github/workflows/thread-sanitizer.yaml @@ -9,6 +9,8 @@ on: - '**/CMakeLists.txt' - '**.[hc]*' - '**.cmake' + - '**.py*' + - '**.ps1' pull_request: branches: @@ -17,6 +19,8 @@ on: - '**/CMakeLists.txt' - '**.[hc]*' - '**.cmake' + - '**.py*' + - '**.ps1' env: TSAN_OPTIONS: second_deadlock_stack=1 From 4dfa09ed83a5c10e1ede976b75ee65a41e615fe6 Mon Sep 17 00:00:00 2001 From: Miguel Barro Date: Wed, 6 Jul 2022 15:07:02 +0200 Subject: [PATCH 3/3] Refs 15025. blacklist approach to the path && add skip-ci flag Signed-off-by: Miguel Barro --- .github/workflows/thread-sanitizer.yaml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/thread-sanitizer.yaml b/.github/workflows/thread-sanitizer.yaml index 797edb30b3f..dcbdfecb0d6 100644 --- a/.github/workflows/thread-sanitizer.yaml +++ b/.github/workflows/thread-sanitizer.yaml @@ -5,22 +5,18 @@ on: push: branches: - 'master' - paths: - - '**/CMakeLists.txt' - - '**.[hc]*' - - '**.cmake' - - '**.py*' - - '**.ps1' + paths-ignore: + - '**.md' + - '**.txt' + - '!**/CMakeLists.txt' pull_request: branches: - 'master' - paths: - - '**/CMakeLists.txt' - - '**.[hc]*' - - '**.cmake' - - '**.py*' - - '**.ps1' + paths-ignore: + - '**.md' + - '**.txt' + - '!**/CMakeLists.txt' env: TSAN_OPTIONS: second_deadlock_stack=1 @@ -34,7 +30,8 @@ defaults: jobs: ubuntu-sanitizer-run: name: Sanitizer Evaluation - if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') }} + 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