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: adding max-retries limit to preupgrade retry limit #10137

Merged
merged 30 commits into from
Sep 23, 2021

Conversation

spoo-bar
Copy link
Contributor

@spoo-bar spoo-bar commented Sep 14, 2021

Description

Ref: #9973, #10056

  • Skipping backup when skipping upgrade at specified height
  • adding env var PREUPGRADE_MAX_RETRIES which specifies the limit on how many times to retry preupgrade on error code 31

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)

@github-actions github-actions bot added the C:Cosmovisor Issues and PR related to Cosmovisor label Sep 14, 2021
cosmovisor/args.go Outdated Show resolved Hide resolved
cosmovisor/process.go Outdated Show resolved Hide resolved
cosmovisor/process.go Outdated Show resolved Hide resolved
@orijbot
Copy link

orijbot commented Sep 14, 2021

@spoo-bar spoo-bar marked this pull request as ready for review September 14, 2021 11:31
cosmovisor/args.go Outdated Show resolved Hide resolved
cosmovisor/process.go Outdated Show resolved Hide resolved
cosmovisor/process.go Outdated Show resolved Hide resolved
cosmovisor/process.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@anilcse anilcse left a comment

Choose a reason for hiding this comment

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

lgtm

cosmovisor/args.go Outdated Show resolved Hide resolved
Copy link
Contributor

@barriebyron barriebyron left a comment

Choose a reason for hiding this comment

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

just a few minor suggestions, the words lgtm

cosmovisor/CHANGELOG.md Outdated Show resolved Hide resolved
cosmovisor/README.md Outdated Show resolved Hide resolved
cosmovisor/README.md Outdated Show resolved Hide resolved
cosmovisor/README.md Show resolved Hide resolved
cosmovisor/README.md Outdated Show resolved Hide resolved
spoo-bar and others added 3 commits September 21, 2021 09:25
Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>
Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>
@spoo-bar spoo-bar mentioned this pull request Sep 21, 2021
19 tasks
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

🎉

mergify bot pushed a commit that referenced this pull request Sep 21, 2021
<!--
The default pull request template is for types feat, fix, or refactor.
For other templates, add one of the following parameters to the url:
- template=docs.md
- template=other.md
-->

## Description

Ref: #10137

<!-- Add a description of the changes that this PR introduces and the files that
are the most critical to review. -->

Updating cosmovisor readme from feedback from PR #10137  

#10137 (comment)

#10137 (comment)

---

### 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...

- [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] 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](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) 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)
@amaury1093 amaury1093 added the A:automerge Automatically merge PR once all prerequisites pass. label Sep 23, 2021
@codecov
Copy link

codecov bot commented Sep 23, 2021

Codecov Report

Merging #10137 (a4c3e64) into master (58673f8) will increase coverage by 0.05%.
The diff coverage is n/a.

❗ Current head a4c3e64 differs from pull request most recent head 6acdfd3. Consider uploading reports for the commit 6acdfd3 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10137      +/-   ##
==========================================
+ Coverage   63.67%   63.72%   +0.05%     
==========================================
  Files         573      573              
  Lines       53764    53766       +2     
==========================================
+ Hits        34234    34263      +29     
+ Misses      17583    17555      -28     
- Partials     1947     1948       +1     
Impacted Files Coverage Δ
client/flags/flags.go 21.05% <0.00%> (-0.77%) ⬇️
x/params/keeper/grpc_query.go 84.21% <0.00%> (+10.52%) ⬆️
x/mint/keeper/querier.go 74.28% <0.00%> (+71.42%) ⬆️

@mergify mergify bot merged commit f265287 into master Sep 23, 2021
@mergify mergify bot deleted the spoorthi/9973-preupgrade-cosmovisor branch September 23, 2021 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C:Cosmovisor Issues and PR related to Cosmovisor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants