You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci, test): Resolve CI failures and hanging SSE transport test
This commit addresses two issues:
1. Fixes GitHub Actions CI workflow failures (exit code 127) by switching dependency installation from `uv` to standard `pip`, ensuring `pytest` is found.
2. Resolves a hanging test (`test_sse_route_connection` in `tests/test_sse_transport.py`) by refactoring it to call the `handle_sse` coroutine directly with a mocked Request object, bypassing the problematic `TestClient.stream()` or `TestClient.get()` interaction.
With these changes, the CI pipeline and the test suite now complete successfully. The CHANGELOG.md has been updated.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
-
## [0.2.3] - 2025-04-19
8
+
## [0.2.3] - 2025-04-20
9
9
10
10
### Added
11
11
- CI workflow using GitHub Actions (`.github/workflows/ci.yml`) to run tests on Python 3.9 and 3.12.
@@ -31,6 +31,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
31
31
- Multiple test failures related to incorrect mocking, error expectations, path handling, test setup, and imports (`StringIO`, `FastMCP`).
32
32
- Invalid escape sequence in `pyproject.toml` coverage exclusion pattern.
33
33
- Several issues in SSE transport (`sse_transport.py`) related to refactoring, including incorrect `SseServerTransport` initialization, missing `/messages` route handling, and incorrect parameters passed to the underlying `mcp.server.Server.run` method, causing connection failures.
34
+
- GitHub Actions CI workflow failure (exit code 127) by switching dependency installation from `uv` to standard `pip` to ensure `pytest` is found.
35
+
- Hanging test (`test_sse_route_connection` in `tests/test_sse_transport.py`) by refactoring to call the handler directly with a mock request instead of using `TestClient`.
0 commit comments