Permalink
Browse files

[ci] Run TSAN on CI.

  • Loading branch information...
rdzhabarov committed Feb 4, 2019
1 parent 4256893 commit 4713adb9904a47ba5fbd3162cbe9ec08b09c6871
Showing with 12 additions and 1 deletion.
  1. +3 −0 .circleci/build.sh
  2. +5 −0 .circleci/config.yml
  3. +4 −1 .circleci/test.sh
@@ -70,6 +70,9 @@ if [[ "${CIRCLE_JOB}" == "ASAN" ]]; then
CMAKE_ARGS+=("-DGLOW_USE_SANITIZER='Address;Undefined'")
CMAKE_ARGS+=("-DGLOW_WITH_OPENCL=OFF")
CMAKE_ARGS+=("-DCMAKE_BUILD_TYPE=Release")
elif [[ "${CIRCLE_JOB}" == "TSAN" ]]; then
CMAKE_ARGS+=("-DGLOW_USE_SANITIZER='Thread'")
CMAKE_ARGS+=("-DGLOW_WITH_OPENCL=OFF")
elif [[ "$CIRCLE_JOB" == RELEASE_WITH_LIT ]]; then
# Setup the LLVM Integrated Tester if requested.
install_lit_env
@@ -77,6 +77,10 @@ jobs:
environment:
DOCKER_IMAGE: "308535385114.dkr.ecr.us-east-1.amazonaws.com/caffe2/py2-clang6.0-ubuntu16.04:230"
<<: *linux_default
TSAN:
environment:
DOCKER_IMAGE: "308535385114.dkr.ecr.us-east-1.amazonaws.com/caffe2/py2-clang6.0-ubuntu16.04:230"
<<: *linux_default
SHARED:
environment:
DOCKER_IMAGE: "308535385114.dkr.ecr.us-east-1.amazonaws.com/caffe2/py2-clang6.0-ubuntu16.04:230"
@@ -91,5 +95,6 @@ workflows:
jobs:
- DEBUG
- ASAN
- TSAN
- SHARED
- RELEASE_WITH_LIT
@@ -39,7 +39,10 @@ case ${CIRCLE_JOB} in
# TODO: Enable ASAN test.
run_unit_tests test
;;

TSAN)
# Run only Glow tests.
run_unit_tests test
;;
DEBUG)
run_unit_tests test
run_unit_tests test_unopt

0 comments on commit 4713adb

Please sign in to comment.