In Pipeline Stage view the "Average stage times" take into account failed step builds.
I think that the "Average stage times" should take into account only successful step build.
Thanks for the improvement.