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

Use TEST_PRESET env to run cosmos tests with different chains #477

Merged

Conversation

ljoss17
Copy link
Contributor

@ljoss17 ljoss17 commented Nov 21, 2024

Closes: #XXX

Description

Status

Waiting on informalsystems/cosmos.nix#280 and #476

This PR uses the TEST_PRESET env variable to run the tests between:

  • Gaia <-> Gaia
  • Osmosis <-> Osmosis
  • Osmosis <-> Gaia

Following #482 it is not necessary to have separate cosmos and legacy cosmos tests.


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).
  • Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@@ -31,7 +36,7 @@ fn test_celestia_bootstrap() -> Result<(), Error> {
cosmos_builder: builder.clone(),
chain_store_dir: store_dir.join("chains"),
bridge_store_dir: store_dir.join("bridges"),
dynamic_gas: Some(DynamicGasConfig::default()),
Copy link
Collaborator

Choose a reason for hiding this comment

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

For CelestiaBootstrap, since this is chain-specific, we can probably make it either always have dynamic gas or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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


// TODO: Eventually use Config to define dynamic gas config
tx_config.gas_config.dynamic_gas_config = self.dynamic_gas.clone();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually, we can modify build_chain_with_config to accept an additional parameter dynamic_gas_config.

The chain is being built here, and you can use Bootstrap: HasDynamicGasConfig to get the config.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in d534f61

@ljoss17 ljoss17 changed the title Add dynamic gas config to cosmos legacy bootstrap Use TEST_PRESET env to run cosmos tests with different chains Dec 4, 2024
@ljoss17 ljoss17 marked this pull request as ready for review December 4, 2024 13:31
@soareschen soareschen merged commit 29e6ca0 into main Dec 4, 2024
12 checks passed
@soareschen soareschen deleted the luca_joss/add-dynamic-gas-config-to-cosmos-legacy-bootstrap branch December 4, 2024 13:59
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