Skip to content

[hackathon] fix(node-tests): adapt test infra to HostNotifier trait#108

Draft
prestwich wants to merge 1 commit intofeat/host-rpcfrom
fix/node-tests-host-notifier
Draft

[hackathon] fix(node-tests): adapt test infra to HostNotifier trait#108
prestwich wants to merge 1 commit intofeat/host-rpcfrom
fix/node-tests-host-notifier

Conversation

@prestwich
Copy link
Member

@prestwich prestwich commented Mar 14, 2026

Summary

  • Adds TestHostNotifier backed by an unbounded channel, implementing HostNotifier for integration tests
  • Converts ExExNotificationHostNotification<Chain> directly, removing the reth conversion path in convert.rs
  • Updates SignetTestContext and db.rs to use the new SignetNodeBuilder API (with_notifier, with_blob_cacher, with_serve_config, with_rpc_config)
  • Drops reth-exex and reth-node-api deps from signet-node-tests; keeps reth for pool access

PR 5 of 5 in the host context adapter refactor.
Precursor: #106

Test plan

  • cargo clippy -p signet-node-tests --all-features --all-targets — clean
  • cargo +nightly fmt --check — clean
  • cargo t -p signet-node-tests -- test_genesis — passes
  • cargo t -p signet-node-tests -- test_genesis_allocs — passes

🤖 Generated with Claude Code

Replace ExExContext-based test setup with a channel-backed
TestHostNotifier, allowing signet-node-tests to compile against
the new HostNotifier-generic SignetNodeBuilder API.

- Add TestHostNotifier wrapping an unbounded channel
- Convert ExExNotification → HostNotification directly (drop reth
  conversion path in convert.rs)
- Supply blob_cacher, ServeConfig, StorageRpcConfig to the builder
- Remove reth-exex and reth-node-api deps; keep reth for pool access

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@prestwich prestwich requested a review from a team as a code owner March 14, 2026 12:18
@prestwich prestwich marked this pull request as draft March 14, 2026 12:21
@prestwich
Copy link
Member Author

[Claude Code]

Note: This PR targets feat/host-rpc (PR #107), not develop. It should be merged into #107 before that PR lands.

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