BM3 (sdk): an install is a StepAsk of the kind install, dispatched by RunAsk
node-build-node accepts install as a StepAsk holding an install job (the InstallAsk's fields and the module's fingerprint) under the version its archive is published with; install is its own queue on that seat alone and its holder pulls it. RunAsk dispatches the kind to the module's install body, which publishes the archive <module>:node-modules to the artifact store, and the install's end names the reference it answered. Builds: design 47 H2 §800; H-A-367 (4), H-A-379, H-A-399 (1) (2), H-A-403
This commit is contained in:
@@ -201,7 +201,7 @@ export type DeliveryStepAccept = StepAsk;
|
||||
export type RecheckAccept = StepAsk;
|
||||
|
||||
/** is the body of install. */
|
||||
export type InstallAccept = InstallAsk;
|
||||
export type InstallAccept = StepAsk;
|
||||
|
||||
/** is one value of the state steps under the key <asker>.<node>.<id>. */
|
||||
export type StepsByAskerNodeIDValue = Step;
|
||||
|
||||
+8
-4
@@ -214,12 +214,14 @@ export interface FetchRefusal {
|
||||
"reason": string;
|
||||
}
|
||||
|
||||
/** an ask of the kind install (design 47 H2 §800, H-A-367 (4)): the npm tree a module's package lock names, installed with an integrity-checked install and no install scripts, kept as an archive in the holder's outputs under the lock's digest */
|
||||
/** the job of an ask of the kind install (design 47 H2 §800, H-A-367 (4), H-A-403): the npm tree a module's package lock names, installed with an integrity-checked install and no install scripts, and published to the artifact store (the seat oci-artifact-registry) as the module's archive <module>:node-modules under the ask's version, which the builder's reservation covers */
|
||||
export interface InstallAsk {
|
||||
/** who asked it */
|
||||
"asker": string;
|
||||
/** the commit the lock is read at */
|
||||
"commit": string;
|
||||
/** the module's build-input fingerprint at the commit */
|
||||
"fingerprint": string;
|
||||
/** the ask's id */
|
||||
"id": string;
|
||||
/** the package lock's text at the commit */
|
||||
@@ -441,7 +443,9 @@ export interface StepAsk {
|
||||
"check"?: StepAskCheck;
|
||||
"compose"?: StepAskCompose;
|
||||
"id": string;
|
||||
/** build, check, compose or step */
|
||||
/** the install job of the accepted kind install of node-build-node alone (design 47 H2 §800, H-A-403): the module's npm tree its lock names, published as the module's archive <module>:node-modules under the ask's version */
|
||||
"install"?: InstallAsk;
|
||||
/** build, check, compose, step or install */
|
||||
"kind": string;
|
||||
/** go, typescript or image */
|
||||
"language": string;
|
||||
@@ -460,7 +464,7 @@ 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 {
|
||||
/** for an install, the name of the archive object in the holder's outputs that holds the installed tree (design 47 H2 §800) */
|
||||
/** 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;
|
||||
/** the ask's id, by which a reader takes only its own asks */
|
||||
@@ -544,7 +548,7 @@ export interface StepResult {
|
||||
|
||||
/** one pipeline step of one artifact at one commit (ADR 0666 sections 7, 8, 17): the step a build seat runs in its sandbox from the change's own heads, the names the lint step needs and the kept results it may skip */
|
||||
export interface StepRun {
|
||||
/** the install archive object the Go build module unpacks into the workspace before the step (design 47 H2 §800) */
|
||||
/** the reference of the install archive in the artifact store, which the Go build module fetches and unpacks into the workspace before the step (design 47 H2 §800, H-A-399 (2)) */
|
||||
"archive"?: string;
|
||||
/** the artifact reference, <module>:<artifact> */
|
||||
"artifact": string;
|
||||
|
||||
Reference in New Issue
Block a user