lighthouse/testing/simulator/src
Jimmy Chen d4a61756ca CI fix: add retries to eth1 sim tests (#4501)
## Issue Addressed

This PR attempts to workaround the recent frequent eth1 simulator failures caused by missing eth logs from Anvil. 

> FailedToInsertDeposit(NonConsecutive { log_index: 1, expected: 0 })

This usually occurs at the beginning of the tests, and it guarantees a timeout after a few hours if this log shows up, and this is currently causing our CIs to fail quite frequently. 

Example failure here: https://github.com/sigp/lighthouse/actions/runs/5525760195/jobs/10079736914

## Proposed Changes

The quick fix applied here adds a timeout to node startup and restarts the node again.

- Add a 60 seconds timeout to beacon node startup in eth1 simulator tests. It takes ~10 seconds on my machine, but could take longer on CI runners.
- Wrap the startup code in a retry function, that allows for 3 retries before returning an error.

## Additional Info

We should probably raise an issue under the Anvil GitHub repo there so this can be further investigated.
2023-07-17 00:14:18 +00:00
..
checks.rs Capella eip 4844 cleanup (#3652) 2022-10-26 15:15:26 -04:00
cli.rs Use unique arg names for eth1-sim (#4463) 2023-07-17 00:14:13 +00:00
eth1_sim.rs CI fix: add retries to eth1 sim tests (#4501) 2023-07-17 00:14:18 +00:00
local_network.rs Separate BN for block proposals (#4182) 2023-04-26 01:12:36 +00:00
main.rs CI fix: add retries to eth1 sim tests (#4501) 2023-07-17 00:14:18 +00:00
no_eth1_sim.rs Logging via the HTTP API (#4074) 2023-05-22 05:57:08 +00:00
retry.rs CI fix: add retries to eth1 sim tests (#4501) 2023-07-17 00:14:18 +00:00
sync_sim.rs Logging via the HTTP API (#4074) 2023-05-22 05:57:08 +00:00