From 531407d91cbf0479708e6b9511ade502bf3324a5 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Thu, 27 May 2021 10:33:48 +0200 Subject: [PATCH] Squashed 'release-tools/' changes from d7146c79..71c810ab https://github.com/kubernetes-csi/csi-release-tools/commit/71c810ab Merge https://github.com/kubernetes-csi/csi-release-tools/pull/161 from pohly/mock-test-fixes https://github.com/kubernetes-csi/csi-release-tools/commit/9e438f8e prow.sh: fix mock testing git-subtree-dir: release-tools git-subtree-split: 71c810abdaff4b685d90e89a28ca7ef8960066be --- prow.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/prow.sh b/prow.sh index 1d0bad94b..f4e0dcc4d 100755 --- a/prow.sh +++ b/prow.sh @@ -303,10 +303,12 @@ tests_need_alpha_cluster () { # in the e2e.test's normal YAML files. # # The default is to enable this for all jobs which use canary images -# because we want to know whether our release candidates will pass all -# existing tests (the storage testsuites and mock testing in -# Kubernetes). -configvar CSI_PROW_E2E_MOCK "$(if [ "${CSI_PROW_DRIVER_CANARY}" = "canary" ]; then echo true; else echo false; fi)" "enable CSI mock volume tests" +# and the latest Kubernetes because those images will be used for mock +# testing once they are released. Using them for mock testing with +# older Kubernetes releases is too risky because the deployment files +# can be very old (for example, still using a removed -provisioner +# parameter in external-provisioner). +configvar CSI_PROW_E2E_MOCK "$(if [ "${CSI_PROW_DRIVER_CANARY}" = "canary" ] && [ "${CSI_PROW_KUBERNETES_VERSION}" = "latest" ]; then echo true; else echo false; fi)" "enable CSI mock volume tests" # Regex for non-alpha, feature-tagged tests that should be run. # @@ -981,7 +983,7 @@ run_e2e () ( # the full Kubernetes E2E testsuite while only running a few tests. move_junit () { if ls "${ARTIFACTS}"/junit_[0-9]*.xml 2>/dev/null >/dev/null; then - run_filter_junit -t="External Storage" -o "${ARTIFACTS}/junit_${name}.xml" "${ARTIFACTS}"/junit_[0-9]*.xml && rm -f "${ARTIFACTS}"/junit_[0-9]*.xml + run_filter_junit -t="External.Storage|CSI.mock.volume" -o "${ARTIFACTS}/junit_${name}.xml" "${ARTIFACTS}"/junit_[0-9]*.xml && rm -f "${ARTIFACTS}"/junit_[0-9]*.xml fi } trap move_junit EXIT