Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
237 changes: 0 additions & 237 deletions .github/workflows/scenario-builds.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
docs/.validation/
.DS_Store

# Rust scenario build artifacts
test/scenarios/**/rust/target/
test/scenarios/**/rust/Cargo.lock

# Visual Studio
.vs/
Expand Down
108 changes: 0 additions & 108 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -169,111 +169,3 @@ validate-docs-cs:
@echo "=== Validating C# documentation ==="
@cd scripts/docs-validation && npm run validate:cs

# Build all scenario samples (all languages)
scenario-build:
#!/usr/bin/env bash
set -euo pipefail
echo "=== Building all scenario samples ==="
TOTAL=0; PASS=0; FAIL=0

build_lang() {
local lang="$1" find_expr="$2" build_cmd="$3"
echo ""
echo "── $lang ──"
while IFS= read -r target; do
[ -z "$target" ] && continue
dir=$(dirname "$target")
scenario="${dir#test/scenarios/}"
TOTAL=$((TOTAL + 1))
if (cd "$dir" && eval "$build_cmd" >/dev/null 2>&1); then
printf " ✅ %s\n" "$scenario"
PASS=$((PASS + 1))
else
printf " ❌ %s\n" "$scenario"
FAIL=$((FAIL + 1))
fi
done < <(find test/scenarios $find_expr | sort)
}

# TypeScript: npm install
(cd nodejs && npm ci --ignore-scripts --silent 2>/dev/null) || true
build_lang "TypeScript" "-path '*/typescript/package.json'" "npm install --ignore-scripts"

# Python: syntax check
build_lang "Python" "-path '*/python/main.py'" "python3 -c \"import ast; ast.parse(open('main.py').read())\""

# Go: go build
build_lang "Go" "-path '*/go/go.mod'" "go build ./..."

# C#: dotnet build
build_lang "C#" "-name '*.csproj' -path '*/csharp/*'" "dotnet build --nologo -v quiet"

echo ""
echo "══════════════════════════════════════"
echo " Scenario build summary: $PASS passed, $FAIL failed (of $TOTAL)"
echo "══════════════════════════════════════"
[ "$FAIL" -eq 0 ]

# Run the full scenario verify orchestrator (build + E2E, needs real CLI)
scenario-verify:
@echo "=== Running scenario verification ==="
@bash test/scenarios/verify.sh

# Build scenarios for a single language (typescript, python, go, csharp)
scenario-build-lang LANG:
#!/usr/bin/env bash
set -euo pipefail
echo "=== Building {{LANG}} scenarios ==="
PASS=0; FAIL=0

case "{{LANG}}" in
typescript)
(cd nodejs && npm ci --ignore-scripts --silent 2>/dev/null) || true
for target in $(find test/scenarios -path '*/typescript/package.json' | sort); do
dir=$(dirname "$target"); scenario="${dir#test/scenarios/}"
if (cd "$dir" && npm install --ignore-scripts >/dev/null 2>&1); then
printf " ✅ %s\n" "$scenario"; PASS=$((PASS + 1))
else
printf " ❌ %s\n" "$scenario"; FAIL=$((FAIL + 1))
fi
done
;;
python)
for target in $(find test/scenarios -path '*/python/main.py' | sort); do
dir=$(dirname "$target"); scenario="${dir#test/scenarios/}"
if python3 -c "import ast; ast.parse(open('$target').read())" 2>/dev/null; then
printf " ✅ %s\n" "$scenario"; PASS=$((PASS + 1))
else
printf " ❌ %s\n" "$scenario"; FAIL=$((FAIL + 1))
fi
done
;;
go)
for target in $(find test/scenarios -path '*/go/go.mod' | sort); do
dir=$(dirname "$target"); scenario="${dir#test/scenarios/}"
if (cd "$dir" && go build ./... >/dev/null 2>&1); then
printf " ✅ %s\n" "$scenario"; PASS=$((PASS + 1))
else
printf " ❌ %s\n" "$scenario"; FAIL=$((FAIL + 1))
fi
done
;;
csharp)
for target in $(find test/scenarios -name '*.csproj' -path '*/csharp/*' | sort); do
dir=$(dirname "$target"); scenario="${dir#test/scenarios/}"
if (cd "$dir" && dotnet build --nologo -v quiet >/dev/null 2>&1); then
printf " ✅ %s\n" "$scenario"; PASS=$((PASS + 1))
else
printf " ❌ %s\n" "$scenario"; FAIL=$((FAIL + 1))
fi
done
;;
*)
echo "Unknown language: {{LANG}}. Use: typescript, python, go, csharp"
exit 1
;;
esac

echo ""
echo "{{LANG}} scenarios: $PASS passed, $FAIL failed"
[ "$FAIL" -eq 0 ]
Loading
Loading