You signed in with another tab or window. <
8000
a class="Link--inTextBlock" href="">Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test waits: watch for progress instead of long fixed deadlines #1092
vivarium's until() waits up to a fixed deadline (READY_TIMEOUT, 300 s) and fails only when it runs out. A stuck wait and a slow one look the same until then. The deadlines stay long for now, because short ones would flake on slow GitHub runners.
Goal: fail early on a stuck wait without a short deadline. Each wait names the signals that show progress (pod phase, container state, events, journal lines, a CSI call in flight) and fails when none of them moves for a bounded time. A total deadline stays as a backstop.
Measured 2026-10-26 on nixkube's umlTest: with a 1 s poll, the longest passing wait apart from the host rollout was 81 s, against a 300 s deadline.
Measured in the vivarium review (#1444, S6). wait_for_unit polls every 0.5 s, and wait_until_succeeds, until and never every 1.0 s. A round trip to the agent takes p50 10-14 ms. Since 2026-11-01, 3,812 of 5,082 recorded waits polled two or more times.
Activity
perf(nixkube): wait out only what the uml test measures
perf(nixkube): wait out only what the uml test measures
Lillecarl commentedon Nov 17, 2026
Measured in the vivarium review (#1444, S6).
wait_for_unitpolls every 0.5 s, andwait_until_succeeds,untilandneverevery 1.0 s. A round trip to the agent takes p50 10-14 ms. Since 2026-11-01, 3,812 of 5,082 recorded waits polled two or more times.Assisted-By: Claude Opus 5.5