Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix(soak): give the first diagnostics snapshot a 30s window

Martin Vogel657d4b02849d
diff --git a/scripts/soak-test.sh b/scripts/soak-test.sh
index be5891a44..1aba4d327 100755
--- a/scripts/soak-test.sh
+++ b/scripts/soak-test.sh
@@ -559,7 +559,13 @@ wait_for_daemon_stop() {
wait_for_diagnostics_snapshot() {
local after_count="${1:-0}"
local previous_path="${2:-}"
- local attempts=100
+ # 30s, not a 10s sprint: the first snapshot lands one diagnostics interval
+ # (5s) after start, and a cold 4-vCPU hosted runner mid-initial-index can
+ # push the first WRITE past 10s (observed: both Windows runner soak legs
+ # died right after 'server running' while the daemon's own log shows a
+ # perfectly healthy diagnostics.start — the VM's 18 cores never miss the
+ # window). Budget doctrine: the wait sits above the worst case.
+ local attempts=300
while [ "$attempts" -gt 0 ]; do
local current_count
current_count=$(diagnostics_start_count)