Skip to content

Commit

Permalink
[CI] TSAN build on Linux (#14860)
Browse files Browse the repository at this point in the history
#### Problem

Thread races are bad.

#### Change overview

Add a Linux build with Thread Sanitizer.

This is built with `chip_enable_wifi=false` because builds with WiFi
on Linux enable `CHIP_WITH_GIO`, for which TSAN reports warnings from
the gdbus thread. (It remains to be determined whether these indicate
a genuine problem.)

#### Testing

CI.
  • Loading branch information
kpschoedel authored and pull[bot] committed Jul 31, 2023
1 parent 257e620 commit 1301619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ jobs:
LSAN_OPTIONS: detect_leaks=0
run: |
# for BUILD_TYPE in asan msan tsan ubsan; do
for BUILD_TYPE in asan ubsan; do
for BUILD_TYPE in asan tsan ubsan; do
case $BUILD_TYPE in
"asan") GN_ARGS='is_clang=true is_asan=true';;
"msan") GN_ARGS='is_clang=true is_msan=true';;
"tsan") GN_ARGS='is_clang=true is_tsan=true';;
"tsan") GN_ARGS='is_clang=true is_tsan=true chip_enable_wifi=false';;
"ubsan") GN_ARGS='is_clang=true is_ubsan=true';;
esac
Expand Down

0 comments on commit 1301619

Please sign in to comment.