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: DNM v0.50 EVM Support #1

Draft
wants to merge 16 commits into
base: release/v0.50.x
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions .github/workflows/release.yml

This file was deleted.

77 changes: 0 additions & 77 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,52 +144,6 @@ jobs:
name: "${{ github.sha }}-e2e-coverage"
path: ./tests/e2e-profile.out

repo-analysis:
runs-on: ubuntu-latest
needs: [tests, test-integration, test-e2e]
steps:
- uses: actions/checkout@v3
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/*.go
go.mod
go.sum
**/go.mod
**/go.sum
- uses: actions/download-artifact@v3
if: env.GIT_DIFF
with:
name: "${{ github.sha }}-00-coverage"
- uses: actions/download-artifact@v3
if: env.GIT_DIFF
with:
name: "${{ github.sha }}-01-coverage"
- uses: actions/download-artifact@v3
if: env.GIT_DIFF
with:
name: "${{ github.sha }}-02-coverage"
- uses: actions/download-artifact@v3
if: env.GIT_DIFF
with:
name: "${{ github.sha }}-03-coverage"
- uses: actions/download-artifact@v3
if: env.GIT_DIFF
with:
name: "${{ github.sha }}-integration-coverage"
- uses: actions/download-artifact@v3
if: env.GIT_DIFF
with:
name: "${{ github.sha }}-e2e-coverage"
continue-on-error: true
- name: sonarcloud
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

liveness-test:
runs-on: ubuntu-latest
timeout-minutes: 15
Expand Down Expand Up @@ -505,37 +459,6 @@ jobs:
with:
projectBaseDir: orm/

test-cosmovisor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
check-latest: true
cache: true
cache-dependency-path: tools/cosmovisor/go.sum
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
tools/cosmovisor/**/*.go
tools/cosmovisor/go.mod
tools/cosmovisor/go.sum
- name: tests
if: env.GIT_DIFF
run: |
cd tools/cosmovisor
go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock rocksdb_build' ./...
- name: sonarcloud
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: tools/cosmovisor/

test-confix:
runs-on: ubuntu-latest
steps:
Expand Down
114 changes: 114 additions & 0 deletions .gitpatches/ci_jobs-remove-actions.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
deleted file mode 100644
index fb031d3ec8..0000000000
--- a/.github/workflows/release.yml
+++ /dev/null
@@ -1,51 +0,0 @@
-name: Release
-# This workflow helps with creating releases.
-# This job will only be triggered when a tag (vX.X.x) is pushed
-on:
- push:
- # Sequence of patterns matched against refs/tags
- tags:
- - "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
-
-permissions:
- contents: read
-
-jobs:
- release:
- permissions:
- contents: write # for goreleaser/goreleaser-action to create a GitHub release
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - name: Install Go
- uses: actions/setup-go@v4
- with:
- go-version: "1.21"
- check-latest: true
- - name: Unshallow
- run: git fetch --prune --unshallow
- - name: Create release
- uses: goreleaser/goreleaser-action@v3
- with:
- args: release --rm-dist --release-notes ./RELEASE_NOTES.md
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
- release-success:
- needs: release
- if: ${{ success() }}
- runs-on: ubuntu-latest
- steps:
- - name: Notify Slack on success
- uses: rtCamp/[email protected]
- env:
- SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- SLACK_CHANNEL: cosmos-tech
- SLACK_USERNAME: Cosmos SDK Release Bot
- SLACK_ICON: https://avatars.githubusercontent.com/t/5997665?size=64
- SLACK_COLOR: good
- SLACK_TITLE: "Cosmos SDK ${{ github.ref_name }} is tagged :tada:"
- SLACK_MESSAGE: "@channel :point_right: https://github.com/cosmos/cosmos-sdk/releases/tag/${{ github.ref_name }}"
- SLACK_FOOTER: ""
- SLACK_LINK_NAMES: true
- MSG_MINIMAL: true
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 24ca58bfb2..88cc942430 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -144,52 +144,6 @@ jobs:
name: "${{ github.sha }}-e2e-coverage"
path: ./tests/e2e-profile.out

- repo-analysis:
- runs-on: ubuntu-latest
- needs: [tests, test-integration, test-e2e]
- steps:
- - uses: actions/checkout@v3
- - uses: technote-space/[email protected]
- id: git_diff
- with:
- PATTERNS: |
- **/*.go
- go.mod
- go.sum
- **/go.mod
- **/go.sum
- - uses: actions/download-artifact@v3
- if: env.GIT_DIFF
- with:
- name: "${{ github.sha }}-00-coverage"
- - uses: actions/download-artifact@v3
- if: env.GIT_DIFF
- with:
- name: "${{ github.sha }}-01-coverage"
- - uses: actions/download-artifact@v3
- if: env.GIT_DIFF
- with:
- name: "${{ github.sha }}-02-coverage"
- - uses: actions/download-artifact@v3
- if: env.GIT_DIFF
- with:
- name: "${{ github.sha }}-03-coverage"
- - uses: actions/download-artifact@v3
- if: env.GIT_DIFF
- with:
- name: "${{ github.sha }}-integration-coverage"
- - uses: actions/download-artifact@v3
- if: env.GIT_DIFF
- with:
- name: "${{ github.sha }}-e2e-coverage"
- continue-on-error: true
- - name: sonarcloud
- if: ${{ env.GIT_DIFF && !github.event.pull_request.draft }}
- uses: SonarSource/sonarcloud-github-action@master
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
-
liveness-test:
runs-on: ubuntu-latest
timeout-minutes: 15
42 changes: 42 additions & 0 deletions .gitpatches/ci_remove_cosmosvisor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 88cc942430..6c2af9708e 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -459,37 +459,6 @@ jobs:
with:
projectBaseDir: orm/

- test-cosmovisor:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-go@v4
- with:
- go-version: "1.21"
- check-latest: true
- cache: true
- cache-dependency-path: tools/cosmovisor/go.sum
- - uses: technote-space/[email protected]
- id: git_diff
- with:
- PATTERNS: |
- tools/cosmovisor/**/*.go
- tools/cosmovisor/go.mod
- tools/cosmovisor/go.sum
- - name: tests
- if: env.GIT_DIFF
- run: |
- cd tools/cosmovisor
- go test -mod=readonly -timeout 30m -coverprofile=coverage.out -covermode=atomic -tags='norace ledger test_ledger_mock rocksdb_build' ./...
- - name: sonarcloud
- if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null }}
- uses: SonarSource/sonarcloud-github-action@master
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- with:
- projectBaseDir: tools/cosmovisor/
-
test-confix:
runs-on: ubuntu-latest
steps:
15 changes: 15 additions & 0 deletions .gitpatches/staking_poa-skip-jailed-validators.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/x/staking/keeper/val_state_change.go b/x/staking/keeper/val_state_change.go
index 444633983c..cb5d01f7eb 100644
--- a/x/staking/keeper/val_state_change.go
+++ b/x/staking/keeper/val_state_change.go
@@ -159,7 +159,9 @@ func (k Keeper) ApplyAndReturnValidatorSetUpdates(ctx context.Context) (updates
validator := k.mustGetValidator(ctx, valAddr)

if validator.Jailed {
- panic("should never retrieve a jailed validator from the power store")
+ // https://github.com/cosmos/cosmos-sdk/pull/20059
+ // panic("should never retrieve a jailed validator from the power store")
+ continue
}

// if we get to a zero-power validator (which we don't bond),
Loading
Loading