Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
f9a66b8
refactor: styles
DeshErBojhaa Apr 11, 2025
5479890
test: Packet forward middleware e2e for timeout
DeshErBojhaa Apr 13, 2025
9351918
include packet forward middleware to the simapp
DeshErBojhaa Apr 24, 2025
5fe25bf
fix format
DeshErBojhaa Apr 24, 2025
e397508
fix tags
DeshErBojhaa Apr 24, 2025
9c85d5c
sync dependencies
DeshErBojhaa Apr 24, 2025
c5949eb
fix: add genesis order
DeshErBojhaa Apr 24, 2025
d881cba
wrap transfer with packet forward
DeshErBojhaa Apr 24, 2025
0bd65d1
wip
DeshErBojhaa Apr 25, 2025
45f281b
fix: transferkeeper ref
DeshErBojhaa Apr 25, 2025
b9dd1ad
include PFM into the simapp used in unit test
DeshErBojhaa Apr 29, 2025
2eb3ece
fix channel selection in forward packet test
gjermundgaraba Apr 29, 2025
d4f3efa
go mod tidy
DeshErBojhaa Apr 29, 2025
da6dbed
Merge branch 'tamjid/pfm-homecoming-tests' of github.com:cosmos/ibc-g…
DeshErBojhaa Apr 29, 2025
736eb20
e2e test passes
DeshErBojhaa Apr 30, 2025
262b066
packet forward test pass
DeshErBojhaa Apr 30, 2025
5354aea
e2e: paccket forwarding middleware pass test d -> c -> b -> a
DeshErBojhaa May 2, 2025
3f1cd02
e2e: packet forward pass refund due to malform forward
DeshErBojhaa May 2, 2025
1eb2913
e2e B -> A then A -> B done. Unwind done
DeshErBojhaa May 2, 2025
875aa4b
e2e packet forward
DeshErBojhaa May 2, 2025
ff0a7a7
e2e packet forward
DeshErBojhaa May 2, 2025
c6676e0
e2e for chain upgrade intermediate
DeshErBojhaa May 6, 2025
ca60182
e2e for chain upgrade
DeshErBojhaa May 6, 2025
6a59f26
Skip test for now
DeshErBojhaa May 6, 2025
ea48f3c
Skip e2e test
DeshErBojhaa May 6, 2025
ce966a6
ci for e2e tests
DeshErBojhaa May 6, 2025
7a947cf
e2e: CI add chain C and D configuration on
DeshErBojhaa May 6, 2025
2fe8657
update ci
DeshErBojhaa May 6, 2025
7eb58ab
test
DeshErBojhaa May 6, 2025
91050cc
test
DeshErBojhaa May 6, 2025
7f8b55f
test
DeshErBojhaa May 6, 2025
5eea666
e2e: fix missing configurations for chain C and D
DeshErBojhaa May 6, 2025
07998b0
fix lint: Shutup meg!
DeshErBojhaa May 6, 2025
a0458bd
fix lint: Shutup Meg!
DeshErBojhaa May 7, 2025
7f9b06b
fix: tests
DeshErBojhaa May 7, 2025
0dabbd8
docs:Final v10 docs update and middleware serialization (#8277)
womensrights Apr 8, 2025
f9d7d87
Create IBC-v2-April-2025-Collaborative-Audit-Report.pdf (#8283)
womensrights Apr 9, 2025
c71e803
feat: Unit tests for Packet Forward Middleware (#8313)
DeshErBojhaa May 7, 2025
9418f94
include packet forward middleware to the simapp
DeshErBojhaa Apr 24, 2025
d45bc58
fix channel selection in forward packet test
gjermundgaraba Apr 29, 2025
bfb5866
include packet forward middleware to the simapp
DeshErBojhaa Apr 24, 2025
8ed50e9
Merge branch 'tamjid/pfm-homecoming' into tamjid/pfm-homecoming-tests
DeshErBojhaa May 7, 2025
4f9bd8e
fix tests
DeshErBojhaa May 7, 2025
38b07ab
update linter and fix lint errors
gjermundgaraba May 7, 2025
4b4cb80
fix e2e genesis test
gjermundgaraba May 7, 2025
1b2db92
remove comments
DeshErBojhaa May 8, 2025
3154fa9
Update e2e/tests/packet_forward_middleware/forward_timeout_test.go
DeshErBojhaa May 8, 2025
fec3583
Update e2e/tests/packet_forward_middleware/pfm_upgrade_test.go
DeshErBojhaa May 8, 2025
5e6d1b0
Update e2e/tests/packet_forward_middleware/forward_timeout_test.go
DeshErBojhaa May 8, 2025
0ec25cc
lint
gjermundgaraba May 9, 2025
1aa7313
refactor: rename function for clarity and consisancy
DeshErBojhaa May 9, 2025
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
2 changes: 2 additions & 0 deletions .github/workflows/e2e-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
env:
CHAIN_A_TAG: latest
CHAIN_B_TAG: latest
CHAIN_C_TAG: latest
CHAIN_D_TAG: latest
CHAIN_IMAGE: ibc-go-simd
FORK: "true"
# run this job on forks and copies of ibc-go, for example: a public fork or a private copy of ibc-go.
Expand Down
33 changes: 32 additions & 1 deletion .github/workflows/e2e-manual-simd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ on:
- TestInterchainAccountsGroupsTestSuite
- TestInterchainAccountsGovTestSuite
- TestAuthzTransferTestSuite
- TestForwardTransferSuite
chain-image:
description: 'The image to use for chain A'
description: 'The image to use for chains'
required: true
type: string
default: "ghcr.io/cosmos/ibc-go-simd"
Expand Down Expand Up @@ -49,6 +50,34 @@ on:
description: 'Specify an arbitrary tag for chain B'
required: false
type: string
chain-c-tag:
description: 'The tag to use for chain C'
required: true
type: choice
default: main
options:
- main
- v10.0.0
- v8.7.0
- v7.10.0
chain-c-tag-override:
description: 'Specify an arbitrary tag for chain C'
required: false
type: string
chain-d-tag:
description: 'The tag to use for chain D'
required: true
type: choice
default: main
options:
- main
- v10.0.0
- v8.7.0
- v7.10.0
chain-d-tag-override:
description: 'Specify an arbitrary tag for chain A'
required: false
type: string

jobs:
e2e-manual:
Expand All @@ -57,4 +86,6 @@ jobs:
chain-image: "${{ github.event.inputs.chain-image }}"
chain-a-tag: "${{ github.event.inputs.chain-a-tag-override || github.event.inputs.chain-a-tag }}"
chain-b-tag: "${{ github.event.inputs.chain-b-tag-override || github.event.inputs.chain-b-tag }}"
chain-c-tag: "${{ github.event.inputs.chain-c-tag-override || github.event.inputs.chain-c-tag }}"
chain-d-tag: "${{ github.event.inputs.chain-d-tag-override || github.event.inputs.chain-d-tag }}"
test-entry-point: "${{ github.event.inputs.test-entry-point }}"
17 changes: 17 additions & 0 deletions .github/workflows/e2e-test-workflow-call.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ on:
description: 'The tag to use for chain B'
required: true
type: string
chain-c-tag:
description: 'The tag to use for chain C'
required: true
type: string
default: main
chain-d-tag:
default: main
description: 'The tag to use for chain D'
required: true
type: string
# upgrade-plan-name is only required during upgrade tests, and is otherwise ignored.
upgrade-plan-name:
default: ''
Expand Down Expand Up @@ -78,6 +88,8 @@ jobs:
echo "Chain Image: ${{ inputs.chain-image }}"
echo "Chain A Tag: ${{ inputs.chain-a-tag }}"
echo "Chain B Tag: ${{ inputs.chain-b-tag }}"
echo "Chain C Tag: ${{ inputs.chain-c-tag }}"
echo "Chain D Tag: ${{ inputs.chain-d-tag }}"
echo "Upgrade Plan Name: ${{ inputs.upgrade-plan-name }}"
echo "Test Entry Point: ${{ inputs.test-entry-point }}"
echo "Test: ${{ inputs.test }}"
Expand Down Expand Up @@ -205,6 +217,8 @@ jobs:
CHAIN_UPGRADE_PLAN: '${{ inputs.upgrade-plan-name }}'
CHAIN_A_TAG: '${{ inputs.chain-a-tag }}'
CHAIN_B_TAG: '${{ inputs.chain-b-tag }}'
CHAIN_C_TAG: '${{ inputs.chain-c-tag }}'
CHAIN_D_TAG: '${{ inputs.chain-d-tag }}'
E2E_CONFIG_PATH: '${{ inputs.e2e-config-path }}'
strategy:
fail-fast: false
Expand Down Expand Up @@ -243,6 +257,8 @@ jobs:
CHAIN_IMAGE: '${{ inputs.chain-image }}'
CHAIN_A_TAG: '${{ inputs.chain-a-tag }}'
CHAIN_B_TAG: '${{ inputs.chain-b-tag }}'
CHAIN_C_TAG: '${{ inputs.chain-c-tag }}'
CHAIN_D_TAG: '${{ inputs.chain-d-tag }}'
E2E_CONFIG_PATH: '${{ inputs.e2e-config-path }}'
strategy:
fail-fast: false
Expand All @@ -256,6 +272,7 @@ jobs:
- entrypoint: TestTransferLocalhostTestSuite
- entrypoint: TestConnectionTestSuite
- entrypoint: TestInterchainAccountsGovTestSuite
- entrypoint: TestForwardTransferSuite
steps:
- uses: actions/checkout@v4
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/e2e-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
chain-image: ghcr.io/cosmos/ibc-go-simd
chain-a-tag: v6.1.0
chain-b-tag: v6.1.0
chain-c-tag: v6.1.0
chain-d-tag: v6.1.0
upgrade-plan-name: "v7"
test-entry-point: "TestUpgradeTestSuite"
test: "TestV6ToV7ChainUpgrade"
Expand All @@ -31,6 +33,8 @@ jobs:
chain-image: ghcr.io/cosmos/ibc-go-simd
chain-a-tag: v7.0.0
chain-b-tag: v7.0.0
chain-c-tag: v7.0.0
chain-d-tag: v7.0.0
upgrade-plan-name: "v7.1"
test-entry-point: "TestUpgradeTestSuite"
test: "TestV7ToV7_1ChainUpgrade"
Expand All @@ -42,6 +46,8 @@ jobs:
chain-image: ghcr.io/cosmos/ibc-go-simd
chain-a-tag: v7.10.0
chain-b-tag: v7.10.0
chain-c-tag: v7.10.0
chain-d-tag: v7.10.0
upgrade-plan-name: "v8"
test-entry-point: "TestUpgradeTestSuite"
test: "TestV7ToV8ChainUpgrade"
Expand All @@ -53,6 +59,8 @@ jobs:
chain-image: ghcr.io/cosmos/ibc-go-simd
chain-a-tag: v8.0.0
chain-b-tag: v8.0.0
chain-c-tag: v8.0.0
chain-d-tag: v8.0.0
upgrade-plan-name: "v8.1"
test-entry-point: "TestUpgradeTestSuite"
test: "TestV8ToV8_1ChainUpgrade"
Expand All @@ -64,6 +72,8 @@ jobs:
chain-image: ghcr.io/cosmos/ibc-go-simd
chain-a-tag: v8.7.0
chain-b-tag: v8.7.0
chain-c-tag: v8.7.0
chain-d-tag: v8.7.0
upgrade-plan-name: "v10"
test-entry-point: "TestUpgradeTestSuite"
test: "TestV8ToV10ChainUpgrade"
Expand All @@ -75,6 +85,8 @@ jobs:
chain-image: ghcr.io/cosmos/ibc-go-simd
chain-a-tag: v8.7.0
chain-b-tag: v8.7.0
chain-c-tag: v8.7.0
chain-d-tag: v8.7.0
upgrade-plan-name: "v10"
test-entry-point: "TestUpgradeTestSuite"
test: "TestV8ToV10ChainUpgrade_Localhost"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ jobs:
# with regular tests, both images are the same.
chain-a-tag: '${{ needs.determine-image-tag.outputs.simd-tag }}'
chain-b-tag: '${{ needs.determine-image-tag.outputs.simd-tag }}'
chain-c-tag: '${{ needs.determine-image-tag.outputs.simd-tag }}'
chain-d-tag: '${{ needs.determine-image-tag.outputs.simd-tag }}'
# on regular PRs we won't run upgrade tests.
# NOTE: we are excluding TestTransferTestSuite as we run this full suite instead of each individual test.
test-exclusions: 'TestUpgradeTestSuite,TestTransferTestSuite,TestAuthzTransferTestSuite,TestTransferTestSuiteSendReceive,TestTransferTestSuiteSendEnabled,TestTransferLocalhostTestSuite,TestConnectionTestSuite,TestInterchainAccountsGovTestSuite'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2emodule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fetch-depth: 0
- uses: golangci/golangci-lint-action@v7.0.0
with:
version: v2.0
version: v2.1
only-new-issues: true
args: --timeout 5m
working-directory: e2e/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v7.0.0
with:
version: v2.0
version: v2.1
only-new-issues: true
args: --timeout 10m
2 changes: 1 addition & 1 deletion .github/workflows/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v7.0.0
with:
version: v2.0
version: v2.1
only-new-issues: true
args: --timeout 10m
2 changes: 1 addition & 1 deletion .github/workflows/wasm-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 0
- uses: golangci/golangci-lint-action@v7.0.0
with:
version: v2.0
version: v2.1
only-new-issues: true
args: --timeout 10m
working-directory: modules/light-clients/08-wasm
Expand Down
16 changes: 16 additions & 0 deletions e2e/ci-e2e-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# | CHAIN_IMAGE | The image that will be used for the chain | ghcr.io/cosmos/ibc-go-simd |
# | CHAIN_A_TAG | The tag used for chain A | N/A (must be set) |
# | CHAIN_B_TAG | The tag used for chain B | N/A (must be set) |
# | CHAIN_C_TAG | The tag used for chain C | N/A (must be set) |
# | CHAIN_D_TAG | The tag used for chain D | N/A (must be set) |
# | CHAIN_BINARY | The binary used in the container | simd |
# | RELAYER_TAG | The tag used for the relayer | 1.10.4 |
# | RELAYER_ID | The type of relayer to use (rly/hermes) | hermes |
Expand All @@ -28,6 +30,20 @@ chains:
numFullNodes: 1
image: ghcr.io/cosmos/ibc-go-simd # override with CHAIN_IMAGE
binary: simd # override with CHAIN_BINARY

# the entry at index 2 corresponds to CHAIN_C
- chainId: chainC-1
numValidators: 4
numFullNodes: 1
image: ghcr.io/cosmos/ibc-go-simd # override with CHAIN_IMAGE
binary: simd # override with CHAIN_BINARY

# the entry at index 3 corresponds to CHAIN_D
- chainId: chainD-1
numValidators: 4
numFullNodes: 1
image: ghcr.io/cosmos/ibc-go-simd # override with CHAIN_IMAGE
binary: simd # override with CHAIN_BINARY

# activeRelayer must match the id of a relayer specified in the relayers list below.
activeRelayer: hermes # override with RELAYER_ID
Expand Down
20 changes: 19 additions & 1 deletion e2e/sample.config.extended.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# | CHAIN_IMAGE | The image that will be used for the chain | ghcr.io/cosmos/ibc-go-simd |
# | CHAIN_A_TAG | The tag used for chain A | N/A (must be set) |
# | CHAIN_B_TAG | The tag used for chain B | N/A (must be set) |
# | CHAIN_C_TAG | The tag used for chain C | N/A (must be set) |
# | CHAIN_D_TAG | The tag used for chain D | N/A (must be set) |
# | CHAIN_BINARY | The binary used in the container | simd |
# | RELAYER_TAG | The tag used for the relayer | 1.10.4 |
# | RELAYER_ID | The type of relayer to use (rly/hermes) | hermes |
Expand All @@ -23,13 +25,29 @@ chains:
tag: main # override with CHAIN_A_TAG
binary: simd # override with CHAIN_BINARY

# the entry at index 1 corresponds to CHAIN_B
# the entry at index 1 corresponds to CHAIN_B
- chainId: chainB-1
numValidators: 4
numFullNodes: 1
image: ghcr.io/cosmos/ibc-go-simd # override with CHAIN_IMAGE
tag: main # override with CHAIN_B_TAG
binary: simd # override with CHAIN_BINARY

# the entry at index 2 corresponds to CHAIN_C
- chainId: chainC-1
numValidators: 4
numFullNodes: 1
image: ghcr.io/cosmos/ibc-go-simd # override with CHAIN_IMAGE
tag: main # override with CHAIN_C_TAG
binary: simd # override with CHAIN_BINARY

# the entry at index 3 corresponds to CHAIN_D
- chainId: chainD-1
numValidators: 4
numFullNodes: 1
image: ghcr.io/cosmos/ibc-go-simd # override with CHAIN_IMAGE
tag: main # override with CHAIN_D_TAG
binary: simd # override with CHAIN_BINARY

# activeRelayer must match the id of a relayer specified in the relayers list below.
activeRelayer: hermes # override with RELAYER_ID
Expand Down
4 changes: 4 additions & 0 deletions e2e/sample.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ chains:
chainId: chainA-1
- tag: main # override with CHAIN_B_TAG
chainId: chainB-1
- tag: main # override with CHAIN_C_TAG
chainId: chainC-1
- tag: main # override with CHAIN_D_TAG
chainId: chainD-1
2 changes: 1 addition & 1 deletion e2e/tests/core/03-connection/connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type ConnectionTestSuite struct {
}

func (s *ConnectionTestSuite) CreateConnectionTestPath(testName string) (ibc.Relayer, ibc.ChannelOutput) {
return s.CreatePaths(ibc.DefaultClientOpts(), s.TransferChannelOptions(), testName), s.GetChainAChannelForTest(testName)
return s.CreatePaths(ibc.DefaultClientOpts(), s.TransferChannelOptions(), testName), s.GetChainAToChainBChannel(testName)
}

// QueryMaxExpectedTimePerBlockParam queries the on-chain max expected time per block param for 03-connection
Expand Down
Loading
Loading