Skip to content

feat: add open rpc snap files#6523

Merged
akaladarshi merged 3 commits intomainfrom
akaladarshi/add-openrpc-snaps
Feb 5, 2026
Merged

feat: add open rpc snap files#6523
akaladarshi merged 3 commits intomainfrom
akaladarshi/add-openrpc-snaps

Conversation

@akaladarshi
Copy link
Collaborator

@akaladarshi akaladarshi commented Feb 4, 2026

Summary of changes

Changes introduced in this pull request:

  • Added the snap files generated through:
    • cargo test --lib -- --exact 'rpc::tests::openrpc'
    • cargo insta review
  • Files:
    • forest__rpc__tests__rpc__v0.snap
    • forest__rpc__tests__rpc__v1.snap
    • forest__rpc__tests__rpc__v2.snap

Reference issue to close (if applicable)

Closes #6111

Other information and links

Change checklist

  • I have performed a self-review of my own code,
  • I have made corresponding changes to the documentation. All new code adheres to the team's documentation standards,
  • I have added tests that prove my fix is effective or that my feature works (if possible),
  • I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

Outside contributions

  • I have read and agree to the CONTRIBUTING document.
  • I have read and agree to the AI Policy document. I understand that failure to comply with the guidelines will lead to rejection of the pull request.

Summary by CodeRabbit

  • Tests
    • Re-enabled OpenRPC test and expanded coverage to include V2 API paths.
    • Updated test assertions to snapshot using the path string alongside the generated OpenRPC spec.

@akaladarshi akaladarshi requested a review from a team as a code owner February 4, 2026 09:29
@akaladarshi akaladarshi requested review from hanabi1224 and sudo-shashank and removed request for a team February 4, 2026 09:29
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 4, 2026

Walkthrough

Re-enables the previously ignored openrpc snapshot test, extends the tested ApiPaths to include V2, and updates the snapshot assertion to use insta::assert_yaml_snapshot!(path.path(), spec) for per-version OpenRPC validation.

Changes

Cohort / File(s) Summary
OpenRPC Test Enablement
src/rpc/mod.rs
Removed #[ignore] from the openrpc test, added ApiPaths::V2 to the list of tested paths, replaced _spec with spec, and switched the snapshot assertion to insta::assert_yaml_snapshot!(path.path(), spec) for per-path snapshots.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Possibly related PRs

Suggested labels

RPC

Suggested reviewers

  • hanabi1224
  • elmattic
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: add open rpc snap files' directly reflects the main change: adding OpenRPC snapshot files. It is specific and accurately summarizes the primary objective of the PR.
Linked Issues check ✅ Passed The PR fulfills both completion criteria from issue #6111: removes the #[ignore] attribute from the openrpc test and commits OpenRPC snapshot files (v0, v1, v2) for snapshot-based testing.
Out of Scope Changes check ✅ Passed All changes in src/rpc/mod.rs are directly scoped to issue #6111: enabling the openrpc test and updating snapshot assertions. No unrelated modifications are present.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch akaladarshi/add-openrpc-snaps

Comment @coderabbitai help to get the list of available commands and usage tips.

@LesnyRumcajs LesnyRumcajs added this pull request to the merge queue Feb 4, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 4, 2026
@LesnyRumcajs LesnyRumcajs added this pull request to the merge queue Feb 4, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 4, 2026
@akaladarshi akaladarshi enabled auto-merge February 5, 2026 05:03
@akaladarshi akaladarshi added this pull request to the merge queue Feb 5, 2026
Merged via the queue into main with commit 7e61df5 Feb 5, 2026
34 checks passed
@akaladarshi akaladarshi deleted the akaladarshi/add-openrpc-snaps branch February 5, 2026 11:00
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.

Re-enable openrpc snapshot tests

3 participants