sourcegraph/lib/codeintel/upload
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
..
BUILD.bazel ci: re-enable race detection (#52776) 2023-06-05 20:41:47 +02:00
compress.go errors: Introduce internal package (#30558) 2022-02-07 15:03:45 +00:00
indexer_name_test.go codeintel: Refactor upload package (#21159) 2021-05-20 18:18:24 -05:00
indexer_name.go [language-platform] infer name and version from scip index (#46174) 2023-01-06 14:57:37 +00:00
progress_reader.go codeintel: Upload QOL improvements (#29538) 2022-01-11 14:01:14 +00:00
request_logger.go codeintel: Refactor upload package (#21159) 2021-05-20 18:18:24 -05:00
request.go Housekeeping: Rename variables to avoid collisions with packages (#47179) 2023-01-31 16:28:43 +01:00
retry.go codeintel: dont swallow errors in upload retry mechanism (#46281) 2023-01-10 14:53:49 +00:00
upload_options.go codeintel: Add auth support for GitLab (#33254) 2022-04-04 08:34:41 -05:00
upload_test.go [language-platform] adding route to check for SCIP availability (#45269) 2022-12-08 11:25:22 -07:00
upload.go codeintel: dont swallow errors in upload retry mechanism (#46281) 2023-01-10 14:53:49 +00:00