Skip to content

Allow slower launcher health initialisation - #330

Merged
witbrock merged 1 commit into
mainfrom
agent/launcher-health-wait
Jul 29, 2026
Merged

witbrock merged 1 commit into
mainfrom
agent/launcher-health-wait

Conversation

@witbrock

Copy link
Copy Markdown
Member

What changed

  • Increase the POSIX launcher's initial health wait from 60 to 180 seconds.
  • Show the 180-second default in launcher help.
  • Add a regression test for the default.

Why

A measured healthy startup took 66.1 seconds, so the old 60-second default could report failure while Von was still initialising. The longer default retains the explicit -HealthTimeoutSec override and the existing health-grace behaviour.

Validation

  • 29 passed in tests/test_run_sh_start_behaviour.py
  • bash -n run.sh
  • git diff --check origin/main...HEAD
  • launcher help read-back shows the 180-second default

uv.lock is unrelated generated local residue and is not included.

Copilot AI review requested due to automatic review settings July 29, 2026 21:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the POSIX run.sh launcher so slow-but-healthy startups aren’t falsely reported as failed by increasing the default initial health wait, and adds a regression test to lock in the new default.

Changes:

  • Increase run.sh default HEALTH_TIMEOUT_SEC from 60 to 180 seconds.
  • Update run.sh help text to display the new 180-second default for -HealthTimeoutSec.
  • Add a test asserting the default health timeout value.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
run.sh Raises the default health timeout and updates help output to reflect the new default.
tests/test_run_sh_start_behaviour.py Adds a regression test asserting the default HEALTH_TIMEOUT_SEC value.

Comment on lines +43 to +54
def test_run_sh_default_health_timeout_covers_slow_startup() -> None:
payload = _run_bash_probe(
r"""
python3 - <<PY
import json
print(json.dumps({"health_timeout_seconds": int("$HEALTH_TIMEOUT_SEC")}))
PY
"""
)

assert payload == {"health_timeout_seconds": 180}

Comment thread run.sh
Comment on lines 39 to 43
LOG_RETENTION=20
ADMIN_TOKEN=""
SKIP_HEALTH=0
HEALTH_TIMEOUT_SEC=60
HEALTH_TIMEOUT_SEC=180
HEALTH_GRACE_SEC=45
@witbrock
witbrock merged commit a52ada1 into main Jul 29, 2026
5 checks passed
@witbrock
witbrock deleted the agent/launcher-health-wait branch August 3, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants