From ad012f63f768ca0bf2caf72d9a6a1fe88129eb23 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Fri, 26 Dec 2025 10:37:10 +0100 Subject: [PATCH] hack/verify-featuregates.sh: print failure information to stderr Verify scripts are run such that stderr is captured and included in the JUnit files. Stdout is not. Therefore the instructions in case of a failure where only visible by searching the entire job log file, but not in the Prow summary. --- hack/verify-featuregates.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/verify-featuregates.sh b/hack/verify-featuregates.sh index 510a236cbb3..5b68b9174f8 100755 --- a/hack/verify-featuregates.sh +++ b/hack/verify-featuregates.sh @@ -32,7 +32,7 @@ kube::golang::setup_env cd "${KUBE_ROOT}" if ! go run test/compatibility_lifecycle/main.go feature-gates verify; then - echo "Please run 'hack/update-featuregates.sh' to update the feature list." + echo >&2 "Please run 'hack/update-featuregates.sh' to update the feature list." exit 1 fi @@ -44,7 +44,7 @@ trap 'rm -f "${TMPFILE}"' EXIT go run cmd/genfeaturegates/genfeaturegates.go -output="${TMPFILE}" if ! diff -q "${FEATURE_LIST_MD}" "${TMPFILE}" > /dev/null 2>&1; then - echo "${FEATURE_LIST_MD} is out of date." - echo "Please run 'hack/update-featuregates.sh' to update the feature list." + echo >&2 "${FEATURE_LIST_MD} is out of date." + echo >&2 "Please run 'hack/update-featuregates.sh' to update the feature list." exit 1 fi