From 9c51f4dbe2232ddb2bee73cf9fd80c4667284d15 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 20 Mar 2026 12:02:40 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20agent-smoke=20get=5Ffns=20=E2=80=94=20us?= =?UTF-8?q?e=20literal=20[=20\t]=20for=20busybox=20awk=20compat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Busybox awk in Alpine CI has incomplete POSIX character class support; [[:space:]] intermittently fails to match, causing function definitions to be missed from LIB_FUNS. Replace with literal [ \t] patterns. Co-Authored-By: Claude Opus 4.6 (1M context) --- .woodpecker/agent-smoke.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.woodpecker/agent-smoke.sh b/.woodpecker/agent-smoke.sh index 04bc050..591653e 100644 --- a/.woodpecker/agent-smoke.sh +++ b/.woodpecker/agent-smoke.sh @@ -21,9 +21,9 @@ FAILED=0 # Uses awk instead of grep -Eo for busybox/Alpine compatibility (#296). get_fns() { local f="$1" - awk '/^[[:space:]]*[a-zA-Z_][a-zA-Z0-9_]+[[:space:]]*\(\)/ { - sub(/^[[:space:]]+/, "") - sub(/[[:space:]]*\(\).*/, "") + awk '/^[ \t]*[a-zA-Z_][a-zA-Z0-9_]+[ \t]*\(\)/ { + sub(/^[ \t]+/, "") + sub(/[ \t]*\(\).*/, "") print }' "$f" 2>/dev/null | sort -u || true }