refactor(cmd/evm): improve block/state test runner #30633#2309
refactor(cmd/evm): improve block/state test runner #30633#2309gzliudan wants to merge 1 commit intoXinFinOrg:dev-upgradefrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Refactors cmd/evm state test execution to support better batching/filtering/benchmarking and consolidates CLI/debug/tracing behavior.
Changes:
- Add
StateTest.RunWithGasto return gas usage alongside the post-state. - Rework
evm statetestto support batch mode (stdin), filtering (regex/fork/index), benchmarking, and a new reporter/human output. - Refactor
evm runexecution/benchmarking and migrate global debug/profiling flags tointernal/debug.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
tests/state_test_util.go |
Adds RunWithGas to return gas used from state test execution. |
internal/debug/flags.go |
Extends debug flag aliases (notably memprofile). |
cmd/evm/staterunner.go |
Refactors statetest runner to support batch mode, filtering, bench, and reporting. |
cmd/evm/runner.go |
Refactors run command: new benchmarking (timedExec), prestate init, hex parsing, trie preimages handling. |
cmd/evm/reporter.go |
New reporting layer for state tests (human + JSON output). |
cmd/evm/main.go |
Reworks flags/tracing, wires in internal/debug Setup/Exit, adds helpers (collectFiles/dump/tracerFromFlags). |
cmd/evm/eest.go |
New helper to parse EEST metadata from test names. |
cmd/evm/internal/compiler/compiler.go |
Removed (compile support removed). |
cmd/evm/compiler.go |
Removed compile command. |
cmd/evm/disasm.go |
Removed disasm command. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 10 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
2b42e72 to
2fff4c0
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Proposed changes
Ref: ethereum#30633
Types of changes
What types of changes does your code introduce to XDC network?
Put an
✅in the boxes that applyImpacted Components
Which parts of the codebase does this PR touch?
Put an
✅in the boxes that applyChecklist
Put an
✅in the boxes once you have confirmed below actions (or provide reasons on not doing so) that