You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CONTINT-5028] Add permissions to collect Argo and Flux CRDs and use kustomize SA for e2e-tests (#2486)
* add timeout to e2e to see dumps instead of waiting CI job time out
* fix RBAC for fluxcd
* Do not use Helm chart SA and rely on kustomize one
* clean up DDA before finishing test
* Make cleanup more robust
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
54
54
ENVTEST_K8S_VERSION = 1.30
55
+
# Default timeout for `go test` when running E2E tests.
56
+
# (E2E provisioning can hang; having a finite timeout ensures we get goroutine dumps
57
+
# instead of the CI job timing out with no actionable logs.)
58
+
E2E_GO_TEST_TIMEOUT ?= 55m
55
59
56
60
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
57
61
ifeq (,$(shell go env GOBIN))
@@ -205,10 +209,10 @@ integration-tests: $(ENVTEST) ## Run integration tests with reconciler
205
209
.PHONY: e2e-tests
206
210
e2e-tests: ## Run E2E tests and destroy environment stacks after tests complete. To run locally, complete pre-reqs (see docs/how-to-contribute.md) and prepend command with `aws-vault exec sso-agent-sandbox-account-admin --`. E.g. `aws-vault exec sso-agent-sandbox-account-admin -- make e2e-tests`.
207
211
@if [ -z"$(E2E_RUN_REGEX)" ];then\
208
-
KUBEBUILDER_ASSETS="$(ROOT)/bin/$(PLATFORM)/" go test -C test/e2e/ ./... -count=1 --tags=e2e -v -run TestAWSKindSuite -timeout 0s -coverprofile cover_e2e.out;\
212
+
KUBEBUILDER_ASSETS="$(ROOT)/bin/$(PLATFORM)/" go test -C test/e2e/ ./... -count=1 --tags=e2e -v -run TestAWSKindSuite -timeout $(E2E_GO_TEST_TIMEOUT) -coverprofile cover_e2e.out;\
209
213
else\
210
214
echo"Running e2e test: $(E2E_RUN_REGEX)";\
211
-
KUBEBUILDER_ASSETS="$(ROOT)/bin/$(PLATFORM)/" go test -C test/e2e/ ./... -count=1 --tags=e2e -v -run $(E2E_RUN_REGEX) -timeout 0s -coverprofile cover_e2e.out;\
215
+
KUBEBUILDER_ASSETS="$(ROOT)/bin/$(PLATFORM)/" go test -C test/e2e/ ./... -count=1 --tags=e2e -v -run $(E2E_RUN_REGEX) -timeout $(E2E_GO_TEST_TIMEOUT) -coverprofile cover_e2e.out;\
0 commit comments