From a6cc5f1fc48838e0a75f464fd680d30e1f111bc7 Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Sat, 17 Jan 2026 14:14:07 -0500 Subject: [PATCH] fix(ci): Skip inception tests for compiled languages Compiled languages (Rust, Go, C, C++, Java, etc.) can't be run directly via the unsandbox API - they require compilation first. Mark these as skipped in the test results instead of failing. --- scripts/test-sdk.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/scripts/test-sdk.sh b/scripts/test-sdk.sh index 9c7dfd4..06fcb10 100755 --- a/scripts/test-sdk.sh +++ b/scripts/test-sdk.sh @@ -35,6 +35,33 @@ echo "=== Inception Test: $LANG ===" echo "SDK: $SDK_FILE" echo "" +# Compiled languages can't be run directly - skip inception test for them +# The unsandbox API can execute scripts, not compiled binaries +is_compiled_language() { + case "$1" in + rust|go|c|cpp|java|kotlin|swift|csharp|fsharp|haskell|ocaml|d|nim|zig|crystal|fortran|cobol) + return 0 ;; + *) + return 1 ;; + esac +} + +if is_compiled_language "$LANG"; then + echo "SKIP: $LANG is a compiled language - inception test not applicable" + echo " (Compiled SDKs require separate build+test workflow)" + cat > "$RESULTS_DIR/test-results.xml" << EOF + + + + + + + + +EOF + exit 0 +fi + # Check if un CLI exists if [ ! -x "build/un" ]; then echo "ERROR: build/un not found. Run build-clients.sh first."