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(release): v1.x Release #510

Merged
merged 27 commits into from
Jan 16, 2023
Merged

feat(release): v1.x Release #510

merged 27 commits into from
Jan 16, 2023

Conversation

Eengineer1
Copy link
Contributor

No description provided.

abdulla-ashurov and others added 27 commits December 15, 2022 10:49
* Make more logs for migrations

* Added prints for version maps

* fix: Init store key versions for ica module

* Added ica scoped param init

* Fixed sdk module migration order

* Fixed module manager order

* Switched to scoped execution, vm is initialized

* Added feeibc in expected outcomes

* Removed bloat

* Added cheqd-specific msgs in ica & pre-upgrade query MVM

* Add migration logs for DID and resources

* Add log all changes that happen

* Remove println from did and resource protobuf migration

* Refactor code

* Refactor code

* Style changes

* Remove incorrect code

* Review PR comment

* Get rid of println

* Style edits

Co-authored-by: Andrew Nikitin <[email protected]>
Co-authored-by: Tasos Derisiotis <[email protected]>
Co-authored-by: Ankur Banerjee <[email protected]>
* remove configureCmd

* remove post_install method from installer.py

* remove add-observer.sh from upgrade/cosmovisor

* remove add-observer.sh from interactive-install

* remove post_install method usage

* keep post_install method empty

* Update config.toml and app.toml defaults

* Bump alpine image version to latest

* Update default persistent flags

* Set --gas flag correctly

* Delete legacy interactive test folder

* Add installer test to workflow

* Update package-lock.json

* Fix workflow syntax error in interactive-installer job

* add questionary to bump cosmovisor

* move bump logic to setup_cosmovisor

* Check for success

* Change existing install check

* Update existing installation check

* Update installer check

* Fix linter issue

* Update test.yml

* Fix linter error

* Update test.yml

* Debugging installer flow

* Update build.yml

* Set up tmate on failure

* Try Andrew's technique

* Change home path

* Fix home path

* Update installer.py

* auto detect os arch for cosmovisor binary

* set default bump cosmovisor to yes

* set correct OS arch

* keep first install steps only in setup_cosmovisor

* set cosmovisor ENV vars

* remove sudo from export

* write to .profile using python

* Move filesx

* fix path to .profile

* log cosmovisor version when upgrade

* update .profile for current session

* exec source ~/.profile without stdout

* add execute permission

* Update installer.py

* add try/except

* get version anyway

* suppress err in bash

* add new line

* Delete outdated Cosmovisor check

* Create answers.txt

* Disable tmate

* use v1.2.0 instead

* try appending to .bashrc

* try with os.environ

* compare version and ask for bump

* rename function

* suppress error

* wrap std output in triple quotes

* add logs

* fix getting current version

* handle edge case

* add more info

* fix typo

* remove logs

* semantics

* add bump logic

* avoid fresh install during upgrade

* Debug only

* Update build.yml

* move new binary to installation directory

* try cosmovisor init

* extract to methods

* set ENV vars right after cosmovisor install

* edit upgrade steps

* add logs

* keep only interview logic at ask

* add fixes

* move info log

* minor fix

* stop and reload cosmovisor systemd during bump

* fix fresh install

* add logs

* more logs

* more log

* logs

* more logs

* add try except

* logs

* fix

* logs

* logs

* logs

* logs

* logs

* fix

* fix

* fix env var check

* remove unused function

* move getting cosmovisor download url to its own function

* check if .bashrc is writable or not

* fix syntax issues

* change ~ ownership to cheqd

* fix quotes syntax

* temporarily disable editing current user .bashrc

* remove is_file_writable

* write to file and read version for it

* remove using os

* add logs

* use tee

* remove debug logs

* write to bashrc python way

* add fix

* update installer.py

* Check default shell

* extract download and unzip to its own method

* reuse download_and_unzip

* add logs

* revert changes

* fix wrap in directory issue for versions lower than 1.0.1

* Update build.yml

* First we should check all existing different OS release,
then we should report about failure

* Add cosmovisor path to default PATH

* Remove previous commit code

* Reverse code

* Change runner from ubuntu-latest to ubuntu-20.04

* Fix linter mistakes

* Reset to version in develop

* Reset more correctly to develop branch

* Fix merge errors

* Delete Dockerfile approach

* Move installer test to test pipeline

* Rename to install from scratch

* Create upgrade-existing.txt

* Add upgrade path test

Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Alexander Kolesov <[email protected]>
Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Filip Djokic <[email protected]>
Co-authored-by: abdulla-ashurov <[email protected]>
Co-authored-by: abdulla-ashurov <[email protected]>
…484)

Bumps [github.com/cosmos/cosmos-sdk](https://github.com/cosmos/cosmos-sdk) from 0.46.6 to 0.46.7.
- [Release notes](https://github.com/cosmos/cosmos-sdk/releases)
- [Changelog](https://github.com/cosmos/cosmos-sdk/blob/main/CHANGELOG.md)
- [Commits](cosmos/cosmos-sdk@v0.46.6...v0.46.7)

---
updated-dependencies:
- dependency-name: github.com/cosmos/cosmos-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ankur Banerjee <[email protected]>
* add swagger gen script

* set up proto.mk for swagger functionality

* fix typo in Makefile

* update proto-all to include the new swagger gen cmds

* run proto-all instead of proto-gen inside goreleaser hooks

* add generate_swagger_docs.sh

* fix swagger docs script filename

* change swagger gen output dir

* add set -euox pipefail to scripts

* fix shell syntax

* fix more shell lint issues

* use -n instead of ! -z

* remove generate_swagger_docs.sh

* update Makefile to use correct script

* change dir for temp generated swagger files

* add config.json for individual v2 swagger files

* generate combined swagger.yaml file for swagger-ui

* update protoc-swagger-gen.sh to use swagger-combine

* remove proto-check-breaking in proto.mk

* remove unnecessary proto-swagger-deps

* setup statik for usage in app.go

* add bin directory for statik

* refer statik.go inside app.go

* add a hack to fix importing empty error

* add generated swagger-ui

* add generated statik.go file

* fix shell lint

* change combined schema format to json

* replace swagger.yaml with swagger.json

* ignore lint.yml

* update protoc-swagger-gen.sh

* export go path

* fix lint issue

* fix syntax

* add description and summary for query

* remove swagger.json

* update protoc-swagger-gen

* update swagger.json

* update statik.go

* group queries

* update swagger.json

* add swagger-combine as dev dep

* remove installing swagger-combine from bash

* add base url

* update swagger.json

* add grpc-gateway dep

* add summary DID operations

* add summary for DID operations

* add summary for resource operations

* update resources query

* install statik in pipeline

* install statik without go.mod

* add version

* update statik.go

* remove installing statik from pipeline

* install statik inside script

* remove duplicate swagger file

* move swagger stuff to api/docs

* dont include definitions since they are dereferenced

* update swagger ui

* buf mod update

* Buf mod update

* Remove OpenAPIv2 annotations from DID query

* Remove OpenAPI v2 annotations in resources

* go mod tidy

* make proto gen

* Rename protocgen2

* chmod files

* Update buf build in makefile

* Call Pulsar script correct

* Update Pulsar script call

* Update protoc-pulsar-gen.sh

* Update buf

* Generate Pulsar files

* Pin buf build dependencies

* delete api

* Initialise Pulsar

* Update buf.gen.pulsar.yaml

* Remove RPC Response lint exception

* Update buf lock

* Update go.mod

* Delete docs folder

* Add go workspace

* API go mod

* Remove statik import

* Update main go mod

* Update go.work.sum

* Pulsar gen to cosmos-sdk/api package

* Do a go mod tidy in pulsar gen script

* Go mod tidy API folder

* Address buf linter errors

* make proto-gen

* Rename verification method type and service type

* Fix build errors

* Switch to make proto-gen

* Update package-lock.json

* Update .golangci.yaml

* Update golang linter version

* Update .golangci.yaml

* gocritic errors

* captLocal fix

* nolintlint fix

* Update diddoc_verification_method_test.go

* Fix linter issues

* Fix linter issues

* Fix unit tests after changing field in VerifictionMethod

* Fix integration tests

* Fix unit tests

* Fix integrstion tests

* Fix upgrade tests

* Fix JSON files for upgrade tests

Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Benyam Seifu <[email protected]>
Co-authored-by: Andrew Nikitin <[email protected]>
Bumps [github.com/cosmos/ibc-go/v5](https://github.com/cosmos/ibc-go) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/cosmos/ibc-go/releases)
- [Changelog](https://github.com/cosmos/ibc-go/blob/v5.2.0/CHANGELOG.md)
- [Commits](cosmos/ibc-go@v5.1.0...v5.2.0)

---
updated-dependencies:
- dependency-name: github.com/cosmos/ibc-go/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(state): Fixed v1.0.x resource genesis export point values

* Fixed `.sum` co-tracking

* Fixed namings
… support [DEV-2017] (#497)

* Make VerificationMethod validation as in spec

* Change generated jsons for unit upgrade tests

* Makes linter happy

* Makes linter happy

* Makes linter happy

* Fix integration tests

* Remove unused imports

* Change comparision check

* Add changes for generated files

* Added Ed25519VerificationKey2018 support & enhanced tests

* Fixed namings

* Temp disabled

* Temp disabled

* Fixed deprecated print

* Removed bloat

* Fixed shellcheck

* Fixed bash shellcheck & restored bash linters

* Ignored `sed` extension

* Fixed widespread namings

* Ignored on legacy

* Update release.yml

* Update gen-network-config.sh

Fixes shellcheck SC2086

* Rename pubKeyMultibase to publicKeyMultibase

This makes it consistent with the actual standard, although this is mostly cosmetic

* Fix SED_EXT shellcheck in legacy tests

* Fix SED_EXT setting

* Typo fixes

* Ignore files a bit differently

* Fix lint checks

* Update .goreleaser.yml

* Update Dockerfile

* Update build.yml

* Update Golang linter settings

* Remove gosec nolint

* Remove unused comments

* Add TODO for nolint comments that need to be removed

* Update buf.lock

* buf format

* Fix stylecheck

* Fix alpine version

* Update build.yml

* Work super linter only on diffs

* Lint all codebase on release

Co-authored-by: Ankur Banerjee <[email protected]>
Co-authored-by: Tasos Derisiotis <[email protected]>
* Make VerificationMethod validation as in spec

* Change generated jsons for unit upgrade tests

* Makes linter happy

* Makes linter happy

* Makes linter happy

* Fix integration tests

* Remove unused imports

* Change comparision check

* Add changes for generated files

* Added Ed25519VerificationKey2018 support & enhanced tests

* Fixed namings

* Temp disabled

* Temp disabled

* Fixed deprecated print

* Removed bloat

* Fixed shellcheck

* Fixed bash shellcheck & restored bash linters

* Ignored `sed` extension

* Fixed widespread namings

* Ignored on legacy

* build(deps): Bump IBC v6.1 & ICS 23 v0.9

* Bump ica version

* Pin Makefile buf to new version

* Set non-main BSR pushes to draft

* Update lint.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Update package-lock.json

Co-authored-by: Andrew Nikitin <[email protected]>
Co-authored-by: Ankur Banerjee <[email protected]>
* Update package-lock.json

* Change upgrade name

* Update buf.lock
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 19.0.5 to 20.0.2.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](semantic-release/semantic-release@v19.0.5...v20.0.2)

---
updated-dependencies:
- dependency-name: semantic-release
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): Bump github.com/onsi/ginkgo/v2 from 2.6.1 to 2.7.0

Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.6.1 to 2.7.0.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](onsi/ginkgo@v2.6.1...v2.7.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/ginkgo/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…practices [DEV-2115] (#505)

* Update app.go

* Remove SetOrderMigrations

* Fix debug printings

* Removed special RegisterMigration for DID module

* Set testing log level to debug

* Add pagination to DID and resource queries

* make proto-gen

* gofumpt

* Switch timestamps to protobuf timestamp

* Revert "Switch timestamps to protobuf timestamp"

This reverts commit 7ae11ed.

* Revert "Add pagination to DID and resource queries"

This reverts commit 462edc6.

* Prune v1 protogen paths

* Add clarifying comment

* Update protoc-pulsar-gen.sh

Use a similar loop to exclude v1 directories for Pulsar generation

* Run proto-gen

Co-authored-by: Andrew Nikitin <[email protected]>
…[DEV-2098] (#506)

* fix(ibc): Fixed router seal & legacy bash tests latest working state

* Consistent across

* Update Hermes config

* Delete hermes.Dockerfile

* Delete osmosis.Dockerfile

* Change stake to uosmo

* Fix to uosmo

* Shellcheck fix

* Remove custom external images from Dockerfile

* Rename to omosis-init

* Fix bash reference

* Move everything out of legacy folder

* Fix context reference

Co-authored-by: Ankur Banerjee <[email protected]>
…1] (#466)

* add swagger gen script

* set up proto.mk for swagger functionality

* fix typo in Makefile

* update proto-all to include the new swagger gen cmds

* run proto-all instead of proto-gen inside goreleaser hooks

* add generate_swagger_docs.sh

* fix swagger docs script filename

* change swagger gen output dir

* add set -euox pipefail to scripts

* fix shell syntax

* fix more shell lint issues

* use -n instead of ! -z

* remove generate_swagger_docs.sh

* update Makefile to use correct script

* change dir for temp generated swagger files

* add config.json for individual v2 swagger files

* generate combined swagger.yaml file for swagger-ui

* update protoc-swagger-gen.sh to use swagger-combine

* remove proto-check-breaking in proto.mk

* remove unnecessary proto-swagger-deps

* setup statik for usage in app.go

* add bin directory for statik

* refer statik.go inside app.go

* add a hack to fix importing empty error

* add generated swagger-ui

* add generated statik.go file

* fix shell lint

* change combined schema format to json

* replace swagger.yaml with swagger.json

* ignore lint.yml

* update protoc-swagger-gen.sh

* export go path

* fix lint issue

* fix syntax

* add description and summary for query

* remove swagger.json

* update protoc-swagger-gen

* update swagger.json

* update statik.go

* group queries

* update swagger.json

* add swagger-combine as dev dep

* remove installing swagger-combine from bash

* add base url

* update swagger.json

* add grpc-gateway dep

* add summary DID operations

* add summary for DID operations

* add summary for resource operations

* update resources query

* install statik in pipeline

* install statik without go.mod

* add version

* update statik.go

* remove installing statik from pipeline

* install statik inside script

* remove duplicate swagger file

* move swagger stuff to api/docs

* dont include definitions since they are dereferenced

* update swagger ui

* buf mod update

* Buf mod update

* Remove OpenAPIv2 annotations from DID query

* Remove OpenAPI v2 annotations in resources

* go mod tidy

* make proto gen

* Rename protocgen2

* chmod files

* Update buf build in makefile

* Call Pulsar script correct

* Update Pulsar script call

* Update protoc-pulsar-gen.sh

* Update buf

* Generate Pulsar files

* Pin buf build dependencies

* delete api

* Initialise Pulsar

* Remove API folder

* Remove filtered regex

* Remove statik import

* Update buf gen Swagger path

* Bump Golang minor version

* go mod tidy

* Remove triplicate call

* Initialise API docs

* Change buf gen Swagger out path

* Update .gitignore

* Create config.yaml

* delete swagger dir

* Update .gitignore

Exclude api/docs/cheqd/** path

* go mod tidy

* Update swagger-gen

* Ignore swagger-ui path

* Create statik.go

* Update swagger-gen script

* Update swagger.yaml

* Update Swagger generation config

Added:

- Contact details
- License
- MIME types
- External docs

* Create .spectral.yml

* Update diddoc.pulsar.go

* Update statik.go

* Update swagger.yaml

* go mod tidy api

* Update buf.gen.swagger.yaml

* diddoc proto comments

* Create tables.md

* Rename QueryGetDidDocRequest

* Rename QueryGetDidDocVersionRequest

* Rename QueryGetAllDidDocVersionsMetadataRequest

* Rename QueryGetResourceRequest

* Rename QueryGetResourceMetadataRequest

* Rename QueryGetCollectionResourcesRequest

* Turn off buf breaking because too much be breaking

* Delete tables.md

* Annotate DID query.proto

* Updated associated files after updating query.proto

* Update genesis.proto

* Update fee.proto

* Update diddoc.proto

* Update .gitignore

* Create swagger-initializer.js

* Update query.proto

* Updated API and Pulsar docs

* Update tx.proto

* Update diddoc.pb.go

* Update fee.pb.go

* Update genesis.pb.go

* Update query.pb.go

* Update tx.pb.go

* Update Statik

* Update query.proto

* Protobuf updates

* Revert to DidDoc and Metadata

* make proto-gen

* make swagger

* Update diddoc.proto

* Update did/fee.proto

* Update did/genesis.proto

* Update did/query.proto

* Revert changes to resource/v1/query.proto

* make proto-gen for DIDs

* Update tx.proto

* Take nullable=true off from Service

* Update did/tx.proto

* make proto-gen

* Fixed type alignments

* Make changes around timestamp for did module

* Fix time conversion for empty timestrings

* Update resource/fee.proto

* Update resource/genesis.proto

* Update DIDDoc proto back to what we had

* Resource fee and genesis Pulsar

* Minor resource proto edits

* Done resources

* Make changes for updated and created time conversion

* Restored gen

* Add comments for resource proto files

* Added descriptive resource annotations, in-line with did module

* Re-gen swagger & ignored swagger-combine `config.yaml` temporarily

Co-authored-by: Ankur Banerjee <[email protected]>
Co-authored-by: Tasos Derisiotis <[email protected]>
Co-authored-by: Andrew Nikitin <[email protected]>
Removed temporarily as it's unfinished
* Removed temporarily as it's unfinished

* fix(swagger): Switched swagger-combine config to json

* Added override

* Renamed to match spectral

* Switched to codebase-wide temporarily

* Switched namings

* Switched to warn

* Merge state
Copy link
Contributor Author

@Eengineer1 Eengineer1 left a comment

Choose a reason for hiding this comment

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

Approved by commenting, since I'm the author.

@Eengineer1 Eengineer1 merged commit c78d712 into main Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants