BM4b (sdk): an end over the steps state's value is read through the verb answer
A step's end is an event, not a verb's answer, so an end over what the steps state's value or step-ended carries has a reader of its own: keepOver keeps it in the steps objects as answer.<ask>, the step key and step-ended carry answer-object in place of output-object, and the build seats gain the read verb answer (ask and call, marked chunks); output stays the run text's reader. Step.Whole and StepEnded.ReadOutput read through answer. Builds: design 47 H2 §791; H-A-412 (2) and its addendum
This commit is contained in:
@@ -13,6 +13,7 @@ export declare const verbs: {
|
||||
readonly drop: "drop";
|
||||
readonly keptArtifact: "kept-artifact";
|
||||
readonly steps: "steps";
|
||||
readonly answer: "answer";
|
||||
readonly output: "output";
|
||||
};
|
||||
|
||||
@@ -115,6 +116,8 @@ export declare function detectedStepsByModuleArtifactKey(module: string, artifac
|
||||
/** The parts of a key of the form "<module>.<artifact>", or undefined for a key of another form. */
|
||||
export declare function parseDetectedStepsByModuleArtifactKey(_key: string): { module: string; artifact: string } | undefined;
|
||||
|
||||
export type AnswerAnswer = buildStep.AnswerAnswer;
|
||||
export type AnswerInput = buildStep.AnswerInput;
|
||||
export type AskArtifact = buildStep.AskArtifact;
|
||||
export type AskTaken = buildStep.AskTaken;
|
||||
export type AskTakenEvent = buildStep.AskTakenEvent;
|
||||
|
||||
@@ -11,6 +11,7 @@ export const verbs = {
|
||||
drop: "drop",
|
||||
keptArtifact: "kept-artifact",
|
||||
steps: "steps",
|
||||
answer: "answer",
|
||||
output: "output",
|
||||
};
|
||||
|
||||
|
||||
+23
-4
@@ -9,6 +9,7 @@ export declare const verbs: {
|
||||
readonly drop: "drop";
|
||||
readonly keptArtifact: "kept-artifact";
|
||||
readonly steps: "steps";
|
||||
readonly answer: "answer";
|
||||
readonly output: "output";
|
||||
};
|
||||
|
||||
@@ -375,12 +376,12 @@ export interface RunProgram {
|
||||
export interface Step {
|
||||
/** when the bus gives the ask again, for the state again (RFC 3339 time) */
|
||||
"again-at"?: string;
|
||||
/** the name of the object in the build module's steps objects that holds the step's answer when the step's value would be over what the steps state holds (design 47 G A-290, H2 H-A-412): a check's whole answer, its result then empty; a run's output, its result the run's answer without it. Read through the verb answer */
|
||||
"answer-object"?: string;
|
||||
/** when (RFC 3339 time) */
|
||||
"ended"?: string;
|
||||
"id": string;
|
||||
"node": string;
|
||||
/** the name of the object in the build module's outputs store that holds the step's answer when the step's value would be over what the steps state holds (design 47 G A-290): a check's whole answer, its result then empty; a run's output, its result the run's answer without it. Read through the verb output */
|
||||
"output-object"?: string;
|
||||
"owner"?: string;
|
||||
/** true when the step ended on a fault that passes (a transport fault), so a failed end after the last run says so */
|
||||
"passing"?: boolean;
|
||||
@@ -464,6 +465,8 @@ export interface StepAsk {
|
||||
|
||||
/** an ask's end, said by the build seat's holder on the node that ran it, whatever its asker (design 47 G section 602): a pipeline step's end names the pipeline, the commit and the fingerprint it was asked at, which the runner takes only from that holder's account (ADR 0666 sections 7, 21); the end of any other ask names its asker, the ask, the node, the outcome and when, and neither commit nor fingerprint (design 47 G section 548) */
|
||||
export interface StepEnded {
|
||||
/** the name of the object that holds the run's answer, kept by the build seat's holder in its steps objects, when the answer is over what the event carries (design 47 G A-254, H2 H-A-412); read through the verb answer */
|
||||
"answer-object"?: string;
|
||||
/** for an install, the reference the installed tree's archive was published under in the artifact store (the seat oci-artifact-registry; design 47 H2 §800, H-A-399 (2)) */
|
||||
"archive"?: string;
|
||||
"artifact"?: string;
|
||||
@@ -495,8 +498,6 @@ export interface StepEnded {
|
||||
"outcome": "passed" | "failed" | "nothing to run" | "could not run";
|
||||
/** the run's answer (its program's standard output's last line) when it fits the event (design 47 G A-254) */
|
||||
"output"?: string;
|
||||
/** the name of the object that holds the run's answer, kept by the build seat's holder, when the answer is over what the event carries (design 47 G A-254); read through the verb output */
|
||||
"output-object"?: string;
|
||||
"pipeline"?: string;
|
||||
"rerun"?: boolean;
|
||||
/** why it failed or could not run, naming the part not heard */
|
||||
@@ -743,6 +744,24 @@ export interface StepsAnswer {
|
||||
"steps"?: DetectedStep[];
|
||||
}
|
||||
|
||||
/** is what answer takes. */
|
||||
export interface AnswerInput {
|
||||
/** the ask's id, the `answer-object` of its step key or its step-ended naming it */
|
||||
"ask": string;
|
||||
/** 128 random bits the caller chooses: the subject token of this send's chunks and acknowledgements */
|
||||
"call": string;
|
||||
}
|
||||
|
||||
/** is what answer answers. */
|
||||
export interface AnswerAnswer {
|
||||
/** the ask's id */
|
||||
"ask": string;
|
||||
/** how many chunks are sent; 0 when this node keeps no answer of that ask */
|
||||
"chunks": number;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
}
|
||||
|
||||
/** is what output takes. */
|
||||
export interface OutputInput {
|
||||
/** the ask's id */
|
||||
|
||||
@@ -9,6 +9,7 @@ export const verbs = {
|
||||
drop: "drop",
|
||||
keptArtifact: "kept-artifact",
|
||||
steps: "steps",
|
||||
answer: "answer",
|
||||
output: "output",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user