Skip to content

Commit a227521

Browse files
authored
[component] Added explicit skip for Fenix::General bugs not being reclassified (#2586)
Fixes #2585
1 parent ea67586 commit a227521

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bugbot/rules/component.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ def meets_threshold(bug_data):
130130
for bug_id, data in fenix_general_classification.items():
131131
confidence = data["prob"][data["index"]]
132132

133-
if confidence > self.fenix_confidence_threshold:
133+
if (
134+
confidence > self.fenix_confidence_threshold
135+
and data["class"] != "General"
136+
):
134137
data["class"] = f"Fenix::{data['class']}"
135138
bugs[bug_id] = data
136139

@@ -160,6 +163,10 @@ def meets_threshold(bug_data):
160163
if "::" not in suggestion and bug["product"] == suggestion:
161164
continue
162165

166+
# No need to move a bug to the same component.
167+
if f"{bug['product']}::{bug['component']}" == suggestion:
168+
continue
169+
163170
suggestion = conflated_components_mapping.get(suggestion, suggestion)
164171

165172
if "::" not in suggestion:

0 commit comments

Comments
 (0)