From 3eea8ef2056d3c1f61515eb1af8b98adf35875c8 Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Tue, 3 Sep 2024 09:13:34 -0700 Subject: [PATCH] Cover edge case when on new minor release for E2E upgrade test (#10781) Signed-off-by: Derek Nola --- .drone.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.drone.yml b/.drone.yml index 3e75e0201947..447d09358e81 100644 --- a/.drone.yml +++ b/.drone.yml @@ -644,6 +644,10 @@ steps: UPGRADE_CHANNEL="latest" else UPGRADE_CHANNEL=$(echo $DRONE_BRANCH | sed 's/release-/v/') + # Check if the UPGRADE_CHANNEL exists, in the case of new minor releases it won't + if ! curl --head --silent --fail https://update.k3s.io/v1-release/channels/$UPGRADE_CHANNEL; then + UPGRADE_CHANNEL="latest" + fi fi E2E_RELEASE_CHANNEL=$UPGRADE_CHANNEL go test -v -timeout=45m ./upgradecluster_test.go -ci -local cp ./coverage.out /tmp/artifacts/upgrade-coverage.out