Skip to content

Tests: rpc initial setup and rpc tests phase 1#3520

Open
kollegian wants to merge 17 commits into
mainfrom
tests/ev_rpc_tests
Open

Tests: rpc initial setup and rpc tests phase 1#3520
kollegian wants to merge 17 commits into
mainfrom
tests/ev_rpc_tests

Conversation

@kollegian

Copy link
Copy Markdown

Describe your changes and provide context

Testing performed to validate your change

@cursor

cursor Bot commented May 29, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Changes are limited to integration tests and CI orchestration; no production RPC or node logic is modified, though the new matrix job adds runtime and geth dependency to CI.

Overview
Adds a self-contained integration_test/rpc_tests module that compares Sei’s EVM JSON-RPC to a local geth --dev reference (happy paths, response shape, and byte-for-byte JSON-RPC errors via raw transport). A one-time bootstrap deploys shared fixtures, mirrors TestERC20 on geth, pre-funds a signer pool into runtime/runtime.json, and optional CW20/wasm fixtures when enabled.

Phase 1 covers many eth_* methods (e.g. eth_call, blocks, balances, gas/fee APIs, eth_coinbase, EIP-7702 delegation) with shared rich-block helpers and documented Sei/geth divergences where messages differ.

CI: new matrix job EVM RPC Parity (geth reference) runs scripts/run-ci.sh (deps, compile, start geth, bootstrap + serial run, merged mochawesome report); integration workflow bumps Node 22 / setup-node@v4 and uploads reports/merged as an artifact when present.

Reviewed by Cursor Bugbot for commit d297570. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

github-actions Bot commented May 29, 2026

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJun 12, 2026, 4:09 PM

Comment thread integration_test/rpc_tests/config/endpoints.ts Outdated
Comment thread integration_test/rpc_tests/eth/eth_accounts.spec.ts Outdated
Comment thread integration_test/rpc_tests/eth/eth_call.spec.ts Outdated
@codecov

codecov Bot commented May 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.17%. Comparing base (2151ba0) to head (d297570).
⚠️ Report is 33 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3520      +/-   ##
==========================================
- Coverage   59.12%   58.17%   -0.96%     
==========================================
  Files        2213     2129      -84     
  Lines      182814   173668    -9146     
==========================================
- Hits       108096   101036    -7060     
+ Misses      64993    63642    -1351     
+ Partials     9725     8990     -735     
Flag Coverage Δ
sei-db 70.62% <ø> (+0.21%) ⬆️
sei-db-state-db ?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 147 files with indirect coverage changes

🚀 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.

Comment thread integration_test/rpc_tests/utils/evmUtils.ts
Comment thread integration_test/rpc_tests/utils/testUtils.ts
Comment thread integration_test/rpc_tests/eth/eth_accounts.spec.ts
Comment thread integration_test/rpc_tests/_start/00_bootstrap.spec.ts Outdated
Comment thread integration_test/rpc_tests/eth/eth_gasPrice.spec.ts Outdated
Comment thread integration_test/rpc_tests/_start/00_bootstrap.spec.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c188432. Configure here.

Comment thread integration_test/rpc_tests/utils/feeHistoryUtils.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant