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

Need a simnet harness #41

Open
buck54321 opened this issue Dec 28, 2019 · 3 comments
Open

Need a simnet harness #41

buck54321 opened this issue Dec 28, 2019 · 3 comments

Comments

@buck54321
Copy link
Member

Examples

Script will need to fire up dcrd, dcrdata, dcrstakepool/stakepoold. Ports chosen for the various RPCs can be hard-coded into the TD network configuration settings for simnet.

@teknico
Copy link
Collaborator

teknico commented Jan 28, 2020

This risks being a fairly large DevOps job.

The two main dependencies are dcrdata and dcrstakepool.

dcrdata has the following runtime dependencies:

  • dcrd
  • PostgreSQL

and no deployment script.

dcrstakepool has the following runtime dependencies:

  • stakepoold
  • dcrd
  • dcrwallet
  • MySQL

and a simnet deployment script (first example in this issue). However, the script lists quite a few installation and configuration assumptions, which make running it a fairly large manual job.

How far down the rabbit hole do we want to go? How much of the whole process do we want to automate?

Even if we stop somewhere mid-way, this does not look like a job for a few shell scripts. For productivity, maintanability and robustness reasons, I would at least write it in Python with the help of Plumbum and libtmux.

However, depending again on how extensively we want to automate the process, we might want to employ a more powerful tool like Ansible.

Then there's the question of whether we're going to use container tools like Docker.

All this would be easier if each tool and platform already had its own automated deployment we could reuse. I'm wary of scope creep though, and we do need to start somewhere.

@JoeGruffins
Copy link
Member

JoeGruffins commented Jan 28, 2020

I agree with @teknico
The dcrstakepool script is actually for testnet. We don't run it on simnet. It's missing that configuration.

edit:
decred/dcrstakepool#591

@buck54321
Copy link
Member Author

You guys are thinking too hard on this. We already have the scripts written in about three other Decred projects. Not every dev is expected to run these, they won't run with github actions, and we don't have to have a VSP instance to get most testing done. Other than VSP, this issue should be resolved in an hour or two of work.

@teknico teknico mentioned this issue Feb 17, 2020
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

3 participants