Repository navigation
feat(showcase): add local smoke target (aimock + 17 packages in Docker) - #4077
Merged
Merged
Conversation
jpr5
requested review from
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
April 18, 2026 16:06
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
Wires up a single-command path to run the full integration smoke suite against a local Docker stack instead of Railway. Useful when Railway is degraded (OOM, rate limits) or when testing changes that haven't been deployed yet. Additions: - showcase/docker-compose.local.yml: add `aimock` as 18th service so integration containers can reach http://aimock:4010 on the compose network, mirroring the Railway setup where they call showcase-aimock. - showcase/tests/e2e/integration-smoke.spec.ts: `LOCAL_PORTS=1` env rewrites each integration's Railway URL to http://localhost:<port> via showcase/shared/local-ports.json. Starters are skipped under this flag because they aren't in local-ports.json. - showcase/scripts/smoke-local.sh: orchestrates build → up → wait → run Playwright → tear down. Supports --level=L1/L2/L3/L4, --keep, --no-build. - showcase/tests/package.json: `pnpm smoke:local[:L1|:keep|:nobuild]` scripts delegate to the helper. - showcase/.env.example: document optional OPENAI_BASE_URL + ANTHROPIC_BASE_URL (route through local aimock) and package-specific GitHubToken + GOOGLE_API_KEY (ms-agent-dotnet, google-adk). Verified locally: `pnpm smoke:local:L1` → 17/17 L1 green against the local stack.
jpr5
force-pushed
the
feat/showcase-local-smoke
branch
from
April 18, 2026 22:56
6ece8bf to
4462244
Compare
3 tasks
jpr5
added a commit
that referenced
this pull request
Apr 19, 2026
…-ai L3) (#4083) ## Summary Surfaced by running the integration-smoke suite (`pnpm smoke:local` from PR #4077) against all 17 integrations locally. 8 commits fix L3 (round-trip chat) and/or L4 (tool rendering) for 6 packages — plus spring-ai L3 (L4 still WIP in a follow-up). ## Fixes | Package | Commit | L3 | L4 | Root cause | |---|---|---|---|---| | mastra | `3e8c2b6c` | ✅ | ✅ | `@ag-ui/mastra` forwarded empty-string `resourceId` to Memory. Pass a stable per-demo id. | | langroid (empty delta) | `c7f32cde` | ✅ | — | AG-UI `TextMessageContentEvent` rejects `delta=""`. Skip empty emissions. | | ms-agent-dotnet | `b71a3704` | ✅ | ✅ | `SharedStateAgent` forced `ForJsonSchema<SalesStateSnapshot>()` on every request, killing plain-chat streams via `yield break`. Gate the two-pass on actual sales state. | | google-adk | `2de569f1` | ✅ | ✅ | Gemini intermittently returned empty parts; `simple_after_model_modifier` over-terminated; `PROGRESSIVE_SSE_STREAMING` emitted partial events. Reordered system prompt, hardened modifier, disabled progressive SSE. | | strands (OTel) | `7a8ab4d0` | ✅ | — | `strands-agents` unconditionally calls `ThreadingInstrumentor().instrument()`, recursing fatally. Monkey-patch to no-op before import. | | langroid (tool calls) | `5c059362` | ✅ | ✅ | Adapter only inspected `response.content`; tool calls arrive via `response.oai_tool_calls`. Synthesize `TOOL_CALL_*` events from them. | | strands (tool cap) | `a2b41e71` | ✅ | ✅ | No upstream max-iteration cap led to 300+ weather-tool loops. HookProvider caps at 8 + `stop_streaming_after_result`; `_HookInjectingAgentDict` propagates hooks across per-thread agents since `ag_ui_strands` doesn't. | | spring-ai (L3) | `0c62d462` | ✅ | ⏳ | Spring-AI ignored showcase-wide `OPENAI_BASE_URL` (expects no-`/v1`); HTTP client advertised `Upgrade: h2c` on cleartext; JDK HttpClient pooling reused half-closed sockets. New `SPRING_AI_OPENAI_BASE_URL` + `WebClientConfig` (HTTP/1.1 pin) + `jdk.httpclient.keepalive.timeout=0`. L4 tool-rendering still times out — `BoundedToolCallingManagerConfig` scaffold included; follow-up commit / PR will finalize. | ## Verification Full local run (all 17 integrations via `LOCAL_PORTS=1 SMOKE_ALL=true`): - **30 passed** / **1 failed** (spring-ai L4) / **3 flaky** (agno L3, ag2 L3, strands L4 — all pass on retry) out of 34 L3+L4 tests (17.3 min wall clock) - Every fixed package verified stable at 3/3 reruns against the local Docker stack ## Scope note Fixes are applied in `showcase/packages/*/` only. Some share roots with canonical code in `examples/integrations/` or upstream repos (`@ag-ui/mastra`, `ag_ui_strands`, `strands-agents`, MS Agent Framework samples). Separate backport PRs + upstream issues will follow. ## Test plan - [ ] CI green (unit, format, lint, commitlint, Validate Showcase, package-quality) - [ ] Post-merge Railway deploy of ms-agent-dotnet, mastra, langroid, google-adk, strands shows `/api/health` returning `agent:"ok"` + tool-rendering works in the UI - [ ] spring-ai L4 follow-up PR closes out the last gap
zeekay
pushed a commit
to Dream-AI-4444/CopilotKit
that referenced
this pull request
Sep 11, 2026
…r) (CopilotKit#4077) ## Summary Adds a one-command local smoke harness so the full 17-integration suite can be exercised against Docker on the dev machine instead of Railway. Useful when Railway is degraded (aimock OOM, rate limits, cold-start drift) or when validating changes that haven't been deployed yet. ## Usage ```bash # one-time cp showcase/.env.example showcase/.env # fill in keys pnpm --filter @showcase/e2e-smoke install # full L1-L4 smoke pnpm --filter @showcase/e2e-smoke smoke:local # single level / keep containers up between runs pnpm --filter @showcase/e2e-smoke smoke:local:L1 pnpm --filter @showcase/e2e-smoke smoke:local:keep pnpm --filter @showcase/e2e-smoke smoke:local:nobuild ``` ## What's in here - **`docker-compose.local.yml`**: `aimock` added as 18th service → integration containers reach `http://aimock:4010` on the compose network, mirroring Railway's `showcase-aimock`. - **`integration-smoke.spec.ts`**: `LOCAL_PORTS=1` env gates URL rewriting from `https://showcase-<slug>-production.up.railway.app` → `http://localhost:<port>` via `shared/local-ports.json`. Starters are skipped under the flag because they're not in `local-ports.json`. - **`scripts/smoke-local.sh`**: thin orchestrator — `build → up → wait 20s → playwright → down`. Flags: `--level=L1|L2|L3|L4`, `--keep`, `--no-build`. - **`tests/package.json`**: `pnpm smoke:local[:L1|:keep|:nobuild]` wrappers. - **`.env.example`**: documents optional `OPENAI_BASE_URL`/`ANTHROPIC_BASE_URL` + `GitHubToken` (ms-agent-dotnet) and `GOOGLE_API_KEY` (google-adk). ## Verification Run locally against a fresh checkout of this branch: - `LOCAL_PORTS=1 SMOKE_ALL=true npx playwright test integration-smoke --grep @health` → **17/17 pass in 478ms** - Full L1-L4 against the local stack → **42/51 pass** (9 failures in L3/L4 for mastra, google-adk, ms-agent-dotnet, strands, langroid, spring-ai — these are test-data / fixture gaps unrelated to this infrastructure and will be filed separately) - `docker compose -f showcase/docker-compose.local.yml config` validates with 18 services ## Scope Pure dev-ergonomics addition. No runtime behaviour changes in the shipped containers. `LOCAL_PORTS` is opt-in; unset = existing Railway-URL behaviour preserved. ## Test plan - [ ] `Validate Showcase` CI still green (no package-source changes) - [ ] No unrelated CI regressions - [ ] Follow-up PR will investigate and fix the 9 L3/L4 failures surfaced by local smoke
zeekay
pushed a commit
to Dream-AI-4444/CopilotKit
that referenced
this pull request
Sep 11, 2026
…-ai L3) (CopilotKit#4083) ## Summary Surfaced by running the integration-smoke suite (`pnpm smoke:local` from PR CopilotKit#4077) against all 17 integrations locally. 8 commits fix L3 (round-trip chat) and/or L4 (tool rendering) for 6 packages — plus spring-ai L3 (L4 still WIP in a follow-up). ## Fixes | Package | Commit | L3 | L4 | Root cause | |---|---|---|---|---| | mastra | `3e8c2b6c` | ✅ | ✅ | `@ag-ui/mastra` forwarded empty-string `resourceId` to Memory. Pass a stable per-demo id. | | langroid (empty delta) | `c7f32cde` | ✅ | — | AG-UI `TextMessageContentEvent` rejects `delta=""`. Skip empty emissions. | | ms-agent-dotnet | `b71a3704` | ✅ | ✅ | `SharedStateAgent` forced `ForJsonSchema<SalesStateSnapshot>()` on every request, killing plain-chat streams via `yield break`. Gate the two-pass on actual sales state. | | google-adk | `2de569f1` | ✅ | ✅ | Gemini intermittently returned empty parts; `simple_after_model_modifier` over-terminated; `PROGRESSIVE_SSE_STREAMING` emitted partial events. Reordered system prompt, hardened modifier, disabled progressive SSE. | | strands (OTel) | `7a8ab4d0` | ✅ | — | `strands-agents` unconditionally calls `ThreadingInstrumentor().instrument()`, recursing fatally. Monkey-patch to no-op before import. | | langroid (tool calls) | `5c059362` | ✅ | ✅ | Adapter only inspected `response.content`; tool calls arrive via `response.oai_tool_calls`. Synthesize `TOOL_CALL_*` events from them. | | strands (tool cap) | `a2b41e71` | ✅ | ✅ | No upstream max-iteration cap led to 300+ weather-tool loops. HookProvider caps at 8 + `stop_streaming_after_result`; `_HookInjectingAgentDict` propagates hooks across per-thread agents since `ag_ui_strands` doesn't. | | spring-ai (L3) | `0c62d462` | ✅ | ⏳ | Spring-AI ignored showcase-wide `OPENAI_BASE_URL` (expects no-`/v1`); HTTP client advertised `Upgrade: h2c` on cleartext; JDK HttpClient pooling reused half-closed sockets. New `SPRING_AI_OPENAI_BASE_URL` + `WebClientConfig` (HTTP/1.1 pin) + `jdk.httpclient.keepalive.timeout=0`. L4 tool-rendering still times out — `BoundedToolCallingManagerConfig` scaffold included; follow-up commit / PR will finalize. | ## Verification Full local run (all 17 integrations via `LOCAL_PORTS=1 SMOKE_ALL=true`): - **30 passed** / **1 failed** (spring-ai L4) / **3 flaky** (agno L3, ag2 L3, strands L4 — all pass on retry) out of 34 L3+L4 tests (17.3 min wall clock) - Every fixed package verified stable at 3/3 reruns against the local Docker stack ## Scope note Fixes are applied in `showcase/packages/*/` only. Some share roots with canonical code in `examples/integrations/` or upstream repos (`@ag-ui/mastra`, `ag_ui_strands`, `strands-agents`, MS Agent Framework samples). Separate backport PRs + upstream issues will follow. ## Test plan - [ ] CI green (unit, format, lint, commitlint, Validate Showcase, package-quality) - [ ] Post-merge Railway deploy of ms-agent-dotnet, mastra, langroid, google-adk, strands shows `/api/health` returning `agent:"ok"` + tool-rendering works in the UI - [ ] spring-ai L4 follow-up PR closes out the last gap
This branch was successfully deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds a one-command local smoke harness so the full 17-integration suite can be exercised against Docker on the dev machine instead of Railway. Useful when Railway is degraded (aimock OOM, rate limits, cold-start drift) or when validating changes that haven't been deployed yet.
Usage
What's in here
docker-compose.local.yml:aimockadded as 18th service → integration containers reachhttp://aimock:4010on the compose network, mirroring Railway'sshowcase-aimock.integration-smoke.spec.ts:LOCAL_PORTS=1env gates URL rewriting fromhttps://showcase-<slug>-production.up.railway.app→http://localhost:<port>viashared/local-ports.json. Starters are skipped under the flag because they're not inlocal-ports.json.scripts/smoke-local.sh: thin orchestrator —build → up → wait 20s → playwright → down. Flags:--level=L1|L2|L3|L4,--keep,--no-build.tests/package.json:pnpm smoke:local[:L1|:keep|:nobuild]wrappers..env.example: documents optionalOPENAI_BASE_URL/ANTHROPIC_BASE_URL+GitHubToken(ms-agent-dotnet) andGOOGLE_API_KEY(google-adk).Verification
Run locally against a fresh checkout of this branch:
LOCAL_PORTS=1 SMOKE_ALL=true npx playwright test integration-smoke --grep @health→ 17/17 pass in 478msdocker compose -f showcase/docker-compose.local.yml configvalidates with 18 servicesScope
Pure dev-ergonomics addition. No runtime behaviour changes in the shipped containers.
LOCAL_PORTSis opt-in; unset = existing Railway-URL behaviour preserved.Test plan
Validate ShowcaseCI still green (no package-source changes)