Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests Fail With Race Detection #377

Closed
prestonvanloon opened this issue Aug 4, 2018 · 4 comments · Fixed by #636
Closed

Tests Fail With Race Detection #377

prestonvanloon opened this issue Aug 4, 2018 · 4 comments · Fixed by #636
Labels
Bug Something isn't working Good First Issue Good for newcomers Help Wanted Extra attention is needed
Milestone

Comments

@prestonvanloon
Copy link
Member

bazel test //... --features=race

Results

INFO: Build completed, 3 tests FAILED, 4 total actions
//beacon-chain/blockchain:go_default_test                       (cached) PASSED in 0.0s
//beacon-chain/node:go_default_test                             (cached) PASSED in 0.1s
//beacon-chain/powchain:go_default_test                         (cached) PASSED in 0.1s
//beacon-chain/rpc:go_default_test                              (cached) PASSED in 0.3s
//beacon-chain/simulator:go_default_test                        (cached) PASSED in 0.0s
//beacon-chain/sync:go_default_test                             (cached) PASSED in 0.0s
//beacon-chain/utils:go_default_test                            (cached) PASSED in 0.1s
//client/attester:go_default_test                               (cached) PASSED in 0.1s
//client/contracts:go_default_test                              (cached) PASSED in 0.1s
//client/mainchain:go_default_test                              (cached) PASSED in 0.3s
//client/node:go_default_test                                   (cached) PASSED in 0.1s
//client/observer:go_default_test                               (cached) PASSED in 0.1s
//client/params:go_default_test                                 (cached) PASSED in 0.1s
//client/rpcclient:go_default_test                              (cached) PASSED in 0.3s
//client/syncer:go_default_test                                 (cached) PASSED in 0.1s
//client/txpool:go_default_test                                 (cached) PASSED in 0.0s
//client/types:go_default_test                                  (cached) PASSED in 0.1s
//contracts:go_default_test                                     (cached) PASSED in 0.1s
//shared:go_default_test                                        (cached) PASSED in 0.3s
//shared/cmd:go_default_test                                    (cached) PASSED in 0.1s
//shared/database:go_default_test                               (cached) PASSED in 0.5s
//shared/p2p:go_feed_concurrent_write_test                      (cached) PASSED in 0.0s
//client/proposer:go_default_test                                        FAILED in 3.7s
  /home/preston/.cache/bazel/_bazel_preston/2bf51e8690558a83a0a0514ab422fd4b/execroot/__main__/bazel-out/k8-fastbuild/testlogs/client/proposer/go_default_test/test.log
//client/simulator:go_default_test                                       FAILED in 0.7s
  /home/preston/.cache/bazel/_bazel_preston/2bf51e8690558a83a0a0514ab422fd4b/execroot/__main__/bazel-out/k8-fastbuild/testlogs/client/simulator/go_default_test/test.log
//shared/p2p:go_default_test                                             FAILED in 1.3s
  /home/preston/.cache/bazel/_bazel_preston/2bf51e8690558a83a0a0514ab422fd4b/execroot/__main__/bazel-out/k8-fastbuild/testlogs/shared/p2p/go_default_test/test.log

This is likely due to some p2p issues where the tests are attempting discovery.

@prestonvanloon prestonvanloon added the Bug Something isn't working label Aug 4, 2018
@prestonvanloon prestonvanloon added this to the Ruby milestone Aug 4, 2018
@prestonvanloon prestonvanloon added the Help Wanted Extra attention is needed label Aug 4, 2018
@terencechain
Copy link
Member

Assigned to @fgimenez

@0xKiwi
Copy link
Contributor

0xKiwi commented Aug 17, 2018

Is there more work needed on this?

@nisdas
Copy link
Member

nisdas commented Aug 17, 2018

Yeah there are a few more race conditions to fix. I think @fgimenez is working on fixing the remaining conditions.

@fgimenez
Copy link
Contributor

I think @fgimenez is working on fixing the remaining conditions.

Not really, currently there's only one remaining data race in shared/p2p, but we can't fix it because it is caused by a third-party library, see #390 (comment).

We had some issues recently regarding tests that fail on travis with the race detector enabled, but these seem to be related to travis execution environment (the failure is not from the race detector and they don't fail locally).

I'm starting looking into #282, hopefully with a remote bazel worker we can have more data to determine if the current problem is actually related to travis. I'll keep you posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Good First Issue Good for newcomers Help Wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants