ci: enable race detector in tests
The Go race detector [1] allows to detect runtime data races between
Goroutines.
Adding it to the test suite can increase runtime significantly (by
around 20x), but for the amount of tests we have right now it should
be acceptable to always run them on every diff in CI.
[1] - https://golang.org/doc/articles/race_detector.html
Test Plan: consider the test runtime increase before merging
X-Origin-Diff: phab/D496
GitOrigin-RevId: 655a9ae3d3b4d72eae26180434f685193de6d9a7
diff --git a/scripts/run_ci.sh b/scripts/run_ci.sh
index 8551d53..bc12ff3 100755
--- a/scripts/run_ci.sh
+++ b/scripts/run_ci.sh
@@ -78,7 +78,7 @@
--pod ${POD} \
--name=${POD}-bazel \
${TAG} \
- bazel test //...
+ bazel test --features=race //...
function conduit() {
# Get Phabricator host from Git origin