Skip to content

refactor: x/upgrade to standalone module#14764

Merged
julienrbrt merged 22 commits into
mainfrom
likhita/upgrade-go-mod
Jan 27, 2023
Merged

refactor: x/upgrade to standalone module#14764
julienrbrt merged 22 commits into
mainfrom
likhita/upgrade-go-mod

Conversation

@likhita-809
Copy link
Copy Markdown
Contributor

Description

Closes: #14560


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)

@likhita-809 likhita-809 marked this pull request as ready for review January 25, 2023 10:40
@likhita-809 likhita-809 requested a review from a team January 25, 2023 10:40
@ghost ghost requested review from a team, kocubinski and testinginprod and removed request for a team January 25, 2023 10:41
likhita-809 added 2 commits January 25, 2023 16:15
func UnsafeStrToBytes(s string) []byte {
var buf []byte
sHdr := (*reflect.StringHeader)(unsafe.Pointer(&s))
bufHdr := (*reflect.SliceHeader)(unsafe.Pointer(&buf))

Check warning

Code scanning / gosec

Use of unsafe calls should be audited

Use of unsafe calls should be audited
// must not be altered after this function is called as it will cause a segmentation fault.
func UnsafeStrToBytes(s string) []byte {
var buf []byte
sHdr := (*reflect.StringHeader)(unsafe.Pointer(&s))

Check warning

Code scanning / gosec

Use of unsafe calls should be audited

Use of unsafe calls should be audited
Comment thread x/upgrade/sonar-project.properties
@sonarqubecloud
Copy link
Copy Markdown

[Cosmos SDK - x/upgrade] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Copy Markdown
Contributor

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

lgtm, except cosmovisor changes should be reverted.

Comment thread go.mod Outdated
Comment thread tools/cosmovisor/go.mod Outdated
Comment thread tools/cosmovisor/go.mod Outdated
Comment thread tools/cosmovisor/args.go Outdated
Copy link
Copy Markdown
Contributor

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

lgtm!, pending tests fix.

Copy link
Copy Markdown
Contributor

@atheeshp atheeshp left a comment

Choose a reason for hiding this comment

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

lgtm!

Comment thread CHANGELOG.md Outdated
Comment thread UPGRADING.md Outdated
Comment thread go.mod
@github-actions github-actions Bot removed the C:Cosmovisor Issues and PR related to Cosmovisor label Jan 27, 2023
@julienrbrt julienrbrt merged commit 6cf07f8 into main Jan 27, 2023
@julienrbrt julienrbrt deleted the likhita/upgrade-go-mod branch January 27, 2023 14:08
tsenart pushed a commit to meka-dev/cosmos-sdk that referenced this pull request Apr 12, 2023
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
lukasz-zimnoch added a commit to mezo-org/mezod that referenced this pull request Jul 31, 2024
In Cosmos `0.50.x`, the aforementioned `upgrade` package became a standalone
module placed under `cosmossdk.io` namespace. Here we adjust our codebase
to this change.

See: cosmos/cosmos-sdk#14764 and
https://docs.cosmos.network/main/build/migrations/upgrading#extract-upgrade-to-a-standalone-module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: x/upgrade as a standalone go module

4 participants