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(x/upgrade): Add upgrade validation options and reuse upgrade functions in cosomovisor #11295

Closed

Conversation

dwedul-figure
Copy link
Collaborator

Description

Closes: #10464
Closes: #10718

This PR updates some of the x/upgrade validation to allow bypassing some checks. It also refactors cosmovisor to use some of the validation and functionality written in the x/upgrade module.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

# Conflicts:
#	cosmovisor/args.go
#	cosmovisor/args_test.go
#	cosmovisor/go.mod
#	cosmovisor/go.sum
#	x/upgrade/plan/info.go
Comment on lines 140 to 141

replace github.com/cosmos/cosmos-sdk => ../.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the key change in this file. The rest of the changes are a result of this one.

@codecov
Copy link

codecov bot commented Mar 1, 2022

Codecov Report

Merging #11295 (1a64d0f) into master (44a1293) will decrease coverage by 1.01%.
The diff coverage is 88.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11295      +/-   ##
==========================================
- Coverage   66.09%   65.07%   -1.02%     
==========================================
  Files         715      689      -26     
  Lines       72876    71440    -1436     
==========================================
- Hits        48165    46490    -1675     
- Misses      21762    22253     +491     
+ Partials     2949     2697     -252     
Impacted Files Coverage Δ
cosmovisor/process.go 54.54% <0.00%> (ø)
x/bank/types/send_authorization.go 55.55% <0.00%> (ø)
x/group/client/cli/tx.go 0.00% <0.00%> (ø)
x/upgrade/plan/downloader.go 80.00% <ø> (-1.49%) ⬇️
x/group/client/cli/util.go 6.97% <40.00%> (ø)
crypto/keyring/keyring.go 62.39% <50.00%> (ø)
cosmovisor/upgrade.go 85.71% <93.33%> (ø)
cosmovisor/args.go 85.15% <100.00%> (ø)
x/staking/types/authz.go 87.37% <100.00%> (+0.37%) ⬆️
x/upgrade/plan/info.go 95.77% <100.00%> (+1.77%) ⬆️
... and 58 more

@dwedul-figure dwedul-figure changed the title Dwedul/10464 upgrade validation in comsovisor feat(x/upgrade): Add upgrade validation options and reuse upgrade functions in cosomovisor Mar 1, 2022
@dwedul-figure dwedul-figure added C:CLI C:Cosmovisor Issues and PR related to Cosmovisor C:x/upgrade labels Mar 1, 2022
@dwedul-figure dwedul-figure marked this pull request as ready for review March 16, 2022 17:22
@dwedul-figure
Copy link
Collaborator Author

Closing this since the software-upgrade command was deprecated. Similar changes will be included in the work done for ADR-047.

@tac0turtle tac0turtle deleted the dwedul/10464-upgrade-validation-in-comsovisor branch February 13, 2023 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:CLI C:Cosmovisor Issues and PR related to Cosmovisor C:x/upgrade
Projects
No open projects
Archived in project
1 participant