Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC unit testing / regression testing framework #5046

Open
3 tasks
hanabi1224 opened this issue Dec 5, 2024 · 0 comments
Open
3 tasks

RPC unit testing / regression testing framework #5046

hanabi1224 opened this issue Dec 5, 2024 · 0 comments
Assignees
Labels
Type: Task Discrete task to implement

Comments

@hanabi1224
Copy link
Contributor

hanabi1224 commented Dec 5, 2024

Summary

We currently run RPC parity tests with forest-tool api compare command in CI. However, to reproduce or troubleshoot a failure, we have to use the full snapshot and filter on the method names. It'd be handy to be able to generate a minimal DB snapshot together with request payload and desired response with which we could unit test an RPC method.

We've implemented a PoC demo during the team offsite on https://github.com/ChainSafe/forest/tree/hm/rpc-unit-tests branch. The next step would be converting the demo into formal PRs

Completion Criteria

Additional Links & Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Task Discrete task to implement
Projects
Status: In progress
Development

No branches or pull requests

1 participant