Skip to content

Commit 32a59b5

Browse files
authored
ci: Replace deprecated ginkgo option --slow-spec-threshold
This patch remove the deprecated ginkgo option --slow-spec-threshold, by specific internval using option --poll-progress-after to emit the progress report in long ginkgo run. Closes: cloudnative-pg#1045 Signed-off-by: Danish Khan <danish.khan@enterprisedb.com>
1 parent c8039b9 commit 32a59b5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hack/e2e/run-e2e.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ if [[ "${TEST_UPGRADE_TO_V1}" != "false" ]]; then
8888
mkdir -p "${ROOT_DIR}/tests/e2e/out"
8989
# Unset DEBUG to prevent k8s from spamming messages
9090
unset DEBUG
91-
ginkgo --nodes=1 --slow-spec-threshold=5m --label-filter "upgrade" --output-dir "${ROOT_DIR}/tests/e2e/out" --json-report "upgrade_report.json" -v "${ROOT_DIR}/tests/e2e/..." || RC_GINKGO1=$?
91+
ginkgo --nodes=1 --poll-progress-after=300s --poll-progress-interval=30s --label-filter "upgrade" \
92+
--output-dir "${ROOT_DIR}/tests/e2e/out" \
93+
--json-report "upgrade_report.json" -v "${ROOT_DIR}/tests/e2e/..." || RC_GINKGO1=$?
9294

9395
# Report if there are any tests that failed and did NOT have an "ignore-fails" label
9496
jq -e -c -f "${ROOT_DIR}/hack/e2e/test-report.jq" "${ROOT_DIR}/tests/e2e/out/upgrade_report.json" || RC=$?
@@ -119,7 +121,7 @@ if [ "${FEATURE_TYPE-}" ]; then
119121
fi
120122

121123
echo "E2E tests are running with the following filters: ${LABEL_FILTERS}"
122-
ginkgo --nodes=4 --timeout 3h --slow-spec-threshold 5m --label-filter "${LABEL_FILTERS}" \
124+
ginkgo --nodes=4 --timeout 3h --poll-progress-after=300s --poll-progress-interval=30s --label-filter "${LABEL_FILTERS}" \
123125
--output-dir "${ROOT_DIR}/tests/e2e/out/" --json-report "report.json" \
124126
-v "${ROOT_DIR}/tests/e2e/..." || RC_GINKGO2=$?
125127

0 commit comments

Comments
 (0)