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

refactor: make cosmovisor depend on x/upgrade only #14881

Merged
merged 20 commits into from
Feb 2, 2023

Conversation

julienrbrt
Copy link
Member

@julienrbrt julienrbrt commented Feb 2, 2023

Description

Closes: #10464
Closes: #9670, using plan.DownloadUpgrade validates the checksum as well.

Note: because of all replaces, the GOSUMDB seems broken... I need to create a PR fixing that before 🙄
EDIT: Opened #14882
EDIT2: merged so all good now.


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 C:Cosmovisor Issues and PR related to Cosmovisor C:x/upgrade labels Feb 2, 2023
@julienrbrt julienrbrt marked this pull request as ready for review February 2, 2023 09:42
@julienrbrt julienrbrt requested a review from a team as a code owner February 2, 2023 09:42
@julienrbrt julienrbrt marked this pull request as draft February 2, 2023 09:43
@julienrbrt julienrbrt changed the base branch from main to julien/simplify-deps February 2, 2023 11:29
Base automatically changed from julien/simplify-deps to main February 2, 2023 11:51
@julienrbrt julienrbrt marked this pull request as ready for review February 2, 2023 14:28
@julienrbrt
Copy link
Member Author

Fixing the last tests..

@@ -6,7 +6,7 @@ echo 'ERROR: UPGRADE "chain2" NEEDED at height: 49: zip_binary'

# create upgrade info
# this info contains directly information about binaries (in chain2->chain3 update we test with info containing a link to the file with an address for the new chain binary)
echo '{"name":"chain2","height":49,"info":"{\"binaries\":{\"linux/amd64\":\"https://github.com/cosmos/cosmos-sdk/raw/main/tools/cosmovisor/testdata/repo/chain2-zip_bin/autod.zip?checksum=sha256:fd20f3163e5ab2ab430c0c2936de82fcf5f100a8497d7f121b9f34a1a4b96683\"}}"}' >$3
echo '{"name":"chain2","height":49,"info":"{\"binaries\":{\"linux/amd64\":\"https://github.com/cosmos/cosmos-sdk/raw/main/tools/cosmovisor/testdata/repo/chain2-zip_bin/autod.zip?checksum=sha256:13767eb0b57bf51a0f43d49f6277d5df97d4dec672dc39822d23a82fb8e70a7b\"}}"}' >$3
Copy link
Member Author

Choose a reason for hiding this comment

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

So, here I leave it to main, as it will pass as soon as this PR is merged. Otherwise, I need to select a commit, but I think it gets delete when this branch gets deleted.
I will verify here that everything goes well.

Copy link
Member Author

Choose a reason for hiding this comment

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

@julienrbrt julienrbrt enabled auto-merge (squash) February 2, 2023 21:39
@julienrbrt julienrbrt merged commit b3724f1 into main Feb 2, 2023
@julienrbrt julienrbrt deleted the julien/simplify-cosmovisor-deps branch February 2, 2023 22:16
tsenart pushed a commit to meka-dev/cosmos-sdk that referenced this pull request Apr 12, 2023
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
None yet
3 participants