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

[Interchaintest] Installment # 2 #165

Merged
merged 5 commits into from
Jan 16, 2024
Merged

Conversation

jim380
Copy link
Contributor

@jim380 jim380 commented Jan 12, 2024

Overview

This PR attempts to achieve the followings:

  • Add IBC e2e conform test
  • Add Chain start+ CosmWasm conform test
  • Refactor around test setup
  • Minor app.go refactor & fixes

⚠️ Before proceeding, make sure you change SedaExponent to 6 in app/params/config.go. This is because in interchaintest v8.0.0 the default only has hardcoded values now which were tailored to e6. ⚠️

Testing

$ docker build --build-arg GITHUB_TOKEN=<> -t sedaprotocol/seda-chaind-e2e -f dockerfiles/Dockerfile.e2e . --no-cache
$ go test -timeout 10m -v -run TestChainStart ./interchaintest

You should see the test passing.

PASS
ok      github.com/sedaprotocol/seda-chain/interchaintest       56.916s

@jim380 jim380 marked this pull request as ready for review January 15, 2024 23:18
@jim380 jim380 requested a review from hacheigriega January 15, 2024 23:18
app/app.go Outdated
crisistypes.StoreKey, minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey,
govtypes.StoreKey, consensusparamtypes.StoreKey, upgradetypes.StoreKey,
feegrant.StoreKey, evidencetypes.StoreKey, circuittypes.StoreKey, group.StoreKey,
govtypes.StoreKey, paramstypes.StoreKey, consensusparamtypes.StoreKey, upgradetypes.StoreKey,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is no need to add paramstypes.StoreKey

app/app.go Outdated
capabilitytypes.StoreKey, ibcexported.StoreKey, ibctransfertypes.StoreKey, ibcfeetypes.StoreKey,
wasmtypes.StoreKey, icahosttypes.StoreKey,
icacontrollertypes.StoreKey,
)

tkeys := storetypes.NewTransientStoreKeys(paramstypes.TStoreKey)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to previous comment - If we don't need params module, we don't need transient store either

app/app.go Outdated
@@ -825,6 +828,7 @@ func NewApp(

// initialize stores
app.MountKVStores(keys)
app.MountTransientStores(tkeys)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@hacheigriega
Copy link
Member

Does this PR close Issue #131 ?

@jim380
Copy link
Contributor Author

jim380 commented Jan 16, 2024

Yes

@hacheigriega hacheigriega self-requested a review January 16, 2024 19:02
@jim380 jim380 merged commit 61d5ff6 into main Jan 16, 2024
6 of 7 checks passed
@jim380 jim380 deleted the jay/inter-chain-tests-batch-2 branch January 16, 2024 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants