Skip to content

Commit c5db670

Browse files
authored
Merge pull request #861 from cvvz/e2e-test
test: speed up e2e test by running in parallel
2 parents d50ad3e + 7386e44 commit c5db670

File tree

249 files changed

+20651
-1384
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+20651
-1384
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ ifdef ENABLE_BLOBFUSE_PROXY
3434
override E2E_HELM_OPTIONS := $(E2E_HELM_OPTIONS) --set controller.logLevel=6 --set node.logLevel=6 --set node.enableBlobfuseProxy=true
3535
endif
3636
E2E_HELM_OPTIONS += ${EXTRA_HELM_OPTIONS}
37-
GINKGO_FLAGS = -ginkgo.v -ginkgo.timeout=2h
3837
GO111MODULE = on
3938
GOPATH ?= $(shell go env GOPATH)
4039
GOBIN ?= $(GOPATH)/bin
@@ -76,11 +75,11 @@ integration-test: blob
7675
go test -v -timeout=30m ./test/integration
7776

7877
.PHONY: e2e-test
79-
e2e-test:
78+
e2e-test: install-ginkgo
8079
if [ ! -z "$(EXTERNAL_E2E_TEST_BLOBFUSE)" ] || [ ! -z "$(EXTERNAL_E2E_TEST_BLOBFUSE_v2)" ] || [ ! -z "$(EXTERNAL_E2E_TEST_NFS)" ]; then \
8180
bash ./test/external-e2e/run.sh;\
8281
else \
83-
go test -v -timeout=0 ./test/e2e ${GINKGO_FLAGS};\
82+
ginkgo -p -vv --fail-fast --output-interceptor-mode=none --flake-attempts 2 ./test/e2e -- --project-root=$(shell pwd);\
8483
fi
8584

8685
.PHONY: e2e-bootstrap
@@ -96,6 +95,10 @@ e2e-bootstrap: install-helm
9695
install-helm:
9796
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
9897

98+
.PHONY: install-ginkgo
99+
install-ginkgo:
100+
go install github.com/onsi/ginkgo/v2/[email protected]
101+
99102
.PHONY: e2e-teardown
100103
e2e-teardown:
101104
helm delete blob-csi-driver --namespace kube-system

go.mod

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ require (
1111
github.com/container-storage-interface/spec v1.7.0
1212
github.com/gofrs/uuid v4.2.0+incompatible // indirect
1313
github.com/golang/mock v1.6.0
14-
github.com/golang/protobuf v1.5.2
14+
github.com/golang/protobuf v1.5.3
1515
github.com/imdario/mergo v0.3.9 // indirect
1616
github.com/kubernetes-csi/csi-lib-utils v0.9.1
17-
github.com/onsi/gomega v1.25.0
17+
github.com/onsi/gomega v1.27.4
1818
github.com/pborman/uuid v1.2.0
1919
github.com/pelletier/go-toml v1.9.4
2020
github.com/stretchr/testify v1.8.2
21-
golang.org/x/net v0.7.0
21+
golang.org/x/net v0.8.0
2222
google.golang.org/grpc v1.49.0
2323
google.golang.org/protobuf v1.28.1
2424
k8s.io/api v0.26.0
@@ -39,7 +39,7 @@ require (
3939
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.6.1
4040
github.com/go-ini/ini v1.67.0
4141
github.com/jongio/azidext/go/azidext v0.4.0
42-
github.com/onsi/ginkgo/v2 v2.7.0
42+
github.com/onsi/ginkgo/v2 v2.9.2
4343
github.com/pkg/errors v0.9.1
4444
github.com/satori/go.uuid v1.2.0
4545
k8s.io/apiserver v0.26.0
@@ -70,12 +70,14 @@ require (
7070
github.com/go-openapi/jsonpointer v0.19.5 // indirect
7171
github.com/go-openapi/jsonreference v0.20.0 // indirect
7272
github.com/go-openapi/swag v0.19.14 // indirect
73+
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
7374
github.com/gogo/protobuf v1.3.2 // indirect
7475
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
7576
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
7677
github.com/google/gnostic v0.5.7-v3refs // indirect
7778
github.com/google/go-cmp v0.5.9 // indirect
7879
github.com/google/gofuzz v1.1.0 // indirect
80+
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
7981
github.com/google/uuid v1.3.0 // indirect
8082
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
8183
github.com/inconshreveable/mousetrap v1.0.1 // indirect
@@ -111,10 +113,11 @@ require (
111113
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
112114
golang.org/x/crypto v0.6.0 // indirect
113115
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
114-
golang.org/x/sys v0.5.0 // indirect
115-
golang.org/x/term v0.5.0 // indirect
116-
golang.org/x/text v0.7.0 // indirect
116+
golang.org/x/sys v0.6.0 // indirect
117+
golang.org/x/term v0.6.0 // indirect
118+
golang.org/x/text v0.8.0 // indirect
117119
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
120+
golang.org/x/tools v0.7.0 // indirect
118121
google.golang.org/appengine v1.6.7 // indirect
119122
google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21 // indirect
120123
gopkg.in/inf.v0 v0.9.1 // indirect
@@ -125,14 +128,14 @@ require (
125128
k8s.io/component-helpers v0.26.0 // indirect
126129
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
127130
k8s.io/kubectl v0.0.0 // indirect
131+
k8s.io/kubelet v0.26.0 // indirect
128132
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.33 // indirect
129133
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
130134
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
131135
)
132136

133137
replace (
134138
github.com/niemeyer/pretty => github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e
135-
github.com/onsi/ginkgo/v2 => github.com/onsi/ginkgo/v2 v2.4.0
136139
go.etcd.io/etcd => go.etcd.io/etcd v0.0.0-20200410171415-59f5fb25a533
137140
k8s.io/api => k8s.io/api v0.26.0
138141
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.26.0

0 commit comments

Comments
 (0)