Skip to content

Commit

Permalink
V8 rc1 prepare (#1999)
Browse files Browse the repository at this point in the history
* feat: Add command bech32-convert (#1845)

* add bech32-convert command to gaiad

* add changelog notice

* add review fixes

* add tests for ConvertBech32Prefix

Co-authored-by: Petr Ivanov <[email protected]>
Co-authored-by: Danilo Pantani <[email protected]>
Co-authored-by: billy rennekamp <[email protected]>

* fix feegrant test accounts (#1861)

* Updated and new links (#1862)

* Updated and added links

Current Telegram links directs to a chat that no longer exists, replaced it with the main Cosmos Telegram group. Also added link to Mintscan's list of on-chain proposals

* Updated Telegram link: t.me/atomgov

Co-authored-by: billy rennekamp <[email protected]>

* chore: bump sdk to v0.46.4 (#1863)

* chore: bump sdk

* rename flag

* prepare v8 release (#1860)

* chore: changelog

* chore: update changelog

* chore: add changelog for v7.0.3

* chore: add v7.1.0 to changelog

Co-authored-by: Yaru Wang <[email protected]>

* Add backport for v8 & future v9/v10 (#1865)

* Revert "prepare v8 release (#1860)" (#1866)

This reverts commit f0397fd.

* chore: changelog (#1868)

* fix: print in app.go (#1878)

* fix: print in app.go

* fix: change print err to panic in init

* refactor: simplify the logic in fee antehandler (#1877)

* refactor: simplify the logic in fee antehandler

* fix: test

* test: add test for disable checkTx

* fix: err check (#1880)

* fix: change log.Fatal to panic, defer iter.Close()

* update export.go

* fix: lint

* chore(deps): bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1885)

Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](spf13/viper@v1.13.0...v1.14.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  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>

* test: export genesis (#1871)

* Add export test

* Add unit test for app export

* Refactor gaia helpers setup

Co-authored-by: Danilo Pantani <[email protected]>

* fix(chore): fix gosec issues (#1881)

* gosec improvements

* fix gosec issues

* defer to close iterator

* add gas adjustment

* Merge PR #1893: Delete CODE_OF_CONDUCT.md

* test: Unit tests for global fee module (#1858)

* test: add test for globalfee validateMinimumGasPrices

* test: add test for querier

* fix: panic in test

* update test

* update test

* use original test

* Update x/globalfee/types/params_test.go

Co-authored-by: Danilo Pantani <[email protected]>

Co-authored-by: Danilo Pantani <[email protected]>

* icamauth docs (#1813)

* docs: add icamauth docs

* docs: change uatom to stake

* chore: update docs

* docs: update icamuath.md according to review comments

* docs: rename icamauth.md to README.md

* docs: read mnemonic from file

* docs: add hermes download instruction

* update docs

* globalfee/README.md -> globalfee.md

* Update docs/modules/icamauth/hermes_setup.sh

Co-authored-by: Danilo Pantani <[email protected]>

* docs: fix dead link

* Update README.md

* Update README.md

* fixes

Co-authored-by: billy rennekamp <[email protected]>
Co-authored-by: Danilo Pantani <[email protected]>

* docs: correct `NoWithVeto` condition description (#1900)

According to (docs)[https://docs.cosmos.network/main/modules/gov#threshold] and [code](https://github.com/cosmos/cosmos-sdk/blob/bcff22a3767b9c5dd7d1d562aece90cf72e05e85/x/gov/keeper/tally.go#L115), it includes `abstain` when calculating the threshold of `NoWithVeto`.

* fix(CI): fix code coverage (#1903)

* fix the code test coverage measure

* fix folder type removal

* docs: update icamauth (#1905)

* docs: update icamauth

* docs: restructure icamauth docs

* docs: update links

* docs: fix dead links

* chore: update docs (#1906)

* feat(CI): skip run the go CI test for markdown/docs files (#1907)

* skip run the test CI for markdown files

* remove skip from the codeql ci

* only ignore md files for codeql

* feat(x/ica): add tests for icamauth module (#1897)

* add unit tests methods

* add tests for the types folder

* remove query test

* add test description

* refactor: e2e test (#1840)

* refactor: ica e2e test

* refactor: globalfee e2e test

* refactor: add execBankSendBatch

* refactor: add const proposalGlobalFee

* refactor: execBankSendBatch

* Update tests/e2e/e2e_exec_test.go

Co-authored-by: Danilo Pantani <[email protected]>

* test: refactor execBankSendBatch

* fix: failure test

Co-authored-by: Danilo Pantani <[email protected]>

* Update ibc-go v5.1.0 (#1898)

* Strangelove/forward middleware atomic (#1911)

* Update forward middleware to use packet memo field, async acks

* fixed e2e

Co-authored-by: Andrew Gouin <[email protected]>

* fix bank migration in upgrade handler (#1892)

* fix bank migtation in upgrade handler

* try atomated upgrade test

* fix build

* change so runs on yml change too

* change so runs on yml change too

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* change again

* passing upgrade test

* Update app/upgrades/v8/upgrades.go

Co-authored-by: Danilo Pantani <[email protected]>

* Update contrib/scripts/run-gaia-v7.sh

Co-authored-by: Danilo Pantani <[email protected]>

* Update contrib/scripts/run-gaia-v7.sh

Co-authored-by: Danilo Pantani <[email protected]>

* Update contrib/scripts/run-gaia-v7.sh

Co-authored-by: Danilo Pantani <[email protected]>

* Update contrib/scripts/run-gaia-v7.sh

Co-authored-by: Danilo Pantani <[email protected]>

* add unit test

* Update app/upgrades/v8/upgrades_test.go

Co-authored-by: Danilo Pantani <[email protected]>

* added check for deformed being removed

Co-authored-by: Danilo Pantani <[email protected]>

* chore: simplify logic of getting allFees (#1917)

* Updated codeowners, removed pantani, cmwaters & noomski

* Makefile: add govulnchecker (#1927)

Adds the Go vulnerability checker to the Makefile as a directive
dependency to the all directive.

Updates #1879

* spike to test feasibility of downgrade to v0.45 (#1902)

* pause

* no vscode errors

* rewrite go.sum, go.work.sum and fix amino import

* remove mauth docs

* gofumpt

* fix find

* cant get docker to build locally

* debug ibc test

* fix ibc test

* passing e2e

* clean up commented out tests

* remove more mauth

* forgot to save

* add back middleware test

* fix upgrade

* fix test setup

* add TODO note

* remove multihop test

* Update docs/modules/gov.md

* Update tests/e2e/query.go

Co-authored-by: lg <[email protected]>

* remove groups and gov docs

* laurens comment re moduleAccountAddress

* remove commented code that should not be added back

Co-authored-by: lg <[email protected]>

* feat: proto dependencies for downgrade to 0.45 (#1933)

* feat: add third_party proto

* feat: add script for generating go files from proto, and swagger

* feat: add protoc-doc-gen.sh

* fix: antehandler to fit sdk v0.45 (#1918)

* pause

* no vscode errors

* rewrite go.sum, go.work.sum and fix amino import

* remove mauth docs

* gofumpt

* fix find

* cant get docker to build locally

* debug ibc test

* fix ibc test

* passing e2e

* clean up commented out tests

* remove more mauth

* forgot to save

* add back middleware test

* fix upgrade

* fix test setup

* add TODO note

* remove multihop test

* fix: antehandler in sdkv0.45

* test: add back globalfee e2e test

* fix: failure of verifying sending token amount

* chore: remove comments

* feat: simplify fee logic

Co-authored-by: billy rennekamp <[email protected]>

* test re-org (#1913)

* pause

* no vscode errors

* rewrite go.sum, go.work.sum and fix amino import

* remove mauth docs

* gofumpt

* fix find

* cant get docker to build locally

* debug ibc test

* fix ibc test

* passing e2e

* clean up commented out tests

* remove more mauth

* forgot to save

* add back middleware test

* fix upgrade

* fix test setup

* add TODO note

* remove multihop test

* re-organized tests to make it easier to skip when working on a single one

* remove gov tests

* removed multihop tests

* markdownlint (#1936)

* fix: feegrant e2e test (#1940)

* docs: update state sync (#1946)

* Updated roadmap (#1947)

* bump versions, remove e2e go.mod (#1944)

* bump versions, remove e2e go.mod

* stupid gofumpt errors

* fixed packet forward configuration (#1941)

* exclude e2e tests from test coverage upload (#1953)

* exclude e2e tests from test coverage upload

* swap order of test to exclude e2e

* remove e2e from find

* updated gov docs as specified in issue #1948 (#1949)

* updated gov docs as specified in issue #1948

* fixed links

* missed a few links

* fix links (#1954)

* test: Refactor gov e2e for v0.45 Rho (#1951)

* WIP

* Refactor gov tests for v45

* Refactor gov and add community spend test

* Refactor

* Set explicit sdk & tm versions for all dependencies

Co-authored-by: billy rennekamp <[email protected]>

* Skip broken redirect link check

* Restrict disable link to single link

Co-authored-by: billy rennekamp <[email protected]>

* add back TestGaiaApp_Export  (#1955)

* pause

* unit pasing, check e2e

* Update test_helpers.go

* fix: put iterator in closure (#1934)

Co-authored-by: Milan Mulji <[email protected]>

* uncomment still existing test (#1956)

* uncomment still existing test

* forgot to include this file

* pause

* remove again

* add back rest of tests

* push e2e image and use released versions in docker push action (#1939)

Co-authored-by: billy rennekamp <[email protected]>

* lint tests, too (#1960)

* feat: Change MaxBypassMinFeeMsgGasUsage via NewFeeDecorator (#1961)

* change MaxBypassMinFeeMsgGasUsage easily

* move test to newTestGasLimit

* chore: remove unneeded replace tags (#1959)

* remove unneeded replace tags

* remove ibc dep

* Update go.mod

Co-authored-by: Marko Baricevic <[email protected]>
Co-authored-by: billy rennekamp <[email protected]>

* chore(docs): add code guidelines (#1819)

* code guidelines

* add resources

* Update docs/code-guidelines.md

Co-authored-by: billy rennekamp <[email protected]>

* git guidelines

* small fixes and final steps

Co-authored-by: billy rennekamp <[email protected]>

* Update ko genesis.md (#1964)

* offboarding (#1969)

* chore(deps): bump actions/cache from 3.0.10 to 3.2.0 (#1968)

Bumps [actions/cache](https://github.com/actions/cache) from 3.0.10 to 3.2.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@v3.0.10...v3.2.0)

---
updated-dependencies:
- dependency-name: actions/cache
  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>

* docs: fix global fee link (#1978)

* chore(deps): bump github.com/gravity-devs/liquidity from 1.5.1 to 1.5.3 (#1981)

Bumps [github.com/gravity-devs/liquidity](https://github.com/gravity-devs/liquidity) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/gravity-devs/liquidity/releases)
- [Changelog](https://github.com/Gravity-Devs/liquidity/blob/master/CHANGELOG.md)
- [Commits](Gravity-Devs/liquidity@v1.5.1...v1.5.3)

---
updated-dependencies:
- dependency-name: github.com/gravity-devs/liquidity
  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>

* Fix: minor typos (#1984)

Fix: minor typos

* Migrations for quicksilver issue (#1976)

* prepare v8 release (backport #1860) (#1867)

* prepare v8 release (#1860)

* chore: changelog

* chore: update changelog

* chore: add changelog for v7.0.3

* chore: add v7.1.0 to changelog

Co-authored-by: Yaru Wang <[email protected]>
(cherry picked from commit f0397fd)

# Conflicts:
#	CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: billy rennekamp <[email protected]>

* Added migrations for quicksilver stuck fund fix

* Migrations for quicksilver

* Check if balance of the refund addess is positive

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: billy rennekamp <[email protected]>
Co-authored-by: lg <[email protected]>

* test: remove unused const (#1988)

* test: remove unused const

* fix: lint

* Changelog for V8 (#1982)

* Update changelog for v8

* Update changelog for v8

* Update changelog

* Make requested changes

* Update date

* Point to informal's fork of tendermint (#1990)

* fix: remove ica controller params setup from upgrade handler (#1989)

Signed-off-by: Yaru Wang <[email protected]>

* Update codeowners (#1993)

* preparing for v8.0.0-rc1 release (#1994)

* prepare v8 release (backport #1860) (#1867)

* prepare v8 release (#1860)

* chore: changelog

* chore: update changelog

* chore: add changelog for v7.0.3

* chore: add v7.1.0 to changelog

Co-authored-by: Yaru Wang <[email protected]>
(cherry picked from commit f0397fd)

# Conflicts:
#	CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: billy rennekamp <[email protected]>

* docs: update changelog

Signed-off-by: Yaru Wang <[email protected]>

* docs: update docs

Signed-off-by: Yaru Wang <[email protected]>

Signed-off-by: Yaru Wang <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: billy rennekamp <[email protected]>

* docs: changelog for v8.0.0-rc1 (#1997)

Signed-off-by: Yaru Wang <[email protected]>

Signed-off-by: Yaru Wang <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Yaru Wang <[email protected]>
Co-authored-by: Petr Ivanov <[email protected]>
Co-authored-by: Petr Ivanov <[email protected]>
Co-authored-by: Danilo Pantani <[email protected]>
Co-authored-by: billy rennekamp <[email protected]>
Co-authored-by: ZorroZ77 <[email protected]>
Co-authored-by: Yaru Wang <[email protected]>
Co-authored-by: yaruwangway <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacob Gadikian <[email protected]>
Co-authored-by: Yongwoo Lee <[email protected]>
Co-authored-by: Giancarlos Salas <[email protected]>
Co-authored-by: Andrew Gouin <[email protected]>
Co-authored-by: Milan Mulji <[email protected]>
Co-authored-by: Emmanuel T Odeke <[email protected]>
Co-authored-by: Lexa Michaelides <[email protected]>
Co-authored-by: Reece Williams <[email protected]>
Co-authored-by: Marko <[email protected]>
Co-authored-by: Marko Baricevic <[email protected]>
Co-authored-by: GwangIl-Park <[email protected]>
Co-authored-by: omahs <[email protected]>
Co-authored-by: stana-ethernal <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 8ef1005 commit 24f255a
Show file tree
Hide file tree
Showing 290 changed files with 11,065 additions and 10,228 deletions.
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# CODEOWNERS: https://help.github.com/articles/about-codeowners/

# Primary repo maintainers
* @okwme @alexanderbez @zmanian @yaruwangway @crodriguezvega @cmwaters @jackzampolin @mmulji-ic @glnro @pantani
* @alexanderbez @zmanian @yaruwangway @crodriguezvega @jackzampolin @mmulji-ic @glnro @jtremback @mpoke

# Governance Process and Docs maintainers
docs/governance/* @hxrts @uditvira @LexaMichaelides @nooomski
docs/governance/* @hxrts @uditvira @LexaMichaelides @yaruwangway

20 changes: 8 additions & 12 deletions .codecov.yml → .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
#
# This codecov.yml is the default configuration for
# all repositories on Codecov. You may adjust the settings
# below in your own codecov.yml in your repository.
#
coverage:
precision: 2
round: down
range: 70...100

status:
# Learn more at https://docs.codecov.io/docs/commit-status
project:
default:
threshold: 1% # allow this much decrease on project
app:
target: 80%
paths: "app/"

changes: false

comment:
Expand All @@ -25,9 +17,13 @@ comment:
require_changes: true

ignore:
- "*.pb.go"
- "*.pb.gw.go"
- "*.md"
- "*.rst"
- "cmd/"
- "contrib/"
- "docs/"
- "networks/"
- "cmd"
- "client"
- "contrib"
- "docs"
- "proto"
- "tests/e2e"
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
paths-ignore:
- "**/*.md"
schedule:
- cron: '0 * * * *'

Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,31 @@ jobs:
uses: actions/[email protected]

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v2.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@12cce9efe0d49980455aaaca9b071c0befcdd702
uses: docker/metadata-action@v4.1.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@c84f38281176d4c9cdb1626ffafcd6b3911b5d94
uses: docker/build-push-action@v3.2.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Build and push e2e docker image
uses: docker/[email protected]
with:
context: .
file: Dockerfile.e2e
push: true
tags: ${{ steps.meta.outputs.tags }}-e2e
labels: ${{ steps.meta.outputs.labels }}
8 changes: 4 additions & 4 deletions .github/workflows/release-sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
go-version: 1.18
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -40,7 +40,7 @@ jobs:
steps:
- name: install runsim
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -50,7 +50,7 @@ jobs:
needs: [build, install-runsim]
steps:
- uses: actions/[email protected]
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -72,7 +72,7 @@ jobs:
**/**.go
go.mod
go.sum
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sim-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
go-version: 1.18
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -34,7 +34,7 @@ jobs:
- uses: actions/[email protected]
with:
go-version: 1.18
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
go-version: 1.18
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -43,7 +43,7 @@ jobs:
**/**.go
go.mod
go.sum
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -67,7 +67,7 @@ jobs:
**/**.go
go.mod
go.sum
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -85,7 +85,7 @@ jobs:
go-version: 1.18
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -96,7 +96,7 @@ jobs:
steps:
- name: install runsim
run: go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -109,7 +109,7 @@ jobs:
with:
go-version: 1.18
- uses: actions/[email protected]
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand Down
82 changes: 67 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: Build & Test
name: Test

on:
workflow_call:
pull_request:
paths-ignore:
- "**/*.md"
- "docs/**"
push:
branches:
- main
paths-ignore:
- "**/*.md"
- "docs/**"

jobs:
cleanup-runs:
Expand All @@ -18,43 +25,43 @@ jobs:
test-coverage-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
go-version: 1.18
- uses: actions/[email protected]
- uses: technote-space/get-diff-action@v6.0.1
- uses: technote-space/get-diff-action@v6.1.1
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/cache@v3.0.10
- uses: actions/cache@v3.2.0
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.mod') }}
restore-keys: |
${{ runner.os }}-go-
- name: build
run: make build
- uses: actions/[email protected]
with:
go-version: 1.18
- name: test & coverage report creation
run: |
make test-unit-cover
- name: filter out DONTCOVER
go test -v -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... $(go list ./... | grep -v -e '/tests/e2e')
- name: filter non-testable files
run: |
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
excludelist+=" $(find ./ -type f -name '*.pb.go')"
excludelist+=" $(find ./ -type f -path './tests/mocks/*.go')"
excludelist+=" $(find ./ -type f -name '*.pb.gw.go')"
excludelist+=" $(find ./cmd -type d)"
excludelist+=" $(find ./tests -type d)"
for filename in ${excludelist}; do
filename=$(echo $filename | sed 's/^./github.com\/cosmos\/cosmos-sdk/g')
filename=${filename#".//"}
echo "Excluding ${filename} from coverage report..."
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
filename=$(echo "$filename" | sed 's/\//\\\//g')
sed -i.bak "/""$filename""/d" coverage.txt
done
- uses: codecov/[email protected]
with:
file: ./coverage.txt # optional
file: ./coverage.txt
fail_ci_if_error: true

test-e2e:
Expand Down Expand Up @@ -102,3 +109,48 @@ jobs:
run: |
./contrib/scripts/test_localnet_liveness.sh 100 5 50 localhost
if: env.GIT_DIFF

upgrade-test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- name: Install GaiaV7
run: |
git checkout v7.1.0
make build
cp ./build/gaiad ./build/gaiad7
if: env.GIT_DIFF
- name: Install GaiaV8
run: |
git checkout -
make build
cp ./build/gaiad ./build/gaiad8
if: env.GIT_DIFF
- name: Install Cosmovisor
run: |
go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/[email protected]
if: env.GIT_DIFF
- name: Start GaiaV7
run: |
./contrib/scripts/run-gaia-v7.sh > v7.out 2>&1 &
if: env.GIT_DIFF
- name: Submit Upgrade Commands
run: |
./contrib/scripts/run-upgrade-commands.sh 15
if: env.GIT_DIFF
- name: Check for successful upgrade
run: |
./contrib/scripts/test_upgrade.sh 20 5 16 localhost
if: env.GIT_DIFF
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
tests: false
tests: true
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m

Expand All @@ -8,6 +8,7 @@ linters:
enable:
- depguard
- dogsled
- errcheck
- exportloopref
- goconst
- gocritic
Expand Down
27 changes: 27 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,30 @@ pull_request_rules:
backport:
branches:
- release/v7.0.x

- name: Backport patches to the release/v8.0.x branch
conditions:
- base=main
- label=A:backport/v8.0.x
actions:
backport:
branches:
- release/v8.0.x

- name: Backport patches to the release/v9.0.x branch
conditions:
- base=main
- label=A:backport/v9.0.x
actions:
backport:
branches:
- release/v9.0.x

- name: Backport patches to the release/v10.0.x branch
conditions:
- base=main
- label=A:backport/v10.0.x
actions:
backport:
branches:
- release/v10.0.x
Loading

0 comments on commit 24f255a

Please sign in to comment.