[Test] Add C++ tsan test (#17875)

This commit is contained in:
Chen Shen 2021-08-24 00:57:32 -07:00 committed by GitHub
parent abb46de4dc
commit 7e3e0d1535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -80,6 +80,7 @@ build:manylinux2010 --linkopt="-lrt"
build:tsan --strip=never
build:tsan --copt -fsanitize=thread
build:tsan --copt -DTHREAD_SANITIZER
build:tsan --copt -O2
build:tsan --copt -g
build:tsan --copt -fno-omit-frame-pointer
build:tsan --linkopt -fsanitize=thread

View file

@ -159,6 +159,18 @@
--test_tag_filters=-flaky
-- //:all -//:core_worker_test -//:logging_test
- label: ":cpp: Tests (TSAN)"
commands:
- cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/travis/upload_build_info.sh; fi }; trap cleanup EXIT
- bazel test --config=ci --config=tsan $(./scripts/bazel_export_options)
--build_tests_only
--jobs=2
--test_tag_filters=-flaky
-- //:all -//:core_worker_test -//:event_test -//:gcs_actor_manager_test
-//:gcs_placement_group_manager_test -//:gcs_placement_group_scheduler_test
-//:gcs_server_rpc_test -//:gcs_server_test -//:global_state_accessor_test
-//:metric_exporter_client_test -//:stats_test -//:worker_pool_test
- label: ":serverless: Dashboard + Serve Tests"
conditions:
[