A-480..A-484a: a held provider's provides, the one place for a running build's manifest, the composition tool's deadlock fix #236

Merged
mesh-tools merged 18 commits from fix/a480-held-provider-provides into main 2026-11-18 01:11:04 +00:00
Showing only changes of commit e7803f8943 - Show all commits
+6 -7
View File
@@ -337,14 +337,13 @@ func TestASecondClaimantOfASeatIsHeldAndTheNodeComposesTheRest(t *testing.T) {
t.Errorf("running %v: the answer is %+v, want beta refused with the claim's words", running, ans)
}
}
}
// A-480 (design 47 G): a module the node holds keeps running what it runs, and so keeps providing what its running build provides,
// whatever its catalogue entry: the module that requires it is not held for "nothing provides" (live, 2026-11-17 22:52: feh on g14
// held for "x11-display" while xorg runs there, held only for want of an entry of its wanted build). The offer is the running
// composition's build's manifest (the builder's done key), else the manifest the module's `running` event names; a module
// neither running nor composable still gives "nothing provides".
func TestAHeldModuleStillProvidesWhatItsRunningBuildProvides(t *testing.T) {
// A-480 rows, in this test to keep the module's count:
// A-480 (design 47 G): a module the node holds keeps running what it runs, and so keeps providing what its running build provides,
// whatever its catalogue entry: the module that requires it is not held for "nothing provides" (live, 2026-11-17 22:52: feh on g14
// held for "x11-display" while xorg runs there, held only for want of an entry of its wanted build). The offer is the running
// composition's build's manifest (the builder's done key), else the manifest the module's `running` event names; a module
// neither running nor composable still gives "nothing provides".
const xorgRunning = `{"module":"xorg","version":"1","provides":[{"name":"x11-display"}]}`
feh := `{"module":"feh","version":"1","requires":["x11-display"]}`
nameOnly := `{"module":"xorg","version":"0"}`