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

Bump Cosmos to v0.46.7-pio-1 (from v0.46.6-pio-1) and create "pear" upgrade #1265

Closed
wants to merge 17 commits into from

Conversation

SpicyLemon
Copy link
Contributor

@SpicyLemon SpicyLemon commented Dec 14, 2022

Description

  • Bump Cosmos-SDK to v0.46.7-pio-1 (from v0.46.6-pio-1)
  • Create initial version of pear upgrade that runs migrations and deletes a msg fee that might be on the MsgLeaveGroup message.

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@SpicyLemon SpicyLemon requested a review from a team as a code owner December 14, 2022 21:40
egaxhaj
egaxhaj previously approved these changes Dec 14, 2022
Copy link
Contributor

@egaxhaj egaxhaj left a comment

Choose a reason for hiding this comment

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

LGTM

…ated, and more importantly, the tests on it don't mess up other tests.
@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Merging #1265 (84c6eab) into main (6354efc) will increase coverage by 0.05%.
The diff coverage is 65.15%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1265      +/-   ##
==========================================
+ Coverage   58.46%   58.51%   +0.05%     
==========================================
  Files         206      206              
  Lines       25264    25256       -8     
==========================================
+ Hits        14771    14779       +8     
+ Misses       9398     9380      -18     
- Partials     1095     1097       +2     
Impacted Files Coverage Δ
cmd/provenanced/config/interceptor.go 0.00% <0.00%> (ø)
app/upgrades.go 13.17% <40.00%> (+3.56%) ⬆️
cmd/provenanced/cmd/root.go 75.59% <77.77%> (+9.73%) ⬆️
app/app.go 87.32% <100.00%> (+0.31%) ⬆️
app/sdkconfig/prefix.go 100.00% <100.00%> (ø)

@egaxhaj
Copy link
Contributor

egaxhaj commented Dec 16, 2022

@SpicyLemon nit: noticed a typo in the title. It should be (from v0.46.6-pio-1)

customMsgFeeFloor := server.GetServerContextFromCmd(cmd).Viper.GetInt64(CustomMsgFeeFloorPriceFlag)
app.SetConfig(testnet, true)
vpr := server.GetServerContextFromCmd(cmd).Viper
testnet := vpr.GetBool(EnvTypeFlag)
Copy link
Member

Choose a reason for hiding this comment

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

In this context the EnvTypeFlag overlaps heavily with ENV as a source of vars

Comment on lines +187 to +199
func RemoveLeaveGroupMsgFee(ctx sdk.Context, app *App) error {
typeURL := sdk.MsgTypeURL(&group.MsgLeaveGroup{})
app.Logger().Info("deleting MsgLeaveGroup msg fee if it exists")
err := app.MsgFeesKeeper.RemoveMsgFee(ctx, typeURL)
if err == nil {
return nil
}
if errors.Is(err, msgfeestypes.ErrMsgFeeDoesNotExist) {
return nil
}
app.Logger().Error("error deleting MsgLeaveGroup msg fee", "error", err)
return err
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This might not be needed anymore. Waiting a bit to find out.

Copy link
Member

Choose a reason for hiding this comment

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

What's your take on this now @SpicyLemon ?

@Taztingo Taztingo mentioned this pull request Dec 23, 2022
8 tasks
@@ -14,3 +16,19 @@ message StoreKVPair {
bytes key = 3;
bytes value = 4;
}

// BlockMetadata contains all the abci event data of a block
// the file streamer dump them into files together with the state changes.
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this is coming from cosmos but this comment can be improved.

@SpicyLemon
Copy link
Contributor Author

I'm going to close this.

  • We released v1.13.1 instead of doing a full upgrade/release (which would be needed after this).
  • There's nothing in the pear migration that is needed anymore. I.e. the msg-based fee cleanup isn't needed, and there aren't any module migrations from v0.46.6 to v0.46.7.
  • There isn't anything in v0.46.7-pio-1 that we want/need at this time (that I know of).

Note that v0.46.7-pio-1 is NOT state compatible with v0.46.6-pio-3 (or anything before it). I'm guessing we'll probably just skip v0.46.7-pio-1 altogether.

@SpicyLemon SpicyLemon closed this Jan 10, 2023
@SpicyLemon SpicyLemon changed the title Bump Cosmos to v0.46.7-pio-1 (from v0.46.7-pio-1) and create "pear" upgrade Bump Cosmos to v0.46.7-pio-1 (from v0.46.6-pio-1) and create "pear" upgrade Jan 10, 2023
@iramiller iramiller deleted the dwedul/release-v1.14-start branch May 16, 2023 17:01
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.

6 participants