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:
2026-11-12 11:16:13 +00:00
parent bc376c3fff
commit a6221caa6e
15 changed files with 184 additions and 21 deletions
+2
View File
@@ -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()