-
Notifications
You must be signed in to change notification settings - Fork 289
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
test: interchain accounts via interchaintest #3308
Conversation
because an official release doesn't exist yet
Warning Rate Limit Exceeded@rootulp has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 7 minutes and 14 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe recent updates include enhancements to interchain testing capabilities, particularly focusing on the Changes
Assessment against linked issues
Possibly related issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We don't need to add this to the test-race
Makefile cmd right?
Good question.
I'll rename this one to verify. Update: looks like |
Why isn't it getting run? I thought it would |
It looks like
From It doesn't list packages under $ go list ./...
github.com/celestiaorg/celestia-app/v2/app
github.com/celestiaorg/celestia-app/v2/app/ante
github.com/celestiaorg/celestia-app/v2/app/encoding
github.com/celestiaorg/celestia-app/v2/app/errors
github.com/celestiaorg/celestia-app/v2/app/module
github.com/celestiaorg/celestia-app/v2/app/posthandler
github.com/celestiaorg/celestia-app/v2/app/test
github.com/celestiaorg/celestia-app/v2/cmd/celestia-appd
github.com/celestiaorg/celestia-app/v2/cmd/celestia-appd/cmd
github.com/celestiaorg/celestia-app/v2/pkg/appconsts
github.com/celestiaorg/celestia-app/v2/pkg/appconsts/testground
github.com/celestiaorg/celestia-app/v2/pkg/appconsts/v1
github.com/celestiaorg/celestia-app/v2/pkg/appconsts/v2
github.com/celestiaorg/celestia-app/v2/pkg/da
github.com/celestiaorg/celestia-app/v2/pkg/inclusion
github.com/celestiaorg/celestia-app/v2/pkg/proof
github.com/celestiaorg/celestia-app/v2/pkg/user
github.com/celestiaorg/celestia-app/v2/pkg/wrapper
github.com/celestiaorg/celestia-app/v2/proto/celestia/core/v1/da
github.com/celestiaorg/celestia-app/v2/test/cmd/txsim
github.com/celestiaorg/celestia-app/v2/test/e2e
github.com/celestiaorg/celestia-app/v2/test/ledger
github.com/celestiaorg/celestia-app/v2/test/packetforward
github.com/celestiaorg/celestia-app/v2/test/tokenfilter
github.com/celestiaorg/celestia-app/v2/test/txsim
github.com/celestiaorg/celestia-app/v2/test/util
github.com/celestiaorg/celestia-app/v2/test/util/blobfactory
github.com/celestiaorg/celestia-app/v2/test/util/genesis
github.com/celestiaorg/celestia-app/v2/test/util/malicious
github.com/celestiaorg/celestia-app/v2/test/util/sdkutil
github.com/celestiaorg/celestia-app/v2/test/util/testfactory
github.com/celestiaorg/celestia-app/v2/test/util/testnode
github.com/celestiaorg/celestia-app/v2/tools/blocktime
github.com/celestiaorg/celestia-app/v2/x/blob
github.com/celestiaorg/celestia-app/v2/x/blob/ante
github.com/celestiaorg/celestia-app/v2/x/blob/client/cli
github.com/celestiaorg/celestia-app/v2/x/blob/client/testutil
github.com/celestiaorg/celestia-app/v2/x/blob/keeper
github.com/celestiaorg/celestia-app/v2/x/blob/test
github.com/celestiaorg/celestia-app/v2/x/blob/types
github.com/celestiaorg/celestia-app/v2/x/blobstream
github.com/celestiaorg/celestia-app/v2/x/blobstream/client
github.com/celestiaorg/celestia-app/v2/x/blobstream/keeper
github.com/celestiaorg/celestia-app/v2/x/blobstream/types
github.com/celestiaorg/celestia-app/v2/x/minfee
github.com/celestiaorg/celestia-app/v2/x/mint
github.com/celestiaorg/celestia-app/v2/x/mint/client/cli
github.com/celestiaorg/celestia-app/v2/x/mint/client/testutil
github.com/celestiaorg/celestia-app/v2/x/mint/keeper
github.com/celestiaorg/celestia-app/v2/x/mint/simulation
github.com/celestiaorg/celestia-app/v2/x/mint/test
github.com/celestiaorg/celestia-app/v2/x/mint/types
github.com/celestiaorg/celestia-app/v2/x/paramfilter
github.com/celestiaorg/celestia-app/v2/x/paramfilter/test
github.com/celestiaorg/celestia-app/v2/x/signal
github.com/celestiaorg/celestia-app/v2/x/signal/cli
github.com/celestiaorg/celestia-app/v2/x/signal/types
github.com/celestiaorg/celestia-app/v2/x/tokenfilter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!! well done for getting interchain test to work! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the part that queries the channels.
Just a few minor nits. I think mainly we should be adding these tests to the CI (maybe only when certain files are touched)
## test-interchain: Run interchain tests in verbose mode. Requires Docker. | ||
test-interchain: | ||
@echo "--> Running interchain tests" | ||
@go test ./test/interchain -v | ||
.PHONY: test-interchain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add this to the CI then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm hesitant to add it to CI now because this test currently uses a static docker image https://github.com/rootulp/celestia-app/blob/08ca4d2fe7971d69b71a39a1e2c91dbdb50e72ce/test/interchain/chainspec/celestia.go#L16
so even if a PR breaks ICA, we wouldn't get signal by running it in CI unless we update that static docker image to use a Docker image that is created on a per PR basis. Will create a follow up issue to add it to CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #3358
require.Empty(t, stderr) | ||
t.Logf("stdout %v", string(stdout)) | ||
|
||
err = testutil.WaitForBlocks(ctx, 5, celestia, cosmosHub) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
err = testutil.WaitForBlocks(ctx, 5, celestia, cosmosHub) | |
err = testutil.WaitForBlocks(ctx, 1, celestia, cosmosHub) |
Can this just be 1? Is the timeout for celestia going to be 11 seconds? i.e. the default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just dropped it to 1
and hit an error because
inter_chain_accounts_test.go:103:
Error Trace: /Users/rootulp/git/rootulp/celestiaorg/celestia-app/test/interchain/inter_chain_accounts_test.go:103
Error: Received unexpected error:
exit code 1: Error: rpc error: code = NotFound desc = rpc error: code = NotFound desc = failed to retrieve account address for icacontroller-cosmos15c8ytdk94gw4ksajeekzlmx6qjrnu4ul20l094 on connection connection-0: key not found
blocks are getting produced faster than 11 seconds b/c the test only takes ~80 seconds to complete and we're at least waiting for 9 blocks in the whole test (2, 2, then 5 here):
ok github.com/celestiaorg/celestia-app/test/interchain 82.041s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM great debugging
08ca4d2
Closes celestiaorg#3207. For posterity, [this branch](https://github.com/rootulp/celestia-app/tree/rp/ica-tests) contains a messy commit history that describes issues encountered when setting up these tests.
Closes celestiaorg#3207. For posterity, [this branch](https://github.com/rootulp/celestia-app/tree/rp/ica-tests) contains a messy commit history that describes issues encountered when setting up these tests.
Closes #3207.
For posterity, this branch contains a messy commit history that describes issues encountered when setting up these tests.