A-C2: a build module runs the pipeline step kind step and says its end on its node (issue 1966)
The runner asks a lint or test step of an artifact as the build seat's accepted kind step, and hears its end as the seat's step-ended on the node that ran it (ADR 0666 sections 7, 8, 21; design 47 *The steps and who serves them* line 571 and *Asked on a work queue, ended by an event* lines 583-590 at hq b229f5c4). The build modules' shared package runs a test step as a check of its one level, carries the packages whose digest the ask names kept, keeps what it passed and says the counts; a level with no tests ends nothing to run, a source fault could not run, and a transport fault or an end that could not be said is handed back unsaid, so the work queue gives the step again and it ends once under its ask's id. The neutral forms are the domain SDK's (sdk/buildstep pipelinestep.go, mesh-delivery dc0df1b5); the Go module says the end through the runtime's seat publish. Milestone 47/G, research 086 area A. Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ (Joined from 72fee3c6.) Builds: design 47 G §22, §24, §86, §116, §140 (BLD3, BLD4) Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
@@ -56,6 +56,8 @@ func (m *Module) askSteps(steps []StepTool) buildstep.AskSteps {
|
||||
Has: m.Has,
|
||||
Release: func(ws string) error { return m.spaces().Release(ws) },
|
||||
Logf: m.Say,
|
||||
Node: m.Node,
|
||||
SayStep: m.sayStep(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,3 +153,12 @@ func (m *Module) endLeftRunning(ctx context.Context, scan buildrun.Scan, booted
|
||||
func (m *Module) stepScan() buildrun.Scan {
|
||||
return buildrun.ScanOf(stdio.State(seat.StateSteps))
|
||||
}
|
||||
|
||||
// sayStep says a pipeline step's end on this node's subject of the seat (design 47 *Asked on a work queue, ended by an
|
||||
// event*, lines 584-586 at b229f5c4): SayStep when a test sets it, else the runtime's seat publish.
|
||||
func (m *Module) sayStep() func(sdkstep.StepEnded) error {
|
||||
if m.SayStep != nil {
|
||||
return m.SayStep
|
||||
}
|
||||
return buildstep.SayStepOn(sdkstep.AskGo, m.Node, stdio.SeatPublish)
|
||||
}
|
||||
|
||||
@@ -102,6 +102,8 @@ type Module struct {
|
||||
Settings string
|
||||
Capacity func() int
|
||||
ReadKept func(key string) (json.RawMessage, error)
|
||||
// SayStep says a pipeline step's end (buildstep.AskSteps.SayStep); the seat's publish on this node when nil.
|
||||
SayStep func(sdkstep.StepEnded) error
|
||||
// ReadManifest asks the delivery indexer's read tool (ManifestsTool) for one manifest by its key, which a compose ask's
|
||||
// request names its manifests by (compose.go); it reads none of the indexer's state (ADR 0596); GoModCache, when set, is the Go module cache in place of Cache's (a test).
|
||||
ReadManifest func(key string) (json.RawMessage, error)
|
||||
|
||||
Reference in New Issue
Block a user