Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

test: give tournament E2E slack past the #467 barrier

Cursor Agent63f6236036c0
diff --git a/CHANGELOG.md b/CHANGELOG.md
index acebe446..8efec730 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,7 +16,9 @@ current is part of cutting a release.
ADR 0056 — deleting a composer image chip drops that queue slot and
reuses `#N`. `clipboard_paste` no longer stores MIME or byte count
for drafts abandoned before submit.
-- Suite floor **1868** (was 1861). No tag until asked.
+- Suite floor **1868** (was 1861). Tournament E2E parent timeout
+ 300s and 45s default barrier so CI cannot flake on #467 rendezvous.
+ No tag until asked.
## v0.0.282 (2026-08-31)
diff --git a/docs/releases/v0.0.283.md b/docs/releases/v0.0.283.md
index 0a6ab26e..14cd13c3 100644
--- a/docs/releases/v0.0.283.md
+++ b/docs/releases/v0.0.283.md
@@ -21,3 +21,7 @@ TUI already numbered from its live array. The line REPL matches.
## Tests
This cut raises the release-cut floor to **1868** (slack 25).
+
+The tournament E2E parent timeout is 300s (was 180) and the four-arm
+barrier defaults to 45s when unset, so a loaded CI runner cannot spend
+the whole parent budget at rendezvous (#467).
diff --git a/tests/learn_tournament_e2e.py b/tests/learn_tournament_e2e.py
index bd1ea7d4..fdd92bb5 100755
--- a/tests/learn_tournament_e2e.py
+++ b/tests/learn_tournament_e2e.py
@@ -35,10 +35,15 @@ from learn_e2e import (
)
# Four primary evaluators rendezvous for up to TOURNAMENT_BARRIER_DEADLINE
-# seconds (default 120). The parent must outlive that wait or a loaded CI
-# runner kills `graff learn run` with TimeoutExpired while peers are still
-# starting (#467).
-def invoke(*args, timeout: int = 180, **kwargs):
+# seconds (fixture default 120). The parent must outlive that wait plus
+# scoring: a loaded CI runner can spend most of the 120s just spawning
+# the four children, after which 60s of leftover budget is not enough
+# and the parent raises TimeoutExpired while the same SHA is green on a
+# quieter runner (#467 / #703). 300s is the barrier plus scoring slack.
+# The E2E also defaults an unset barrier to 45s so rendezvous cannot eat
+# the whole parent budget; fixture unit tests still set their own
+# (including 0.05s for the timeout-accounting case).
+def invoke(*args, timeout: int = 300, **kwargs):
return _invoke(*args, timeout=timeout, **kwargs)
@@ -219,6 +224,10 @@ def exercise(graff: Path, root: Path) -> None:
"GRAFF_BEHAVIOR_TRACE": "0",
"TOURNAMENT_BARRIER": str(barrier),
})
+ # Prefer an explicit caller value (unit tests, local debug). Otherwise
+ # cap the barrier well under the parent timeout so four slow-to-start
+ # children cannot consume the whole budget before scoring.
+ env.setdefault("TOURNAMENT_BARRIER_DEADLINE", "45")
env.pop("GRAFF_NO_TELEMETRY", None)
GradeCapture.payloads = []