Add assembled workflow compatibility coverage
This commit is contained in:
@@ -19,11 +19,6 @@ const (
|
||||
stageActionSkip stageAction = "skip"
|
||||
)
|
||||
|
||||
type stageDecision struct {
|
||||
Stage stage.Stage
|
||||
Action stageAction
|
||||
}
|
||||
|
||||
const (
|
||||
staleReasonForcedReplacement = "upstream stage was force-run"
|
||||
staleReasonChangedResult = "upstream stage result changed"
|
||||
@@ -39,17 +34,6 @@ type priorStageOutcome struct {
|
||||
outputs int
|
||||
}
|
||||
|
||||
func decideStageActions(stages []stage.Stage, m *manifest.Manifest, force bool) []stageDecision {
|
||||
out := make([]stageDecision, 0, len(stages))
|
||||
for _, s := range stages {
|
||||
out = append(out, stageDecision{
|
||||
Stage: s,
|
||||
Action: decideStageAction(s, m, force),
|
||||
})
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
func decideStageAction(s stage.Stage, m *manifest.Manifest, force bool) stageAction {
|
||||
// TODO: incorporate stale detection once checksum/input change tracking is implemented.
|
||||
if !force && stageSucceeded(m, s.Name()) {
|
||||
|
||||
Reference in New Issue
Block a user