H-A-303: a pass that holds a module for a part withheld composes the tool runner as it runs
The node-engine restarted the tool runner at every self-compose on three machines: a module held for a part that did not answer (the catalog half's entry, the registry seats' versions) had its slice of the runtime process rebuilt from what runs, with its fingerprint set to its want's and its files words dropped, so MESH_TOOL_MODULES and MESH_TOOL_ENV differed pass by pass. A held module's entries and words are now copied verbatim from the running process, after the fingerprints are laid, so a holding pass digests as what runs and writes no new revision; a module whose parts answered and changed is still composed from its build. The composition read's grants ask names the holder it asked and why, and says it once in the journal until the grants part answers again. Builds: design 47 H H-A-303 (1)-(3), H-A-306 (1)-(3); H-A-296
This commit is contained in:
@@ -475,6 +475,8 @@ func readBase(ctx context.Context, r Reader, mesh Mesh, s Scope) (base, error) {
|
||||
if node == s.Node {
|
||||
// What its runtime serves as it runs: what a module composed as what runs of it contributes there (issue 1126).
|
||||
n.RunsTools = compose.ToolsRunning(s.Running)
|
||||
// And the runtime's process as it runs, whose slice of each held module is kept verbatim (H-A-306).
|
||||
n.RunsRuntime = compose.RuntimeRunning(s.Running)
|
||||
for _, module := range s.InOwn {
|
||||
if n.InOwn == nil {
|
||||
n.InOwn = map[string]bool{}
|
||||
|
||||
Reference in New Issue
Block a user