You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There exists a CLI that can take an RPC endpoint to then make RPC calls so it can then make internal consistency checks against a live endpoint. It doesn’t assume the endpoint has fixed state. Instead it will have logic like “because I got response X for API Y, I expect to see Z in response to other related APIs”.
Timing measurements are also collected and emitted.
We won’t be doing exhaustive API coverage. Rather, this is a “beachhead”. For user-provided failure cases we’ll write a reproducible case in this tool so we can reliably follow the same steps (rather than relying on copy-pasting curl commands), test other endpoints, and confirm that any fixes no longer manifests the issue.
Why Important
This is the beginning of having more of a mechanism to better debug, catch, and report on RPC correctness and performance. It doesn't scale to require "best intentions" to test certain scenarios or to manually try and follow various repo steps across various endpoints.
User/Customer
Maintainers trying to improve ETH RPC correctness and performance.
RPC operators who want to see how their endpoint compares against other endpoints for some standard callpaths.
Notes
This is a new repo outside of Lotus. I'm creating this issue here for now, but it can be moved when the new repo has been created.
It’s TBD whether this will be written in Go or a language like JS/TS that end clients actually use.
This may develop into creating a public dashboard comparing RPC providers across various dimensions.
BigLep
changed the title
CLI that can take an RPC endpoint to then make RPC calls so can make internal consistency checks against live endpoint. It doesn’t assume the endpoint has fixed state. Instead it will have logic like “because I got response X for API Y, I expect to see Z in response to other related APIs”. We won’t be doing exhaustive API coverage. Rather, this is a “beachhead”. For user-provided failure cases we’ll write a reproducible case in this tool so we can reliably follow the same steps (rather than relying on copy-pasting curl commands), test other endpoints, and confirm that any fixes no longer manifests the issue. This is a new repo outside of Lotus. It’s TBD whether this will be written in Go or a language like JS/TS that end clients actually use.
CLI for internal consistency testing of RPC endpoints
Aug 22, 2024
2024-09-04 update: @rvagg is active on this. He has generated a JS/TS client from an IPLD schema for the Lotus Common Node API and ETH RPC apis. He is calling Lotus APIs to get the data directly from the blockstore (bypassing sqllite) and will then call eth_getLogs to confirm consistent state. He's aiming to complete by end of week. That is the checkpoint we'll use to then determine next steps including:
structuring/repo
what additional asserts/consistency-checks we should do
Done Criteria
There exists a CLI that can take an RPC endpoint to then make RPC calls so it can then make internal consistency checks against a live endpoint. It doesn’t assume the endpoint has fixed state. Instead it will have logic like “because I got response X for API Y, I expect to see Z in response to other related APIs”.
Timing measurements are also collected and emitted.
We won’t be doing exhaustive API coverage. Rather, this is a “beachhead”. For user-provided failure cases we’ll write a reproducible case in this tool so we can reliably follow the same steps (rather than relying on copy-pasting curl commands), test other endpoints, and confirm that any fixes no longer manifests the issue.
Why Important
This is the beginning of having more of a mechanism to better debug, catch, and report on RPC correctness and performance. It doesn't scale to require "best intentions" to test certain scenarios or to manually try and follow various repo steps across various endpoints.
User/Customer
Notes
The text was updated successfully, but these errors were encountered: