Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 9f1f3dd

Browse files
authored
Merge pull request #56 from msau42/enable-snapshots
Enable snapshot tests in 1.17 to be run in non-alpha jobs.
2 parents 9ace020 + b98b2ae commit 9f1f3dd

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

Diff for: prow.sh

+21-5
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ configvar CSI_PROW_BUILD_JOB true "building code in repo enabled"
132132
# use the same settings as for "latest" Kubernetes. This works
133133
# as long as there are no breaking changes in Kubernetes, like
134134
# deprecating or changing the implementation of an alpha feature.
135-
configvar CSI_PROW_KUBERNETES_VERSION 1.15.3 "Kubernetes"
135+
configvar CSI_PROW_KUBERNETES_VERSION 1.17.0 "Kubernetes"
136136

137137
# This is a hack to workaround the issue that each version
138138
# of kind currently only supports specific patch versions of
@@ -142,7 +142,6 @@ configvar CSI_PROW_KUBERNETES_VERSION 1.15.3 "Kubernetes"
142142
#
143143
# If the version is prefixed with "release-", then nothing
144144
# is overridden.
145-
override_k8s_version "1.14.6"
146145
override_k8s_version "1.15.3"
147146

148147
# CSI_PROW_KUBERNETES_VERSION reduced to first two version numbers and
@@ -206,9 +205,9 @@ configvar CSI_PROW_HOSTPATH_CANARY "" "hostpath image"
206205
#
207206
# CSI_PROW_E2E_REPO=none disables E2E testing.
208207
# TOOO: remove versioned variables and make e2e version match k8s version
209-
configvar CSI_PROW_E2E_VERSION_1_14 v1.14.0 "E2E version for Kubernetes 1.14.x"
210208
configvar CSI_PROW_E2E_VERSION_1_15 v1.15.0 "E2E version for Kubernetes 1.15.x"
211209
configvar CSI_PROW_E2E_VERSION_1_16 v1.16.0 "E2E version for Kubernetes 1.16.x"
210+
configvar CSI_PROW_E2E_VERSION_1_17 v1.17.0 "E2E version for Kubernetes 1.17.x"
212211
# TODO: add new CSI_PROW_E2E_VERSION entry for future Kubernetes releases
213212
configvar CSI_PROW_E2E_VERSION_LATEST master "E2E version for Kubernetes master" # testing against Kubernetes master is already tracking a moving target, so we might as well use a moving E2E version
214213
configvar CSI_PROW_E2E_REPO_LATEST https://github.com/kubernetes/kubernetes "E2E repo for Kubernetes >= 1.13.x" # currently the same for all versions
@@ -278,6 +277,14 @@ tests_need_alpha_cluster () {
278277
tests_enabled "parallel-alpha" "serial-alpha"
279278
}
280279

280+
# Regex for non-alpha, feature-tagged tests that should be run.
281+
#
282+
# Starting with 1.17, snapshots is beta, but the E2E tests still have the
283+
# [Feature:] tag. They need to be explicitly enabled.
284+
configvar CSI_PROW_E2E_FOCUS_1_15 '^' "non-alpha, feature-tagged tests for Kubernetes = 1.15" # no tests to run, match nothing
285+
configvar CSI_PROW_E2E_FOCUS_1_16 '^' "non-alpha, feature-tagged tests for Kubernetes = 1.16" # no tests to run, match nothing
286+
configvar CSI_PROW_E2E_FOCUS_LATEST '\[Feature:VolumeSnapshotDataSource\]' "non-alpha, feature-tagged tests for Kubernetes >= 1.17"
287+
configvar CSI_PROW_E2E_FOCUS "$(get_versioned_variable CSI_PROW_E2E_FOCUS "${csi_prow_kubernetes_version_suffix}")" "non-alpha, feature-tagged tests"
281288

282289
# Serial vs. parallel is always determined by these regular expressions.
283290
# Individual regular expressions are seperated by spaces for readability
@@ -313,12 +320,11 @@ configvar CSI_PROW_E2E_ALPHA "$(get_versioned_variable CSI_PROW_E2E_ALPHA "${csi
313320
# kubernetes-csi components must be updated, either by disabling
314321
# the failing test for "latest" or by updating the test and not running
315322
# it anymore for older releases.
316-
configvar CSI_PROW_E2E_ALPHA_GATES_1_14 'VolumeSnapshotDataSource=true,ExpandCSIVolumes=true' "alpha feature gates for Kubernetes 1.14"
317323
configvar CSI_PROW_E2E_ALPHA_GATES_1_15 'VolumeSnapshotDataSource=true,ExpandCSIVolumes=true' "alpha feature gates for Kubernetes 1.15"
318324
configvar CSI_PROW_E2E_ALPHA_GATES_1_16 'VolumeSnapshotDataSource=true' "alpha feature gates for Kubernetes 1.16"
319325
# TODO: add new CSI_PROW_ALPHA_GATES_xxx entry for future Kubernetes releases and
320326
# add new gates to CSI_PROW_E2E_ALPHA_GATES_LATEST.
321-
configvar CSI_PROW_E2E_ALPHA_GATES_LATEST 'VolumeSnapshotDataSource=true' "alpha feature gates for latest Kubernetes"
327+
configvar CSI_PROW_E2E_ALPHA_GATES_LATEST '' "alpha feature gates for latest Kubernetes"
322328
configvar CSI_PROW_E2E_ALPHA_GATES "$(get_versioned_variable CSI_PROW_E2E_ALPHA_GATES "${csi_prow_kubernetes_version_suffix}")" "alpha E2E feature gates"
323329

324330
# Which external-snapshotter tag to use for the snapshotter CRD and snapshot-controller deployment
@@ -1111,6 +1117,16 @@ main () {
11111117
warn "E2E parallel failed"
11121118
ret=1
11131119
fi
1120+
1121+
# Run tests that are feature tagged, but non-alpha
1122+
# Ignore: Double quote to prevent globbing and word splitting.
1123+
# shellcheck disable=SC2086
1124+
if ! run_e2e parallel ${CSI_PROW_GINKO_PARALLEL} \
1125+
-focus="External.Storage.*($(regex_join "${CSI_PROW_E2E_FOCUS}"))" \
1126+
-skip="$(regex_join "${CSI_PROW_E2E_SERIAL}")"; then
1127+
warn "E2E parallel features failed"
1128+
ret=1
1129+
fi
11141130
fi
11151131

11161132
if tests_enabled "serial"; then

0 commit comments

Comments
 (0)