lighthouse/testing
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
..
antithesis Bump Rust version (MSRV) (#4204) 2023-04-18 02:47:37 +00:00
ef_tests Remove wget dependency (#4497) 2023-07-17 00:14:16 +00:00
eth1_test_rig Replace ganache-cli with anvil (#3555) 2023-05-15 07:22:02 +00:00
execution_engine_integration Update Nethermind (#4361) 2023-06-02 03:17:39 +00:00
node_test_rig CI fix: add retries to eth1 sim tests (#4501) 2023-07-17 00:14:18 +00:00
simulator CI fix: add retries to eth1 sim tests (#4501) 2023-07-17 00:14:18 +00:00
state_transition_vectors Fix attestation withdrawals root mismatch (#4249) 2023-05-09 10:48:15 +00:00
test-test_logger Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
web3signer_tests CI fix: move download web3signer binary out of build script (#4163) 2023-04-06 06:36:21 +00:00