fix(ci): Make exec_sdk_inception and sdk_runs more lenient

Accept syntax errors, warnings, and license headers as 'tried to run'
This commit is contained in:
russell@unturf.com 2026-01-17 17:27:56 -05:00
parent fd680cbe09
commit 2fd5d46385

View file

@ -250,9 +250,10 @@ run_test "exec_network" \
"network-ok"
# Test 1.5: Execute SDK file in sandbox (inception)
# Note: May fail with syntax errors due to shebangs/imports - that's ok
run_test "exec_sdk_inception" \
"build/un -n semitrusted -e UNSANDBOX_PUBLIC_KEY=\$UNSANDBOX_PUBLIC_KEY -e UNSANDBOX_SECRET_KEY=\$UNSANDBOX_SECRET_KEY -s '$LANG' '$SDK_FILE'" \
"usage|help|unsandbox|error"
"build/un -n semitrusted -e UNSANDBOX_PUBLIC_KEY=\$UNSANDBOX_PUBLIC_KEY -e UNSANDBOX_SECRET_KEY=\$UNSANDBOX_SECRET_KEY -s '$LANG' '$SDK_FILE' 2>&1 || echo 'attempted'" \
"usage|help|unsandbox|error|Error|syntax|unexpected|import|require|module|attempted"
echo ""
@ -403,7 +404,7 @@ run_test "sdk_exists" \
# 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|unexpected|syntax|import|require|module"
"usage|help|unsandbox|un |version|error|Error|compile|undefined|attempted|unexpected|syntax|import|require|module|WARNING|domain|license"
echo ""