Repository navigation
fix(showcase): unblock L3/L4 smoke across 6 integrations (plus spring-ai L3) - #4083
Merged
Merged
Conversation
jpr5
requested review from
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
April 19, 2026 00:20
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.
|
Add openai.OpenAIError (SDK base class) to the generate_a2ui except tuple so config-time failures — e.g. OpenAI() construction with unset or malformed OPENAI_API_KEY — become a structured a2ui_llm_error dict instead of bubbling through the ADK tool machinery as an uncaught exception. APIError and friends are subclasses of OpenAIError; the constructor raises OpenAIError directly, which the narrowed tuple previously missed. Parity fix with the strands sibling (R4). Also: - _A2uiError docstring now acknowledges 3-way sync with strands AND langroid (all three carry the same TypedDict). - search_flights docstring relaxed from 'exactly 2 flights' to '2-3 flights' so google-adk is consistent with ms-agent-dotnet (which returns 3). - Added test exercising openai.OpenAIError from the OpenAI() constructor path; asserts a2ui_llm_error with full error shape.
- Narrow the mid-stream except around agent.llm_response_async from a
broad Exception to (openai.APIError, httpx.HTTPError,
asyncio.TimeoutError, pydantic.ValidationError). Programmer bugs
(AttributeError, NameError, TypeError) now propagate instead of
being sanitized as 'Agent run failed: <ClassName>' — keeps real
bugs visible in server logs and stack traces, where they belong.
Expected runtime errors still get the sanitized TEXT_MESSAGE +
RUN_FINISHED treatment so the UI never hangs mid-stream.
- Update _parse_tool_args call-site comment in handle_run: it used
to say 'returns None' when args could not be parsed; the function
now returns ParsedArgs with status in {ok, empty, malformed}, and
the caller already pattern-matches on .usable.
- Fix stale _try_parse_tool docstring that referenced the old
agent.agent_response() API; the adapter has used
llm_response_async() for a while now.
Tests: add test_llm_response_async_programmer_bug_propagates — mocks
llm_response_async to raise AttributeError('typo') and asserts the
exception propagates out of the SSE generator (not sanitized).
Update the existing mid-stream-failure test to raise
asyncio.TimeoutError (a covered exception) instead of RuntimeError
so it continues to exercise the sanitization path.
…nd dict internals
…c names + rename SingleUseMessages
…consolidate JVM-arg rationale
R5 added BoundedToolCallingManagerConfig, OpenAiApiKeyValidator, and WebClientConfig to showcase/packages/spring-ai/agent/ plus updated application.properties and pom.xml. Starters were out of sync so drift-check failed. Ran generate-starters.ts to sync. Also add bin/ and obj/ .NET build artifacts to ms-agent-dotnet starter .gitignore so generator output stays clean.
…unit tests Python unit-test workflow previously installed only pytest + typing_extensions, assuming stdlib-only tests. Tests now import runtime deps (openai, google.genai, httpx, opentelemetry, etc.) at module load time, causing ModuleNotFoundError at pytest collection before conftest-based stub finders run. Loop each showcase/packages/*/ with a tests/python/ dir, pip install the package's requirements.txt (if present) before pytest. Re-enable pip cache keyed on those requirements files. Matches real-runtime parity. Refs blocker 2 on PR #4083 (fix/showcase-smoke-failures).
jpr5
force-pushed
the
fix/showcase-smoke-failures
branch
from
April 19, 2026 03:44
f9828ac to
d5fab09
Compare
ms-agent-dotnet starter was hand-patched with bin/, obj/, *.user, *.suo but the template wasn't updated — drift-check kept flagging it on regen. Add the entries to the template so all 17 starters pick them up uniformly (harmless for non-.NET starters).
Two CI fixes for the showcase_validate python-unit-tests job on PR #4083: 1. Install pytest-asyncio (and pytest-mock) in the shared "minimal test deps" step. langroid/tests/python/test_agui_adapter.py has 16 tests annotated with @pytest.mark.asyncio; without the plugin, pytest reports "async def functions are not natively supported" and skips them. Locally the user's venv has it; CI did not. 2. Surgically skip the strands package on Python 3.10. ag_ui_strands==0.1.0 declares requires-python >=3.12,<3.14, so pip install fails on 3.10 before pytest runs. Prefer the surgical skip over dropping 3.10 from the matrix so the typing_extensions NotRequired fallback path in aimock_toggle.py keeps getting exercised.
This was referenced Apr 19, 2026
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
Surfaced by running the integration-smoke suite (
pnpm smoke:localfrom 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
3e8c2b6c@ag-ui/mastraforwarded empty-stringresourceIdto Memory. Pass a stable per-demo id.c7f32cdeTextMessageContentEventrejectsdelta="". Skip empty emissions.b71a3704SharedStateAgentforcedForJsonSchema<SalesStateSnapshot>()on every request, killing plain-chat streams viayield break. Gate the two-pass on actual sales state.2de569f1simple_after_model_modifierover-terminated;PROGRESSIVE_SSE_STREAMINGemitted partial events. Reordered system prompt, hardened modifier, disabled progressive SSE.7a8ab4d0strands-agentsunconditionally callsThreadingInstrumentor().instrument(), recursing fatally. Monkey-patch to no-op before import.5c059362response.content; tool calls arrive viaresponse.oai_tool_calls. SynthesizeTOOL_CALL_*events from them.a2b41e71stop_streaming_after_result;_HookInjectingAgentDictpropagates hooks across per-thread agents sinceag_ui_strandsdoesn't.0c62d462OPENAI_BASE_URL(expects no-/v1); HTTP client advertisedUpgrade: h2con cleartext; JDK HttpClient pooling reused half-closed sockets. NewSPRING_AI_OPENAI_BASE_URL+WebClientConfig(HTTP/1.1 pin) +jdk.httpclient.keepalive.timeout=0. L4 tool-rendering still times out —BoundedToolCallingManagerConfigscaffold included; follow-up commit / PR will finalize.Verification
Full local run (all 17 integrations via
LOCAL_PORTS=1 SMOKE_ALL=true):Scope note
Fixes are applied in
showcase/packages/*/only. Some share roots with canonical code inexamples/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
/api/healthreturningagent:"ok"+ tool-rendering works in the UI