Skip to content

Commit

Permalink
Enable TSAN builds on CI for Functional Tests.
Browse files Browse the repository at this point in the history
This enables TSAN checking when running the functional tests in CI.

This is currently only enabled on Linux since the various races there
were fixed when project-chip#7478 landed.

When Darwin races are fixed, tsan can be enabled for those too.
  • Loading branch information
mrjerryjohns committed Jun 22, 2021
1 parent 2541621 commit cf79d93
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
name: Test Suites - Linux
timeout-minutes: 60

strategy:
matrix:
type: [no_tsan, with_tsan]

if: github.actor != 'restyled-io[bot]'
runs-on: ubuntu-latest

Expand Down Expand Up @@ -61,11 +65,23 @@ jobs:
- name: Build all clusters app
timeout-minutes: 5
run: |
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug/standalone/ chip_config_network_layer_ble=false
case ${{ matrix.type }} in
"no_tsan") GN_ARGS='is_tsan=false';;
"with_tsan") GN_ARGS='is_tsan=true';;
*) ;;
esac
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug/standalone/ chip_config_network_layer_ble=false "$GN_ARGS"
- name: Build chip-tool
timeout-minutes: 5
run: |
scripts/examples/gn_build_example.sh examples/chip-tool out/debug/standalone/
case ${{ matrix.type }} in
"no_tsan") GN_ARGS='is_tsan=false';;
"with_tsan") GN_ARGS='is_tsan=true';;
*) ;;
esac
scripts/examples/gn_build_example.sh examples/chip-tool out/debug/standalone/ "$GN_ARGS"
- name: Copy objdir
run: |
# The idea is to not upload our objdir unless builds have
Expand Down Expand Up @@ -95,7 +111,6 @@ jobs:
test_suites_darwin:
name: Test Suites - Darwin
timeout-minutes: 60

if: github.actor != 'restyled-io[bot]'
runs-on: macos-latest

Expand Down
2 changes: 1 addition & 1 deletion third_party/pigweed/repo
Submodule repo updated 383 files
2 changes: 1 addition & 1 deletion third_party/qpg_sdk/repo
Submodule repo updated from ff2291 to 927c54
2 changes: 1 addition & 1 deletion third_party/zap/repo
Submodule repo updated 117 files

0 comments on commit cf79d93

Please sign in to comment.