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.
This commit is contained in:
Patrick Ohly 2025-12-26 10:37:10 +01:00
parent d04610bbfb
commit ad012f63f7

View file

@ -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