Skip to content

Commit

Permalink
fix across step states bug
Browse files Browse the repository at this point in the history
it was showing state cancelling when sub steps are all succeeded

Signed-off-by: Rui Yang <[email protected]>
  • Loading branch information
Rui Yang committed Nov 29, 2022
1 parent c43447c commit 6921162
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions web/elm/src/Build/StepTree/Models.elm
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,16 @@ mostSevereStepState model stepTree =
activeTreeSteps model stepTree
|> List.foldl
(\step state ->
case stepStateOrdering step.state state of
LT ->
step.state

_ ->
case step.buildStep of
Concourse.BuildStepDo _ ->
state
_ ->
case stepStateOrdering step.state state of
LT ->
step.state

_ ->
state
)
StepStateSucceeded

Expand Down

0 comments on commit 6921162

Please sign in to comment.