H-A-376: the runner's list answers short rows, show each mover's row
list answers by default the newest 20 short rows (key, call, start, end, outcome, movers' count and the first failed or could-not-run step with its module and why), and the whole pipelines only with full and a limit. show answers one mover's steps when it names one, the steps its filters hold, or else each mover's row, never every step of every mover. The tools program describes each seat verb's tool from its contract, which seatgen now generates a VerbDescription for; runner_cancel reads the whole pipelines with full. The runner seat's form is 6. Builds: design 47 H2 H-A-376, H-A-449, §789
This commit is contained in:
@@ -58,6 +58,30 @@ func Verbs() []string {
|
||||
return []string{VerbCurrent, VerbPause, VerbResume, VerbDrop, VerbKeptArtifact, VerbSteps, VerbAnswer, VerbOutput}
|
||||
}
|
||||
|
||||
// VerbDescription is a verb's description as the seat's definition says it, "" for a verb the seat does not serve or
|
||||
// does not describe (design 47 H2 H-A-449).
|
||||
func VerbDescription(verb string) string {
|
||||
switch verb {
|
||||
case VerbCurrent:
|
||||
return "What this node's holder takes and runs (design 47 H2 §801, H-A-367 (2)): whether it takes asks and why not (paused, capacity 0, unhealthy) since when, its capacity, and every ask it runs, whoever asked it (the builder's delivery asks included)."
|
||||
case VerbPause:
|
||||
return "Take no new ask on this node until resumed; an ask running here ends in its place. Kept across a restart of the build module. A capacity of 0 is the lasting way to keep a node from building."
|
||||
case VerbResume:
|
||||
return "Take asks again on this node."
|
||||
case VerbDrop:
|
||||
return "End an ask this node holds for a caller that no longer waits for it: a step not yet running is ended dropped when the bus gives it, one running is cancelled; both end the step dropped, naming who dropped it and why. Writes dropped.<id> in the pauses state; the build module removes the key when it has acted."
|
||||
case VerbKeptArtifact:
|
||||
return "The one build this node keeps instead of storing it through the seat oci-artifact-registry: the new build of that seat's holder, when the running holder refused or did not answer the store (design 47 *The artifact store's holder takes its own new build even when its seat is the one broken*). Answers where the bytes are, as an object by their digest on the bus (the old objects form, ADR 0619 §2), never in the answer; the node-engine checks what it fetched against the digest and applies nothing that differs. A module that claims no oci-artifact-registry is refused by name, so a store outage never becomes a delivery from build nodes; so is a build this node no longer keeps, or keeps under another digest."
|
||||
case VerbSteps:
|
||||
return "Which pipeline steps an artifact can run, found by its language's convention (design 47 *Pipeline steps and the policy*): lint always, unit and integration tests where its packages hold them. Kept by the artifact's fingerprint; again finds them anew. With drop and why it deletes the artifact's kept key instead, writes the act in the hand-act log of the seat mesh-hand-acts first (a log that refuses deletes nothing and answers error), and answers dropped (design 47 G section 463, section 480)."
|
||||
case VerbAnswer:
|
||||
return "A step's answer by its ask, when the step's key or a run's step-ended names it as `answer-object` because the answer is over what the steps state's value or the event carries (design 47 H2 H-A-412): the kept end's bytes in chunks of at most 512 KiB on the chunk subject of the call, each acknowledged by the caller on the ack subject within 30 seconds; the answer is of any size. An answer inline in the key or the event is never asked here; a run's test output is the verb output's."
|
||||
case VerbOutput:
|
||||
return "A step's output by its ask (design 47 H2 §791, H-A-367 (1)): the output's last 64 KB, its size, the failing tests with their words, or no longer kept once past the outputs objects' max-age. Asked by the runner's runner_step_output of the holder on the node the step key names."
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Events is every event published on the seat's subject: a new copy each call.
|
||||
func Events() []string {
|
||||
return []string{EventStepEnded, EventToolchainReported, EventStepProgress, EventAskTaken}
|
||||
|
||||
Reference in New Issue
Block a user