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

feature: add a way to start a local testnet #896

Closed
p-offtermatt opened this issue Apr 27, 2023 · 4 comments · Fixed by #1466
Closed

feature: add a way to start a local testnet #896

p-offtermatt opened this issue Apr 27, 2023 · 4 comments · Fixed by #1466
Assignees
Labels
S: Productivity Productivity: Developer tooling, infrastructure improvements enabling future growth scope: testing Code review, testing, making sure the code is following the specification. type: feature-request New feature or request improvement

Comments

@p-offtermatt
Copy link
Contributor

p-offtermatt commented Apr 27, 2023

Problem

Our testing infrastructure is relatively heavy-weight and hard to use outside the dedicated environment.
For example, we have scripts for starting test chains, but this is happening in docker containers, and is not easy to call by hand.
It would be beneficial to have a way to start a local testnet, to manually test changes quickly.
This is also particularly important with e.g. Hermes, which may be a bit of work to add into the existing docker setup.

I would expect any solution to allow starting a testnet with >1 validator and provider+consumer.
This base case should be set up with a single or at most a couple of commands, and this should be achievable by someone completely new to the repo.

The solution should be documented prominently in the README, since it is one of the most basic ways someone would want to interact with the repo.

Closing criteria

There is an easy way to start a local testnet with a provider and consumer, with multiple validators for each.

@p-offtermatt p-offtermatt added type: feature-request New feature or request improvement scope: testing Code review, testing, making sure the code is following the specification. labels Apr 27, 2023
@p-offtermatt p-offtermatt self-assigned this Apr 27, 2023
@p-offtermatt p-offtermatt linked a pull request Apr 27, 2023 that will close this issue
13 tasks
@p-offtermatt p-offtermatt changed the title feature: add a way to add a local testnet feature: add a way to start a local testnet Apr 28, 2023
@p-offtermatt
Copy link
Contributor Author

p-offtermatt commented Apr 28, 2023

I made a PR that solves this issue with a bash script that is relatively hacky #901.

The issue could alternatively be solved using existing tools, e.g. https://github.com/informalsystems/gm/ or https://github.com/hyphacoop/cosmos-ansible/tree/main/examples#start-a-local-replicated-security-testnet

@p-offtermatt
Copy link
Contributor Author

In #901 the point was made that instead of using a script and have a local testnet, we should reuse code from the e2e tests as much as possible, so this might be a better direction for this issue.

@mpoke mpoke added the S: Productivity Productivity: Developer tooling, infrastructure improvements enabling future growth label Sep 13, 2023
@mpoke
Copy link
Contributor

mpoke commented Nov 16, 2023

@p-offtermatt is this issue still relevant?

@p-offtermatt
Copy link
Contributor Author

This will be closed as part of #1334, as I will explain in the guidelines also how to use the e2e framework to have a local testnet to work with. I believe that should mean this stays open for now, let me adjust it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: Productivity Productivity: Developer tooling, infrastructure improvements enabling future growth scope: testing Code review, testing, making sure the code is following the specification. type: feature-request New feature or request improvement
Projects
Status: ✅ Done
2 participants