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

fix: make sure wasmvm cache metrics collector registration after VM setup #1575

Merged
merged 1 commit into from
Aug 28, 2023
Merged

fix: make sure wasmvm cache metrics collector registration after VM setup #1575

merged 1 commit into from
Aug 28, 2023

Conversation

dadamu
Copy link
Contributor

@dadamu dadamu commented Aug 28, 2023

Close: #1574

This PR intends to fix the bug mentioned by #1574, to make sure wasmvm cache metrics collector registration after VM setup.

@dadamu dadamu requested a review from alpe as a code owner August 28, 2023 09:57
@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Merging #1575 (acfe1e4) into main (9e50a42) will increase coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1575      +/-   ##
==========================================
+ Coverage   58.00%   58.03%   +0.02%     
==========================================
  Files          64       64              
  Lines        8640     8640              
==========================================
+ Hits         5012     5014       +2     
+ Misses       3215     3214       -1     
+ Partials      413      412       -1     
Files Changed Coverage Δ
x/wasm/keeper/options.go 78.18% <0.00%> (ø)

... and 1 file with indirect coverage changes

Copy link
Member

@alpe alpe left a comment

Choose a reason for hiding this comment

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

Thanks a lot for reporting and fixing this!
This option was missed during the refactoring. I will add a unit test so that we have this covered in the future!

I have to apologize for the issue!

@alpe alpe merged commit 7c6069d into CosmWasm:main Aug 28, 2023
15 of 16 checks passed
@alpe alpe added the backport/v0.3x Backport patches to sdk45 release branch label Aug 28, 2023
@dadamu dadamu deleted the paul/fix-wasmvm-cache-metric-collector branch August 28, 2023 12:24
wojtek-coreum added a commit to CoreumFoundation/coreum that referenced this pull request Sep 7, 2023
# Description

Due to buggy initialization of metrics collector, WASM causes panics when metrics are collected.
Bug is described here: CosmWasm/wasmd#1574
and fixed here: CosmWasm/wasmd#1575

Once v0.42 is released we may uncomment this code. Task has been created for this.

# Reviewers checklist:
- [ ] Try to write more meaningful comments with clear actions to be taken.
- [ ] Nit-picking should be unblocking. Focus on core issues.

# Authors checklist
- [x] Provide a concise and meaningful description
- [x] Review the code yourself first, before making the PR.
- [x] Annotate your PR in places that require explanation.
- [x] Think and try to split the PR to smaller PR if it is big.
breavedev added a commit to breavedev/Coreum that referenced this pull request Oct 24, 2023
# Description

Due to buggy initialization of metrics collector, WASM causes panics when metrics are collected.
Bug is described here: CosmWasm/wasmd#1574
and fixed here: CosmWasm/wasmd#1575

Once v0.42 is released we may uncomment this code. Task has been created for this.

# Reviewers checklist:
- [ ] Try to write more meaningful comments with clear actions to be taken.
- [ ] Nit-picking should be unblocking. Focus on core issues.

# Authors checklist
- [x] Provide a concise and meaningful description
- [x] Review the code yourself first, before making the PR.
- [x] Annotate your PR in places that require explanation.
- [x] Think and try to split the PR to smaller PR if it is big.
breavedev pushed a commit to swordEdge/Coreum that referenced this pull request Oct 24, 2023
# Description

Due to buggy initialization of metrics collector, WASM causes panics when metrics are collected.
Bug is described here: CosmWasm/wasmd#1574
and fixed here: CosmWasm/wasmd#1575

Once v0.42 is released we may uncomment this code. Task has been created for this.

# Reviewers checklist:
- [ ] Try to write more meaningful comments with clear actions to be taken.
- [ ] Nit-picking should be unblocking. Focus on core issues.

# Authors checklist
- [x] Provide a concise and meaningful description
- [x] Review the code yourself first, before making the PR.
- [x] Annotate your PR in places that require explanation.
- [x] Think and try to split the PR to smaller PR if it is big.
pavloMartynenko added a commit to pavloMartynenko/Coreum that referenced this pull request Mar 4, 2024
# Description

Due to buggy initialization of metrics collector, WASM causes panics when metrics are collected.
Bug is described here: CosmWasm/wasmd#1574
and fixed here: CosmWasm/wasmd#1575

Once v0.42 is released we may uncomment this code. Task has been created for this.

# Reviewers checklist:
- [ ] Try to write more meaningful comments with clear actions to be taken.
- [ ] Nit-picking should be unblocking. Focus on core issues.

# Authors checklist
- [x] Provide a concise and meaningful description
- [x] Review the code yourself first, before making the PR.
- [x] Annotate your PR in places that require explanation.
- [x] Think and try to split the PR to smaller PR if it is big.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.3x Backport patches to sdk45 release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic because WasmVM cache metrics collector cannot be registered properly
2 participants