Skip to content

Commit b77bced

Browse files
committed
Bug 1968693 - remove rules differentiating between 'single tracking bugs' and other bugs
Single tracking bugs have been filed by default for some time now. There are few non-single tracking bugs left where single tracking bugs would be filed.
1 parent fb6fa5b commit b77bced

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

ui/shared/tabs/failureSummary/FailureSummaryTab.jsx

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -137,47 +137,6 @@ class FailureSummaryTab extends React.Component {
137137
this.setState({ bugSuggestionsLoading: true });
138138
BugSuggestionsModel.get(selectedJob.id).then(async (suggestions) => {
139139
suggestions.forEach((suggestion) => {
140-
const simpleCase = [];
141-
142-
// HACK: if not a test failure for any test in error set, ignore
143-
let crashLeak = false;
144-
if (suggestion.search.startsWith('PROCESS-CRASH')) {
145-
crashLeak = true;
146-
}
147-
148-
let isPerfTest = false;
149-
if (
150-
suggestion.search.includes('browser/base/content/test/performance')
151-
) {
152-
isPerfTest = true;
153-
}
154-
155-
if (suggestion.bugs.open_recent.length > 0) {
156-
suggestion.bugs.open_recent.forEach((bug) => {
157-
if (bug.summary.endsWith('single tracking bug')) {
158-
simpleCase.push(bug);
159-
}
160-
});
161-
}
162-
if (simpleCase.length === 0 && suggestion.bugs.all_others.length > 0) {
163-
suggestion.bugs.all_others.forEach((bug) => {
164-
if (
165-
bug.summary.endsWith('single tracking bug') &&
166-
bug.resolution !== 'FIXED'
167-
) {
168-
simpleCase.push(bug);
169-
}
170-
});
171-
}
172-
173-
// HACK: use the simple case if found.
174-
if (simpleCase.length > 0 && !isPerfTest && !crashLeak) {
175-
suggestion.bugs.open_recent = simpleCase;
176-
177-
// HACK: remove any other bugs, keep this simple.
178-
suggestion.bugs.all_others = [];
179-
}
180-
181140
suggestion.bugs.too_many_open_recent =
182141
suggestion.bugs.open_recent.length > thBugSuggestionLimit;
183142
suggestion.bugs.too_many_all_others =

0 commit comments

Comments
 (0)