Tell the next stage what failed when an error edge leads onward
A failed visit was recorded on its step only, so a landing gate that sent the run back to implement gave the implementer nothing about which checks failed. The diagnostic (bounded) is now the next stage's previous output and a memory entry.
This commit is contained in:
@@ -2193,6 +2193,10 @@ func (r *runner) runLoop(ctx context.Context, id int64, graph protocol.Graph, na
|
||||
if artifactsDir != "" {
|
||||
state.artifactDirs = append(state.artifactDirs, strconv.Itoa(sequence))
|
||||
}
|
||||
} else if step.Status == "failed" && step.Target != "" &&
|
||||
step.Target != protocol.FailureEnd && step.Target != protocol.SuccessEnd {
|
||||
// The error edge leads to another stage: tell it what failed.
|
||||
state.recordFailure(step)
|
||||
}
|
||||
// Step finished: report its outcome, routing target, diagnostic and the
|
||||
// artifacts recorded for the visit, plus the run's running step count.
|
||||
|
||||
Reference in New Issue
Block a user