From b174462d0466c88e42aa1f6ade1fe6bf1f981637 Mon Sep 17 00:00:00 2001 From: Adam Harwayne Date: Wed, 19 Aug 2020 23:13:14 -0700 Subject: [PATCH] Force the latest version to be v0.16.1. (#3887) v0.17.0 is a bad release, see https://github.com/knative/eventing/issues/3873. It is blocking any new PRs and is blocking the creation of a new release because the bad release is being used in the upgrade test, causing it to fail. --- test/e2e-common.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/e2e-common.sh b/test/e2e-common.sh index 17e9c0e686b..149913fac35 100755 --- a/test/e2e-common.sh +++ b/test/e2e-common.sh @@ -66,11 +66,9 @@ TEST_EVENTING_NAMESPACE="${TEST_EVENTING_NAMESPACE:-"knative-eventing-"$(cat /de | tr -dc 'a-z0-9' | fold -w 10 | head -n 1)}" latest_version() { - local semver=$(git describe --match "v[0-9]*" --abbrev=0) - local major_minor=$(echo "$semver" | cut -d. -f1-2) - - # Get the latest patch release for the major minor - git tag -l "${major_minor}*" | sort -r --version-sort | head -n1 + # v0.17.0 is a bad release. To unblock submitting new PRs and to allow the creation of v0.17.1, + # use the most recent, valid release. + echo "v0.16.1" } # Latest release. If user does not supply this as a flag, the latest