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

implement the exec:go builder, and the local:exec runner #86

Merged
merged 5 commits into from Nov 4, 2019

Conversation

@raulk
Copy link
Member

raulk commented Oct 29, 2019

This PR introduces a new builder and a new runner:

  • exec:go builder: builds a Go test plan with the system's Go toolchain, and produces an executable that conforms to the Test Case Runtime Environment, as defined in the spec.
  • local:exec runner: runs a test case in a test plan that has been built with an exec:* builder, forking as many system processes as instances required.

These components vastly improve DX, by allowing a test plan developer to iterate rapidly by avoiding Docker builds and runtime overhead.

Test it like this, after checking out this branch. Make sure you’re running a local Redis instance on port 6379 (default). (the runner now starts a temporary redis instance automatically).

$ go build .
$ ./testground -vv run --builder exec:go --runner local:exec --instances=20 --build-cfg bypass_cache=true --build-cfg go_version=\"1.13\" dht/lookup-peers
@raulk raulk force-pushed the feat/local-builder-runner branch from 07531a9 to efa8c3f Oct 30, 2019
@raulk raulk marked this pull request as ready for review Nov 4, 2019
@raulk raulk merged commit 63653e9 into master Nov 4, 2019
@raulk raulk deleted the feat/local-builder-runner branch Nov 4, 2019
@raulk

This comment has been minimized.

Copy link
Member Author

raulk commented Nov 4, 2019

Merged this as it's good to go and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.