fix(recovery): close cold-start runtime blockers

This commit is contained in:
ogt
2026-07-11 15:08:27 +08:00
parent 7cea825d92
commit 276410fbb6
38 changed files with 1494 additions and 145 deletions

View File

@@ -15,12 +15,15 @@ def test_post_start_self_checks_can_run_locally_on_110() -> None:
assert 'local_ip_list | grep' not in text
assert 'bash -lc "$command"' in text
assert 'SSH_COMMAND_TIMEOUT_SECONDS="${SSH_COMMAND_TIMEOUT_SECONDS:-25}"' in text
assert 'SSH_TOTAL_TIMEOUT_SECONDS="${SSH_TOTAL_TIMEOUT_SECONDS:-$((SSH_CONNECT_TIMEOUT + SSH_COMMAND_TIMEOUT_SECONDS + 5))}"' in text
assert "printf -v quoted_command '%q' \"$command\"" in text
assert '-o ConnectionAttempts=1' in text
assert '-o ServerAliveInterval=5' in text
assert '-o ServerAliveCountMax=1' in text
assert '-o NumberOfPasswordPrompts=0' in text
assert "timeout ${SSH_COMMAND_TIMEOUT_SECONDS}s bash -lc ${quoted_command}" in text
assert 'run_with_timeout "$SSH_TOTAL_TIMEOUT_SECONDS" "${ssh_command[@]}"' in text
assert 'timeout --foreground --kill-after=3s "${timeout_seconds}s"' in text
def test_runner_pressure_is_capacity_evidence_after_routes_recover() -> None: