Skip to content

Commit 799fcae

Browse files
authored
test: install HTTP dependencies for the legacy cross-version server (#1320)
# Description The cross-version fixture starts the 0.3.24 FastAPI/JSON-RPC server in an isolated `uv --no-project` environment, but requests only `a2a-sdk[grpc]`. That environment lacks `sse-starlette`, so server startup raises `ImportError` and all four cross-version combinations fail during setup. Request `a2a-sdk[grpc,http-server]==0.3.24` for that server. This changes one test dependency declaration; the client environments and SDK runtime dependencies stay as they are. Validation on main `e11cb3e55dd536bee99fe185723db3c8ff6f8a13`, Python 3.12.11: - Before: four cross-version setup errors; the legacy server reports the missing HTTP-server packages. - After: `./scripts/lint.sh` exits 0; `uv run pytest --timeout=45` reports **2243 passed, 183 skipped, 3 xfailed, 1 xpassed**. All four cross-version combinations pass. - `git diff --check` passes. Skipped coverage includes external PostgreSQL/MySQL services; they were not configured locally. The existing expected-failure markers reference #869. - [x] Followed the contribution guide and conventional-commit title format. - [x] Tests and linter pass. - [x] Documentation changes are not needed for this test-environment dependency. AI-assisted investigation and validation with Codex for Mission. Co-authored-by: gomission <291677423+gomission@users.noreply.github.com>
1 parent 494a8ec commit 799fcae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/integration/cross_version/client_server/test_client_server.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def running_servers():
123123
s03_grpc_port = get_free_port()
124124
s03_deps = [
125125
'--with',
126-
'a2a-sdk[grpc]==0.3.24',
126+
'a2a-sdk[grpc,http-server]==0.3.24',
127127
'--with',
128128
'uvicorn',
129129
'--with',

0 commit comments

Comments
 (0)