A stopping tool runner's fault is asked again by every caller (design 47 H2, H-A-542, H-A-544, H-A-549) #212

Merged
mesh-tools merged 5 commits from fix/runner-stopping into main 2026-11-23 11:10:48 +00:00
Member

stdio (Go and TypeScript) and a process's kept call read error-kind stopping and ask again after a pause, within the setting ask-bound (60 s); a bare timeout stays a failure. Cause: main.440's publish failed at 10:24Z when novox's tool runner restarted and answered nothing. Group with mesh-tools and mesh-delivery fix/runner-stopping; merges first.

Reviewed-by: mesh-code-reviewer for lead-47@shanks at b3509e7d31

stdio (Go and TypeScript) and a process's kept call read `error-kind` `stopping` and ask again after a pause, within the setting `ask-bound` (60 s); a bare timeout stays a failure. Cause: main.440's publish failed at 10:24Z when novox's tool runner restarted and answered nothing. Group with mesh-tools and mesh-delivery fix/runner-stopping; merges first. Reviewed-by: mesh-code-reviewer for lead-47@shanks at b3509e7d31fce25c2c46d5f7410f92c0e5a39861
mesh-tools added 5 commits 2026-11-23 11:10:26 +00:00
A call a stopping tool runner did not take reached a bundle as a bare words error,
or, before the runner said so, as a "timeout", so a build step's publish failed
when the runner restarted (main.440). The runtime's answer now names its typed
fault (the error's data error-kind); stdio keeps it (ErrStopping, ErrorKind), and
Ask asks again after a pause at the kept-call pace until the new runner answers or
Ask's own bound ends, then hands the caller ErrStopping. A plain refusal and a bare
timeout are never asked again.

Builds: design 47 H2 H-A-542
As in the Go stdio: the runtime's answer names its typed fault in the error's data
error-kind, kept on the error as errorKind (isStopping); a broker request (mesh/ask)
met by stopping is asked again after a pause at the kept-call pace (the settings
kept-call-pace-first and -max, 1 s doubling to 30 s by default) until the new
runner answers or 60 s end, then the fault is the caller's. A plain refusal is
never asked again; a TypeScript bundle (the forge, the registries' holder) meets a
restarting runner as a Go one does.

Builds: design 47 H2 H-A-542, H-A-544
Review round 1: the process caller read only a reply's error, so a kept call
(CallKept, e.g. seat:git.trees) ended at once on stopping instead of pacing until
the new runner answers. requestAsk now reads error-kind stopping as
busretry.Stopping, which busretry.Fault counts as a transport fault, as away. The
Go stdio Ask's 60 s bound becomes the setting ask-bound (default 60 s), read by
the settings reader.

Builds: design 47 H2 H-A-542, H-A-549
Review round 1: the bound of asking again while the tool runner is stopping is the
setting ask-bound (default 60 s), and the pause and the clock are askPacing, which
the test replaces as the Go test does pause and askNow, so nothing sleeps. Rows
added: past the bound the fault is the caller's, a bare timeout stays a failure.

Builds: design 47 H2 H-A-542, H-A-544, H-A-549
Review round 2: the row for a stopping tool runner built its fault itself, so
requestAsk's reading of error-kind went untested. The reading of a reply (result,
error, error-kind, held) is now readReply, and the kept-call table reads the
runner's raw reply {"error": ..., "error-kind": "stopping"} through it.

Builds: design 47 H2 H-A-549 (1)
mesh-tools merged commit 31a1c5abb0 into main 2026-11-23 11:10:48 +00:00
mesh-tools deleted branch fix/runner-stopping 2026-11-23 11:10:49 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_141_1e5178b0",
"sequence": 66107,
"bytes": 747,
"of-bytes": 65536,
"waits": "its difference is not known yet",
"record": {
"milestone": "main.141",
"branch": "main",
"source": 141,
"call": "60b03aa250c8ecb2",
"heads": {
"novox/mesh-delivery@354": "72bb0277671738eb16898ed76af76ba191c625ef",
"novox/mesh-sdk@212": "31a1c5abb0c28bb60d98d36e6419fc7bc08c1961",
"novox/mesh-tools@90": "e8f58540ee8ce87223ab5ae9a628829ca250942e"
},
"opened": "2026-11-23T11:10:52.17602022Z",
"form": 3,
"trace": {
"pulls": [
"novox/mesh-sdk@212",
"novox/mesh-tools@90",
"novox/mesh-delivery@354"
],
"commits": [
"31a1c5abb0c28bb60d98d36e6419fc7bc08c1961",
"e8f58540ee8ce87223ab5ae9a628829ca250942e",
"72bb0277671738eb16898ed76af76ba191c625ef"
],
"source": "141",
"call": "60b03aa250c8ecb2",
"by": "lead-47@shanks",
"account": "shanks.node-tools",
"at": "2026-11-23T11:10:52.166Z"
},
"movers": 126,
"merge-called": "2026-11-23T11:10:52.166Z"
},
"movers-per-outcome": {
"bypassed": 2,
"not asked": 2,
"nothing to run": 2,
"passed": 1,
"superseded": 3
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_141_1e5178b0", "sequence": 66107, "bytes": 747, "of-bytes": 65536, "waits": "its difference is not known yet", "record": { "milestone": "main.141", "branch": "main", "source": 141, "call": "60b03aa250c8ecb2", "heads": { "novox/mesh-delivery@354": "72bb0277671738eb16898ed76af76ba191c625ef", "novox/mesh-sdk@212": "31a1c5abb0c28bb60d98d36e6419fc7bc08c1961", "novox/mesh-tools@90": "e8f58540ee8ce87223ab5ae9a628829ca250942e" }, "opened": "2026-11-23T11:10:52.17602022Z", "form": 3, "trace": { "pulls": [ "novox/mesh-sdk@212", "novox/mesh-tools@90", "novox/mesh-delivery@354" ], "commits": [ "31a1c5abb0c28bb60d98d36e6419fc7bc08c1961", "e8f58540ee8ce87223ab5ae9a628829ca250942e", "72bb0277671738eb16898ed76af76ba191c625ef" ], "source": "141", "call": "60b03aa250c8ecb2", "by": "lead-47@shanks", "account": "shanks.node-tools", "at": "2026-11-23T11:10:52.166Z" }, "movers": 126, "merge-called": "2026-11-23T11:10:52.166Z" }, "movers-per-outcome": { "bypassed": 2, "not asked": 2, "nothing to run": 2, "passed": 1, "superseded": 3 } } ] } <!-- mesh-act:view.record/main_141_1e5178b0.novox/mesh-sdk#212@1795434505247546116.c764d1cd -->
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-sdk#212