celestia-core
celestia-core copied to clipboard
Flaky test: TestByzantinePrevoteEquivocation in consensus/byzantine_test.go
Summary
The test TestByzantinePrevoteEquivocation in consensus/byzantine_test.go is flaky. It fails intermittently during CI runs.
Error Example
Validator 0 received block at height 1 with 0 evidence
Validator 3 received block at height 1 with 0 evidence
FAIL
coverage: 73.5% of statements
FAIL github.com/cometbft/cometbft/consensus 52.877s
How to Reproduce
Run the test multiple times:
for i in {1..10}; do go test -run TestByzantinePrevoteEquivocation ./consensus; done
You will see that the test sometimes fails as above.
CI Example
See: https://github.com/celestiaorg/celestia-core/actions/runs/16271807085
Notes
- The test is located in
consensus/byzantine_test.go - This flakiness can affect CI reliability and should be investigated.
Another instance: https://github.com/celestiaorg/celestia-core/actions/runs/17807568853/job/50623081069?pr=2470