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)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user