From 9408c4e10820bd1fe67657fe9f3217fa4ee2b489 Mon Sep 17 00:00:00 2001 From: RamLavi Date: Wed, 24 Jun 2026 03:10:48 +0000 Subject: [PATCH] CI Failure:... Related-to: #2835 Fix OCI_BIN unbound variable error in kubevirt-ipam-controller test The increase_ulimit() function in check-patch.e2e-kubevirt-ipam-controller-functests.sh failed with "OCI_BIN: unbound variable" error when OCI_BIN was not set. This was caused by the interaction of two changes: 1. The increase_ulimit() function used "${OCI_BIN}" without a default value 2. The yq v4 upgrade removed OCI_BIN initialization from yaml-utils.sh The script runs with "set -u" which causes bash to exit when referencing undefined variables. The fix uses "${OCI_BIN:-}" syntax to provide an empty string default when OCI_BIN is unset, preventing the error while still allowing the conditional check to work correctly. Fixes #2835 Signed-off-by: RamLavi Assisted-by: Claude --- .../check-patch.e2e-kubevirt-ipam-controller-functests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/check-patch.e2e-kubevirt-ipam-controller-functests.sh b/automation/check-patch.e2e-kubevirt-ipam-controller-functests.sh index b6b20b8e9..051d8f909 100755 --- a/automation/check-patch.e2e-kubevirt-ipam-controller-functests.sh +++ b/automation/check-patch.e2e-kubevirt-ipam-controller-functests.sh @@ -20,7 +20,7 @@ teardown() { } increase_ulimit() { - if [ -z "${OCI_BIN}" ];then + if [ -z "${OCI_BIN:-}" ];then export OCI_BIN=$(if podman ps >/dev/null 2>&1; then echo podman; elif docker ps >/dev/null 2>&1; then echo docker; else echo "Neither podman nor docker is available." >&2; exit 1; fi) fi