From e92dda1e0b06dd355329adc44e650348580158a8 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Wed, 16 Oct 2024 17:53:37 +0800 Subject: [PATCH] Problem: solomachine and ibc-go are outdated (#1089) * Problem: solomachine and ibc-go are outdated * Update integration_tests/install_solo_machine.nix Signed-off-by: mmsqe * fix ci * Revert "fix ci" This reverts commit 6ccc6bd2477df1a65e3dbd9b616050ecd9feb292. * try v4 --------- Signed-off-by: mmsqe --- .github/workflows/audit.yml | 2 +- .github/workflows/build.yml | 20 ++++++++++---------- .github/workflows/buildwin.yml | 2 +- .github/workflows/codecov.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/gosec.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/nix.yml | 22 +++++++++++----------- .github/workflows/release.yml | 4 ++-- .github/workflows/semgrep.yml | 2 +- .github/workflows/staticmajor.yml | 2 +- CHANGELOG.md | 1 + go.mod | 4 ++-- go.sum | 8 ++++---- gomod2nix.toml | 8 ++++---- integration_tests/install_solo_machine.nix | 8 ++++---- 16 files changed, 46 insertions(+), 45 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 4ab67d7f6..10c3c9c88 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -22,7 +22,7 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.22 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - name: install govulncheck diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c8532f44..9b3a0e612 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,14 +94,14 @@ jobs: with: go-version: 1.22 - name: Checkout Comment PR Branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: github.event_name == 'issue_comment' with: submodules: true token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ steps.pr_data.outputs.ref }} - name: Normal check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true if: github.event_name == 'push' || github.event_name == 'pull_request' @@ -150,7 +150,7 @@ jobs: contents: read security-events: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: cachix/install-nix-action@v23 with: nix_path: nixpkgs=channel:nixos-22.11 @@ -213,14 +213,14 @@ jobs: with: go-version: 1.22 - name: Checkout Comment PR Branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: github.event_name == 'issue_comment' with: submodules: true token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ needs.build.outputs.ref }} - name: Normal check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: github.event_name == 'push' || github.event_name == 'pull_request' with: submodules: true @@ -259,14 +259,14 @@ jobs: with: go-version: 1.22 - name: Checkout Comment PR Branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: github.event_name == 'issue_comment' with: submodules: true token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ needs.build.outputs.ref }} - name: Normal check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: github.event_name == 'push' || github.event_name == 'pull_request' with: submodules: true @@ -305,14 +305,14 @@ jobs: with: go-version: 1.22 - name: Checkout Comment PR Branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: github.event_name == 'issue_comment' with: submodules: true token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ needs.build.outputs.ref }} - name: Normal check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: github.event_name == 'push' || github.event_name == 'pull_request' with: submodules: true @@ -411,7 +411,7 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'push' || github.event_name == 'pull_request' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - id: changed-files uses: tj-actions/changed-files@v41 with: diff --git a/.github/workflows/buildwin.yml b/.github/workflows/buildwin.yml index 79f0d0bc6..1a9efb0ff 100644 --- a/.github/workflows/buildwin.yml +++ b/.github/workflows/buildwin.yml @@ -22,7 +22,7 @@ jobs: with: go-version: 1.22 - name: Normal check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true - name: Set GOBIN diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index d1321c1c3..70ed4892f 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.22 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - id: changed-files diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index aa2a93bda..5614198a9 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -46,7 +46,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: actions/setup-go@v3 with: go-version: 1.22 diff --git a/.github/workflows/gosec.yml b/.github/workflows/gosec.yml index 199e2660e..129b0a3a4 100644 --- a/.github/workflows/gosec.yml +++ b/.github/workflows/gosec.yml @@ -21,7 +21,7 @@ jobs: env: GO111MODULE: on steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - id: changed-files uses: tj-actions/changed-files@v41 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2d083dd59..3366e437a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/setup-go@v3 with: go-version: 1.22 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - id: changed-files diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index ec8247bc2..033cfad83 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -20,7 +20,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - uses: cachix/install-nix-action@v23 @@ -37,7 +37,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - uses: cachix/install-nix-action@v23 @@ -80,7 +80,7 @@ jobs: os: [macos-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - uses: cachix/install-nix-action@v23 @@ -101,7 +101,7 @@ jobs: steps: - name: Create more disk space run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - uses: cachix/install-nix-action@v23 @@ -136,7 +136,7 @@ jobs: test-ledger: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - uses: cachix/install-nix-action@v23 @@ -171,7 +171,7 @@ jobs: test-solomachine: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - uses: cachix/install-nix-action@v23 @@ -206,7 +206,7 @@ jobs: test-slow: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - uses: cachix/install-nix-action@v23 @@ -241,7 +241,7 @@ jobs: test-ibc: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - uses: cachix/install-nix-action@v23 @@ -276,7 +276,7 @@ jobs: test-byzantine: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - uses: cachix/install-nix-action@v23 @@ -311,7 +311,7 @@ jobs: test-gov: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - uses: cachix/install-nix-action@v23 @@ -347,7 +347,7 @@ jobs: test-grpc: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - uses: cachix/install-nix-action@v23 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 341221022..8c2aa0bba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest environment: release steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: cachix/install-nix-action@v23 with: nix_path: nixpkgs=channel:nixos-22.11 @@ -56,7 +56,7 @@ jobs: runs-on: ${{ matrix.runner }} environment: release steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: cachix/install-nix-action@v23 with: nix_path: nixpkgs=channel:nixos-22.11 diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index c04ec28a0..4479ea4fc 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -21,7 +21,7 @@ jobs: if: (github.actor != 'dependabot[bot]') steps: # Fetch project source with GitHub Actions Checkout. - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true # Run the "semgrep ci" command on the command line of the docker image. diff --git a/.github/workflows/staticmajor.yml b/.github/workflows/staticmajor.yml index 167fbf296..4312de541 100644 --- a/.github/workflows/staticmajor.yml +++ b/.github/workflows/staticmajor.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repository code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Staticmajor action id: staticmajor uses: orijtech/staticmajor-action@main diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c777f654..46df5b024 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - [#1084](https://github.com/crypto-org-chain/chain-main/pull/1084) Add MsgModuleQuerySafe in allowed messages for ica host param. - [#1086](https://github.com/crypto-org-chain/chain-main/pull/1086) Upgrade ibc-go to `v8.4.0`. - [#1087](https://github.com/crypto-org-chain/chain-main/pull/1087) Ensure expedited related gov params pass the basic validation. +- [#1088](https://github.com/crypto-org-chain/chain-main/pull/1088) Upgrade solomachine to `v0.1.4` and ibc-go to `v8.5.1`. *Dec 6, 2023* diff --git a/go.mod b/go.mod index ea770824d..3287c3439 100644 --- a/go.mod +++ b/go.mod @@ -22,8 +22,8 @@ require ( github.com/cosmos/cosmos-db v1.0.3-0.20240408151834-e75f6e4b28d8 github.com/cosmos/cosmos-sdk v0.50.9 github.com/cosmos/gogoproto v1.7.0 - github.com/cosmos/ibc-go/modules/capability v1.0.0 - github.com/cosmos/ibc-go/v8 v8.4.0 + github.com/cosmos/ibc-go/modules/capability v1.0.1 + github.com/cosmos/ibc-go/v8 v8.5.1 github.com/cosmos/rosetta v0.50.3-1 github.com/crypto-org-chain/cronos/store v0.0.5-0.20240716081818-7f581a697f6d github.com/crypto-org-chain/cronos/versiondb v0.0.0-20240716081818-7f581a697f6d diff --git a/go.sum b/go.sum index fdd62255e..da509785b 100644 --- a/go.sum +++ b/go.sum @@ -429,10 +429,10 @@ github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fr github.com/cosmos/gogoproto v1.7.0/go.mod h1:yWChEv5IUEYURQasfyBW5ffkMHR/90hiHgbNgrtp4j0= github.com/cosmos/iavl v1.1.2 h1:zL9FK7C4L/P4IF1Dm5fIwz0WXCnn7Bp1M2FxH0ayM7Y= github.com/cosmos/iavl v1.1.2/go.mod h1:jLeUvm6bGT1YutCaL2fIar/8vGUE8cPZvh/gXEWDaDM= -github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE= -github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= -github.com/cosmos/ibc-go/v8 v8.4.0 h1:K2PfX0AZ+1XKZytHGEMuSjQXG/MZshPb83RSTQt2+cE= -github.com/cosmos/ibc-go/v8 v8.4.0/go.mod h1:zh6x1osR0hNvEcFrC/lhGD08sMfQmr9wHVvZ/mRWMCs= +github.com/cosmos/ibc-go/modules/capability v1.0.1 h1:ibwhrpJ3SftEEZRxCRkH0fQZ9svjthrX2+oXdZvzgGI= +github.com/cosmos/ibc-go/modules/capability v1.0.1/go.mod h1:rquyOV262nGJplkumH+/LeYs04P3eV8oB7ZM4Ygqk4E= +github.com/cosmos/ibc-go/v8 v8.5.1 h1:3JleEMKBjRKa3FeTKt4fjg22za/qygLBo7mDkoYTNBs= +github.com/cosmos/ibc-go/v8 v8.5.1/go.mod h1:P5hkAvq0Qbg0h18uLxDVA9q1kOJ0l36htMsskiNwXbo= github.com/cosmos/ics23/go v0.11.0 h1:jk5skjT0TqX5e5QJbEnwXIS2yI2vnmLOgpQPeM5RtnU= github.com/cosmos/ics23/go v0.11.0/go.mod h1:A8OjxPE67hHST4Icw94hOxxFEJMBG031xIGF/JHNIY0= github.com/cosmos/keyring v1.2.0 h1:8C1lBP9xhImmIabyXW4c3vFjjLiBdGCmfLUfeZlV1Yo= diff --git a/gomod2nix.toml b/gomod2nix.toml index e21734d84..533b961bd 100644 --- a/gomod2nix.toml +++ b/gomod2nix.toml @@ -170,11 +170,11 @@ schema = 3 version = "v1.1.2" hash = "sha256-fhh5fN1BMDxbF4PobERMQdIb9vIrxaSl0tRXas0WKmc=" [mod."github.com/cosmos/ibc-go/modules/capability"] - version = "v1.0.0" - hash = "sha256-xOeHJWUj6fTc2EUGiE4dgfY2WkvrqTg/FWewoUvQcvg=" + version = "v1.0.1" + hash = "sha256-iRhj2WTr99DgAl80h25pxtkO6iHYjyHflwpxKKG5b6E=" [mod."github.com/cosmos/ibc-go/v8"] - version = "v8.4.0" - hash = "sha256-c4EWR/F23cRc+mwdIZsjrxwyELGf82jKXfdUtxJIjSA=" + version = "v8.5.1" + hash = "sha256-F4VZbKo1n9fLSxLSR+/ZaisbJ2v+EHjpXVpCovGTiyQ=" [mod."github.com/cosmos/ics23/go"] version = "v0.11.0" hash = "sha256-mgU/pqp4kASmW/bP0z6PzssfjRp7GU9ioyvNlDdGC+E=" diff --git a/integration_tests/install_solo_machine.nix b/integration_tests/install_solo_machine.nix index 6577989c2..76cd5906a 100644 --- a/integration_tests/install_solo_machine.nix +++ b/integration_tests/install_solo_machine.nix @@ -1,21 +1,21 @@ { stdenv, fetchurl, lib }: let - version = "v0.1.3"; + version = "v0.1.4"; srcUrl = { x86_64-linux = { url = "https://github.com/crypto-com/ibc-solo-machine/releases/download/${version}/ubuntu-latest-${version}.tar.gz"; - sha256 = "sha256-Ui92r8J0I3jWGUvaI83rf9PMNyBW4yfnq98lcJ+1fkg="; + sha256 = "sha256-wQix7ZeYTVD+yIWGr4F+XXnHbvXe2WZeNxG2lIDtmJ4="; }; x86_64-darwin = { url = "https://github.com/crypto-com/ibc-solo-machine/releases/download/${version}/macos-latest-${version}.tar.gz"; - sha256 = "sha256-zx4342stMYzgQDXAKwnZKSfdLynGIApOFKZ+CjRCyaE="; + sha256 = "sha256-NYmm44l5exQiG9DbwUM/UZiEmxc0JriXM8/l/xpc+q4="; }; aarch64-darwin = { url = "https://github.com/crypto-com/ibc-solo-machine/releases/download/${version}/macos-latest-${version}.tar.gz"; - sha256 = "sha256-vVgsng5jpmKRODUvjDja/dTvysXSg14O0oVqRswlFts="; + sha256 = "sha256-NYmm44l5exQiG9DbwUM/UZiEmxc0JriXM8/l/xpc+q4="; }; }.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");