Skip to content

Commit

Permalink
[file_crash_bug] Exclude possible bit flip crashes (mozilla#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaibmujahid authored Oct 30, 2023
1 parent 9a627a7 commit c03fdcd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bugbot/crash/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ def find_new_actionable_crashes(
"_aggs.signature": [
"moz_crash_reason",
"reason",
"possible_bit_flips_max_confidence",
"_histogram.date",
"_cardinality.install_time",
"_cardinality.oom_allocation_size",
Expand Down Expand Up @@ -762,9 +763,13 @@ def handler(search_resp: dict, data: list):
# Potential bad hardware crash, skip it.
continue

# TODO: Add a filter using the `possible_bit_flips_max_confidence`
# field to exclude bad hardware crashes. The filed is not available yet.
# See: https://bugzilla.mozilla.org/show_bug.cgi?id=1816669#c3
bit_flips_count = sum(
row["count"] for row in facets["possible_bit_flips_max_confidence"]
)
bit_flips_percentage = bit_flips_count / crash["count"]
if bit_flips_percentage >= 0.2:
# Potential bad hardware crash, skip it.
continue

# TODO(investigate): is this needed since we are already
# filtering signatures that start with "OOM | "
Expand Down

0 comments on commit c03fdcd

Please sign in to comment.