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

feat: penumbra ics-20 test cases #1157

Merged
merged 69 commits into from
Jul 14, 2024

Conversation

zbuc
Copy link
Contributor

@zbuc zbuc commented Jun 25, 2024

Description

This PR finishes work started in #837 to introduce tests for Penumbra, both for Penumbra <-> Penumbra and Penumbra <-> Cosmos cases, exercising both successful transfers and timeouts based on height and timestamp in both directions.

How to test

$ go test -v -race ./examples/penumbra/penumbra_ibc_test.go

Additional Information

This requires some changes to Penumbra that haven't landed in a release yet. When the next release for Penumbra lands, a new image should be pushed out through Heighliner. Otherwise, to test against the current Penumbra main branch you can modify the configuredChains.yaml as follows:

penumbra:
  name: penumbra
  type: penumbra
  bin: cometbft
  bech32-prefix: penumbrav2t
  denom: upenumbra
  gas-prices: 0.0upenumbra
  gas-adjustment: 2.0
  trusting-period: 672h
  images:
    - repository: ghcr.io/strangelove-ventures/heighliner/cometbft
      uid-gid: 1025:1025
    - repository: penumbra
      uid-gid: 1025:1025

And build a local tagged version of the Penumbra image with Heighliner:

$ heighliner build -c penumbra -o penumbra-zone -g main -t local

jtieri and others added 30 commits September 25, 2023 11:45
This commit extends the Go documentation of the Penumbra-related types, state, and behaviors found across the entire codebase. A significant part of this update focuses on the structs and functions in Penumbra's chain logic and client node, as well as the related helpers and tests. These comments should make the purpose and functionality of the code more transparent and understandable for further development and usage.
@zbuc zbuc requested a review from a team as a code owner June 25, 2024 22:14
@zbuc zbuc requested a review from pharr117 June 25, 2024 22:14
Copy link

vercel bot commented Jun 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
interchaintest-docs ⬜️ Ignored (Inspect) Visit Preview Jul 14, 2024 7:29am

@Reecepbcups Reecepbcups changed the title Interchain Tests for Penumbra feat: penumbra ics-20 test cases Jun 26, 2024
@zbuc zbuc force-pushed the chris/penumbra-ibc branch from 665b638 to dfa435b Compare June 26, 2024 19:00
@zbuc
Copy link
Contributor Author

zbuc commented Jun 26, 2024

@Reecepbcups I verified the tests still pass after updating the Docker images (41c2aaa)

Looks like CI is failing because of some lint failures unrelated to changes from this PR

@Reecepbcups
Copy link
Member

Reecepbcups commented Jun 26, 2024

Amazing thank you! It will take me a bit to review this & I am out tomorrow, but one of the top things on my list :)

I'll get lint issues and minor things like that sorted out later after I run through it all

examples/penumbra/penumbra_chain_test.go Show resolved Hide resolved
chain/penumbra/penumbra_app_node.go Show resolved Hide resolved
chain/penumbra/penumbra_app_node.go Outdated Show resolved Hide resolved
chain/penumbra/penumbra_app_node.go Show resolved Hide resolved
chain/penumbra/penumbra_chain.go Show resolved Hide resolved
chain/penumbra/penumbra_client_node.go Show resolved Hide resolved
chain/penumbra/penumbra_client_node.go Outdated Show resolved Hide resolved
chain/penumbra/penumbra_client_node.go Show resolved Hide resolved
chain/penumbra/penumbra_client_node.go Outdated Show resolved Hide resolved
Copy link
Member

@Reecepbcups Reecepbcups left a comment

Choose a reason for hiding this comment

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

🔥 Looks great! Thank you so much

Getting into mainline, will tag a new ICTest release in the near future to make it easy for others to upgrade to

@Reecepbcups Reecepbcups merged commit 5c5b565 into strangelove-ventures:main Jul 14, 2024
16 checks passed
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.

3 participants