Skip to content

e2e: Runner is able to start and stop Tendermint testnet processes on non-local machines#9801

Closed
williambanfield wants to merge 490 commits intomainfrom
wb/issue-9790
Closed

e2e: Runner is able to start and stop Tendermint testnet processes on non-local machines#9801
williambanfield wants to merge 490 commits intomainfrom
wb/issue-9790

Conversation

@williambanfield
Copy link
Contributor

@williambanfield williambanfield commented Nov 30, 2022

This pull request adds functionality to the e2e runner process to start and stop tendermint nodes on non-local machines.

To achieve this goal, it makes the following set of changes:

  • Adds a set of methods for starting and stopping Tendermint to the infra.Provider interface and implements them by both the docker.Provider and digitalocean.Provider. The digitalocean provider expects Tendermint to be running under systemd and is started/stopped/killed using interactions with systemd.
  • Adds a set of ssh functionality to the e2e test runner to allow interaction with the remove Tendermint nodes. This ssh functionality expects an ssh-agent to be running on the host machine and uses keys from the ssh-agent to connect to the remote. This allows operators of the e2e runner to either run the process locally or to run it on a remote orchestrator machine and grant it permission to ssh to additional nodes using ssh-agent forwarding.
  • moves the dockerComposeExec functionality to the docker package. The remaining uses of this new docker.ComposeExec function are all targets for replacement with provider methods.
  • Updates the e2e testing to pass the InfrastructureData and InfrastructureType to the test subprocess.

Closes: #9790


PR checklist

  • Tests written/updated, or no tests needed
  • CHANGELOG_PENDING.md updated, or no changelog entry needed
  • Updated relevant documentation (docs/) and code comments, or no
    documentation updates needed

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S:automerge Automatically merge PR when requirements pass S:backport-to-v0.34.x Tell mergify to backport the PR to v0.34.x S:backport-to-v0.37.x Tell mergify to backport the PR to v0.37.x stale for use by stalebot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update the e2e runner to be able to start and stop Tendermint testnet processes on non-local machines