sourcegraph/cmd/server
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
..
internal Housekeeping: fix some code smells in the Go code (#49995) 2023-03-28 20:31:32 +09:00
rootfs Switch to OCI/Wolfi based image (#52693) 2023-06-02 12:12:52 +02:00
shared ci: re-enable race detection (#52776) 2023-06-05 20:41:47 +02:00
build-bazel.sh scip-ctags: copy binary from alpine container (#52864) 2023-06-02 15:11:06 +00:00
build-wolfi.sh Apply Wolfi Cloud Instance Fixes (#51263) 2023-05-18 10:48:43 +01:00
BUILD.bazel Switch to OCI/Wolfi based image (#52693) 2023-06-02 12:12:52 +02:00
build.sh Deploy Wolfi-based Grafana image (#48992) 2023-03-09 13:41:25 +01:00
Dockerfile Bump syntax-highlighter docker container for single-docker deployment (#51616) 2023-05-09 18:28:55 +02:00
Dockerfile.bazel scip-ctags: copy binary from alpine container (#52864) 2023-06-02 15:11:06 +00:00
Dockerfile.wolfi Switch to OCI/Wolfi based image (#52693) 2023-06-02 12:12:52 +02:00
go-build-wolfi.sh Apply Wolfi Cloud Instance Fixes (#51263) 2023-05-18 10:48:43 +01:00
go-build.sh cmd(server): fix build version embed (#11633) 2020-06-22 23:50:42 +08:00
image_test.yaml Switch to OCI/Wolfi based image (#52693) 2023-06-02 12:12:52 +02:00
macro.bzl Switch to OCI/Wolfi based image (#52693) 2023-06-02 12:12:52 +02:00
main.go Running binaries with SANITY_CHECK=true immediately exits with a code zero (#52186) 2023-05-19 12:30:11 +00:00
postgres_exporter.yaml Switch to OCI/Wolfi based image (#52693) 2023-06-02 12:12:52 +02:00
pre-build.sh ci: add shellcheck linter for shell scripts (#9903) 2020-04-21 10:03:17 -07:00