The builder takes each step ask on a worker of its own and says step-progress (design 47 H2, H-A-514) #348

Merged
mesh-tools merged 7 commits from fix/builder-events-backlog into main 2026-11-23 08:46:19 +00:00
Member

The builder's one events consumer fell behind (246 messages against a bound of 100), so build asks of main.375 went unanswered within the ask's bound and six build steps ended could-not-run. This change:

  • takes each step ask and says ask-taken on a worker of its own, never behind the events loop;
  • adds step-progress to the seat mesh-builds (contracts), said every minute while a build step builds or waits, and the runner arms its ask's bound again on it;
  • judges a publish asked again from its record, never from a backlog count;
  • acknowledges at once a version-released that no reservation holds;
  • hands each event to a worker of the name it carries.

Lead answers: H-A-514 and its addenda (hq, design 47 H2 lead answers).

Quick or thorough: thorough. The fix covers every kind of event the builder hears, not only the publish that was behind.

Tests: the builder's and runner's unit suites pass, and go vet -tags integration ./... is clean (developer's run). This is merged without the pull request check under the operator's temporary rule (skip the check until design 47 is delivered).

Reviewed-by: mesh-code-reviewer@shanks at bda5a8f6

The builder's one events consumer fell behind (246 messages against a bound of 100), so build asks of main.375 went unanswered within the ask's bound and six build steps ended could-not-run. This change: - takes each step ask and says ask-taken on a worker of its own, never behind the events loop; - adds step-progress to the seat mesh-builds (contracts), said every minute while a build step builds or waits, and the runner arms its ask's bound again on it; - judges a publish asked again from its record, never from a backlog count; - acknowledges at once a version-released that no reservation holds; - hands each event to a worker of the name it carries. Lead answers: H-A-514 and its addenda (hq, design 47 H2 lead answers). Quick or thorough: thorough. The fix covers every kind of event the builder hears, not only the publish that was behind. Tests: the builder's and runner's unit suites pass, and `go vet -tags integration ./...` is clean (developer's run). This is merged without the pull request check under the operator's temporary rule (skip the check until design 47 is delivered). Reviewed-by: mesh-code-reviewer@shanks at bda5a8f6
mesh-tools added 7 commits 2026-11-23 08:46:14 +00:00
The pull of the seat mesh-builds' work queue took each ask in its callback:
the drop read, the take in the state taken and the ask-taken publish of one
ask held every later ask's, so a slow state call delayed ask-taken past the
runner's bound. The pull now only holds the ask and starts its worker.

Builds: design 47 H2 H-A-514
The runner arms an ask's bound again at each step-progress, which only the
seat mesh-wants said: a build step whose build waits for a package said
nothing for the bound and ended ask-unanswered. The seat mesh-builds gains
step-progress, with the fields of mesh-wants', and its generated contract.

Builds: design 47 H2 H-A-514 addendum
A build step whose build waited for a package said nothing after ask-taken,
so the runner's bound of the ask ended it unanswered. The builder now says the
seat mesh-builds' step-progress of each ask it holds once a minute.

Builds: design 47 H2 H-A-514 addendum
Each version-released listed the module's reservations, one to three seconds
on the serial events consumer, also for a version the builder no longer holds.
Its series' one key now says whether a reservation holds it; one none holds is
acknowledged with nothing listed.

Builds: design 47 H2 H-A-514 addendum
The builder held every publish asked again while its events consumer had a
hundred messages unheard; under a pipeline's flood of published events that
held the very publishes the build steps waited on. A duplicate is now judged
from the reservation's recorded publishes and the registries' record alone.

Builds: design 47 H2 H-A-514 addendum
The builder handled its events consumer one event at a time, each registry
published and version-released taking seconds, so a pipeline's flood of them
held every later event. Each event now goes to the worker of the name it
carries, one name's events in order and the names side by side; the events
still waiting are said in progress at each end, with no timer.

Builds: design 47 H2 H-A-514 addendum and second addendum
A build step whose build waited for a package ended ask-unanswered after ten
minutes, since only mesh-wants' step-progress armed a bound again. The runner
now consumes and hears the seat mesh-builds' step-progress the same way.

Builds: design 47 H2 H-A-514 addendum
mesh-tools merged commit 8bdd78064a into main 2026-11-23 08:46:19 +00:00
mesh-tools deleted branch fix/builder-events-backlog 2026-11-23 08:46:20 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_134_8c947fbc",
"sequence": 57726,
"bytes": 489,
"of-bytes": 65536,
"waits": "its difference is not known yet",
"record": {
"milestone": "main.134",
"branch": "main",
"source": 134,
"call": "7aba17ae80349d75",
"heads": {
"novox/mesh-delivery@348": "8bdd78064a4c2deb50e1bee0e8549cca7fd7751b"
},
"opened": "2026-11-23T08:46:20.339408806Z",
"form": 3,
"trace": {
"pulls": [
"novox/mesh-delivery@348"
],
"commits": [
"8bdd78064a4c2deb50e1bee0e8549cca7fd7751b"
],
"source": "134",
"call": "7aba17ae80349d75",
"by": "lead-47@shanks",
"account": "shanks.node-tools",
"at": "2026-11-23T08:46:20.332Z"
},
"movers": 21,
"merge-called": "2026-11-23T08:46:20.332Z"
},
"movers-per-outcome": {
"taken-in": 21
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_134_8c947fbc", "sequence": 57726, "bytes": 489, "of-bytes": 65536, "waits": "its difference is not known yet", "record": { "milestone": "main.134", "branch": "main", "source": 134, "call": "7aba17ae80349d75", "heads": { "novox/mesh-delivery@348": "8bdd78064a4c2deb50e1bee0e8549cca7fd7751b" }, "opened": "2026-11-23T08:46:20.339408806Z", "form": 3, "trace": { "pulls": [ "novox/mesh-delivery@348" ], "commits": [ "8bdd78064a4c2deb50e1bee0e8549cca7fd7751b" ], "source": "134", "call": "7aba17ae80349d75", "by": "lead-47@shanks", "account": "shanks.node-tools", "at": "2026-11-23T08:46:20.332Z" }, "movers": 21, "merge-called": "2026-11-23T08:46:20.332Z" }, "movers-per-outcome": { "taken-in": 21 } } ] } <!-- mesh-act:view.record/main_134_8c947fbc.novox/mesh-delivery#348@1795423628495553602.37a3ae3a -->
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-delivery#348