Skip to content

Commit 91d9410

Browse files
patnikoCopilot
andauthored
Demote scenario-builds CI to manual-only (workflow_dispatch) (#1448)
The scenario compile checks are redundant with the per-language SDK test workflows (dotnet-sdk-tests, go-sdk-tests, java-sdk-tests, etc.) which already build and test the SDK on every PR. The scenarios remain in the repo as documentation/examples and can still be verified on-demand. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 08a5a20 commit 91d9410

417 files changed

Lines changed: 0 additions & 17794 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/scenario-builds.yml

Lines changed: 0 additions & 237 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
docs/.validation/
44
.DS_Store
55

6-
# Rust scenario build artifacts
7-
test/scenarios/**/rust/target/
8-
test/scenarios/**/rust/Cargo.lock
96

107
# Visual Studio
118
.vs/

justfile

Lines changed: 0 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -169,111 +169,3 @@ validate-docs-cs:
169169
@echo "=== Validating C# documentation ==="
170170
@cd scripts/docs-validation && npm run validate:cs
171171

172-
# Build all scenario samples (all languages)
173-
scenario-build:
174-
#!/usr/bin/env bash
175-
set -euo pipefail
176-
echo "=== Building all scenario samples ==="
177-
TOTAL=0; PASS=0; FAIL=0
178-
179-
build_lang() {
180-
local lang="$1" find_expr="$2" build_cmd="$3"
181-
echo ""
182-
echo "── $lang ──"
183-
while IFS= read -r target; do
184-
[ -z "$target" ] && continue
185-
dir=$(dirname "$target")
186-
scenario="${dir#test/scenarios/}"
187-
TOTAL=$((TOTAL + 1))
188-
if (cd "$dir" && eval "$build_cmd" >/dev/null 2>&1); then
189-
printf " ✅ %s\n" "$scenario"
190-
PASS=$((PASS + 1))
191-
else
192-
printf " ❌ %s\n" "$scenario"
193-
FAIL=$((FAIL + 1))
194-
fi
195-
done < <(find test/scenarios $find_expr | sort)
196-
}
197-
198-
# TypeScript: npm install
199-
(cd nodejs && npm ci --ignore-scripts --silent 2>/dev/null) || true
200-
build_lang "TypeScript" "-path '*/typescript/package.json'" "npm install --ignore-scripts"
201-
202-
# Python: syntax check
203-
build_lang "Python" "-path '*/python/main.py'" "python3 -c \"import ast; ast.parse(open('main.py').read())\""
204-
205-
# Go: go build
206-
build_lang "Go" "-path '*/go/go.mod'" "go build ./..."
207-
208-
# C#: dotnet build
209-
build_lang "C#" "-name '*.csproj' -path '*/csharp/*'" "dotnet build --nologo -v quiet"
210-
211-
echo ""
212-
echo "══════════════════════════════════════"
213-
echo " Scenario build summary: $PASS passed, $FAIL failed (of $TOTAL)"
214-
echo "══════════════════════════════════════"
215-
[ "$FAIL" -eq 0 ]
216-
217-
# Run the full scenario verify orchestrator (build + E2E, needs real CLI)
218-
scenario-verify:
219-
@echo "=== Running scenario verification ==="
220-
@bash test/scenarios/verify.sh
221-
222-
# Build scenarios for a single language (typescript, python, go, csharp)
223-
scenario-build-lang LANG:
224-
#!/usr/bin/env bash
225-
set -euo pipefail
226-
echo "=== Building {{LANG}} scenarios ==="
227-
PASS=0; FAIL=0
228-
229-
case "{{LANG}}" in
230-
typescript)
231-
(cd nodejs && npm ci --ignore-scripts --silent 2>/dev/null) || true
232-
for target in $(find test/scenarios -path '*/typescript/package.json' | sort); do
233-
dir=$(dirname "$target"); scenario="${dir#test/scenarios/}"
234-
if (cd "$dir" && npm install --ignore-scripts >/dev/null 2>&1); then
235-
printf " ✅ %s\n" "$scenario"; PASS=$((PASS + 1))
236-
else
237-
printf " ❌ %s\n" "$scenario"; FAIL=$((FAIL + 1))
238-
fi
239-
done
240-
;;
241-
python)
242-
for target in $(find test/scenarios -path '*/python/main.py' | sort); do
243-
dir=$(dirname "$target"); scenario="${dir#test/scenarios/}"
244-
if python3 -c "import ast; ast.parse(open('$target').read())" 2>/dev/null; then
245-
printf " ✅ %s\n" "$scenario"; PASS=$((PASS + 1))
246-
else
247-
printf " ❌ %s\n" "$scenario"; FAIL=$((FAIL + 1))
248-
fi
249-
done
250-
;;
251-
go)
252-
for target in $(find test/scenarios -path '*/go/go.mod' | sort); do
253-
dir=$(dirname "$target"); scenario="${dir#test/scenarios/}"
254-
if (cd "$dir" && go build ./... >/dev/null 2>&1); then
255-
printf " ✅ %s\n" "$scenario"; PASS=$((PASS + 1))
256-
else
257-
printf " ❌ %s\n" "$scenario"; FAIL=$((FAIL + 1))
258-
fi
259-
done
260-
;;
261-
csharp)
262-
for target in $(find test/scenarios -name '*.csproj' -path '*/csharp/*' | sort); do
263-
dir=$(dirname "$target"); scenario="${dir#test/scenarios/}"
264-
if (cd "$dir" && dotnet build --nologo -v quiet >/dev/null 2>&1); then
265-
printf " ✅ %s\n" "$scenario"; PASS=$((PASS + 1))
266-
else
267-
printf " ❌ %s\n" "$scenario"; FAIL=$((FAIL + 1))
268-
fi
269-
done
270-
;;
271-
*)
272-
echo "Unknown language: {{LANG}}. Use: typescript, python, go, csharp"
273-
exit 1
274-
;;
275-
esac
276-
277-
echo ""
278-
echo "{{LANG}} scenarios: $PASS passed, $FAIL failed"
279-
[ "$FAIL" -eq 0 ]

0 commit comments

Comments
 (0)