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

refactor(ci): speed up internal testing #1263

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
32 changes: 32 additions & 0 deletions .github/workflows/e2e-conformance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Conformance End-To-End Tests

on:
pull_request:

# Ensures that only a single workflow per PR will run at a time. Cancels in-progress jobs if new commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test-conformance:
name: test-conformance
runs-on: ubuntu-latest
steps:
# Install and setup go
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.21'

- name: checkout interchaintest
uses: actions/checkout@v4

# cleanup environment on self-hosted test runner
- name: clean
run: |-
rm -rf ~/.interchaintest

# run tests
- name: run conformance tests
run: (go test -race -timeout 30m -failfast -v -p 2 ./cmd/interchaintest) || (echo "\n\n*****CHAIN and RELAYER LOGS*****" && cat "$HOME/.interchaintest/logs/interchaintest.log" && exit 1)
33 changes: 33 additions & 0 deletions .github/workflows/e2e-cosmos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Conformance End-To-End Tests

on:
pull_request:

# Ensures that only a single workflow per PR will run at a time. Cancels in-progress jobs if new commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test-cosmos-examples:
name: test-cosmos-examples
runs-on: ubuntu-latest
steps:
# Install and setup go
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false

- name: checkout interchaintest
uses: actions/checkout@v4

# cleanup environment on self-hosted test runner
- name: clean
run: |-
rm -rf ~/.interchaintest

# run tests
- name: run example cosmos tests
run: go test -race -failfast -timeout 30m -v -p 2 ./examples/cosmos
33 changes: 33 additions & 0 deletions .github/workflows/e2e-ibc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: IBC End-To-End Tests

on:
pull_request:

# Ensures that only a single workflow per PR will run at a time. Cancels in-progress jobs if new commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test-ibc-examples:
name: test-ibc-examples
runs-on: ubuntu-latest
steps:
# Install and setup go
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false

- name: checkout interchaintest
uses: actions/checkout@v4

# cleanup environment on self-hosted test runner
- name: clean
run: |-
rm -rf ~/.interchaintest

# run tests
- name: run example ibc tests
run: go test -race -timeout 30m -failfast -v -p 2 ./examples/ibc
76 changes: 0 additions & 76 deletions .github/workflows/e2e-tests.yml

This file was deleted.

4 changes: 2 additions & 2 deletions chain/cosmos/broadcaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (b *Broadcaster) GetFactory(ctx context.Context, user User) (tx.Factory, er
// client.Context.
func (b *Broadcaster) GetClientContext(ctx context.Context, user User) (client.Context, error) {
chain := b.chain
cn := chain.getFullNode()
cn := chain.GetFullNode()

_, ok := b.keyrings[user]
if !ok {
Expand Down Expand Up @@ -158,7 +158,7 @@ func (b *Broadcaster) defaultClientContext(fromUser User, sdkAdd sdk.AccAddress)
// initialize a clean buffer each time
b.buf.Reset()
kr := b.keyrings[fromUser]
cn := b.chain.getFullNode()
cn := b.chain.GetFullNode()
return cn.CliContext().
WithOutput(b.buf).
WithFrom(fromUser.FormattedAddress()).
Expand Down
Loading
Loading