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

feat(tool): dump RPC tests to a directory #5054

Merged
merged 5 commits into from
Dec 10, 2024
Merged

Conversation

hanabi1224
Copy link
Contributor

@hanabi1224 hanabi1224 commented Dec 9, 2024

Summary of changes

Part of #5047

The next step is, implementing forest-tool api generate-test-snapshot [TEST_DUMP] --db [PATH], instead of introducing invasive logic to forest daemon like on https://github.com/ChainSafe/forest/tree/hm/dump-rpc-tests branch.

Changes introduced in this pull request:

  • added --dump-dir option to forest-tool api compare CLI command
  • refactor TestDump to be serializable

Reference issue to close (if applicable)

Closes

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.

@hanabi1224 hanabi1224 marked this pull request as ready for review December 9, 2024 12:24
@hanabi1224 hanabi1224 requested a review from a team as a code owner December 9, 2024 12:24
@hanabi1224 hanabi1224 requested review from LesnyRumcajs and sudo-shashank and removed request for a team December 9, 2024 12:24
src/tool/subcommands/api_cmd.rs Outdated Show resolved Hide resolved
src/tool/subcommands/api_cmd.rs Outdated Show resolved Hide resolved
Comment on lines +1955 to +1956
#[allow(clippy::type_complexity)]
fn format_as_markdown(results: &[((Cow<'static, str>, TestSummary, TestSummary), u32)]) -> String {
Copy link
Member

Choose a reason for hiding this comment

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

Can we avoid suppressing the lint with some limited amount of type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, let me tackle this in a follow up PR.

@hanabi1224 hanabi1224 added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit 5614596 Dec 10, 2024
35 checks passed
@hanabi1224 hanabi1224 deleted the hm/dump-rpc-tests branch December 10, 2024 11:11
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.

3 participants