mesh-delivery-indexer: the tools runtime reads its view of the trunk again until it holds the newest revision heard (design 47 H2 H-A-766, H-A-767; issue 1984)
#369
Merged
mesh-toolsmerged 1 commits from fix/47-H2-766-view-reread into main2026-11-26 01:13:20 +00:00
The indexer's tools runtime read of the trunk view timed out three times tonight (revisions 530, 531, 535) and nothing asked it again: the grants part read a stale modules view and every put waited on "the grant ... does not name 's accounts yet" until the runtime was restarted by hand.
H-A-766 (1): the kept trunk view is read again with backoff (settings view-reread-pace-first 5s, view-reread-pace-max 1m) until it holds the newest revision heard.
H-A-766 (3): the tool indexer_trunk_again reads it again by hand.
H-A-767: the modules and graph first views answer the revision their values are read at, never their mark's.
Indexer only; the SDK is unchanged (H-A-767, principle 7).
Quick fix (restart the runtime and ask the grants first view again) was the recovery three times; this is the thorough fix of the kind (the view never retried).
Tests: indexer unit suite, go vet (both tags), two integration packages and TestIndexerWhole pass; -race of the trunk-view tests clean three times; manifest validator re-creation 183/183.
Reviewed-by: mesh-code-reviewer a9a790a3@shanks at e6ad987a6d
The indexer's tools runtime read of the trunk view timed out three times tonight (revisions 530, 531, 535) and nothing asked it again: the grants part read a stale modules view and every put waited on "the grant ... does not name <node>'s accounts yet" until the runtime was restarted by hand.
- H-A-766 (1): the kept trunk view is read again with backoff (settings `view-reread-pace-first` 5s, `view-reread-pace-max` 1m) until it holds the newest revision heard.
- H-A-766 (3): the tool `indexer_trunk_again` reads it again by hand.
- H-A-767: the modules and graph first views answer the revision their values are read at, never their mark's.
Indexer only; the SDK is unchanged (H-A-767, principle 7).
Quick fix (restart the runtime and ask the grants first view again) was the recovery three times; this is the thorough fix of the kind (the view never retried).
Tests: indexer unit suite, go vet (both tags), two integration packages and TestIndexerWhole pass; -race of the trunk-view tests clean three times; manifest validator re-creation 183/183.
Reviewed-by: mesh-code-reviewer a9a790a3@shanks at e6ad987a6d9e2b78c83c121e8843937444419ef2
A re-read of the trunk that timed out kept the older revision until the next event, which may never come. KeptTrunk now
reads again after a failed or short re-read with a backoff (view-reread-pace-first 5s, view-reread-pace-max 1m), says the
failure once per revision, and the new tool indexer_trunk_again reads it now by hand. H-A-767's first-view clause is held
by TrunkStates' markSource already (review round 1: no wrapper); its row, a KeptTrunk at 529 under a mark at 531 answering 529,
passes on the trunk.
Builds: design 47 H2 H-A-766 (1), (3); H-A-767
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The indexer's tools runtime read of the trunk view timed out three times tonight (revisions 530, 531, 535) and nothing asked it again: the grants part read a stale modules view and every put waited on "the grant ... does not name 's accounts yet" until the runtime was restarted by hand.
view-reread-pace-first5s,view-reread-pace-max1m) until it holds the newest revision heard.indexer_trunk_againreads it again by hand.Indexer only; the SDK is unchanged (H-A-767, principle 7).
Quick fix (restart the runtime and ask the grants first view again) was the recovery three times; this is the thorough fix of the kind (the view never retried).
Tests: indexer unit suite, go vet (both tags), two integration packages and TestIndexerWhole pass; -race of the trunk-view tests clean three times; manifest validator re-creation 183/183.
Reviewed-by: mesh-code-reviewer a9a790a3@shanks at
e6ad987a6d{
"records": [
{
"instance": "record/main_169_32fd7364",
"sequence": 91239,
"bytes": 1215,
"of-bytes": 65536,
"record": {
"milestone": "main.169",
"branch": "main",
"source": 169,
"call": "19c0c31e616e4986",
"heads": {
"novox/mesh-delivery@369": "4aeba1e9ea392e05b59e2d9ae3033ff0412b0d40"
},
"opened": "2026-11-26T01:13:22.225544298Z",
"form": 3,
"trace": {
"pulls": [
"novox/mesh-delivery@369"
],
"commits": [
"4aeba1e9ea392e05b59e2d9ae3033ff0412b0d40"
],
"source": "169",
"call": "19c0c31e616e4986",
"by": "lead-47@shanks",
"account": "shanks.node-tools",
"at": "2026-11-26T01:13:22.217Z"
},
"ended": {
"at": "2026-11-26T01:24:47.565734905Z",
"why": "failed: required steps not passed: mesh-delivery-indexer composition not asked"
},
"movers": 1,
"merge-called": "2026-11-26T01:13:22.217Z",
"phases": {
"build": {
"end": "2026-11-26T01:14:50.717924909Z",
"start": "2026-11-26T01:14:17.901804649Z"
},
"ended": "2026-11-26T01:24:37.890571022Z",
"integration": {
"end": "2026-11-26T01:15:25.78618632Z",
"start": "2026-11-26T01:14:17.901804649Z"
},
"lint": {
"end": "2026-11-26T01:16:01.817672428Z",
"start": "2026-11-26T01:14:17.901804649Z"
},
"placed": "2026-11-26T01:14:17.901804649Z",
"taken": "2026-11-26T01:14:05.061904456Z",
"unit": {
"end": "2026-11-26T01:15:40.423774502Z",
"start": "2026-11-26T01:14:17.901804649Z"
},
"validate": {
"end": "2026-11-26T01:24:37.890571022Z",
"start": "2026-11-26T01:14:17.901804649Z"
}
}
},
"movers-per-outcome": {
"bypassed": 1,
"could not run": 1,
"not asked": 1,
"passed": 1,
"taken-in": 1,
"waiting": 1
}
}
]
}