mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 22:33:34 +00:00
Merge pull request #52443 from spxtr/racercar
Automatic merge from submit-queue (batch tested with PRs 52485, 52443, 52597, 52450, 51971). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.. Enable go race detection for bazel tests. Testing if setting `features = ["-race"]` fixes the breaks in #50792. **Release note**: ```release-note NONE ```
This commit is contained in:
commit
e371f8ab1d
@ -17,3 +17,6 @@ build --sandbox_fake_username
|
|||||||
# TODO(ixdy): Remove this default once rules_go is bumped.
|
# TODO(ixdy): Remove this default once rules_go is bumped.
|
||||||
# Ref kubernetes/kubernetes#52677
|
# Ref kubernetes/kubernetes#52677
|
||||||
build --incompatible_comprehension_variables_do_not_leak=false
|
build --incompatible_comprehension_variables_do_not_leak=false
|
||||||
|
|
||||||
|
# Enable go race detection.
|
||||||
|
test --features=race
|
||||||
|
@ -112,6 +112,7 @@ go_test(
|
|||||||
"master_openapi_test.go",
|
"master_openapi_test.go",
|
||||||
"master_test.go",
|
"master_test.go",
|
||||||
],
|
],
|
||||||
|
features = ["-race"],
|
||||||
library = ":go_default_library",
|
library = ":go_default_library",
|
||||||
deps = [
|
deps = [
|
||||||
"//pkg/api:go_default_library",
|
"//pkg/api:go_default_library",
|
||||||
|
@ -22,6 +22,7 @@ go_test(
|
|||||||
"store_test.go",
|
"store_test.go",
|
||||||
"undelta_store_test.go",
|
"undelta_store_test.go",
|
||||||
],
|
],
|
||||||
|
features = ["-race"],
|
||||||
library = ":go_default_library",
|
library = ":go_default_library",
|
||||||
deps = [
|
deps = [
|
||||||
"//vendor/github.com/google/gofuzz:go_default_library",
|
"//vendor/github.com/google/gofuzz:go_default_library",
|
||||||
|
Loading…
Reference in New Issue
Block a user