lighthouse-pulse/beacon_node
Michael Sproul 192d442718 Fix Rayon deadlock in test utils (#4837)
## Issue Addressed

Fix a deadlock in the tests that was causing tests on tree-states to run for hours without finishing: https://github.com/sigp/lighthouse/actions/runs/6491194654/job/17628138360.

## Proposed Changes

Avoid using a Mutex under the Rayon `par_iter`. Instead, use an `AtomicUsize`. I've run the new version several times in a loop and it hasn't deadlocked (it was deadlocking consistently on tree-states).

## Additional Info

The same bug exists in unstable and tree-states, but I'm not sure why it was triggering so consistently on the tree-states branch.
2023-10-18 13:36:42 +00:00
..
beacon_chain Fix Rayon deadlock in test utils (#4837) 2023-10-18 13:36:42 +00:00
beacon_processor Merge unstable 20230925 into deneb-free-blobs. 2023-09-26 10:32:18 +10:00
builder_client Merge unstable 20230925 into deneb-free-blobs. 2023-09-26 10:32:18 +10:00
client Deneb pr updates 2 (#4851) 2023-10-17 09:53:46 +11:00
eth1 Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
execution_layer Pre-generate test blobs bundle to improve test time. (#4829) 2023-10-18 04:40:29 +00:00
genesis Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
http_api Deneb pr updates 2 (#4851) 2023-10-17 09:53:46 +11:00
http_metrics Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
lighthouse_network remove crit! logging from ListenerClosed event on Ok() (#4821) 2023-10-18 06:52:52 +00:00
network Pre-generate test blobs bundle to improve test time. (#4829) 2023-10-18 04:40:29 +00:00
operation_pool Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
src Merge branch 'unstable' into merge-unstable-to-deneb-20231005 2023-10-05 15:54:44 +11:00
store Remove serde derive references (#4830) 2023-10-11 13:01:30 -04:00
tests Appease Clippy 1.68 and refactor http_api (#4068) 2023-03-13 01:40:03 +00:00
timer Move dependencies to workspace (#4650) 2023-09-22 04:30:56 +00:00
Cargo.toml Merge unstable 20230925 into deneb-free-blobs. 2023-09-26 10:32:18 +10:00