Repository navigation
test: allow supervisor election time under suite load - #76
Conversation
OBenner
left a comment
There was a problem hiding this comment.
Review by dev: принять (COMMENT вместо APPROVE — ограничение GitHub для PR того же аккаунта).
Diff хирургический, ровно по скоупу #13: probe 100→1000 мс, election wait 5→10 с, бюджет describe 20 с — только supervisor-loop; codex-probe действительно уже закрыт в main (#56), production-код не тронут. Комментарий в коде честно объясняет причину (loopback под нагрузкой полного прогона).
Evidence по DoD закрыт: 10 последовательных локальных verify + 3 CI-прогона на одном коммите — приложены к issue. База ветки свежая (после #74/#73), конфликтов нет.
Ограничение «конечное число прогонов ≠ гарантия» — корректно; если флаки вернётся, следующим шагом будет retry-обёртка, а не дальнейший рост таймаутов.
→ Передаю на финальное ревью CTO.
Supervisor loop tests used 100 ms HTTP probes that could expire while the full suite competed for CPU. Increase each probe to 1 second, the election wait to 10 seconds, and the enclosing test timeout to 20 seconds. Assertions and production behavior are unchanged.
The Codex spawn test already has a 15-second child deadline and a 20-second test deadline in main, so it needs no further increase.
Validation on commit 2bd1bc4: ten consecutive local pnpm verify runs passed, each with 86 test files and 770 tests, plus formatting, import checks, typechecking and build. No retries or exclusions were used.
CI stability evidence: https://github.com/OBenner/synloq/actions/runs/43820802845 — attempts 1, 2 and 3 all completed successfully on the same commit.
Refs #13.