Skip to content

Commit

Permalink
Improve ICS test bootstrapping (informalsystems#3657)
Browse files Browse the repository at this point in the history
* Improve ICS test bootstrapping

* Replace Gaia v11 with v12 in misbehaviour CI job
  • Loading branch information
ljoss17 authored Oct 12, 2023
1 parent 7742305 commit 7688db7
Show file tree
Hide file tree
Showing 9 changed files with 318 additions and 140 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
fail-fast: false
matrix:
chain:
- package: gaia11
- package: gaia12
command: gaiad
account_prefix: cosmos
- package: ibc-go-v4-simapp
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
fail-fast: false
matrix:
chain:
- package: gaia11
- package: gaia12
command: gaiad
account_prefix: cosmos
- package: juno
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:
fail-fast: false
matrix:
chain:
- package: .#gaia11 .#stride-no-admin
- package: .#gaia12 .#stride-no-admin
command: gaiad,strided
account_prefix: cosmos,stride
steps:
Expand Down Expand Up @@ -382,7 +382,7 @@ jobs:
fail-fast: false
matrix:
chain:
- package: gaia11
- package: gaia12
command: gaiad
account_prefix: cosmos
steps:
Expand Down Expand Up @@ -458,7 +458,7 @@ jobs:
CHAIN_COMMAND_PATHS: gaiad,${{ matrix.chain.command }}
ACCOUNT_PREFIXES: cosmos,${{ matrix.chain.account_prefix }}
run: |
nix shell .#gaia11 .#${{ matrix.chain.package }} -c \
nix shell .#gaia12 .#${{ matrix.chain.package }} -c \
cargo nextest run -p ibc-integration-test --no-fail-fast --failure-output final --test-threads=2 \
--features interchain-security interchain_security::
Expand Down Expand Up @@ -501,7 +501,7 @@ jobs:
CHAIN_COMMAND_PATHS: gaiad,${{ matrix.chain.command }}
ACCOUNT_PREFIXES: cosmos,${{ matrix.chain.account_prefix }}
run: |
nix shell .#gaia11 .#${{ matrix.chain.package }} -c \
nix shell .#gaia12 .#${{ matrix.chain.package }} -c \
cargo nextest run -p ibc-integration-test --no-fail-fast --failure-output final --test-threads=2 \
--features interchain-security,ica interchain_security::
Expand Down Expand Up @@ -543,7 +543,7 @@ jobs:
CHAIN_COMMAND_PATHS: gaiad,${{ matrix.chain.command }}
ACCOUNT_PREFIXES: cosmos,${{ matrix.chain.account_prefix }}
run: |
nix shell .#gaia11 .#${{ matrix.chain.package }} -c \
nix shell .#gaia12 .#${{ matrix.chain.package }} -c \
cargo nextest run -p ibc-integration-test --no-fail-fast --failure-output final --test-threads=2 \
--features interchain-security,ics31 interchain_security::
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/misbehaviour.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
fail-fast: false
matrix:
chain:
- package: gaia11
- package: gaia12
command: gaiad
account_prefix: cosmos
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/multi-chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
fail-fast: false
matrix:
first-package:
- package: gaia11
- package: gaia12
command: gaiad
account_prefix: cosmos
- package: ibc-go-v7-simapp
Expand Down
4 changes: 2 additions & 2 deletions crates/relayer-cli/src/commands/tx/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,9 @@ impl Runnable for TxUpgradeClientsCmd {
.chains
.iter()
.filter(|&chain| {
(self.reference_chain_id != chain.id
self.reference_chain_id != chain.id
&& (self.host_chain_id.is_none()
|| self.host_chain_id == Some(chain.id.clone())))
|| self.host_chain_id == Some(chain.id.clone()))
})
.map(|chain| {
self.upgrade_clients_for_chain(
Expand Down
Loading

0 comments on commit 7688db7

Please sign in to comment.