-
Notifications
You must be signed in to change notification settings - Fork 922
Add E2E scenario tests/examples for all SDK languages #512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+15,056
−6
Merged
Changes from 7 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
6a01e9f
Commit base e2e across SDKs
patniko 5f008ad
Add C# samples to 8 representative scenarios
patniko f006da3
Fix go.mod replace paths for test scenarios
patniko 674719c
Replace copilot-core with Copilot CLI across all test scenarios
patniko 1db7315
Add scenario build verification workflow for PR checks
patniko e3856b1
Add full language parity: all 34 scenarios × 4 languages
patniko 3275b12
Add CI caching and justfile targets for scenario builds
patniko db37c0f
Quality fixes: C# in all verify.sh, fix stubs, consistent patterns
patniko 6cee34a
Strengthen Python CI: py_compile + import check instead of AST-only
patniko e61e9a6
Update scenario model references to claude-sonnet-4.6
patniko a00d0d7
fix: remove soft-pass fallbacks in verify.sh scenario scripts
patniko 49f199a
Strengthen tools scenario verifications
patniko 997a73b
Support latest .NET
patniko 0f6ecd3
Move to haiku
patniko e88df1b
Fix scenario tests: paths, verifications, streaming, and parallel exe…
patniko 08adc4e
Merge remote-tracking branch 'origin/main' into add-test-scenarios
patniko 39f0ec4
Restore go.sum files needed for CI builds
patniko d3cd6a3
Revert ToolName addition to Go PermissionRequest — use Extra map instead
patniko ccda964
fix: use o4-mini for reasoning-effort scenario tests
patniko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,183 @@ | ||
| name: "Scenario Build Verification" | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - "test/scenarios/**" | ||
| - "nodejs/src/**" | ||
| - "python/copilot/**" | ||
| - "go/**/*.go" | ||
| - "dotnet/src/**" | ||
| - ".github/workflows/scenario-builds.yml" | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - "test/scenarios/**" | ||
| - ".github/workflows/scenario-builds.yml" | ||
| workflow_dispatch: | ||
| merge_group: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| # ── TypeScript ────────────────────────────────────────────────────── | ||
| build-typescript: | ||
| name: "TypeScript scenarios" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.npm | ||
| key: ${{ runner.os }}-npm-scenarios-${{ hashFiles('test/scenarios/**/package.json') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-npm-scenarios- | ||
|
|
||
| # Build the SDK so local file: references resolve | ||
| - name: Build SDK | ||
| working-directory: nodejs | ||
| run: npm ci --ignore-scripts | ||
|
|
||
| - name: Build all TypeScript scenarios | ||
| run: | | ||
| PASS=0; FAIL=0; FAILURES="" | ||
| for dir in $(find test/scenarios -path '*/typescript/package.json' -exec dirname {} \; | sort); do | ||
| scenario="${dir#test/scenarios/}" | ||
| echo "::group::$scenario" | ||
| if (cd "$dir" && npm install --ignore-scripts 2>&1); then | ||
| echo "✅ $scenario" | ||
| PASS=$((PASS + 1)) | ||
| else | ||
| echo "❌ $scenario" | ||
| FAIL=$((FAIL + 1)) | ||
| FAILURES="$FAILURES\n $scenario" | ||
| fi | ||
| echo "::endgroup::" | ||
| done | ||
| echo "" | ||
| echo "TypeScript builds: $PASS passed, $FAIL failed" | ||
| if [ "$FAIL" -gt 0 ]; then | ||
| echo -e "Failures:$FAILURES" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # ── Python ────────────────────────────────────────────────────────── | ||
| build-python: | ||
| name: "Python scenarios" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.12" | ||
|
|
||
| - name: Syntax-check all Python scenarios | ||
| run: | | ||
| PASS=0; FAIL=0; FAILURES="" | ||
| for main in $(find test/scenarios -path '*/python/main.py' | sort); do | ||
| dir=$(dirname "$main") | ||
| scenario="${dir#test/scenarios/}" | ||
| echo "::group::$scenario" | ||
| if python3 -c "import ast, sys; ast.parse(open('$main').read()); print('syntax ok')" 2>&1; then | ||
| echo "✅ $scenario" | ||
| PASS=$((PASS + 1)) | ||
| else | ||
| echo "❌ $scenario" | ||
| FAIL=$((FAIL + 1)) | ||
| FAILURES="$FAILURES\n $scenario" | ||
| fi | ||
| echo "::endgroup::" | ||
| done | ||
| echo "" | ||
| echo "Python builds: $PASS passed, $FAIL failed" | ||
| if [ "$FAIL" -gt 0 ]; then | ||
| echo -e "Failures:$FAILURES" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # ── Go ────────────────────────────────────────────────────────────── | ||
| build-go: | ||
| name: "Go scenarios" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - uses: actions/setup-go@v6 | ||
| with: | ||
| go-version: "1.24" | ||
| cache: true | ||
| cache-dependency-path: test/scenarios/**/go.sum | ||
|
|
||
| - name: Build all Go scenarios | ||
| run: | | ||
| PASS=0; FAIL=0; FAILURES="" | ||
| for mod in $(find test/scenarios -path '*/go/go.mod' | sort); do | ||
| dir=$(dirname "$mod") | ||
| scenario="${dir#test/scenarios/}" | ||
| echo "::group::$scenario" | ||
| if (cd "$dir" && go build ./... 2>&1); then | ||
| echo "✅ $scenario" | ||
| PASS=$((PASS + 1)) | ||
| else | ||
| echo "❌ $scenario" | ||
| FAIL=$((FAIL + 1)) | ||
| FAILURES="$FAILURES\n $scenario" | ||
| fi | ||
| echo "::endgroup::" | ||
| done | ||
| echo "" | ||
| echo "Go builds: $PASS passed, $FAIL failed" | ||
| if [ "$FAIL" -gt 0 ]; then | ||
| echo -e "Failures:$FAILURES" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # ── C# ───────────────────────────────────────────────────────────── | ||
| build-csharp: | ||
| name: "C# scenarios" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: "8.0.x" | ||
|
|
||
| - uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.nuget/packages | ||
| key: ${{ runner.os }}-nuget-scenarios-${{ hashFiles('test/scenarios/**/*.csproj') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-nuget-scenarios- | ||
|
|
||
| - name: Build all C# scenarios | ||
| run: | | ||
| PASS=0; FAIL=0; FAILURES="" | ||
| for proj in $(find test/scenarios -name '*.csproj' | sort); do | ||
| dir=$(dirname "$proj") | ||
| scenario="${dir#test/scenarios/}" | ||
| echo "::group::$scenario" | ||
| if (cd "$dir" && dotnet build --nologo 2>&1); then | ||
| echo "✅ $scenario" | ||
| PASS=$((PASS + 1)) | ||
| else | ||
| echo "❌ $scenario" | ||
| FAIL=$((FAIL + 1)) | ||
| FAILURES="$FAILURES\n $scenario" | ||
| fi | ||
| echo "::endgroup::" | ||
| done | ||
| echo "" | ||
| echo "C# builds: $PASS passed, $FAIL failed" | ||
| if [ "$FAIL" -gt 0 ]; then | ||
| echo -e "Failures:$FAILURES" | ||
| exit 1 | ||
| fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
|
|
||
| # Documentation validation output | ||
| docs/.validation/ | ||
| .DS_Store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| # Dependencies | ||
| node_modules/ | ||
| .venv/ | ||
| vendor/ | ||
|
|
||
| # E2E run artifacts (agents may create files during verify.sh runs) | ||
| **/sessions/**/plan.md | ||
| **/tools/**/plan.md | ||
| **/callbacks/**/plan.md | ||
| **/prompts/**/plan.md | ||
|
|
||
| # Build output | ||
| dist/ | ||
| target/ | ||
| build/ | ||
| *.exe | ||
| *.dll | ||
| *.so | ||
| *.dylib | ||
|
|
||
| # Go | ||
| *.test | ||
| fully-bundled-go | ||
| app-direct-server-go | ||
| container-proxy-go | ||
| container-relay-go | ||
| app-backend-to-server-go | ||
| custom-agents-go | ||
| mcp-servers-go | ||
| no-tools-go | ||
| virtual-filesystem-go | ||
| system-message-go | ||
| skills-go | ||
| streaming-go | ||
| attachments-go | ||
| tool-filtering-go | ||
| permissions-go | ||
| hooks-go | ||
| user-input-go | ||
| concurrent-sessions-go | ||
| session-resume-go | ||
| stdio-go | ||
| tcp-go | ||
| gh-app-go | ||
| cli-preset-go | ||
| filesystem-preset-go | ||
| minimal-preset-go | ||
|
|
||
| # Python | ||
| __pycache__/ | ||
| *.pyc | ||
| *.pyo | ||
| *.egg-info/ | ||
| *.egg | ||
| .eggs/ | ||
|
|
||
| # TypeScript | ||
| *.tsbuildinfo | ||
| package-lock.json | ||
|
|
||
| # C# / .NET | ||
| bin/ | ||
| obj/ | ||
| *.csproj.nuget.* | ||
|
|
||
| # IDE / OS | ||
| .DS_Store | ||
| .idea/ | ||
| .vscode/ | ||
| *.swp | ||
| *.swo | ||
| *~ | ||
|
|
||
| # Multi-user scenario temp directories | ||
| **/sessions/multi-user-long-lived/tmp/ | ||
|
|
||
| # Logs | ||
| *.log | ||
| npm-debug.log* | ||
| infinite-sessions-go | ||
| reasoning-effort-go | ||
| reconnect-go | ||
| byok-openai-go | ||
| token-sources-go |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems a bit odd - is it really doing a build? Looks like it just does
npm install