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

UT: random failure of TestSnapSyncWithBlobs #2519

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

zzzckck
Copy link
Collaborator

@zzzckck zzzckck commented Jun 19, 2024

Description

To fix issue: #2489
this case failed randomly in github CI, the ratio of around 20%.
but it can not be reproduced locally:

cd eth
go test -p 1 -v -run TestSnapSyncWithBlobs -count 100

There could be a potential risk between runEthPeer and runSnapExtension, as they shared the handler.peers. Add extra wait time for runEthPeer

And also same for UT TestBroadcastBlock3Peers:

--- FAIL: TestBroadcastBlock3Peers (0.24s)
    handler_eth_test.go:672: broadcast count mismatch: have 0, want 1

Rationale

NA

Example

NA

Changes

NA

this case failed randomly in github CI, the ratio of around 20%
but can not be reproduced locally
  go test -p 1 -v -run TestSnapSyncWithBlobs -count 100

there could be a potential risk between `runEthPeer` and `runSnapExtension`, as
they shared the handler.peers.
Add extra wait time for `runEthPeer`
@zzzckck zzzckck force-pushed the fix_ut_TestSnapSyncWithBlobs branch from 85bebec to 72c5a9f Compare June 19, 2024 14:04
@zzzckck zzzckck merged commit 6094d71 into bnb-chain:develop Jun 20, 2024
7 checks passed
jellyb0y pushed a commit to jellyb0y/bsc that referenced this pull request Aug 11, 2024
this case failed randomly in github CI, the ratio of around 20%
but can not be reproduced locally by:
```
  go test -p 1 -v -run TestSnapSyncWithBlobs -count 100
```
there could be a potential risk between `runEthPeer` and `runSnapExtension`,as
they shared the same handler.peers.
Add extra wait time for `runEthPeer` to resolve it.

And same for another UT: testBroadcastBlock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants