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

Add rollapp-wasm to the e2e test (matrix tests with all rollapp flavours) #36

Merged
merged 17 commits into from
Mar 22, 2024
Merged
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
72 changes: 59 additions & 13 deletions .github/workflows/e2e-test-workflow-call.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,71 @@ on:
required: false
type: string
default: "latest"
rollapp_ci:
description: "CI run on Rollapp Repo"
rollapp_evm_ci:
description: "CI run on Rollapp-EVM Repo"
required: false
type: string
default: "latest"
rollapp_wasm_ci:
description: "CI run on Rollapp-Wasm Repo"
required: false
type: string
default: "latest"

jobs:
# e2e-tests-by runs the actual go test command to trigger the test.
e2e-tests:
rollapp-evm:
strategy:
matrix:
tests:
- "e2e-test-ibc-success-evm"
- "e2e-test-ibc-timeout-evm"
- "e2e-test-ibc-grace-period-evm"
- "e2e-test-eibc-fulfillment-evm"
- "e2e-test-transfer-multi-hop-evm"
- "e2e-test-pfm-with-grace-period-evm"
- "e2e-test-batch-finalization-evm"
- "e2e-test-rollapp-freeze-evm"
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: dymensionxyz/e2e-tests
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.21.4"

- name: Download Tarball Artifact
uses: actions/download-artifact@v3
with:
name: e2e
path: /tmp

- name: Load Docker Image
run: |
docker image load -i /tmp/e2e.tar
docker image ls -a

- name: Rollapp-EVM E2E Tests
run: make ${{ matrix.tests }}
env:
DYMENSION_CI: ${{ inputs.dymension_ci }}
ROLLAPP_EVM_CI: ${{ inputs.rollapp_evm_ci }}
ROLLAPP_WASM_CI: ${{ inputs.rollapp_wasm_ci }}
rollapp-wasm:
strategy:
matrix:
tests:
- "e2e-test-ibc-success"
- "e2e-test-ibc-timeout"
- "e2e-test-ibc-grace-period"
- "e2e-test-eibc-fulfillment"
- "e2e-test-transfer-multi-hop"
- "e2e-test-pfm-with-grace-period"
- "e2e-test-batch-finalization"
- "e2e-test-rollapp-freeze"
- "e2e-test-ibc-success-wasm"
- "e2e-test-ibc-timeout-wasm"
- "e2e-test-ibc-grace-period-wasm"
- "e2e-test-eibc-fulfillment-wasm"
- "e2e-test-transfer-multi-hop-wasm"
- "e2e-test-pfm-with-grace-period-wasm"
- "e2e-test-batch-finalization-wasm"
- "e2e-test-rollapp-freeze-wasm"
fail-fast: false
runs-on: ubuntu-latest
steps:
Expand All @@ -48,8 +93,9 @@ jobs:
docker image load -i /tmp/e2e.tar
docker image ls -a

- name: E2E Tests
- name: Rollapp-Wasm E2E Tests
run: make ${{ matrix.tests }}
env:
DYMENSION_CI: ${{ inputs.dymension_ci }}
ROLLAPP_CI: ${{ inputs.rollapp_ci }}
ROLLAPP_EVM_CI: ${{ inputs.rollapp_evm_ci }}
ROLLAPP_WASM_CI: ${{ inputs.rollapp_wasm_ci }}
45 changes: 35 additions & 10 deletions .github/workflows/e2e_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ permissions:

jobs:
# e2e-tests-by runs the actual go test command to trigger the test.
e2e-tests:
rollapp-evm:
strategy:
matrix:
tests:
- "e2e-test-ibc-success"
- "e2e-test-ibc-timeout"
- "e2e-test-ibc-grace-period"
- "e2e-test-eibc-fulfillment"
- "e2e-test-transfer-multi-hop"
- "e2e-test-pfm-with-grace-period"
- "e2e-test-batch-finalization"
- "e2e-test-rollapp-freeze"
- "e2e-test-ibc-success-evm"
- "e2e-test-ibc-timeout-evm"
- "e2e-test-ibc-grace-period-evm"
- "e2e-test-eibc-fulfillment-evm"
- "e2e-test-transfer-multi-hop-evm"
- "e2e-test-pfm-with-grace-period-evm"
- "e2e-test-batch-finalization-evm"
- "e2e-test-rollapp-freeze-evm"
fail-fast: false
runs-on: ubuntu-latest
steps:
Expand All @@ -44,6 +44,31 @@ jobs:
with:
go-version: "1.21.4"

- name: E2E Tests
- name: Rollapp-EVM E2E Tests
run: |
make ${{ matrix.tests }}
rollapp-wasm:
strategy:
matrix:
tests:
- "e2e-test-ibc-success-wasm"
- "e2e-test-ibc-timeout-wasm"
- "e2e-test-ibc-grace-period-wasm"
- "e2e-test-eibc-fulfillment-wasm"
- "e2e-test-transfer-multi-hop-wasm"
- "e2e-test-pfm-with-grace-period-wasm"
- "e2e-test-batch-finalization-wasm"
- "e2e-test-rollapp-freeze-wasm"
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: dymensionxyz/e2e-tests
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: "1.21.4"

- name: Rollapp-Wasm E2E Tests
run: make ${{ matrix.tests }}
111 changes: 77 additions & 34 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,51 +7,94 @@
clean-e2e:
sh clean.sh
# Executes IBC tests via rollup-e2e-testing
e2e-test-ibc-success: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCTransferSuccess .
e2e-test-ibc-success-evm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCTransferSuccess_EVM .

# Executes IBC tests via rollup-e2e-testing
e2e-test-ibc-timeout: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCTransferTimeout .
e2e-test-ibc-timeout-evm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCTransferTimeout_EVM .

# Executes IBC tests via rollup-e2e-testing
e2e-test-eibc-fulfillment: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestEIBCFulfillment .
e2e-test-eibc-fulfillment-evm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestEIBCFulfillment_EVM .

# Executes IBC tests via rollup-e2e-testing
e2e-test-ibc-grace-period: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCGracePeriodCompliance .
e2e-test-ibc-grace-period-evm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCGracePeriodCompliance_EVM .

e2e-test-transfer-multi-hop: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCTransferMultiHop .
e2e-test-transfer-multi-hop-evm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCTransferMultiHop_EVM .

e2e-test-pfm-with-grace-period: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCPFMWithGracePeriod .
e2e-test-batch-finalization:
cd tests && go test -timeout=25m -race -v -run TestBatchFinalization .
e2e-test-pfm-with-grace-period-evm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCPFMWithGracePeriod_EVM .

e2e-test-rollapp-freeze: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestRollAppFreeze .
e2e-test-batch-finalization-evm:
cd tests && go test -timeout=25m -race -v -run TestBatchFinalization_EVM .

e2e-test-rollapp-freeze-evm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestRollAppFreeze_EVM .

# Executes IBC tests via rollup-e2e-testing
e2e-test-ibc-success-wasm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCTransferSuccess_Wasm .

# Executes IBC tests via rollup-e2e-testing
e2e-test-ibc-timeout-wasm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCTransferTimeout_Wasm .

# Executes IBC tests via rollup-e2e-testing
e2e-test-eibc-fulfillment-wasm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestEIBCFulfillment_Wasm .

# Executes IBC tests via rollup-e2e-testing
e2e-test-ibc-grace-period-wasm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCGracePeriodCompliance_Wasm .

e2e-test-transfer-multi-hop-wasm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCTransferMultiHop_Wasm .

e2e-test-pfm-with-grace-period-wasm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestIBCPFMWithGracePeriod_Wasm .

e2e-test-batch-finalization-wasm:
cd tests && go test -timeout=25m -race -v -run TestBatchFinalization_Wasm .

e2e-test-rollapp-freeze-wasm: clean-e2e
cd tests && go test -timeout=25m -race -v -run TestRollAppFreeze_Wasm .

# Executes all tests via rollup-e2e-testing
e2e-test-all: e2e-test-ibc-success \
e2e-test-ibc-timeout \
e2e-test-ibc-grace-period \
e2e-test-transfer-multi-hop \
e2e-test-eibc-fulfillment \
e2e-test-transfer-multi-hop \
e2e-test-pfm-with-grace-period \
e2e-test-batch-finalization \
e2e-test-rollapp-freeze
e2e-test-all: e2e-test-ibc-success-evm \
e2e-test-ibc-timeout-evm \
e2e-test-ibc-grace-period-evm \
e2e-test-transfer-multi-hop-evm \
e2e-test-eibc-fulfillment-evm \
e2e-test-pfm-with-grace-period-evm \
e2e-test-batch-finalization-evm \
e2e-test-rollapp-freeze-evm \
e2e-test-ibc-success-wasm \
e2e-test-ibc-timeout-wasm \
e2e-test-ibc-grace-period-wasm \
e2e-test-transfer-multi-hop-wasm \
e2e-test-eibc-fulfillment-wasm \
e2e-test-pfm-with-grace-period-wasm \
e2e-test-batch-finalization-wasm \
e2e-test-rollapp-freeze-wasm

.PHONY: clean-e2e \
e2e-test-all \
e2e-test-ibc-success \
e2e-test-ibc-timeout \
e2e-test-ibc-grace-period \
e2e-test-transfer-multi-hop \
e2e-test-eibc-fulfillment \
e2e-test-transfer-multi-hop \
e2e-test-pfm-with-grace-period \
e2e-test-batch-finalization \
e2e-test-rollapp-freeze
e2e-test-ibc-success-evm \
e2e-test-ibc-timeout-evm \
e2e-test-ibc-grace-period-evm \
e2e-test-eibc-fulfillment-evm \
e2e-test-transfer-multi-hop-evm \
e2e-test-pfm-with-grace-period-evm \
e2e-test-batch-finalization-evm \
e2e-test-rollapp-freeze-evm \
e2e-test-ibc-success-wasm \
e2e-test-ibc-timeout-wasm \
e2e-test-ibc-grace-period-wasm \
e2e-test-eibc-fulfillment-wasm \
e2e-test-transfer-multi-hop-wasm \
e2e-test-pfm-with-grace-period-wasm \
e2e-test-batch-finalization-wasm \
e2e-test-rollapp-freeze-wasm
Loading
Loading