De-flake conformance CI: solo re-verification, spawn-storm reduction, result artifacts (#3043)

This commit is contained in:
Max 2026-07-01 16:59:06 +01:00 • committed by GitHub
commit d39c68df23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,10 +192,12 @@ async def test_tool_with_progress(ctx: Context) -> str:
async def test_sampling(prompt: str, ctx: Context) -> str:
"""Tests server-initiated sampling (LLM completion request)"""
try:
# Request sampling from client
# Request sampling from client. Without related_request_id the request goes
# to the standalone GET stream and is silently dropped if it is not open yet.
result = await ctx.session.create_message( # pyright: ignore[reportDeprecated]
messages=[SamplingMessage(role="user", content=TextContent(type="text", text=prompt))],
max_tokens=100,
related_request_id=ctx.request_id,
)
# Since we're not passing tools param, result.content is single content