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

Make occ caused evm panics less noisy #1728

Merged
merged 6 commits into from
Jun 11, 2024
Merged

Conversation

jewei1997
Copy link
Contributor

Describe your changes and provide context

If there is an evm panic due to occ conflict, don't log or increment metrics for this evm panic

Testing performed to validate your change

existing tests

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 60.65%. Comparing base (4f2c02d) to head (b8354b3).
Report is 7 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1728      +/-   ##
==========================================
- Coverage   60.74%   60.65%   -0.10%     
==========================================
  Files         370      370              
  Lines       27433    27437       +4     
==========================================
- Hits        16665    16641      -24     
- Misses       9627     9654      +27     
- Partials     1141     1142       +1     
Files Coverage Δ
x/evm/keeper/msg_server.go 76.17% <0.00%> (-0.28%) ⬇️

... and 4 files with indirect coverage changes

@@ -62,10 +64,11 @@ func (server msgServer) EVMTransaction(goCtx context.Context, msg *types.MsgEVMT

defer func() {
if pe := recover(); pe != nil {
// there is not supposed to be any panic
debug.PrintStack()
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's put this under the if below as well

@jewei1997 jewei1997 merged commit 6353441 into main Jun 11, 2024
48 of 49 checks passed
@jewei1997 jewei1997 deleted the occ-evm-panics-less-noisy branch June 11, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants