celestia-core icon indicating copy to clipboard operation
celestia-core copied to clipboard

Flaky test: TestByzantinePrevoteEquivocation in consensus/byzantine_test.go

Open tzdybal opened this issue 5 months ago • 1 comments

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.

tzdybal avatar Jul 15 '25 08:07 tzdybal

Another instance: https://github.com/celestiaorg/celestia-core/actions/runs/17807568853/job/50623081069?pr=2470

rootulp avatar Sep 17 '25 18:09 rootulp