Skip to content

feat(showcase): add local smoke target (aimock + 17 packages in Docker) - #4077

Merged
jpr5 merged 1 commit into
mainfrom
feat/showcase-local-smoke
Apr 19, 2026
Merged

jpr5 merged 1 commit into
mainfrom
feat/showcase-local-smoke

Conversation

@jpr5

@jpr5 jpr5 commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

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

# 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

@vercel

vercel Bot commented Apr 18, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat-with-your-data Ready Ready Preview, Comment Apr 18, 2026 11:00pm
docs Ready Ready Preview, Comment Apr 18, 2026 11:00pm
form-filling Ready Ready Preview, Comment Apr 18, 2026 11:00pm
research-canvas Ready Ready Preview, Comment Apr 18, 2026 11:00pm
travel Ready Ready Preview, Comment Apr 18, 2026 11:00pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

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
jpr5 force-pushed the feat/showcase-local-smoke branch from 6ece8bf to 4462244 Compare April 18, 2026 22:56
@jpr5
jpr5 merged commit f6b8d0f into main Apr 19, 2026
14 of 15 checks passed
@jpr5
jpr5 deleted the feat/showcase-local-smoke branch April 19, 2026 03:41
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

5 active deployments
Preview – research-canvas — 44622440 Deployed Apr 18, 2026 by vercel[bot]
Preview – travel — 44622440 Deployed Apr 18, 2026 by vercel[bot]
Preview – docs — 44622440 Deployed Apr 18, 2026 by vercel[bot]
Preview – form-filling — 44622440 Deployed Apr 18, 2026 by vercel[bot]
Preview – chat-with-your-data — 44622440 Deployed Apr 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant