Skip to content

fix(samples): Declare uvicorn and http-server extras for a2a-sdk#1660

Merged
gspencergoog merged 1 commit into
a2ui-project:mainfrom
gspencergoog:fix-e2e-packages
Jun 15, 2026
Merged

fix(samples): Declare uvicorn and http-server extras for a2a-sdk#1660
gspencergoog merged 1 commit into
a2ui-project:mainfrom
gspencergoog:fix-e2e-packages

Conversation

@gspencergoog

@gspencergoog gspencergoog commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

PR #1582 broke the e2e tests (see https://github.com/a2ui-project/a2ui/actions/runs/27483533356/job/81235359620 ).

This PR resolves the issue where E2E tests fail to start because Python HTTP server dependencies (starlette, sse-starlette, and uvicorn) are missing from the environment after Python 3.14 package resolution.

Changes

  • Updated all sample agent pyproject.toml files that deploy HTTP servers (restaurant_finder, custom-components-example, orchestrator, gemini_enterprise/cloud_run, rizzcharts, and mcp_app_proxy) to explicitly require a2a-sdk[http-server] instead of a2a-sdk.
  • Declared uvicorn as a direct dependency in sample agents that use it directly (restaurant_finder, orchestrator, rizzcharts).
  • Regenerated lockfiles (uv.lock) across the workspace.

Impact & Risks

There are no breaking changes or risk of regressions. This change only makes the package dependencies hermetic and robust under Python 3.14.

Testing

The fix has been verified locally by running ./scripts/e2e_test.sh, which previously failed due to package resolution issues, and now completes successfully with all tests passing.

Fixes #1648

…ample agents

Add direct dependency on uvicorn and use `a2a-sdk[http-server]` to ensure starlette and sse-starlette are installed in the sample agents' environments.
Previously, when uv re-resolved dependencies for Python 3.14, it skipped installing starlette and sse-starlette since they weren't explicitly declared, causing server startup to fail during E2E tests.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates several sample agent configurations (pyproject.toml) to use the [http-server] extra for the a2a-sdk dependency, and adds uvicorn as a dependency where needed. The uv.lock file is updated accordingly, and a minor formatting adjustment is made to a React package.json. There are no review comments on this pull request, and I have no feedback to provide.

@gspencergoog gspencergoog merged commit f342657 into a2ui-project:main Jun 15, 2026
22 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in A2UI Jun 15, 2026
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.

E2E tests failed on main (PR #1582)

2 participants