[file_crash_bug] Fix the template and re-generate bugs (#2180)

This commit is contained in:
Suhaib Mujahid 2023-07-24 09:55:06 -04:00 коммит произвёл GitHub
Родитель 5628e5ae77
Коммит e5eda34d4a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 19 добавлений и 6 удалений

Просмотреть файл

@ -45,6 +45,10 @@ ALLOCATOR_RANGES_32_BIT = (
(addr - offset, addr + offset) for addr, offset in ALLOCATOR_ADDRESSES_32_BIT
)
# NOTE: If you make changes that affect the output of the analysis, you should
# increment this number. This is needed in the experimental phase only.
EXPERIMENT_VERSION = 3
def is_near_null_address(str_address) -> bool:
"""Check if the address is near null.
@ -879,6 +883,13 @@ class SignaturesDataFetcher:
).wait()
# TODO: remove the call to DevBugzilla after moving to production
for params in params_list:
# Excluded only filed bugs with the latest version. This will
# re-generate the bugs after bumping the version.
n = int(utils.get_last_field_num(params))
params[f"f{n}"] = "status_whiteboard"
params[f"o{n}"] = "substring"
params[f"v{n}"] = f"[bugbot-crash-v{EXPERIMENT_VERSION}]"
DevBugzilla(
timeout=timeout,
queries=[

Просмотреть файл

@ -12,16 +12,18 @@ from bugbot import logger, utils
from bugbot.bug.analyzer import BugAnalyzer
from bugbot.bzcleaner import BzCleaner
from bugbot.crash import socorro_util
from bugbot.crash.analyzer import DevBugzilla, SignatureAnalyzer, SignaturesDataFetcher
from bugbot.crash.analyzer import (
EXPERIMENT_VERSION,
DevBugzilla,
SignatureAnalyzer,
SignaturesDataFetcher,
)
from bugbot.user_activity import UserActivity, UserStatus
class FileCrashBug(BzCleaner):
"""File bugs for new actionable crashes."""
# NOTE: If you make changes that affect the output of the rule, you should
# increment this number. This is needed in the experimental phase only.
VERSION = 2
MAX_BUG_TITLE_LENGTH = 255
FILE_ON_BUGZILLA_DEV = True
@ -138,7 +140,7 @@ class FileCrashBug(BzCleaner):
"blocks": "bugbot-auto-crash",
"type": "defect",
"keywords": ["crash"],
"status_whiteboard": f"[bugbot-crash-v{self.VERSION}]",
"status_whiteboard": f"[bugbot-crash-v{EXPERIMENT_VERSION}]",
"summary": title,
"product": signature.crash_component.product,
"component": signature.crash_component.name,

Просмотреть файл

@ -30,7 +30,7 @@ Top {{ frames|length }} frames of crashing thread:
By querying {{ signature_details_channel }} crashes reported within the last {{ signature_details_delta }}, here are some insights about the signature:
- **First crash report:** signature.first_crash_date
- **First crash report:** {{ signature.first_crash_date }}
- **Crash kind:** {{ "Plugin Crash" if signature.is_plugin_crash else "Browser Crash" }}
- **Is startup crash:** {{ "Yes - " if signature.is_startup_related_crash else "No" }}
{%- if signature.is_startup_crash -%}