Repository navigation
fix(bin): give slow watcher suites headroom under the changed-suite bound - #5516
Merged
kunchenguid merged 1 commit intoSep 26, 2026
Merged
kunchenguid merged 1 commit into
kunchenguid merged 1 commit into
Conversation
…ound tests/fm-watch-triage.test.sh finishes in about 434s alone and about 698s under CI load, so the 900s bound the changed-suite runner applies produced a false timeout under ordinary concurrent validation. Raise the automatic bound to 1500s, which keeps every measured script under it while staying below the 30-minute normal CI tier so a genuinely hung script still fails here with its output before the job cap cancels the lane. Fixes kunchenguid#3869 Refs kunchenguid#3565
Owner
|
Speaking as Kun's firstmate: Verdict: Diff reviewed ( VISION (per rule):
Aligns overall. Attestation MATCH. CI green / CLEAN after #5583. Auto-merging squash. |
Owner
|
Speaking as Kun's firstmate: this is merged. Thank you @karotkriss — really appreciate you taking the time on this. |
ashkonmousavi
added a commit
to ashkonmousavi/firstmate
that referenced
this pull request
Sep 26, 2026
Intent
Fixes #3869
Refs #3565
tests/fm-watch-triage.test.shfinishes in about 434 seconds alone and about 698 seconds under CI load, so the 900-second per-script bound the changed-suite runner applies produces a false timeout under ordinary concurrent validation, not a hang.Raise the bound for that file, or its watcher-wake-lock family, so a slow but healthy script is not killed while a genuinely hung script still becomes a bounded failure.
This closes upstream issue #3869.
What Changed
--changedper-script timeout inbin/fm-test-run.shfrom 900s to 1500s, sincetests/fm-watch-triage.test.shruns ~434s alone and ~698s under CI load and was being falsely killed under concurrent validation; the new bound keeps every measured script under it (~2.1x headroom) while staying below the 30-minute CI tier so a genuinely hung script still fails as a bounded failure with its output.test_changed_bound_gives_slow_watcher_suites_headroomintests/fm-test-run.test.sh, which stubs the timeout library to capture the bound the runner hands it and asserts a healthy changed watcher script passes with a bound of at least 1500s; also bumped the existing bound-stub assertion from 900 to 1500.Risk Assessment
✅ Low: A single well-justified timeout constant bump (900s→1500s) with a matching comment update, an updated stub assertion, and one behavioral regression test; the value is consistent with the referenced hint table and has no other copies to drift.
Testing
I exercised the raised changed-suite bound by driving the real bin/fm-test-run.sh through its own contract test end-to-end in a git fixture: the new test asserts a slow healthy changed watcher script passes and the emitted per-script bound is >= 1500s (passes on the fixed runner), and the same test fails on the base-commit runner reporting 900s, confirming the regression is real and fixed. The companion hang test confirms a genuinely stuck script is still converted to a bounded exit-124 failure. No screenshot applies; this is a shell test-runner constant with no rendered UI surface. Worktree left clean, temp artifacts removed.bin/fm-test-run.sh --changed --base HEADin a real git fixture; healthy script passes and recorded bound >= 1500s (EXIT=0)Evidence: Changed-bound regression transcript (before/after fix)
Source: Changed-bound regression transcript (before/after fix)
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bin/fm-test-run.sh --changed --base HEADin a real git fixture; healthy script passes and recorded bound >= 1500s (EXIT=0)bashdriver sourcing tests/fm-test-run.test.sh function defs then runningtest_per_script_timeout_bounds_a_hangandtest_changed_bound_gives_slow_watcher_suites_headroomagainst the worktree runner (both ok, exit 0)Same new test run against base-commit d4f3b78 runner via a temp copy at /tmp/baserun/fm-test-run.sh (fails: got 900s, exit 1) to confirm fail-before-fix✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.