selfcompose test: wait for the pass's say that names the vault, never a fixed sleep (issue 774; design 47 H2) #255

Merged
mesh-tools merged 2 commits from fix/selfcompose-wants into main 2026-11-23 09:47:31 +00:00
Member

TestSelfcompose/TheNodeComposesItsWantsFromTheBus failed in pipeline main.417 (10:27 CET) with "a pass that ran on said nothing of what it waits on". The code was right; the test raced. The row "the vault did not answer in time" slept a fixed 30 ms and expected the pass's 5 ms ticker to say what it waits on (issue 774's rule). On a loaded build node the process can stall longer than that.

The slow vault read now waits for this pass's own say, bounded at 5 s, and is released only by a line that names "the vault's own secrets". The check passes when any line this composer said names it. Test-only; no code changed.

Quick or thorough: thorough. The quick fix, a longer sleep, would keep the race. Every other sleep in selfcompose and its neighbours was read: none can fail falsely. Three can let a fault pass (selfcompose_test.go:1217, :1477, :1819) and are noted for issue 774.

Tests: without the code's say the row fails; with a 20 ms slow start it passes -count=3; 16 parallel copies under GOMAXPROCS=1 pass. vet, the unit suite, the integration package and make check pass.

Review: round 1 found that the wait closed on any progress line (a tick before the vault read could release it); round 2 fixed it.

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 2a6b92eeab

TestSelfcompose/TheNodeComposesItsWantsFromTheBus failed in pipeline main.417 (10:27 CET) with "a pass that ran on said nothing of what it waits on". The code was right; the test raced. The row "the vault did not answer in time" slept a fixed 30 ms and expected the pass's 5 ms ticker to say what it waits on (issue 774's rule). On a loaded build node the process can stall longer than that. The slow vault read now waits for this pass's own say, bounded at 5 s, and is released only by a line that names "the vault's own secrets". The check passes when any line this composer said names it. Test-only; no code changed. Quick or thorough: thorough. The quick fix, a longer sleep, would keep the race. Every other sleep in selfcompose and its neighbours was read: none can fail falsely. Three can let a fault pass (selfcompose_test.go:1217, :1477, :1819) and are noted for issue 774. Tests: without the code's say the row fails; with a 20 ms slow start it passes -count=3; 16 parallel copies under GOMAXPROCS=1 pass. vet, the unit suite, the integration package and make check pass. Review: round 1 found that the wait closed on any progress line (a tick before the vault read could release it); round 2 fixed it. 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 2a6b92eeab15f312cabf4f8d0263a419da2dbc5b
mesh-tools added 2 commits 2026-11-23 09:47:27 +00:00
TheNodeComposesItsWantsFromTheBus failed in pipeline main.417 on a loaded
build node: its row "the vault did not answer in time" slept a fixed 30 ms
in the vault read and expected the pass's 5 ms ticker to have said it runs
on. When the process stalls, the read ends with the first tick, the pass
ends and cancels the ticker first, and the say is lost or lands after the
test read the shared lines. The merge of #253 and #254 did not cause it.

The read now waits for the pass's own say (bounded at 5 s), with no fixed
sleep, and the test reads only this pass's lines, which must name the
vault's own secrets as what it waits on.

Builds: design 47 H2 (test only; no design line changes, issue 774's say)
Review round 1 of the slow vault read's wait: a tick before the read began
says "waits on nothing it reads (composing)", which released the read at
once; the read then ended before the next tick and the row failed again on
a slow start. The read now waits for a line naming the vault's own
secrets, and the row asks that any line said names it.

Runs under issue 774 (a pass that runs on says what it waits on).
Builds: design 47 H2 (test only; no design line changes)
mesh-tools merged commit 1a19492541 into main 2026-11-23 09:47:31 +00:00
mesh-tools deleted branch fix/selfcompose-wants 2026-11-23 09:47:32 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_139_8fe7b2ad",
"sequence": 63289,
"bytes": 680,
"of-bytes": 65536,
"record": {
"milestone": "main.139",
"branch": "main",
"source": 139,
"call": "af76a64a1fc3e874",
"heads": {
"novox/mesh-host@255": "1a19492541d82945503f4b301deda0be20dc1683"
},
"opened": "2026-11-23T09:47:32.248049965Z",
"form": 3,
"trace": {
"pulls": [
"novox/mesh-host@255"
],
"commits": [
"1a19492541d82945503f4b301deda0be20dc1683"
],
"source": "139",
"call": "af76a64a1fc3e874",
"by": "lead-47@shanks",
"account": "shanks.node-tools",
"at": "2026-11-23T09:47:32.225Z"
},
"ended": {
"at": "2026-11-23T09:55:02.661772237Z",
"why": "failed: every mover is moved by the newer main.434"
},
"movers": 18,
"merge-called": "2026-11-23T09:47:32.225Z",
"phases": {
"ended": "2026-11-23T09:55:02.616610162Z",
"taken": "2026-11-23T09:53:43.76329416Z"
}
},
"movers-per-outcome": {
"taken-in": 1
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_139_8fe7b2ad", "sequence": 63289, "bytes": 680, "of-bytes": 65536, "record": { "milestone": "main.139", "branch": "main", "source": 139, "call": "af76a64a1fc3e874", "heads": { "novox/mesh-host@255": "1a19492541d82945503f4b301deda0be20dc1683" }, "opened": "2026-11-23T09:47:32.248049965Z", "form": 3, "trace": { "pulls": [ "novox/mesh-host@255" ], "commits": [ "1a19492541d82945503f4b301deda0be20dc1683" ], "source": "139", "call": "af76a64a1fc3e874", "by": "lead-47@shanks", "account": "shanks.node-tools", "at": "2026-11-23T09:47:32.225Z" }, "ended": { "at": "2026-11-23T09:55:02.661772237Z", "why": "failed: every mover is moved by the newer main.434" }, "movers": 18, "merge-called": "2026-11-23T09:47:32.225Z", "phases": { "ended": "2026-11-23T09:55:02.616610162Z", "taken": "2026-11-23T09:53:43.76329416Z" } }, "movers-per-outcome": { "taken-in": 1 } } ] } <!-- mesh-act:view.record/main_139_8fe7b2ad.novox/mesh-host#255@1795427702704608466.ef41d9eb -->
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-host#255