From f81e0e945bca95d50b219fdbb3f90fe4cf576f50 Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Thu, 5 Nov 2026 15:52:29 +0000 Subject: [PATCH] Allow the read-only retry test to run under integration load --- internal/stage/retry_safety_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/stage/retry_safety_test.go b/internal/stage/retry_safety_test.go index 5068ae06..54a6a576 100644 --- a/internal/stage/retry_safety_test.go +++ b/internal/stage/retry_safety_test.go @@ -45,7 +45,10 @@ func TestReadOnlyAgentRetriesPostAdmissionDeadline(t *testing.T) { def := turnDefinition(t) def.Blocks["tools"] = "read" def.Configs["retries"] = "1" - def.Configs["timeout"] = "30ms" + // The first prompt waits on ctx.Done, so a longer allowance does not weaken + // the deadline assertion. It leaves the successful retry time to finish on + // hosts concurrently compiling/running the integration suites. + def.Configs["timeout"] = "500ms" var sessions, prompts atomic.Int64 agent := &AgentClient{OpenCodeClient: OpenCodeClient{command: func(ctx context.Context, _ string, args ...string) ([]byte, error) { path := args[2]