-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add End-to-end test bed #54
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
Merged
tigrannajaryan
merged 1 commit into
open-telemetry:master
from
tigrannajaryan:feature/tigran/testbed
Jun 27, 2019
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
GOTEST_OPT?=-v -race -timeout 30s | ||
GOTEST_OPT_WITH_COVERAGE = $(GOTEST_OPT) -coverprofile=coverage.txt -covermode=atomic | ||
GOTEST=go test | ||
GOFMT=gofmt | ||
GOLINT=golint | ||
GOVET=go vet | ||
GOOS=$(shell go env GOOS) | ||
|
||
.DEFAULT_GOAL := fmt-vet-lint-test | ||
|
||
.PHONY: fmt-vet-lint-test | ||
fmt-vet-lint-test: fmt vet lint test | ||
|
||
.PHONY: test | ||
test: | ||
$(GOTEST) $(GOTEST_OPT) ./... | ||
|
||
.PHONY: runtests | ||
runtests: test | ||
cd tests && TESTBED_CONFIG=local.yaml go test -v 2>&1 | tee results/testoutput.log | ||
cd tests && mkdir -p results/junit && go-junit-report < results/testoutput.log > results/junit/results.xml | ||
|
||
.PHONY: fmt | ||
fmt: | ||
@FMTOUT=`$(GOFMT) -s -l ./.. 2>&1`; \ | ||
if [ "$$FMTOUT" ]; then \ | ||
echo "$(GOFMT) FAILED => gofmt the following files:\n"; \ | ||
echo "$$FMTOUT\n"; \ | ||
exit 1; \ | ||
else \ | ||
echo "Fmt finished successfully"; \ | ||
fi | ||
|
||
.PHONY: lint | ||
lint: | ||
@LINTOUT=`$(GOLINT) $(ALL_PKGS) 2>&1`; \ | ||
if [ "$$LINTOUT" ]; then \ | ||
echo "$(GOLINT) FAILED => clean the following lint errors:\n"; \ | ||
echo "$$LINTOUT\n"; \ | ||
exit 1; \ | ||
else \ | ||
echo "Lint finished successfully"; \ | ||
fi | ||
|
||
.PHONY: vet | ||
vet: | ||
$(GOVET) ./... | ||
|
||
.PHONY: install-tools | ||
install-tools: | ||
go install golang.org/x/lint/golint | ||
go install github.com/jstemmer/go-junit-report |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# OpenTelemetry Service Testbed | ||
|
||
Testbed is a controlled environment and tools for conducting performance tests for the Agent, including reproducible short-term benchmarks,long-running stability tests and maximum load stress tests. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module github.com/open-telemetry/opentelemetry-service/testbed | ||
|
||
go 1.12 | ||
|
||
require ( | ||
contrib.go.opencensus.io/exporter/jaeger v0.1.1-0.20190430175949-e8b55949d948 | ||
github.com/open-telemetry/opentelemetry-service v0.0.0-20190625135304-4bd705a25a35 | ||
github.com/shirou/gopsutil v2.18.12+incompatible | ||
github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4 // indirect | ||
github.com/spf13/viper v1.4.0 | ||
github.com/stretchr/testify v1.3.0 | ||
go.opencensus.io v0.22.0 | ||
) |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we shouldn't run the testbed every time it should be built together with the repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine to do it later.