From d57c28a5541ca30bbaeaa72061d49baa9e5a2a16 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Mon, 14 Sep 2026 07:12:18 -0700 Subject: [PATCH] fix(tests): compression stall-fallback tests stop racing the 0.2s ceiling Under a loaded runner the primary stall plus the fallback retry overran the 0.2s total ceiling, so the retry never started and attempts==1 failed intermittently (seen once in a 40-worker tests/agent run). Idle stays 0.05s; the ceiling moves to 2s per the >=2s wall-clock rule in AGENTS.md. --- tests/agent/test_compression_stall_fallback.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/agent/test_compression_stall_fallback.py b/tests/agent/test_compression_stall_fallback.py index 398cbd4b2a..0c802d9f06 100644 --- a/tests/agent/test_compression_stall_fallback.py +++ b/tests/agent/test_compression_stall_fallback.py @@ -90,7 +90,7 @@ class _StalledSummaryWorker: fence.finish_commit() -def _run(worker, *, chain, timeouts, messages, idle=0.05, ceiling=0.2): +def _run(worker, *, chain, timeouts, messages, idle=0.05, ceiling=2.0): with _patch_chain(chain): return run_compress_context_with_progress_timeout( worker=worker, @@ -152,7 +152,7 @@ def test_retry_runs_on_a_host_published_fence(): messages=original, system_prompt_fallback="degraded-prompt", idle_timeout_seconds=0.05, - total_ceiling_seconds=0.2, + total_ceiling_seconds=2.0, new_fence=_new_fence, ) finally: @@ -182,7 +182,7 @@ def test_hard_interrupt_suppresses_the_fallback_attempt(): messages=original, system_prompt_fallback="degraded-prompt", idle_timeout_seconds=0.05, - total_ceiling_seconds=0.2, + total_ceiling_seconds=2.0, on_timeout=lambda *args: timeouts.append(args), telemetry_agent=agent, )