Skip to content

Commit

Permalink
chore: Add asan/tsan bazel builds.
Browse files Browse the repository at this point in the history
These have all dependencies built with asan/tsan, so they can do deeper
sanity checks such as checking what opus is doing with our buffers.

The asan check currently fails for me locally, so these are not yet set
to be required for PRs to be merged.
  • Loading branch information
iphydf committed Jan 12, 2022
1 parent 360acd0 commit 685b78d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,40 @@ bazel-debug_task:
//c-toxcore/...
-//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?

bazel-asan_task:
container:
image: toxchat/toktok-stack:0.0.31-asan
cpu: 2
memory: 2G
configure_script:
- /src/workspace/tools/inject-repo c-toxcore
test_all_script:
- cd /src/workspace && bazel test -k
--remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
--build_tag_filters=-haskell
--test_tag_filters=-haskell
--remote_download_minimal
--
//c-toxcore/...
-//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?

bazel-tsan_task:
container:
image: toxchat/toktok-stack:0.0.31-tsan
cpu: 2
memory: 2G
configure_script:
- /src/workspace/tools/inject-repo c-toxcore
test_all_script:
- cd /src/workspace && bazel test -k
--remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
--build_tag_filters=-haskell
--test_tag_filters=-haskell
--remote_download_minimal
--
//c-toxcore/...
-//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?

cimple_task:
container:
image: toxchat/toktok-stack:0.0.31-release
Expand Down
5 changes: 4 additions & 1 deletion testing/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ sh_test(
name = "cimple_test",
size = "small",
srcs = ["//hs-tokstyle/tools:check-cimple"],
args = ["$(locations %s)" % f for f in CIMPLE_FILES] + ["+RTS", "-N3"],
args = ["$(locations %s)" % f for f in CIMPLE_FILES] + [
"+RTS",
"-N3",
],
data = CIMPLE_FILES,
tags = ["haskell"],
)
Expand Down

0 comments on commit 685b78d

Please sign in to comment.