sourcegraph/internal/adminanalytics
Jean-Hadrien Chabran 3d36d34b3d
ci: re-enable race detection (#52776)
The previous approach to enable race detection was too radical and
accidently led to build our binaries with the race flage enabled, which
caused issues when building images down the line.

This happened because putting a `test --something` in bazelrc also sets
it on `build` which is absolutely not what we wanted. Usually folks get
this one working by having a `--stamp` config setting that fixes this
when releasing binaries, which we don't at this stage, as we're still
learning Bazel.

Luckily, this was caught swiftly. The current approach insteads takes a
more granular approach, which makes the `go_test` rule uses our own
variant, which injects the `race = "on"` attribute, but only on
`go_test`.


## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI, being a main-dry-run, this will cover the container building jobs,
which were the ones failing.

---------

Co-authored-by: Alex Ostrikov <alex.ostrikov@sourcegraph.com>
2023-06-05 20:41:47 +02:00
..
batchchanges.go [In-Product Analytics] exclude sg employee users (#43020) 2022-10-18 14:11:22 +00:00
BUILD.bazel ci: re-enable race detection (#52776) 2023-06-05 20:41:47 +02:00
cache.go adminanalytics: remove unread boolean return in cache calls (#46705) 2023-01-20 15:38:21 +02:00
codeinsights.go [fix] use same where condition in user analytics as in pings for mau (#52306) 2023-05-26 14:17:09 +02:00
codeintel.go [fix] use same where condition in user analytics as in pings for mau (#52306) 2023-05-26 14:17:09 +02:00
codeintelbylanguage.go adminanalytics: remove unread boolean return in cache calls (#46705) 2023-01-20 15:38:21 +02:00
codeinteltoprepositories.go adminanalytics: remove unread boolean return in cache calls (#46705) 2023-01-20 15:38:21 +02:00
extensions.go [fix] use same where condition in user analytics as in pings for mau (#52306) 2023-05-26 14:17:09 +02:00
fetcher.go adminanalytics: remove unread boolean return in cache calls (#46705) 2023-01-20 15:38:21 +02:00
notebooks.go [fix] use same where condition in user analytics as in pings for mau (#52306) 2023-05-26 14:17:09 +02:00
repos.go adminanalytics: remove unread boolean return in cache calls (#46705) 2023-01-20 15:38:21 +02:00
search.go [fix] use same where condition in user analytics as in pings for mau (#52306) 2023-05-26 14:17:09 +02:00
users_test.go disable flaky monthly active users test (#47153) 2023-01-30 22:30:05 -08:00
users.go Remove debug print statement (#52725) 2023-05-31 20:40:31 +00:00
utils_test.go [fix] fixes for mau calculations in product analytics (#52581) 2023-05-30 13:59:39 +02:00
utils.go [fix] fixes for mau calculations in product analytics (#52581) 2023-05-30 13:59:39 +02:00