Skip to content

Commit

Permalink
[crash/analyzer] Failback to reports from crash clouseau (#2361)
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaibmujahid authored Feb 29, 2024
1 parent 0544d6a commit 14fb24a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bugbot/crash/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,15 +592,16 @@ def fetch_representative_processed_crash(self) -> dict:
for i, report in enumerate(candidate_reports):
uuid = report["uuid"]
processed_crash = socorro.ProcessedCrash.get_processed(uuid)[uuid]

if first_representative_report is None:
first_representative_report = processed_crash

if (
limit_to_top_proto_signature
and processed_crash["proto_signature"] != self.top_proto_signature
):
continue

if first_representative_report is None:
first_representative_report = processed_crash

if not self._is_corrupted_crash_stack(processed_crash):
return processed_crash

Expand All @@ -614,7 +615,7 @@ def fetch_representative_processed_crash(self) -> dict:
return first_representative_report

raise NoCrashReportFoundError(
f"No crash report found with the most frequent proto signature for {self.signature_term}."
f"No crash report found for {self.signature_term}."
)

@cached_property
Expand Down

0 comments on commit 14fb24a

Please sign in to comment.