Skip to content

Commit 685b78d

Browse files
committed
chore: Add asan/tsan bazel builds.
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.
1 parent 360acd0 commit 685b78d

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.cirrus.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,40 @@ bazel-debug_task:
3333
//c-toxcore/...
3434
-//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?
3535

36+
bazel-asan_task:
37+
container:
38+
image: toxchat/toktok-stack:0.0.31-asan
39+
cpu: 2
40+
memory: 2G
41+
configure_script:
42+
- /src/workspace/tools/inject-repo c-toxcore
43+
test_all_script:
44+
- cd /src/workspace && bazel test -k
45+
--remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
46+
--build_tag_filters=-haskell
47+
--test_tag_filters=-haskell
48+
--remote_download_minimal
49+
--
50+
//c-toxcore/...
51+
-//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?
52+
53+
bazel-tsan_task:
54+
container:
55+
image: toxchat/toktok-stack:0.0.31-tsan
56+
cpu: 2
57+
memory: 2G
58+
configure_script:
59+
- /src/workspace/tools/inject-repo c-toxcore
60+
test_all_script:
61+
- cd /src/workspace && bazel test -k
62+
--remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
63+
--build_tag_filters=-haskell
64+
--test_tag_filters=-haskell
65+
--remote_download_minimal
66+
--
67+
//c-toxcore/...
68+
-//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?
69+
3670
cimple_task:
3771
container:
3872
image: toxchat/toktok-stack:0.0.31-release

testing/BUILD.bazel

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ sh_test(
1212
name = "cimple_test",
1313
size = "small",
1414
srcs = ["//hs-tokstyle/tools:check-cimple"],
15-
args = ["$(locations %s)" % f for f in CIMPLE_FILES] + ["+RTS", "-N3"],
15+
args = ["$(locations %s)" % f for f in CIMPLE_FILES] + [
16+
"+RTS",
17+
"-N3",
18+
],
1619
data = CIMPLE_FILES,
1720
tags = ["haskell"],
1821
)

0 commit comments

Comments
 (0)