From c786d0051d0bf93d53d10897cbc483ecd69f0227 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Mon, 15 Jul 2019 16:23:21 -0400 Subject: [PATCH 1/4] update rules_go --- .buildkite-bazelrc | 1 + WORKSPACE | 49 ++++++++++++++++++- beacon-chain/cache/BUILD.bazel | 2 +- .../core/blocks/spectest/attestation_test.go | 2 +- .../blocks/spectest/attester_slashing_test.go | 2 +- .../core/blocks/spectest/block_header_test.go | 2 +- .../blocks/spectest/block_processing_test.go | 2 +- .../core/blocks/spectest/deposit_test.go | 2 +- .../blocks/spectest/proposer_slashing_test.go | 2 +- .../core/blocks/spectest/transfer_test.go | 2 +- .../blocks/spectest/voluntary_exit_test.go | 2 +- .../core/epoch/spectest/crosslink_test.go | 2 +- .../core/epoch/spectest/final_updates_test.go | 2 +- .../justification_and_finalization_test.go | 2 +- .../core/epoch/spectest/registry_test.go | 2 +- .../core/epoch/spectest/slashings_test.go | 2 +- .../core/state/spectest/genesis_test.go | 4 +- .../state/spectest/slot_processing_test.go | 2 +- .../utils/spectest/shuffle_yaml_test.go | 2 +- proto/testing/ssz_compatibility_test.go | 2 +- shared/bls/spectest/helper_test.go | 2 +- tools/staticcheck/staticcheck.go | 37 ++++++++++++++ 22 files changed, 105 insertions(+), 22 deletions(-) create mode 100644 tools/staticcheck/staticcheck.go diff --git a/.buildkite-bazelrc b/.buildkite-bazelrc index 1e1148db4808..f1d57650aec6 100644 --- a/.buildkite-bazelrc +++ b/.buildkite-bazelrc @@ -41,6 +41,7 @@ build --keep_going build --test_output=errors build --flaky_test_attempts=5 build --jobs=50 +build --stamp test --local_test_jobs=2 # Disabled race detection due to unstable test results under constrained environment build kite # build --features=race diff --git a/WORKSPACE b/WORKSPACE index 36ebdc6c4403..c646ae69d78e 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -10,8 +10,11 @@ http_archive( http_archive( name = "io_bazel_rules_go", - sha256 = "f04d2373bcaf8aa09bccb08a98a57e721306c8f6043a2a0ee610fd6853dcde3d", - url = "https://github.com/bazelbuild/rules_go/releases/download/0.18.6/rules_go-0.18.6.tar.gz", + sha256 = "9fb16af4d4836c8222142e54c9efa0bb5fc562ffc893ce2abeac3e25daead144", + urls = [ + "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", + "https://github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", + ], ) http_archive( @@ -160,6 +163,17 @@ go_repository( importpath = "github.com/golang/mock", ) +git_repository( + name = "com_google_protobuf", + commit = "09745575a923640154bcf307fba8aedff47f240a", + remote = "https://github.com/protocolbuffers/protobuf", + shallow_since = "1558721209 -0700", +) + +load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") + +protobuf_deps() + # External dependencies go_repository( @@ -1114,3 +1128,34 @@ go_repository( load("@com_github_prysmaticlabs_go_ssz//:deps.bzl", "go_ssz_dependencies") go_ssz_dependencies() + +go_repository( + name = "com_github_burntsushi_toml", + commit = "3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005", + importpath = "github.com/BurntSushi/toml", +) + +go_repository( + name = "org_golang_google_grpc", + build_file_proto_mode = "disable", + commit = "24b2fb8959201be9ce659bc87b0d590a34c67eae", + importpath = "google.golang.org/grpc", +) + +go_repository( + name = "org_golang_x_net", + commit = "da137c7871d730100384dbcf36e6f8fa493aef5b", + importpath = "golang.org/x/net", +) + +go_repository( + name = "org_golang_x_text", + commit = "342b2e1fbaa52c93f31447ad2c6abc048c63e475", + importpath = "golang.org/x/text", +) + +go_repository( + name = "com_github_golang_glog", + commit = "23def4e6c14b4da8ac2ed8007337bc5eb5007998", + importpath = "github.com/golang/glog", +) diff --git a/beacon-chain/cache/BUILD.bazel b/beacon-chain/cache/BUILD.bazel index 6ada6f81502f..a5f2c0dd5cf5 100644 --- a/beacon-chain/cache/BUILD.bazel +++ b/beacon-chain/cache/BUILD.bazel @@ -43,7 +43,7 @@ go_test( "total_balance_test.go", ], embed = [":go_default_library"], - race = "on", + race = "off", deps = [ "//proto/beacon/p2p/v1:go_default_library", "//proto/beacon/rpc/v1:go_default_library", diff --git a/beacon-chain/core/blocks/spectest/attestation_test.go b/beacon-chain/core/blocks/spectest/attestation_test.go index 6bfb23f25c10..a4d0040d536a 100644 --- a/beacon-chain/core/blocks/spectest/attestation_test.go +++ b/beacon-chain/core/blocks/spectest/attestation_test.go @@ -16,7 +16,7 @@ import ( ) func runAttestationTest(t *testing.T, filename string) { - filepath, err := bazel.Runfile("/eth2_spec_tests/tests/operations/attestation/" + filename) + filepath, err := bazel.Runfile("tests/operations/attestation/" + filename) if err != nil { t.Fatal(err) } diff --git a/beacon-chain/core/blocks/spectest/attester_slashing_test.go b/beacon-chain/core/blocks/spectest/attester_slashing_test.go index 501c2b358c6b..d4fb4a9349b0 100644 --- a/beacon-chain/core/blocks/spectest/attester_slashing_test.go +++ b/beacon-chain/core/blocks/spectest/attester_slashing_test.go @@ -57,7 +57,7 @@ func runAttesterSlashingTest(t *testing.T, filename string) { } } -var attesterSlashingPrefix = "eth2_spec_tests/tests/operations/attester_slashing/" +var attesterSlashingPrefix = "tests/operations/attester_slashing/" func TestAttesterSlashingMinimal(t *testing.T) { filepath, err := bazel.Runfile(attesterSlashingPrefix + "attester_slashing_minimal.yaml") diff --git a/beacon-chain/core/blocks/spectest/block_header_test.go b/beacon-chain/core/blocks/spectest/block_header_test.go index 0838aca09746..86a4a6df05c3 100644 --- a/beacon-chain/core/blocks/spectest/block_header_test.go +++ b/beacon-chain/core/blocks/spectest/block_header_test.go @@ -59,7 +59,7 @@ func runBlockHeaderTest(t *testing.T, filename string) { } } -var blkHeaderPrefix = "eth2_spec_tests/tests/operations/block_header/" +var blkHeaderPrefix = "tests/operations/block_header/" func TestBlockHeaderMinimal(t *testing.T) { filepath, err := bazel.Runfile(blkHeaderPrefix + "block_header_minimal.yaml") diff --git a/beacon-chain/core/blocks/spectest/block_processing_test.go b/beacon-chain/core/blocks/spectest/block_processing_test.go index 3223a8499e23..24cc74ae0a0a 100644 --- a/beacon-chain/core/blocks/spectest/block_processing_test.go +++ b/beacon-chain/core/blocks/spectest/block_processing_test.go @@ -26,7 +26,7 @@ func TestBlockProcessingMainnetYaml(t *testing.T) { } func runBlockProcessingTest(t *testing.T, filename string) { - filepath, err := bazel.Runfile("/eth2_spec_tests/tests/sanity/blocks/" + filename) + filepath, err := bazel.Runfile("tests/sanity/blocks/" + filename) if err != nil { t.Fatal(err) } diff --git a/beacon-chain/core/blocks/spectest/deposit_test.go b/beacon-chain/core/blocks/spectest/deposit_test.go index c2e6dfb46830..fbf31ee38319 100644 --- a/beacon-chain/core/blocks/spectest/deposit_test.go +++ b/beacon-chain/core/blocks/spectest/deposit_test.go @@ -57,7 +57,7 @@ func runDepositTest(t *testing.T, filename string) { } } -var depositPrefix = "eth2_spec_tests/tests/operations/deposit/" +var depositPrefix = "tests/operations/deposit/" func TestDepositMinimalYaml(t *testing.T) { filepath, err := bazel.Runfile(depositPrefix + "deposit_minimal.yaml") diff --git a/beacon-chain/core/blocks/spectest/proposer_slashing_test.go b/beacon-chain/core/blocks/spectest/proposer_slashing_test.go index e6a22087d411..d20aa1211acd 100644 --- a/beacon-chain/core/blocks/spectest/proposer_slashing_test.go +++ b/beacon-chain/core/blocks/spectest/proposer_slashing_test.go @@ -57,7 +57,7 @@ func runProposerSlashingTest(t *testing.T, filename string) { } } -var proposerSlashingPrefix = "eth2_spec_tests/tests/operations/proposer_slashing/" +var proposerSlashingPrefix = "tests/operations/proposer_slashing/" func TestProposerSlashingMinimal(t *testing.T) { filepath, err := bazel.Runfile(proposerSlashingPrefix + "proposer_slashing_minimal.yaml") diff --git a/beacon-chain/core/blocks/spectest/transfer_test.go b/beacon-chain/core/blocks/spectest/transfer_test.go index eeea6686fcc3..ee36510aacaa 100644 --- a/beacon-chain/core/blocks/spectest/transfer_test.go +++ b/beacon-chain/core/blocks/spectest/transfer_test.go @@ -57,7 +57,7 @@ func runTransferTest(t *testing.T, filename string) { } } -var transferPrefix = "eth2_spec_tests/tests/operations/transfer/" +var transferPrefix = "tests/operations/transfer/" func TestTransferMinimal(t *testing.T) { t.Skip("Transfer tests are disabled. See https://github.com/ethereum/eth2.0-specs/pull/1238#issuecomment-507054595") diff --git a/beacon-chain/core/blocks/spectest/voluntary_exit_test.go b/beacon-chain/core/blocks/spectest/voluntary_exit_test.go index a76e4045591f..c54b2426e2e9 100644 --- a/beacon-chain/core/blocks/spectest/voluntary_exit_test.go +++ b/beacon-chain/core/blocks/spectest/voluntary_exit_test.go @@ -57,7 +57,7 @@ func runVoluntaryExitTest(t *testing.T, filename string) { } } -var exitPrefix = "eth2_spec_tests/tests/operations/voluntary_exit/" +var exitPrefix = "tests/operations/voluntary_exit/" func TestVoluntaryExitMinimal(t *testing.T) { filepath, err := bazel.Runfile(exitPrefix + "voluntary_exit_mainnet.yaml") diff --git a/beacon-chain/core/epoch/spectest/crosslink_test.go b/beacon-chain/core/epoch/spectest/crosslink_test.go index 9be0d160f34a..6e2564696b79 100644 --- a/beacon-chain/core/epoch/spectest/crosslink_test.go +++ b/beacon-chain/core/epoch/spectest/crosslink_test.go @@ -42,7 +42,7 @@ func runCrosslinkProcessingTests(t *testing.T, filename string) { } } -const crosslinkPrefix = "eth2_spec_tests/tests/epoch_processing/crosslinks/" +const crosslinkPrefix = "tests/epoch_processing/crosslinks/" func TestCrosslinksProcessingMinimal(t *testing.T) { filepath, err := bazel.Runfile(crosslinkPrefix + "crosslinks_minimal.yaml") diff --git a/beacon-chain/core/epoch/spectest/final_updates_test.go b/beacon-chain/core/epoch/spectest/final_updates_test.go index fa307c14102c..fd0f7f390849 100644 --- a/beacon-chain/core/epoch/spectest/final_updates_test.go +++ b/beacon-chain/core/epoch/spectest/final_updates_test.go @@ -62,7 +62,7 @@ func runFinalUpdatesTests(t *testing.T, filename string) { } } -const finalUpdatesPrefix = "eth2_spec_tests/tests/epoch_processing/final_updates/" +const finalUpdatesPrefix = "tests/epoch_processing/final_updates/" func TestFinalUpdatesMinimal(t *testing.T) { filepath, err := bazel.Runfile(finalUpdatesPrefix + "final_updates_minimal.yaml") diff --git a/beacon-chain/core/epoch/spectest/justification_and_finalization_test.go b/beacon-chain/core/epoch/spectest/justification_and_finalization_test.go index 16764ab6f0f5..fbc34f7c87b5 100644 --- a/beacon-chain/core/epoch/spectest/justification_and_finalization_test.go +++ b/beacon-chain/core/epoch/spectest/justification_and_finalization_test.go @@ -97,7 +97,7 @@ func runJustificationAndFinalizationTests(t *testing.T, filename string) { } } -const justificationAndFinalizationPrefix = "eth2_spec_tests/tests/epoch_processing/justification_and_finalization/" +const justificationAndFinalizationPrefix = "tests/epoch_processing/justification_and_finalization/" func TestJustificationAndFinalizationMinimal(t *testing.T) { // TODO(#2891): Verify with ETH2 spec test. diff --git a/beacon-chain/core/epoch/spectest/registry_test.go b/beacon-chain/core/epoch/spectest/registry_test.go index 0e9ef2a3e4d2..030bfd3c2deb 100644 --- a/beacon-chain/core/epoch/spectest/registry_test.go +++ b/beacon-chain/core/epoch/spectest/registry_test.go @@ -40,7 +40,7 @@ func runRegisteryProcessingTests(t *testing.T, filename string) { } } -const registryUpdatesPrefix = "eth2_spec_tests/tests/epoch_processing/registry_updates/" +const registryUpdatesPrefix = "tests/epoch_processing/registry_updates/" func TestRegistryProcessingMinimal(t *testing.T) { filepath, err := bazel.Runfile(registryUpdatesPrefix + "registry_updates_minimal.yaml") diff --git a/beacon-chain/core/epoch/spectest/slashings_test.go b/beacon-chain/core/epoch/spectest/slashings_test.go index 6697f1699056..92ee9b6f7ec9 100644 --- a/beacon-chain/core/epoch/spectest/slashings_test.go +++ b/beacon-chain/core/epoch/spectest/slashings_test.go @@ -42,7 +42,7 @@ func runSlashingsTests(t *testing.T, filename string) { } } -const slashingsPrefix = "eth2_spec_tests/tests/epoch_processing/slashings/" +const slashingsPrefix = "tests/epoch_processing/slashings/" func TestSlashingsMinimal(t *testing.T) { filepath, err := bazel.Runfile(slashingsPrefix + "slashings_minimal.yaml") diff --git a/beacon-chain/core/state/spectest/genesis_test.go b/beacon-chain/core/state/spectest/genesis_test.go index 772095745fda..76902339dcc7 100644 --- a/beacon-chain/core/state/spectest/genesis_test.go +++ b/beacon-chain/core/state/spectest/genesis_test.go @@ -17,7 +17,7 @@ import ( func TestGenesisInitializationMinimal(t *testing.T) { t.Skip("Tests will fail with mainnet config - awaiting mainnet tests from the researchers") - filepath, err := bazel.Runfile("/eth2_spec_tests/tests/genesis/initialization/genesis_initialization_minimal.yaml") + filepath, err := bazel.Runfile("tests/genesis/initialization/genesis_initialization_minimal.yaml") if err != nil { t.Fatal(err) } @@ -66,7 +66,7 @@ func TestGenesisInitializationMinimal(t *testing.T) { } func TestGenesisValidityMinimal(t *testing.T) { - filepath, err := bazel.Runfile("/eth2_spec_tests/tests/genesis/validity/genesis_validity_minimal.yaml") + filepath, err := bazel.Runfile("tests/genesis/validity/genesis_validity_minimal.yaml") if err != nil { t.Fatal(err) } diff --git a/beacon-chain/core/state/spectest/slot_processing_test.go b/beacon-chain/core/state/spectest/slot_processing_test.go index 88f85174c5b4..62a0c547b349 100644 --- a/beacon-chain/core/state/spectest/slot_processing_test.go +++ b/beacon-chain/core/state/spectest/slot_processing_test.go @@ -14,7 +14,7 @@ import ( ) func TestSlotProcessingMainnet(t *testing.T) { - filepath, err := bazel.Runfile("/eth2_spec_tests/tests/sanity/slots/sanity_slots_mainnet.yaml") + filepath, err := bazel.Runfile("tests/sanity/slots/sanity_slots_mainnet.yaml") if err != nil { t.Fatal(err) } diff --git a/beacon-chain/utils/spectest/shuffle_yaml_test.go b/beacon-chain/utils/spectest/shuffle_yaml_test.go index f2a7fb826fc7..cd8f1ea4e565 100644 --- a/beacon-chain/utils/spectest/shuffle_yaml_test.go +++ b/beacon-chain/utils/spectest/shuffle_yaml_test.go @@ -15,7 +15,7 @@ import ( "github.com/prysmaticlabs/prysm/shared/params/spectest" ) -const shufflePrefix = "eth2_spec_tests/tests/shuffling/core/" +const shufflePrefix = "tests/shuffling/core/" func TestShufflingMinimal(t *testing.T) { helpers.ClearAllCaches() diff --git a/proto/testing/ssz_compatibility_test.go b/proto/testing/ssz_compatibility_test.go index a144182970c6..3ec3b33a300e 100644 --- a/proto/testing/ssz_compatibility_test.go +++ b/proto/testing/ssz_compatibility_test.go @@ -15,7 +15,7 @@ import ( ) func TestYamlStatic(t *testing.T) { - topPath := "/eth2_spec_tests/tests/ssz_static/core/" + topPath := "tests/ssz_static/core/" yamlFileNames := []string{ "ssz_mainnet_random.yaml", } diff --git a/shared/bls/spectest/helper_test.go b/shared/bls/spectest/helper_test.go index c25ba23801bd..4cc7bb762ba9 100644 --- a/shared/bls/spectest/helper_test.go +++ b/shared/bls/spectest/helper_test.go @@ -6,7 +6,7 @@ import ( "github.com/bazelbuild/rules_go/go/tools/bazel" ) -const prefix = "/eth2_spec_tests/tests/bls/" +const prefix = "tests/bls/" // Load BLS yaml from spec test bls directory. The file parameter should be in // the format of the path starting at the bls directory. diff --git a/tools/staticcheck/staticcheck.go b/tools/staticcheck/staticcheck.go new file mode 100644 index 000000000000..830814b96b6f --- /dev/null +++ b/tools/staticcheck/staticcheck.go @@ -0,0 +1,37 @@ +package staticcheck + +import ( + "golang.org/x/tools/go/analysis" + "honnef.co/go/tools/simple" + "honnef.co/go/tools/staticcheck" + "honnef.co/go/tools/stylecheck" +) + +var analyzers []*analysis.Analyzer + +func init() { + for _, v := range simple.Analyzers { + analyzers = append(analyzers, v) + } + for _, v := range staticcheck.Analyzers { + analyzers = append(analyzers, v) + } + for _, v := range stylecheck.Analyzers { + analyzers = append(analyzers, v) + } +} + +var Analyzer = &analysis.Analyzer{ + Name: "staticcheck", + Doc: "reports result of github.com/dominikh/go-tools/cmd/staticcheck", + Run: run, +} + +func run(pass *analysis.Pass) (interface{}, error) { + for _, a := range analyzers { + if r, err := a.Run(pass); err != nil { + return r, err + } + } + return nil, nil +} From 183f6db383b2df98eab66d112a41791d68946b0d Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Mon, 15 Jul 2019 18:10:40 -0400 Subject: [PATCH 2/4] Fix some cross compile builds stuff --- WORKSPACE | 9 +++++++- tools/staticcheck/staticcheck.go | 37 -------------------------------- 2 files changed, 8 insertions(+), 38 deletions(-) delete mode 100644 tools/staticcheck/staticcheck.go diff --git a/WORKSPACE b/WORKSPACE index 93f5a5c6f7f6..8af7449c4609 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -554,7 +554,7 @@ go_repository( go_repository( name = "org_golang_x_crypto", - commit = "8dd112bcdc25174059e45e07517d9fc663123347", + commit = "4def268fd1a49955bfb3dda92fe3db4f924f2285", importpath = "golang.org/x/crypto", ) @@ -823,6 +823,7 @@ go_repository( go_repository( name = "io_k8s_client_go", + build_extra_args = ["-exclude=vendor"], commit = "8abb21031259350aad0799bb42ba213ee8bb3399", importpath = "k8s.io/client-go", ) @@ -1166,3 +1167,9 @@ go_repository( commit = "23def4e6c14b4da8ac2ed8007337bc5eb5007998", importpath = "github.com/golang/glog", ) + +go_repository( + name = "org_golang_x_time", + commit = "9d24e82272b4f38b78bc8cff74fa936d31ccd8ef", + importpath = "golang.org/x/time", +) diff --git a/tools/staticcheck/staticcheck.go b/tools/staticcheck/staticcheck.go deleted file mode 100644 index 830814b96b6f..000000000000 --- a/tools/staticcheck/staticcheck.go +++ /dev/null @@ -1,37 +0,0 @@ -package staticcheck - -import ( - "golang.org/x/tools/go/analysis" - "honnef.co/go/tools/simple" - "honnef.co/go/tools/staticcheck" - "honnef.co/go/tools/stylecheck" -) - -var analyzers []*analysis.Analyzer - -func init() { - for _, v := range simple.Analyzers { - analyzers = append(analyzers, v) - } - for _, v := range staticcheck.Analyzers { - analyzers = append(analyzers, v) - } - for _, v := range stylecheck.Analyzers { - analyzers = append(analyzers, v) - } -} - -var Analyzer = &analysis.Analyzer{ - Name: "staticcheck", - Doc: "reports result of github.com/dominikh/go-tools/cmd/staticcheck", - Run: run, -} - -func run(pass *analysis.Pass) (interface{}, error) { - for _, a := range analyzers { - if r, err := a.Run(pass); err != nil { - return r, err - } - } - return nil, nil -} From ecd3999de04299714dfb027aaa8cdad90980a290 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Mon, 15 Jul 2019 18:26:32 -0400 Subject: [PATCH 3/4] add missing deps --- WORKSPACE | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/WORKSPACE b/WORKSPACE index 8af7449c4609..02011a467ceb 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1173,3 +1173,27 @@ go_repository( commit = "9d24e82272b4f38b78bc8cff74fa936d31ccd8ef", importpath = "golang.org/x/time", ) + +go_repository( + name = "com_github_gregjones_httpcache", + commit = "901d90724c7919163f472a9812253fb26761123d", + importpath = "github.com/gregjones/httpcache", +) + +go_repository( + name = "com_github_peterbourgon_diskv", + commit = "0be1b92a6df0e4f5cb0a5d15fb7f643d0ad93ce6", + importpath = "github.com/peterbourgon/diskv", +) + +go_repository( + name = "com_github_googleapis_gnostic", + commit = "25d8b0b6698593f520d9d8dc5a88e6b16ca9ecc0", + importpath = "github.com/googleapis/gnostic", +) + +go_repository( + name = "com_github_google_btree", + commit = "20236160a414454a9c64b6c8829381c6f4bddcaa", + importpath = "github.com/google/btree", +) From 5fde991129e4e0906eaee5f4dcfbcce78cbf747f Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Fri, 19 Jul 2019 15:38:33 -0400 Subject: [PATCH 4/4] update to 0.19.1 --- WORKSPACE | 6 +++--- beacon-chain/cache/BUILD.bazel | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index ddabeb97398e..409f721fbc6e 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -10,10 +10,10 @@ http_archive( http_archive( name = "io_bazel_rules_go", - sha256 = "9fb16af4d4836c8222142e54c9efa0bb5fc562ffc893ce2abeac3e25daead144", + sha256 = "8df59f11fb697743cbb3f26cfb8750395f30471e9eabde0d174c3aebc7a1cd39", urls = [ - "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", - "https://github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", + "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.1/rules_go-0.19.1.tar.gz", + "https://github.com/bazelbuild/rules_go/releases/download/0.19.1/rules_go-0.19.1.tar.gz", ], ) diff --git a/beacon-chain/cache/BUILD.bazel b/beacon-chain/cache/BUILD.bazel index a5f2c0dd5cf5..6ada6f81502f 100644 --- a/beacon-chain/cache/BUILD.bazel +++ b/beacon-chain/cache/BUILD.bazel @@ -43,7 +43,7 @@ go_test( "total_balance_test.go", ], embed = [":go_default_library"], - race = "off", + race = "on", deps = [ "//proto/beacon/p2p/v1:go_default_library", "//proto/beacon/rpc/v1:go_default_library",