Track latest stage attempt diagnostics
This commit is contained in:
@@ -31,6 +31,10 @@ type extractStage struct{}
|
||||
|
||||
func (extractStage) Name() string { return "extract" }
|
||||
|
||||
func (extractStage) NeedsAttemptViews(env *Env) bool {
|
||||
return env == nil || env.Config == nil || env.Config.Pipeline == nil || env.Config.Pipeline.Notarius != nil && env.Config.Pipeline.Notarius.Enabled
|
||||
}
|
||||
|
||||
func (extractStage) Run(ctx context.Context, env *Env, m *manifest.Manifest) (result *StageResult, resultErr error) {
|
||||
if env == nil || env.Config == nil || env.Config.Pipeline == nil || env.Config.Session == nil {
|
||||
return nil, fmt.Errorf("extract: resolved stage environment config is required")
|
||||
|
||||
@@ -49,6 +49,11 @@ type RunWorkspacePolicy interface {
|
||||
RequiresRunWorkspace() bool
|
||||
}
|
||||
|
||||
// AttemptViewPolicy identifies a known self-skip before any attempt paths are created.
|
||||
type AttemptViewPolicy interface {
|
||||
NeedsAttemptViews(*Env) bool
|
||||
}
|
||||
|
||||
const maxResumeReasonLength = 512
|
||||
|
||||
// ResumeValidation reports whether a previously succeeded stage can be reused.
|
||||
|
||||
Reference in New Issue
Block a user