File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 64
64
65
65
# set e2e environment variables
66
66
# Set ginkgo output and parallelism
67
- - run : echo "GINKGO_E2E_OPTS =-output-dir ${ARTIFACT_DIR} -junit-report junit_e2e.xml -nodes ${E2E_NODES}" >> $GITHUB_ENV
67
+ - run : echo "GINKGO_OPTS =-output-dir ${ARTIFACT_DIR} -junit-report junit_e2e.xml -nodes ${E2E_NODES}" >> $GITHUB_ENV
68
68
69
69
# Setting -kubeconfig-root tells the e2e test suite to look for kubeconfigs
70
70
# in <kubeconfig-root>/kubeconfig-<node-number>
@@ -98,15 +98,15 @@ jobs:
98
98
# focus on those tests and skip tests marked as FLAKE
99
99
run : |
100
100
E2E_TEST_NUM_CHUNKS=$(( ${{ strategy.job-total }} - 1 )) \
101
- GINKGO_E2E_OPTS ="${GINKGO_E2E_OPTS } -focus '$(go run ./test/e2e/split/... -chunks $E2E_TEST_NUM_CHUNKS -print-chunk $E2E_TEST_CHUNK ./test/e2e)' -skip '\[FLAKE\]'" \
101
+ GINKGO_OPTS ="${GINKGO_OPTS } -focus '$(go run ./test/e2e/split/... -chunks $E2E_TEST_NUM_CHUNKS -print-chunk $E2E_TEST_CHUNK ./test/e2e)' -skip '\[FLAKE\]'" \
102
102
make e2e;
103
103
104
104
# run e2e tests for flakes if matrix-id is 'flakes'
105
105
- name : Run flaky e2e tests
106
106
if : ${{ matrix.parallel-id == 'flakes' }}
107
107
# focus on tests marked as FLAKE
108
108
run : |
109
- GINKGO_E2E_OPTS ="${GINKGO_E2E_OPTS } -focus '\[FLAKE\]'" make e2e
109
+ GINKGO_OPTS ="${GINKGO_OPTS } -focus '\[FLAKE\]'" make e2e
110
110
111
111
# archive test results
112
112
- name : Archive Test Artifacts
Original file line number Diff line number Diff line change @@ -126,10 +126,16 @@ e2e.namespace:
126
126
@printf " e2e-tests-$( shell date +%s) -$$ RANDOM" > e2e.namespace
127
127
128
128
.PHONY : e2e
129
- GINKGO_E2E_OPTS += -timeout 90m -v -randomize-suites -race -trace --show-node-events
130
- E2E_OPTS += -namespace=operators -olmNamespace=operator-lifecycle-manager -catalogNamespace=operator-lifecycle-manager -dummyImage=bitnami/nginx:latest
129
+ E2E_TIMEOUT ?= 90m
130
+ E2E_TEST_NS ?= operators
131
+ E2E_INSTALL_NS ?= operator-lifecycle-manager
132
+ E2E_CATALOG_NS ?= $(E2E_INSTALL_NS )
133
+ GINKGO_OPTS += -v -randomize-suites -race -trace --show-node-events
131
134
e2e :
132
- $(GINKGO ) $(GINKGO_E2E_OPTS ) ./test/e2e -- $(E2E_OPTS )
135
+ $(GINKGO ) -timeout $(E2E_TIMEOUT ) $(GINKGO_OPTS ) ./test/e2e -- -namespace=E2E_TEST_NS -olmNamespace=$(E2E_INSTALL_NS ) -catalogNamespace=$(E2E_CATALOG_NS ) $(E2E_OPTS )
136
+
137
+ .PHONY : e2e-local
138
+ e2e-local : e2e-build kind-create deploy e2e
133
139
134
140
.PHONY : kind-clean
135
141
kind-clean :
You can’t perform that action at this time.
0 commit comments