[Webkit-unassigned] [Bug 180126] Add a test health page.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 30 09:55:22 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=180126
Alexey Proskuryakov <ap at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #327826|review? |review+
Flags| |
--- Comment #3 from Alexey Proskuryakov <ap at webkit.org> ---
Comment on attachment 327826
--> https://bugs.webkit.org/attachment.cgi?id=327826
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=327826&action=review
> Websites/perf.webkit.org/ChangeLog:8
> + Added a tet health page which shows freshness of a test.
s/tet/test/
> Websites/perf.webkit.org/public/v3/components/test-health-cell.js:42
> + return `/v3/#/charts?since=${Date.now() - 7 * 24 * 3600 * 1000}&paneList=((${this._platform.id()}-${this._metric.id()}))`;
Does performance dashboard code have a centralized place where URLs are built? Doing it in every view controller seems less than ideal.
> Websites/perf.webkit.org/public/v3/pages/test-health-page.js:18
> + for(const config of configs) {
Missing space after "for".
> Websites/perf.webkit.org/public/v3/pages/test-health-page.js:19
> + const platforms = Array.prototype.concat(...config.platformGroups.map((platformGroup) => platformGroup.platforms));
Another way to write this:
const platforms = config.platformGroups.reduce((result, group) => result.concat(group.platforms), []);
Not sure which one is easier to read.
> Websites/perf.webkit.org/public/v3/pages/test-health-page.js:28
> + const metrics = Array.prototype.concat(...config.metricGroups.map((metricGroup) =>
> + Array.prototype.concat(...metricGroup.subgroups.map((subgroup) => subgroup.metrics))));
Similar to the above, but this chain definitely appears tricky to read.
Given that you have to use an explicit iteration just below anyway, does the map/concat chain actually improve the code?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171130/82c3e326/attachment.html>
More information about the webkit-unassigned
mailing list