From 1841bc959eeedb3b3fcf9e843c4afea53fc44c61 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 25 Nov 2026 17:35:57 +0100 Subject: [PATCH] build modules: G9 again-delays-default, 15s,90s in mesh-build-go, mesh-build-image and mesh-build-node The default spans the tool runner's restart (three runs, 105 s); each module's test reads the declared default and requires 15 s after the first run and 90 s after the second. Builds: design 47 H2 H-A-603, H-A-570 (5) --- modules/mesh-build-go/module.json | 4 ++-- modules/mesh-build-image/cmd/mesh-build-image/kit_test.go | 4 ++-- modules/mesh-build-image/module.json | 4 ++-- modules/mesh-build-node/cmd/mesh-build-node/kit_test.go | 4 ++-- modules/mesh-build-node/module.json | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/mesh-build-go/module.json b/modules/mesh-build-go/module.json index d68b078bb..8d9e51120 100644 --- a/modules/mesh-build-go/module.json +++ b/modules/mesh-build-go/module.json @@ -81,10 +81,10 @@ }, "again-delays": { "type": "string", - "description": "The delays a step ask whose fetch or publish met its holder away is given again after: after its first run, then after its second, as durations such as 15s,60s (design 47 H2 §799); a third run met so ends the step failed with why fetch: or publish:.", + "description": "The delays a step ask whose fetch or publish met its holder away is given again after: after its first run, then after its second, as durations such as 15s,90s (design 47 H2 §799); a third run met so ends the step failed with why fetch: or publish:.", "trusted": false, "runtime": true, - "default": "15s,60s" + "default": "15s,90s" }, "prune-mark": { "type": "number", diff --git a/modules/mesh-build-image/cmd/mesh-build-image/kit_test.go b/modules/mesh-build-image/cmd/mesh-build-image/kit_test.go index 4fde49f59..a64cf7b9f 100644 --- a/modules/mesh-build-image/cmd/mesh-build-image/kit_test.go +++ b/modules/mesh-build-image/cmd/mesh-build-image/kit_test.go @@ -32,7 +32,7 @@ func TestTheStartSweepEndsWhatAPreviousProcessLeft(t *testing.T) { // did not answer as a transport fault, and a failure of the source (a RUN line that fails) as none. func TestTheStepsSayAFailedNetworkAsATransportFault(t *testing.T) { // A step whose fetch or publish met its holder away is given again after the module's again-delays, 15 s after its - // first run and 60 s after its second by default (design 47 H2 §799; H-A-390). + // first run and 90 s after its second by default, a span past the tool runner's restart (design 47 H2 §799; H-A-390, H-A-603). t.Run("again-delays is declared and read", func(t *testing.T) { raw, err := os.ReadFile(filepath.Join("..", "..", "module.json")) if err != nil { @@ -51,7 +51,7 @@ func TestTheStepsSayAFailedNetworkAsATransportFault(t *testing.T) { decl, ok := m.Config[steprun.AgainDelaysSetting] _ = json.Unmarshal(decl, &c) delay, err := steprun.AgainDelays(c.Default) - if !ok || !c.Runtime || err != nil || delay(1) != 15*time.Second || delay(2) != 60*time.Second { + if !ok || !c.Runtime || err != nil || delay(1) != 15*time.Second || delay(2) != 90*time.Second { t.Fatalf("again-delays declared %v as %+v: %v", ok, c, err) } }) diff --git a/modules/mesh-build-image/module.json b/modules/mesh-build-image/module.json index 4ef6ba7b6..00c5606d6 100644 --- a/modules/mesh-build-image/module.json +++ b/modules/mesh-build-image/module.json @@ -46,10 +46,10 @@ }, "again-delays": { "type": "string", - "description": "The delays a step ask whose fetch or publish met its holder away is given again after: after its first run, then after its second, as durations such as 15s,60s (design 47 H2 §799); a third run met so ends the step failed with why fetch: or publish:.", + "description": "The delays a step ask whose fetch or publish met its holder away is given again after: after its first run, then after its second, as durations such as 15s,90s (design 47 H2 §799); a third run met so ends the step failed with why fetch: or publish:.", "trusted": false, "runtime": true, - "default": "15s,60s" + "default": "15s,90s" } }, "tools": [ diff --git a/modules/mesh-build-node/cmd/mesh-build-node/kit_test.go b/modules/mesh-build-node/cmd/mesh-build-node/kit_test.go index ddadfe488..c52105302 100644 --- a/modules/mesh-build-node/cmd/mesh-build-node/kit_test.go +++ b/modules/mesh-build-node/cmd/mesh-build-node/kit_test.go @@ -43,7 +43,7 @@ func TestTheStartSweepEndsWhatAPreviousProcessLeft(t *testing.T) { // not answer as a transport fault, and a failure of the source (a package the registry lacks) as none. func TestTheStepsSayAFailedNetworkAsATransportFault(t *testing.T) { // A step whose fetch or publish met its holder away is given again after the module's again-delays, 15 s after its - // first run and 60 s after its second by default (design 47 H2 §799; H-A-390). + // first run and 90 s after its second by default, a span past the tool runner's restart (design 47 H2 §799; H-A-390, H-A-603). t.Run("again-delays is declared and read", func(t *testing.T) { raw, err := os.ReadFile(filepath.Join("..", "..", "module.json")) if err != nil { @@ -62,7 +62,7 @@ func TestTheStepsSayAFailedNetworkAsATransportFault(t *testing.T) { decl, ok := m.Config[steprun.AgainDelaysSetting] _ = json.Unmarshal(decl, &c) delay, err := steprun.AgainDelays(c.Default) - if !ok || !c.Runtime || err != nil || delay(1) != 15*time.Second || delay(2) != 60*time.Second { + if !ok || !c.Runtime || err != nil || delay(1) != 15*time.Second || delay(2) != 90*time.Second { t.Fatalf("again-delays declared %v as %+v: %v", ok, c, err) } }) diff --git a/modules/mesh-build-node/module.json b/modules/mesh-build-node/module.json index b0a1f50f4..ededee9ac 100644 --- a/modules/mesh-build-node/module.json +++ b/modules/mesh-build-node/module.json @@ -50,10 +50,10 @@ }, "again-delays": { "type": "string", - "description": "The delays a step ask whose fetch or publish met its holder away is given again after: after its first run, then after its second, as durations such as 15s,60s (design 47 H2 §799); a third run met so ends the step failed with why fetch: or publish:.", + "description": "The delays a step ask whose fetch or publish met its holder away is given again after: after its first run, then after its second, as durations such as 15s,90s (design 47 H2 §799); a third run met so ends the step failed with why fetch: or publish:.", "trusted": false, "runtime": true, - "default": "15s,60s" + "default": "15s,90s" }, "prune-mark": { "type": "number",