Skip to content

Update storage for tests#586

Draft
grantkee wants to merge 10 commits intoupdate-tn-contractsfrom
update-storage-for-tests
Draft

Update storage for tests#586
grantkee wants to merge 10 commits intoupdate-tn-contractsfrom
update-storage-for-tests

Conversation

@grantkee
Copy link
Contributor

  • update e2e tests to increase speed and reliability
    • Global panic::set_hook cross-contamination → replaced with Drop guards
    • Fragile last_pause epoch-wait logic → proper poll-until-change loops
    • Stale endpoint after node restart in test_epoch_sync → update endpoint after restart
    • epochs.rs Arc<Mutex> pattern → simplified to ProcessGuard::take()/replace()
    • reduces per-HDX-file from ~130MB to ~1.3MB (99% reduction). Two files per epoch = ~2.6MB instead of ~260MB
    • handle null rpc responses and retry: eth_getBlockByNumber returns null for blocks not yet synced. call_rpc deserializes to HashMap<String, Value> which fails on null. The retry loop only caught RPC transport errors, not successful null responses
  • test all rpc transports (https, ws, and ipc)
  • always log e2e tests (overwritten each time)
  • update rust and clippy versions

@grantkee grantkee self-assigned this Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant