-
Notifications
You must be signed in to change notification settings - Fork 79
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
Fix empty log lines parsing in parse_cassandra_log, add automated tes… #1424
Changes from 3 commits
a081fa2
da09cdf
3bd6eb1
fc7cb39
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,6 +159,15 @@ else | |
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test $(GO_FLAGS) ./apis/... ./pkg/... ./test/yq/... ./controllers/... -covermode=atomic -coverprofile coverage.out | ||
endif | ||
|
||
.PHONY: vector-test | ||
vector-test: ## Run vector tests | ||
@echo Generating test files for Vector tests | ||
$(eval TMP := $(shell mktemp -d)) | ||
VECTOR_TEST_FILES=true OUTPUT_PATH=$(TMP) go test -v ./pkg/telemetry -run=TestGenerateTomlTestFiles | ||
@echo Running vector test files | ||
OUTPUT_PATH=$(TMP) VECTOR=$(VECTOR) scripts/run-vector-tests.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [thought] Couldn't we just run the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could do that also, but I don't think we've done that too often in our tests. It's an external program, so not really running go test code. But would we really want Vector installation to be a dependency on running Go tests? |
||
rm -rf $(TMP) | ||
|
||
E2E_TEST_TIMEOUT ?= 3600s | ||
|
||
PHONY: e2e-test | ||
|
@@ -326,6 +335,7 @@ KUSTOMIZE ?= $(LOCALBIN)/kustomize | |
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen | ||
ENVTEST ?= $(LOCALBIN)/setup-envtest | ||
GOLANGCI_LINT ?= $(LOCALBIN)/golangci-lint # TODO Add linting to the GHA also | ||
VECTOR ?= $(LOCALBIN)/vector | ||
|
||
## Tool Versions | ||
CERT_MANAGER_VERSION ?= v1.12.2 | ||
|
@@ -346,6 +356,10 @@ cert-manager-multi: ## Install cert-manager to the clusters | |
make cert-manager; \ | ||
done | ||
|
||
.PHONY: vector-install | ||
vector-install: | ||
curl --proto '=https' --tlsv1.2 -sSfL https://sh.vector.dev | bash -s -- --prefix $(LOCALBIN) -y | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was going to comment that I'm getting an error on this, but I see that you have opened an issue with the Vector project :) |
||
|
||
# Install NGINX in the current Kind cluster using Helm and a values file that is suitable for | ||
# running e2e tests locally with a cluster created with setup-kind-multicluster.sh. Helm must be | ||
# pre-installed on the system. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
for i in $OUTPUT_PATH/*; do | ||
$VECTOR test $i | ||
if [ "$?" -ne 0 ]; then | ||
exit 1 | ||
fi | ||
done |
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.
[question] shouldn't this depend on
vector-install
?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.
I didn't want it to depend on the vector-install if some person (well, maybe just me?) has it installed through brew or other means. Also, since it was broken on some platforms like MacOS (the fix isn't merged yet), it would make running the tests difficult.