Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Stop three Backend CI tests measuring the runner instead of the code (#10035)

Daniel Han4b0cec3a2e74
diff --git a/studio/backend/tests/test_research_runs_hardening.py b/studio/backend/tests/test_research_runs_hardening.py
index aad7d1e170b..d603b794267 100644
--- a/studio/backend/tests/test_research_runs_hardening.py
+++ b/studio/backend/tests/test_research_runs_hardening.py
@@ -1333,7 +1333,14 @@ def test_stream_completion_timeout_is_absolute_despite_keepalives(monkeypatch):
[{"role": "user"}],
report_progress = False,
),
- timeout = 1,
+ # A hang guard, not the assertion. What is under test is that the run's own
+ # 0.05s deadline is absolute even though keepalives keep arriving, and that
+ # is what pytest.raises checks; this only stops a regression that never
+ # returns from wedging the suite. At 1s it was the tighter of the two on a
+ # loaded runner, so it fired first and the test failed with TimeoutError
+ # instead of the ReadTimeout it was asserting -- a false failure about the
+ # runner. An actual hang is unbounded, so 30s catches it just as well.
+ timeout = 30,
)
with pytest.raises(httpx.ReadTimeout):