sourcegraph/dev/src-expose
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
..
examples src-expose: Several items of feedback/polish (#5914) 2019-10-09 22:53:03 +02:00
.gitignore src-expose: Release script 2019-10-09 23:01:56 +02:00
BUILD.bazel ci: re-enable race detection (#52776) 2023-06-05 20:41:47 +02:00
build.sh ci: add shellcheck linter for shell scripts (#9903) 2020-04-21 10:03:17 -07:00
docker-publish.sh ci: add shellcheck linter for shell scripts (#9903) 2020-04-21 10:03:17 -07:00
Dockerfile ci: enable bazel builds for docker images (#51241) 2023-04-28 10:41:13 +02:00
entry.sh ci: add shellcheck linter for shell scripts (#9903) 2020-04-21 10:03:17 -07:00
main_test.go src-expose: index page listing instructions and urls (#8327) 2020-02-07 20:27:27 +00:00
main.go errors: Introduce internal package (#30558) 2022-02-07 15:03:45 +00:00
release.sh Release arm versions of src-expose (#26265) 2021-10-19 15:11:36 +02:00
serve_test.go Replace os.MkdirTemp in tests with t.TempDir() (#34590) 2022-04-27 16:08:29 +00:00
serve.go all: use any instead of interface{} (#35102) 2022-05-09 10:59:39 +02:00
snapshot.go errors: Introduce internal package (#30558) 2022-02-07 15:03:45 +00:00