#1143027 python-mcp: Failing tests on riscv64 (test_streamable_http.py)

Package:
src:python-mcp
Source:
src:python-mcp
Submitter:
Petter Reinholdtsen
Date:
2026-07-30 19:33:01 UTC
Severity:
normal
Tags:
#1143027#5
Date:
2026-07-29 20:18:15 UTC
From:
To:
I noticed the autopkgtest check on riscv64 failed for python3-mcp, and
had a look.  I was able to build the package on ricci.debian.org, and
trigger a failure by running pybuild-autopkgtest, but this time it only
failed in one test.  The problem seem to be performace related, and the
following patch got the failed test working.
--- python-mcp-1.28.1.orig/tests/shared/test_streamable_http.py
+++ python-mcp-1.28.1/tests/shared/test_streamable_http.py
@@ -2133,7 +2133,7 @@ async def test_streamable_http_multiple_
                         params=types.CallToolRequestParams(
                             name="tool_with_multiple_stream_closes",
                             # retry_interval=500ms, so sleep 600ms to ensure reconnect completes
-                            arguments={"checkpoints": 3, "sleep_time": 0.6},
+                            arguments={"checkpoints": 3, "sleep_time": 1.2},
                         ),
                     )
                 ),

Without this patch, the testing fail with this error message:

E        +  where 7 = len(['3', '4', '5', '6', '7', '8', ...])

tests/shared/test_streamable_http.py:2149: AssertionError

Perhaps there are other preformance related tests that are failing on
riscv64 too?

#1143027#10
Date:
2026-07-30 19:31:32 UTC
From:
To:
I notice from
<URL: https://ci.debian.net/packages/p/python-mcp/testing/riscv64/73945218/ >
the CI run on risv64 succeeded without any changes.  I guess someone
retried with a quicker machine or something.