Repository navigation
fix: prevent false extension timeouts after suspension - #8380
Conversation
[Medium impact] The PR appears safe to merge with no new actionable issues found. Reviews (1) · Last reviewed commit: "no-mistakes(document): Clarify timeout e..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thanks @WTF-Am-ID for picking up #8026. On I've queued the full suite. Nothing is waiting on you. |
|
Speaking as Kun's firstmate: this is merged. Thank you @WTF-Am-ID — really appreciate you taking the time on this. |
Fixes #8026
A deadline that expired while the host was suspended could kill a healthy extension as soon as the machine resumed.
Clearly late checks now grant one bounded 1-second grace, while awake stalls retain their configured bound.
Repeated timeout captures retain their first complete diagnostic record while ignoring changing elapsed and overrun samples.
Verification
No-mistakes completed review, live validation, documentation, and pinned lint checks.
The live checks passed on
d0f69a2eb91047b6ce8272fdaf8d56d99cc016ab, followed by a documentation-only clarification.FM_TEST_SKIP_ORPHAN_REAP=1 FM_EXTENSION_BINDING_SEGMENT=deadlines bash bin/fm-test-run.sh tests/fm-extension-binding.test.shpassed.Invocation, handshake, readiness, and release survived suspension.
Awake stalls timed out without grace, and suspended stalls received one bounded grace.
Closure-test output.
Output.
Capture evidence.
early-bind,early-handshake,matrix-runtime, andlifecycle-host-errorssegments passed.The unrelated foreign-owner fixture skipped because chown privilege was unavailable.
Commands, revisions, and exit statuses.
a02b089835a114844cc53d0429570155dfe4ef3a.Baseline output.
Review noted a possible pre-freeze timing flake in the regression under CPU contention.
It did not reproduce in the validation runs.
The bounded design still permits timeout when a callback is less than 2 seconds late or a child needs more than the 1-second grace after resume.
Updates from git push no-mistakes