sourcegraph/internal/trace
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
..
ot Tracing: remove opentracing spans (#52490) 2023-06-01 16:08:14 +00:00
policy ci: re-enable race detection (#52776) 2023-06-05 20:41:47 +02:00
attributes.go Tracing: clean up uses of opentracing in search code (#51856) 2023-05-12 04:04:15 -06:00
buckets.go Rename pkg to internal (#5898) 2019-10-07 15:36:41 -07:00
BUILD.bazel Tracing: remove opentracing spans (#52490) 2023-06-01 16:08:14 +00:00
CODENOTIFY trace, tracer, errors, observation: add devx to CODENOTIFY (#38897) 2022-07-18 18:19:13 +02:00
context.go internal/trace: improve trace.Context ergonomics for logging (#40964) 2022-08-29 11:04:01 -07:00
httptrace.go Tracing: remove opentracing spans (#52490) 2023-06-01 16:08:14 +00:00
logger.go trace: fix broken logger scope (#45540) 2022-12-12 14:04:42 +00:00
trace.go Tracing: add trace.FinishWithErr (#52478) 2023-05-26 15:58:50 +00:00
tracer.go Tracing: remove trace.Tag (#52091) 2023-05-17 18:09:48 +00:00
url.go tracing: enable opentelemetry by default, remove legacy values (#41242) 2022-09-07 17:29:52 +00:00