зеркало из https://github.com/mozilla/treeherder.git
Bug 1757222 - hack suggestion list to only be simplified bug view (#7397)
* Bug 1757222 - hack suggestion list to only be simplified bug view * Bump url-parse from 1.5.7 to 1.5.10 (#7399) Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.7 to 1.5.10. - [Release notes](https://github.com/unshiftio/url-parse/releases) - [Commits](https://github.com/unshiftio/url-parse/compare/1.5.7...1.5.10) --- updated-dependencies: - dependency-name: url-parse dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bug 1757222 - hack suggestion list to only be simplified bug view * Bug 1757222 - hack suggestion list to only be simplified bug view Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
Родитель
445ee07342
Коммит
40de4922ad
|
@ -74,6 +74,45 @@ class FailureSummaryTab extends React.Component {
|
|||
}
|
||||
BugSuggestionsModel.get(selectedJob.id).then(async (suggestions) => {
|
||||
suggestions.forEach((suggestion) => {
|
||||
let simpleCase = [];
|
||||
|
||||
// HACK: if not a test failure for any test in error set, ignore
|
||||
let crashTimeoutLeak = false;
|
||||
if (
|
||||
suggestion.search.startsWith('TEST-UNEXPECTED-TIMEOUT') ||
|
||||
suggestion.search.startsWith('PROCESS-CRASH')
|
||||
) {
|
||||
crashTimeoutLeak = true;
|
||||
}
|
||||
|
||||
if (suggestion.bugs.open_recent.length > 0) {
|
||||
suggestion.bugs.open_recent.forEach((bug) => {
|
||||
if (bug.summary.endsWith('single tracking bug')) {
|
||||
simpleCase = [bug];
|
||||
}
|
||||
});
|
||||
}
|
||||
if (suggestion.bugs.all_others.length > 0) {
|
||||
suggestion.bugs.all_others.forEach((bug) => {
|
||||
if (bug.summary.endsWith('single tracking bug')) {
|
||||
simpleCase = [bug];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// HACK: use the simple case if found.
|
||||
if (simpleCase.length > 0 && !crashTimeoutLeak) {
|
||||
suggestion.bugs.open_recent = simpleCase;
|
||||
|
||||
// HACK: remove the error message from the error line to avoid confusion
|
||||
suggestion.search =
|
||||
suggestion.search.split(suggestion.path_end)[0] +
|
||||
suggestion.path_end;
|
||||
|
||||
// HACK: remove any other bugs, keep this simple.
|
||||
suggestion.bugs.all_others = [];
|
||||
}
|
||||
|
||||
suggestion.bugs.too_many_open_recent =
|
||||
suggestion.bugs.open_recent.length > thBugSuggestionLimit;
|
||||
suggestion.bugs.too_many_all_others =
|
||||
|
|
Загрузка…
Ссылка в новой задаче