Title: [250744] trunk/Tools
- Revision
- 250744
- Author
- [email protected]
- Date
- 2019-10-04 13:58:32 -0700 (Fri, 04 Oct 2019)
Log Message
results.webkit.org: Remove percentages from bubbles
https://bugs.webkit.org/show_bug.cgi?id=202591
Rubber-stamped by Aakash Jain.
* resultsdbpy/resultsdbpy/view/static/js/timeline.js:
(inPlaceCombine): Add 'worst' key to combined results.
(TimelineFromEndpoint.constructor): Use the 'worst' key to populate the tag
instead of a percentage.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (250743 => 250744)
--- trunk/Tools/ChangeLog 2019-10-04 20:25:56 UTC (rev 250743)
+++ trunk/Tools/ChangeLog 2019-10-04 20:58:32 UTC (rev 250744)
@@ -1,3 +1,15 @@
+2019-10-04 Jonathan Bedard <[email protected]>
+
+ results.webkit.org: Remove percentages from bubbles
+ https://bugs.webkit.org/show_bug.cgi?id=202591
+
+ Rubber-stamped by Aakash Jain.
+
+ * resultsdbpy/resultsdbpy/view/static/js/timeline.js:
+ (inPlaceCombine): Add 'worst' key to combined results.
+ (TimelineFromEndpoint.constructor): Use the 'worst' key to populate the tag
+ instead of a percentage.
+
2019-10-04 Aakash Jain <[email protected]>
[EWS] Assign webkit-misc to various queues
Modified: trunk/Tools/resultsdbpy/resultsdbpy/view/static/js/timeline.js (250743 => 250744)
--- trunk/Tools/resultsdbpy/resultsdbpy/view/static/js/timeline.js 2019-10-04 20:25:56 UTC (rev 250743)
+++ trunk/Tools/resultsdbpy/resultsdbpy/view/static/js/timeline.js 2019-10-04 20:58:32 UTC (rev 250744)
@@ -213,6 +213,7 @@
}
const testsRegex = /tests_([a-z])+/;
+const worstRegex = /worst_([a-z])+/;
function inPlaceCombine(out, obj)
{
@@ -240,7 +241,14 @@
}
// Set of special case keys which need to be added together
+ if (key.match(worstRegex))
+ return;
if (key.match(testsRegex)) {
+ const worstKey = `worst_${key}`;
+ out[worstKey] = Math.max(
+ out[worstKey] ? out[worstKey] : out[key],
+ obj[worstKey] ? obj[worstKey] : obj[key],
+ );
out[key] += obj[key];
return;
}
@@ -252,8 +260,14 @@
}
});
Object.keys(obj).forEach(key => {
- if (key.match(testsRegex) && !(key in out))
+ if (!key.match(testsRegex))
+ return;
+ const worstKey = `worst_${key}`;
+ if (!(key in out)) {
out[key] = obj[key];
+ out[worstKey] = obj[key];
+ }
+ out[worstKey] = Math.max(out[worstKey], obj[worstKey] ? obj[worstKey] : obj[key]);
});
}
return out;
@@ -496,16 +510,13 @@
let color = colorMap.success;
let symbol = Expectations.symbolMap.success;
if (data.stats) {
- tag = data.stats[`tests${willFilterExpected ? '_unexpected_' : '_'}failed`];
+ if (data.start_time)
+ tag = data.stats[`tests${willFilterExpected ? '_unexpected_' : '_'}failed`];
+ else
+ tag = data.stats[`worst_tests${willFilterExpected ? '_unexpected_' : '_'}failed`];
+ if (data.stats.worst_tests_run <= 1)
+ tag = null;
- // If we have failures that are a result of multiple runs, combine them.
- if (tag && !data.start_time) {
- tag = Math.ceil(tag / data.stats.tests_run * 100 - .5);
- if (!tag)
- tag = '<1';
- tag = `${tag} %`
- }
-
Expectations.failureTypes.forEach(type => {
if (data.stats[`tests${willFilterExpected ? '_unexpected_' : '_'}${type}`] > 0) {
color = colorMap[type];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes