Skip to content

refactor(test-loop): make enable_rpc work for both setup APIs (2/6)#15937

Open
darioush wants to merge 1 commit into
darioush/spice/all-stake-fallback-1from
darioush/test-loop/hoist-enable-rpc
Open

refactor(test-loop): make enable_rpc work for both setup APIs (2/6)#15937
darioush wants to merge 1 commit into
darioush/spice/all-stake-fallback-1from
darioush/test-loop/hoist-enable-rpc

Conversation

@darioush

Copy link
Copy Markdown
Contributor

Hoists enable_rpc from AutoSetupConfig (auto/new API only) up to TestLoopBuilder, applying it in resolve_setup_config after the setup config resolves. The non-validator RPC node is now appended regardless of whether the test used the auto or the manual setup API.

@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.70%. Comparing base (5c85509) to head (dee2cae).

Additional details and impacted files
@@                           Coverage Diff                           @@
##           darioush/spice/all-stake-fallback-1   #15937      +/-   ##
=======================================================================
+ Coverage                                69.68%   69.70%   +0.01%     
=======================================================================
  Files                                      947      947              
  Lines                                   204311   204314       +3     
  Branches                                204311   204314       +3     
=======================================================================
+ Hits                                    142381   142410      +29     
+ Misses                                   57183    57156      -27     
- Partials                                  4747     4748       +1     
Flag Coverage Δ
pytests-nightly 1.10% <ø> (ø)
unittests 69.44% <100.00%> (+<0.01%) ⬆️
unittests-nightly 69.39% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the test-loop setup builder so enable_rpc() consistently adds a dedicated non-validator “RPC” node (tracking all shards) regardless of whether tests use the auto-derived setup API or the manual .genesis()/.clients() API.

Changes:

  • Hoists enable_rpc from AutoSetupConfig into TestLoopBuilder.
  • Applies enable_rpc centrally in resolve_setup_config() by appending an rpc_account_id() client after the setup config resolves.
  • Simplifies auto-setup client list creation by removing the validators_spec_clients_with_rpc branching.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@darioush darioush changed the title refactor(test-loop): make enable_rpc work for both setup APIs (2/6) refactor(test-loop): make enable_rpc work for both setup APIs Jun 17, 2026
@darioush darioush changed the title (2/6) refactor(test-loop): make enable_rpc work for both setup APIs refactor(test-loop): make enable_rpc work for both setup APIs (2/6) Jun 17, 2026
@darioush darioush requested a review from pugachAG June 17, 2026 23:49
@darioush darioush marked this pull request as ready for review June 17, 2026 23:49
@darioush darioush requested a review from a team as a code owner June 17, 2026 23:49
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.

2 participants