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

Question about custom Stride Docker image #1432

Closed
rootulp opened this issue Mar 22, 2024 · 3 comments
Closed

Question about custom Stride Docker image #1432

rootulp opened this issue Mar 22, 2024 · 3 comments

Comments

@rootulp
Copy link

rootulp commented Mar 22, 2024

Context

Version: "andrew-test_admin_v5.1.1",

Question

Why do these tests rely on a custom version of the Stride docker image? Is there anything in that Docker image that hasn't been upstreamed to the default image (e.g. v19.0.0)?

cc: @agouin

@rootulp
Copy link
Author

rootulp commented Mar 22, 2024

In a draft PR, I was able to start a Stride chain successfully using andrew-test_admin_v5.1.1 but it failed to start with v19.0.0:

: "TestICA", "command": "strided collect-gentxs --home /var/cosmos-chain/stride", "hostname": "TestICA-hmgjtk", "container": "TestICA-hmgjtk"}
    ica_test.go:58:
        	Error Trace:	/Users/rootulp/git/rootulp/celestiaorg/celestia-app/interchaintest/ica_test.go:58
        	Error:      	Received unexpected error:
        	            	failed to start chains: failed to start chain stride: failed to set voting period in genesis json: expected map or slice node, got: <nil> (path element idx: 3)
        	Test:       	TestICA
    setup.go:148: Container logs - {/TestICA-fotkdo}

This error message is misleading because it can originate from:

  1. return nil, fmt.Errorf("failed to set voting period in genesis json: %w", err)
  2. return nil, fmt.Errorf("failed to set voting period in genesis json: %w", err)
    <- bug because that should say max deposit period instead.

@agouin
Copy link
Member

agouin commented Mar 27, 2024

The only change from v5.1.1 of stride is changing the admin account for the stakeibc module to be one that can controlled by the test

StrideAdminMnemonic = "tone cause tribe this switch near host damage idle fragile antique tail soda alien depth write wool they rapid unfold body scan pledge soft"

At the time of writing this test it was a hardcoded variable. Upon a quick skim, it does not look like there is an admin account anymore in the stakeibc module so that should no longer be necessary.

The issue you are seeing is a different one. The genesis file format has changed. I grabbed the default genesis.json generated by stride init local to compare.
e.g. "app_state", "gov", "voting_params", "voting_period" is now "app_message", "gov", "params", voting_period"
and "app_state", "gov", "deposit_params", "max_deposit_period" is now "app_message", "gov", "params", max_deposit_period". The rest of the keys in ModifyGenesisStride need to be updated too, mainly app_state -> app_message

@rootulp
Copy link
Author

rootulp commented Apr 8, 2024

Thanks for your help. I just tried to create a new stride genesis.json but couldn't find the app_message field you're referring to. I'm not convinced that I need the genesis modifications to perform the test I care about so I opted to drop them entirely which enabled me to get past the error in this post so can close. Created strangelove-ventures/interchaintest#1056 for the next issue.

@rootulp rootulp closed this as not planned Won't fix, can't repro, duplicate, stale Apr 8, 2024
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

No branches or pull requests

2 participants