Skip to content

Commit

Permalink
fix: handle failed builds during verification
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor committed Aug 6, 2021
1 parent 71f5fed commit 799906f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bugmon/bugmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,18 @@ def _verify_fixed(self) -> None:
self.bug.branch,
self.bug.initial_build_id,
)
if initial.status != EvaluatorResult.BUILD_CRASHED:
if initial.status == EvaluatorResult.BUILD_PASSED:
self.report(
f"Bug appears to be fixed on {build_str} but "
f"BugMon was unable to reproduce using {initial.build_str}."
)
self._close_bug = True
elif initial.status == EvaluatorResult.BUILD_FAILED:
self.report(
f"Bug appears to be fixed on {build_str} but "
f"BugMon was unable to find a usable build for {self.bug.initial_build_id}."
)
self._close_bug = True
else:
self.report(f"Verified bug as fixed on rev {build_str}.")
self.bug.status = "VERIFIED"
Expand Down

0 comments on commit 799906f

Please sign in to comment.