Skip to content

Commit 8503e28

Browse files
authored
CLOUDP-329954: Set selective flake attempts (#2450)
Signed-off-by: jose.vazquez <[email protected]>
1 parent 95c0387 commit 8503e28

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ KUBEBUILDER_ASSETS ?= $(ENVTEST_ASSETS_DIR)/k8s/$(ENVTEST_K8S_VERSION)-$(TARGET_
106106
# Ginkgo configuration
107107
GINKGO_NODES ?= 12
108108
GINKGO_EDITOR_INTEGRATION ?= true
109-
GINKGO_OPTS = -vv --randomize-all --output-interceptor-mode=none --trace --timeout 90m --flake-attempts=1 --race --nodes=$(GINKGO_NODES) --cover --coverpkg=github.com/mongodb/mongodb-atlas-kubernetes/v2/... --coverprofile=coverprofile.out
109+
GINKGO_OPTS = -vv --randomize-all --output-interceptor-mode=none --trace --timeout 90m --race --nodes=$(GINKGO_NODES) --cover --coverpkg=github.com/mongodb/mongodb-atlas-kubernetes/v2/... --coverprofile=coverprofile.out
110110
GINKGO_FILTER_LABEL ?=
111111
ifneq ($(GINKGO_FILTER_LABEL),)
112112
GINKGO_FILTER_LABEL_OPT := --label-filter="$(GINKGO_FILTER_LABEL)"

scripts/launch-ci-e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ else
2828
fi
2929

3030
AKO_E2E_TEST=1 ginkgo --output-interceptor-mode=none --label-filter="${filter}" --timeout 120m --nodes=10 \
31-
--flake-attempts=1 --race --cover --v --coverpkg=github.com/mongodb/mongodb-atlas-kubernetes/v2/pkg/... \
31+
--race --cover --v --coverpkg=github.com/mongodb/mongodb-atlas-kubernetes/v2/pkg/... \
3232
--coverprofile=coverprofile.out

test/e2e/datafederation_pe_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import (
4343

4444
// AWS NOTES: reserved VPC in eu-west-2, eu-south-1, us-east-1 (due to limitation no more 4 VPC per region)
4545

46-
var _ = Describe("DataFederation Private Endpoint", Label("datafederation"), func() {
46+
var _ = Describe("DataFederation Private Endpoint", Label("datafederation"), FlakeAttempts(3), func() {
4747
var testData *model.TestDataProvider
4848
var providerAction cloud.Provider
4949
var pe *cloud.PrivateEndpointDetails

test/e2e/helm_chart_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
"github.com/mongodb/mongodb-atlas-kubernetes/v2/test/helper/e2e/utils"
3535
)
3636

37-
var _ = Describe("HELM charts", Ordered, func() {
37+
var _ = Describe("HELM charts", Ordered, FlakeAttempts(1), func() {
3838
var data model.TestDataProvider
3939
skipped := false
4040

test/e2e/private_link_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type privateEndpoint struct {
4646
region string
4747
}
4848

49-
var _ = Describe("UserLogin", Label("privatelink"), func() {
49+
var _ = Describe("UserLogin", Label("privatelink"), FlakeAttempts(2), func() {
5050
var testData *model.TestDataProvider
5151
var providerAction cloud.Provider
5252

test/e2e/privateendpoint_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939
"github.com/mongodb/mongodb-atlas-kubernetes/v2/test/helper/resources"
4040
)
4141

42-
var _ = Describe("Private Endpoints", Label("private-endpoint"), func() {
42+
var _ = Describe("Private Endpoints", Label("private-endpoint"), FlakeAttempts(2), func() {
4343
var testData *model.TestDataProvider
4444

4545
_ = BeforeEach(OncePerOrdered, func() {

0 commit comments

Comments
 (0)