sourcegraph/enterprise/dev/ci
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
..
images ci: Fix symbols image publishing (#52658) 2023-05-31 08:47:23 +02:00
integration/executors bazel: run executor tests (#51368) 2023-05-03 18:50:26 +00:00
internal ci: re-enable race detection (#52776) 2023-06-05 20:41:47 +02:00
scripts ci: re-enable race detection (#52776) 2023-06-05 20:41:47 +02:00
BUILD.bazel bazel: introduce build files for Go (#46770) 2023-01-23 14:00:01 +01:00
CODENOTIFY dev/ci: make PR pipeline construction purely additive (#25229) 2021-09-28 10:48:43 -04:00
gen-pipeline.go feat(ci): sentry events on pipeline generation failures (#39289) 2022-08-24 17:59:57 +00:00
glossary.md ci: display a glossary in a folded informational annotation (#51621) 2023-05-09 13:20:11 +00:00
OWNERS devx: add OWNERS files (#30671) 2022-02-08 11:36:26 +01:00
push_all.sh Switch to OCI/Wolfi based image (#52693) 2023-06-02 12:12:52 +02:00
README.md doc/dev: migrate continuous_integration.md to ci/index.md (#31905) 2022-02-28 08:16:20 -08:00

Buildkite Pipeline for sourcegraph/sourcegraph

We dynamically generate our CI pipeline for Buildkite based on the output of gen-pipeline.go. To learn more, refer to the continuous integration docs.