The current query predicts the start of a failure span on the first failed build after a successful build, even if there are missing builds between the last success and the first failure.
Instead, begin the failure span immediately after the last successful build (i.e. starting with any absent builds).
The current query predicts the start of a failure span on the first failed build after a successful build, even if there are missing builds between the last success and the first failure.
Instead, begin the failure span immediately after the last successful build (i.e. starting with any absent builds).