Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
e2e: increase Ginkgo timeout
Browse files Browse the repository at this point in the history
Ginkgo v2 reduced the default timeout to 1 hour, which is too low for us.
  • Loading branch information
pohly committed Sep 14, 2022
1 parent 72af349 commit b3b3751
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ void TestInVM(worker, coverage, distro, distroVersion, kubernetesVersion, skipIf
testrun=\$(echo '${distro}-${distroVersion}-${coverage}${kubernetesVersion}' | sed -e s/--*/-/g | tr . _ ) && \
make test_e2e TEST_E2E_REPORT_DIR=${WORKSPACE}/build/reports.tmp/\$testrun \
TEST_E2E_SKIP=${skipAlways}@\$(if [ \"${env.CHANGE_ID}\" ] && [ \"${env.CHANGE_ID}\" != null ]; then echo \\\\[Slow\\\\]@${skipIfPR}; fi) \
TEST_E2E_TIMEOUT=${TestTimeoutHours()-1}h \
') 2>&1 | tee joblog-${BUILD_TAG}-test-${coverage}${kubernetesVersion}.log | grep --line-buffered -E -e 'checking for test|Passed|FAIL:|^ERROR' \
"
} } finally {
Expand Down
4 changes: 4 additions & 0 deletions test/test.make
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ foobar:
# i.e. usually just junit_01.xml.
TEST_E2E_REPORT_DIR=

# The value for the -ginkgo.timeout parameter.
TEST_E2E_TIMEOUT=5h

# Additional e2e.test arguments, like -ginkgo.failFast.
TEST_E2E_ARGS =

Expand Down Expand Up @@ -177,6 +180,7 @@ RUN_E2E = KUBECONFIG=`pwd`/_work/$(CLUSTER)/kube.config \
-ginkgo.skip='$(subst $(space),|,$(strip $(subst @,$(space),$(TEST_E2E_SKIP_ALL))))' \
-ginkgo.focus='$(subst $(space),|,$(strip $(subst @,$(space),$(TEST_E2E_FOCUS))))' \
-ginkgo.randomizeAllSpecs=false \
-ginkgo.timeout=$(TEST_E2E_TIMEOUT) \
$(TEST_E2E_ARGS) \
-report-dir=$(TEST_E2E_REPORT_DIR)
test_e2e: start $(RUN_TEST_DEPS) operator-generate-bundle
Expand Down

0 comments on commit b3b3751

Please sign in to comment.