-
Notifications
You must be signed in to change notification settings - Fork 73
✨ Concurrent E2E Test Execution #2675
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -254,11 +254,23 @@ $(eval $(call install-sh,standard,operator-controller-standard.yaml)) | |
| .PHONY: test | ||
| test: manifests generate fmt lint test-unit test-e2e test-regression #HELP Run all tests. | ||
|
|
||
| E2E_TIMEOUT ?= 20m | ||
| GODOG_ARGS ?= | ||
| .PHONY: e2e | ||
| e2e: E2E_TIMEOUT ?= 20m | ||
| e2e: GODOG_ARGS ?= | ||
| e2e: #EXHELP Run the e2e tests. | ||
| go test -count=1 -v ./test/e2e/features_test.go -timeout=$(E2E_TIMEOUT) $(if $(GODOG_ARGS),-args $(GODOG_ARGS)) | ||
| ifeq ($(strip $(GODOG_ARGS)),) | ||
| set +e; \ | ||
| go test -count=1 -v ./test/e2e/features_test.go -timeout=${E2E_TIMEOUT} -args --godog.tags="~@Serial" --godog.concurrency=100; \ | ||
| parallelExit=$$?; \ | ||
| go test -count=1 -v ./test/e2e/features_test.go -timeout=${E2E_TIMEOUT} -args --godog.tags="@Serial" --godog.concurrency=1; \ | ||
| serialExit=$$?; \ | ||
| if [[ $$parallelExit -ne 0 ]] || [[ $$serialExit -ne 0 ]]; then \ | ||
| echo "e2e tests failed: parallel=$$parallelExit serial=$$serialExit"; \ | ||
| exit 1; \ | ||
| fi | ||
|
Comment on lines
+262
to
+270
Contributor
Author
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. This was an intentional decision to avoid complexity, as doing a |
||
| else | ||
| go test -count=1 -v ./test/e2e/features_test.go -timeout=$(E2E_TIMEOUT) -args $(GODOG_ARGS) | ||
| endif | ||
|
|
||
| export CLUSTER_REGISTRY_HOST := docker-registry.operator-controller-e2e.svc:5000 | ||
| .PHONY: extension-developer-e2e | ||
|
|
@@ -316,7 +328,7 @@ test-experimental-e2e: COVERAGE_NAME := experimental-e2e | |
| test-experimental-e2e: export MANIFEST := $(EXPERIMENTAL_RELEASE_MANIFEST) | ||
| test-experimental-e2e: export INSTALL_DEFAULT_CATALOGS := false | ||
| test-experimental-e2e: PROMETHEUS_VALUES := helm/prom_experimental.yaml | ||
| test-experimental-e2e: E2E_TIMEOUT := 25m | ||
| test-experimental-e2e: E2E_TIMEOUT ?= 25m | ||
|
Contributor
Author
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. My intent was to allow overriding here - not realizing that the way the timeout is define above in |
||
| test-experimental-e2e: run-internal prometheus e2e e2e-coverage kind-clean #HELP Run experimental e2e test suite on local kind cluster | ||
|
|
||
| .PHONY: prometheus | ||
|
|
||
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.
Nit (non-blocking): with
set +e, Ctrl+C during the parallel phase killsgo testbut the serial phase still starts — the user needs to Ctrl+C a second time. Adding a trap beforeset +ewould make it exit immediately:Minor ergonomic improvement for local dev. Fine to skip or do in a follow-up.