Skip to content

UT: random failure of TestSnapSyncWithBlobs#2519

Merged
zzzckck merged 2 commits intobnb-chain:developfrom
zzzckck:fix_ut_TestSnapSyncWithBlobs
Jun 20, 2024
Merged

UT: random failure of TestSnapSyncWithBlobs#2519
zzzckck merged 2 commits intobnb-chain:developfrom
zzzckck:fix_ut_TestSnapSyncWithBlobs

Conversation

@zzzckck
Copy link
Copy Markdown
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

@zzzckck zzzckck requested review from buddh0, galaio and zlacfzy June 19, 2024 12:13
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
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
@zzzckck zzzckck deleted the fix_ut_TestSnapSyncWithBlobs branch May 14, 2025 06:11
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