From fd680cbe0904291a92e7c8641c1be5364ef8581f Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Sat, 17 Jan 2026 17:20:38 -0500 Subject: [PATCH] fix(ci): Accept syntax/import errors in sdk_runs as 'attempted' SDK files with shebangs or imports will cause syntax errors when sent directly as code, but this shows the runtime tried to run it. --- scripts/test-sdk.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/test-sdk.sh b/scripts/test-sdk.sh index 38c27c3..d87c879 100755 --- a/scripts/test-sdk.sh +++ b/scripts/test-sdk.sh @@ -399,11 +399,11 @@ run_test "sdk_exists" \ "[0-9]+" # Test 8.2: Run SDK file directly (auto-detect language from extension) -# Note: Complex SDK files may fail to compile standalone - that's ok -# We accept any output (including compilation errors) as "it tried" +# Note: Complex SDK files may fail (shebangs, deps, compile errors) - that's ok +# We accept any output showing the runtime attempted execution run_test "sdk_runs" \ "build/un -n semitrusted -e UNSANDBOX_PUBLIC_KEY=\$UNSANDBOX_PUBLIC_KEY -e UNSANDBOX_SECRET_KEY=\$UNSANDBOX_SECRET_KEY '$SDK_FILE' 2>&1 || echo 'attempted'" \ - "usage|help|unsandbox|un |version|error|Error|compile|undefined|attempted" + "usage|help|unsandbox|un |version|error|Error|compile|undefined|attempted|unexpected|syntax|import|require|module" echo ""