Notify only on unexpected run failures
Classify each failed run from its terminal visit: a stage that deliberately routes to #failure with a reason is expected and does not notify or ask for attention; errors, budgets, timeouts, interruptions and exhausted visit limits (from the recorded control evidence) are unexpected and always notify.
This commit is contained in:
@@ -1496,6 +1496,8 @@ func (r *runner) finishRunState(id int64, name, workspace, status, outcome, diag
|
||||
CurrentStage: currentStage,
|
||||
CompletedSteps: completed,
|
||||
FinishedAt: detail.FinishedAt,
|
||||
FailureKind: detail.FailureKind,
|
||||
FailureReason: detail.FailureReason,
|
||||
SizeBytes: size,
|
||||
}, true)
|
||||
r.kickSizes()
|
||||
|
||||
Reference in New Issue
Block a user