1 2015-06-16 Ryosuke Niwa <rniwa@webkit.org>
3 v2 UI should have buttons to breakdown a test
4 https://bugs.webkit.org/show_bug.cgi?id=146010
6 Reviewed by Chris Dumez.
8 Added buttons beneath each chart pane to add "alternative panes". By default, it shows every platform
9 as well as "Breakdown" to add all subtests' metrics.
11 Also removed the metric submenu from tests that had exactly one metric. When a test only measures Time
12 for example, we make the test itself clickable instead of showing a submenu that only contains one item.
15 (App.ChartsController.addAlternativePanes): Added.
16 (App.TestProxyForPopup.children): Calls _updateChildren and returns this._children.
17 (App.TestProxyForPopup.actionName): Added.
18 (App.TestProxyForPopup.actionArgument): Added.
19 (App.TestProxyForPopup._updateChildren): Extracted from children. Now also sets _actionName and
20 _actionArgument in the case there was exactly one metric so that showing submenu is unnecessary.
21 (App.PaneController.alternativePanes): Added. Returns the list of alternative panes. The platform list
22 excludes ones that don't have this metric (e.g. iOS doesn't have desktop PLT results) as well as ones
23 that are already present in the list of panes.
24 * public/v2/chart-pane.css: Added CSS rules for alternative pane buttons beneath the chart panes.
25 * public/v2/index.html:
26 * public/v2/manifest.js:
27 (App.Metric.childMetrics): Added.
29 2015-06-15 Ryosuke Niwa <rniwa@webkit.org>
31 Build fix after r185574.
34 (set get App.Pane.Ember.Object.extend.):
36 2015-06-15 Ryosuke Niwa <rniwa@webkit.org>
40 * tools/pull-os-versions.py:
43 2015-06-15 Ryosuke Niwa <rniwa@webkit.org>
45 Perf dashboard should be able to list iOS versions as well as OS X versions
46 https://bugs.webkit.org/show_bug.cgi?id=146003
48 Reviewed by Stephanie Lewis.
50 Generalized pull-osx.py so that it can run an arbitrary shell command to fetch OS versions based on
51 information specified in config.json.
53 * tools/pull-os-versions.py: Renamed from pull-osx.py.
54 (main): Use available_builds_from_command when 'customCommands' is specified.
55 (available_builds_from_command): Added. Executes a shell command to fetch a list of available builds.
56 (fetch_available_builds): Now takes the repository name.
58 2015-06-15 Ryosuke Niwa <rniwa@webkit.org>
60 Removed a superfluous console.log per Chris's comment.
64 2015-06-15 Ryosuke Niwa <rniwa@webkit.org>
66 Analysis task should show all possible revisions for A/B testing
67 https://bugs.webkit.org/show_bug.cgi?id=145996
69 Reviewed by Chris Dumez.
71 * public/api/commits.php:
72 (fetch_commits_between): When the time stamp is not available for commits, use revision numbers
73 to find revisions between two ranges. This is necessary for OS X and iOS versions since they don't
77 (App.AnalysisTaskController.updateRootConfigurations): Fetch commits between two end points.
78 (App.AnalysisTaskController._createConfiguration): Extracted from updateRootConfigurations. List
79 the fetched list of commits if available.
80 (App.AnalysisTaskController._serializeNumbersSkippingConsecutiveEntries): Added. Serializes an list
81 of numbers intelligently. For example, [1, 2, 4, 5] turns into "1-2, 4-5". Without this, some lists
82 of points shown in the A/B testing configurations become too long.
84 * public/v2/commits-viewer.js:
85 (App.CommitsViewerComponent.commitsChanged):
88 (CommitLogs.fetchCommits): Renamed from fetchForTimeRange.
90 2015-06-13 Ryosuke Niwa <rniwa@webkit.org>
92 Add a script to post new OS X builds to perf dashboard
93 https://bugs.webkit.org/show_bug.cgi?id=145955
95 Reviewed by Darin Adler.
97 Added a new script pull-osx.py and relaxed the restrictions on commits accepted by the dashboard API.
99 * public/api/report-commits.php:
100 (main): Allow more characters than [A-Za-z0-9] in revision. e.g. "10.10.3 14D136".
101 Also allow commits without the author, commit time, and commit message as OS versions do not have those.
103 * tools/pull-osx.py: Added.
104 (main): Fetch the list of builds from a website and submit them per submissionSize with submissionInterval.
105 Once all builds have been submitted, wait for a long time as specified by fetchInterval.
106 (setup_auth): Sets up basic or digest auth to access the dashboard.
107 (fetch_available_builds): Fetches and parses the XML document from an internal website.
108 (textContent): A helper function to get the text content out of a XML node.
109 (submit_commits): Submits commits to the perf dashboard.
114 * tools/util.py: Extracted submit_commits and text_content from pull-svn.py to be reused in pull-osx.py.
116 2015-06-13 Ryosuke Niwa <rniwa@webkit.org>
118 Perf dashboard's v2 UI shouldn't hide auto-detected outliers
119 https://bugs.webkit.org/show_bug.cgi?id=145940
121 Reviewed by Darin Adler.
123 Don't fallback to the default strategies for moving averages and envelope when one is not specified.
124 Also deleted the code to mark points outside the envelop as outliers.
128 2015-06-12 Ryosuke Niwa <rniwa@webkit.org>
130 Unreviewed build fix for merging platforms.
132 * public/admin/platforms.php:
134 2015-06-09 Ryosuke Niwa <rniwa@webkit.org>
136 Unreviewed build fix. Some builder names are really long.
140 2015-05-22 Ryosuke Niwa <rniwa@webkit.org>
142 Show results and status before revisions for A/B testing results
143 https://bugs.webkit.org/show_bug.cgi?id=145327
145 Reviewed by Chris Dumez.
147 Place the results and the status columns before the columns for revisions.
148 Also show the absolute difference as well as the relative difference between the averages of A and B.
151 (App.TestGroupPane._populate):
152 (App.TestGroupPane._computeStatisticalSignificance):
153 * public/v2/index.html:
155 2015-05-20 Ryosuke Niwa <rniwa@webkit.org>
157 Build fix after r184591.
159 * public/v2/manifest.js:
161 2015-05-20 Ryosuke Niwa <rniwa@webkit.org>
163 Build fix. Use POSIX timestamp instead of human readable string for the commit time.
165 * public/include/build-requests-fetcher.php:
167 2015-05-20 Ryosuke Niwa <rniwa@webkit.org>
169 UI to associate bugs with an analysis task is crappy
170 https://bugs.webkit.org/show_bug.cgi?id=145198
172 Reviewed by Andreas Kling.
174 Make the UI less crappy by linkifying bug numbers and adding an explicit button to disassociate
175 a bug and a separate select view with a text field to associate a new bug instead of implicitly
176 updating or deleting the existing record based on what the user had typed.
178 * init-database.sql: Removed the constraint that each bug tracker should appear exactly once for
179 a given analysis task since it's perfectly reasonable for a given task to be associated with
180 multiple WebKit bugs.
182 * public/privileged-api/associate-bug.php:
183 (main): Only remove the bug specified by newly added bugToDelete instead of implicitly deleting
184 one that matches the analysis task and the bug tracker when the bug number is falsey.
186 * public/v2/analysis.js:
187 (App.Bug.url): Added.
188 (App.BugAdapter.deleteRecord): Added. Uses the privileged API to delete the record.
193 (App.AnalysisTaskController.actions.addBug): Added.
194 (App.AnalysisTaskController.actions.deleteBug): Added.
195 (App.AnalysisTaskController.associateBug): Deleted.
197 * public/v2/index.html: Updated the templates.
199 * public/v2/manifest.js:
200 (App.BugTracker.urlFromBugNumber): Added.
202 2015-05-20 Ryosuke Niwa <rniwa@webkit.org>
204 A/B testing rootSets should provide commit times as well as revisions
205 https://bugs.webkit.org/show_bug.cgi?id=145207
207 Reviewed by Andreas Kling.
209 Some continuous build systems need the commit time as well as the revision number / hash so provide one
210 in the root sets but maintain the backwards compatibility with buildbots that use revision number directly.
212 * public/include/build-requests-fetcher.php:
213 (BuildRequestsFetcher::fetch_roots_for_set): Made the revision info an associative array that contains
214 the revision number as well as the commit time.
215 * tools/sync-with-buildbot.py:
216 (schedule_request): Removed "replacement" which was a superfluous copy of "roots". Use "revision" values
217 when the JSON configuration refers to "root". This is necessary in buildbot instances that require WebKit
218 revision to be specified on its own field instead of it being a JSON that contains "revision" and "time".
220 2015-05-19 Ryosuke Niwa <rniwa@webkit.org>
222 Build fix. Don't fall into an infinite loop when value (renamed from bytes) is zero.
224 * public/v2/manifest.js:
225 (App.Manifest.Ember.Controller.extend.):
226 (App.Manifest.Ember.Controller.extend):
228 2015-05-19 Ryosuke Niwa <rniwa@webkit.org>
230 Don't show unit (bytes) separaetly from SI suffixes (K, M, etc...)
231 https://bugs.webkit.org/show_bug.cgi?id=145181
233 Rubber-stamped by Chris Dumez.
235 Show 'MB' in each y-axis label instead of showing 'bytes' separately and suffixing each label with just 'M'
236 for clarity. This change also reduces the code complexity.
240 (App.AnalysisTaskController._chartDataChanged):
241 (App.TestGroupPane._createConfigurationSummary):
243 (RunsData.unitFromMetricName): Use 'B' instead of 'bytes' as the unit.
245 * public/v2/interactive-chart.js: Removed the support for showing units separately.
246 (App.InteractiveChartComponent._constructGraphIfPossible):
247 (App.InteractiveChartComponent._relayoutDataAndAxes)
249 * public/v2/manifest.js:
250 (App.Manifest._makeFormatter): Renamed from _formatBytes. Support more SI suffixes such as micro and mili.
251 Now takes the unit as the first argument. Adjust the base unit if it's 'ms'.
252 (App.Manifest._formatFetchedData): Removed unit and formatWithUnit now that all all formatters would
253 automatically include unit.
255 2015-05-18 Ryosuke Niwa <rniwa@webkit.org>
257 REGRESSION: v2 UI reports a higher memory usage
258 https://bugs.webkit.org/show_bug.cgi?id=145151
260 Reviewed by Chris Dumez.
262 The bug was caused by v2 UI using 1000 to divide the number of bytes instead of by 1024 as done in v1.
263 Fixed the bug by manually implementing the formatter as done in v1.
265 * public/v2/manifest.js:
266 (App.Manfiest._formatBytes): Added.
267 (App.Manifest._formatFetchedData): Use _formatByte instead of format('s').
269 2015-05-11 Ryosuke Niwa <rniwa@webkit.org>
271 Unreviewed build fix. Add "Duration" as a time metric.
273 * public/js/helper-classes.js:
275 (RunsData.unitFromMetricName):
277 2015-05-06 Ryosuke Niwa <rniwa@webkit.org>
279 Perf dashboard treats Speedometer and JetStream as smaller is better
280 https://bugs.webkit.org/show_bug.cgi?id=144711
282 Reviewed by Chris Dumez.
284 Added the support for "Score" metric.
286 * public/js/helper-classes.js:
289 (RunsData.unitFromMetricName):
290 (RunsData.isSmallerBetter):
292 2015-04-23 Ryosuke Niwa <rniwa@webkit.org>
294 Build fix after r183232.
296 * public/include/json-header.php:
298 2015-04-23 Ryosuke Niwa <rniwa@webkit.org>
300 Perf dashboard should automatically detect regressions
301 https://bugs.webkit.org/show_bug.cgi?id=141443
303 Reviewed by Anders Carlsson.
305 Added a node.js script detect-changes.js to detect potential regressions and progressions
306 on the graphs tracked on v2 dashboards.
308 * init-database.sql: Added analysis_strategies table and task_segmentation and task_test_range
309 columns to analysis_tasks to keep the segmentation and test range selection strategies used
310 to create an analysis task.
312 * public/api/analysis-tasks.php:
313 (format_task): Include task_segmentation and analysis_tasks in the results.
315 * public/include/json-header.php:
316 (remote_user_name): Returns null when the privileged API is authenticated as a slave instead
317 of a CSRF prevention token.
318 (should_authenticate_as_slave): Added.
319 (ensure_privileged_api_data_and_token_or_slave): Added. Authenticate as a slave if slaveName
320 and slavePassword are specified. Since detect-changes.js and other slaves are not susceptible
321 to a CSRF attack, we don't need to check a CSRF token.
323 * public/privileged-api/create-analysis-task.php:
324 (main): Use ensure_privileged_api_data_and_token_or_slave to let detect-changes.js create new
325 analysis task. Also add or find segmentation and test range selection strategies if specified.
327 * public/privileged-api/create-test-group.php:
328 (main): Use ensure_privileged_api_data_and_token_or_slave.
330 * public/privileged-api/generate-csrf-token.php:
333 (App.Pane._computeMovingAverageAndOutliers): _executeStrategy has been moved to Statistics.
335 * public/v2/data.js: Export Measurement, RunsData, TimeSeries. Used in detect-changes.js.
336 (Array.prototype.find): Added a polyfill to be used in node.js.
337 (RunsData.fetchRuns):
338 (RunsData.pathForFetchingRuns): Extracted from fetchRuns. Used in detect-changes.js.
339 (RunsData.createRunsDataInResponse): Extracted from App.Manifest._formatFetchedData to use it
340 in detect-changes.js.
341 (RunsData.unitFromMetricName): Ditto.
342 (RunsData.isSmallerBetter): Ditto.
343 (RunsData.prototype._timeSeriesByTimeInternal): Added secondaryTime to sort points when commit
345 (TimeSeries): When commit times are identical, order points based on build time. This is needed
346 for when we trigger two builds at two different OS versions with the same WebKit revision since
347 OS versions don't change the commit times.
348 (TimeSeries.prototype.findPointByIndex): Added.
349 (TimeSeries.prototype.rawValues): Added.
351 * public/v2/js/statistics.js:
352 (Statistics.TestRangeSelectionStrategies.[0]): Use the 99% two-sided probability as claimed in the
353 description of this strategy instead of the default probability. Also fixed a bug that debugging
354 code was referring to non-existent variables.
355 (Statistics.executeStrategy): Moved from App.Pane (app.js).
357 * public/v2/manifest.js:
358 (App.Manifest._formatFetchedData): Various code has been extracted into RunsData in data.js to be
359 used in detect-changes.js.
361 * tools/detect-changes.js: Added. The script fetches the manifest JSON, analyzes each graph in
362 the v2 dashboards, and creates an analysis task for the latest regression or progression detected.
363 It also schedules an A/B testing if possible and notifies another server; e.g. to send an email.
364 (main): Loads the settings JSON specified in the argument.
365 (fetchManifestAndAnalyzeData): The main loop that periodically wakes up to do the analysis.
366 (mapInOrder): Executes callback sequentially (i.e. blocking) on each item in the array.
367 (configurationsForTesting): Finds every (platform, metric) pair to analyze in the v2 dashbaords,
368 and computes various values for when statistically significant changes are detected later.
369 (analyzeConfiguration): Finds potential regressions and progression in the last X days where X
370 is the specified maximum number of days using the specified strategies. Sort the resultant ranges
371 in chronological order and create a new analysis task for the very last change we detected. We'll
372 eventually create an analysis task for all detected changes since we're repeating the analysis in
373 fetchManifestAndAnalyzeData after some time.
374 (computeRangesForTesting): Fetch measured values and compute ranges to test using the specified
375 segmentation and test range selection strategies. Once ranges are found, find overlapping analysis
376 tasks as they need to be filtered out in analyzeConfiguration to avoid creating multiple analysis
377 tasks for the same range (e.g. humans may create one before the script gets to do it).
378 (createAnalysisTaskAndNotify): Create a new analysis task for the specified range, trigger an A/B
379 testing if available, and notify another server with a HTML message as specified.
380 (findStrategyByLabel):
381 (changeTypeForRange): A change is a regression if values are getting larger in a smaller-is-better
382 test or values are getting smaller in a larger-is-better test and vice versa.
383 (summarizeRange): Create a human readable string that summarizes the change detected. e.g.
384 "Potential 3.2% regression detected between 2015-04-20 12:00 and 17:00".
388 (postNotification): Recursively replaces $title and $massage in the specified JSON template.
389 (instantiateNotificationTemplate):
392 2015-04-20 Ryosuke Niwa <rniwa@webkit.org>
394 Perf dashboard should have UI to set status on analysis tasks
395 https://bugs.webkit.org/show_bug.cgi?id=143977
397 Reviewed by Chris Dumez.
399 Added the UI to set the result of an analysis task to 'progression', 'regression', 'unchanged', and 'inconclusive'
400 as well as a boolean indicating whether creating the analysis task was the right thing to do or not.
401 The latter will be a useful metric once we start automatically creating analysis tasks.
403 * init-database.sql: Added two columns to analysis_tasks table.
404 * public/api/analysis-tasks.php: Include the added columns in the JSON.
405 * public/include/db.php:
406 (Database::to_database_boolean): Added.
407 * public/include/json-header.php:
408 (require_match_one_of_values): Added.
409 * public/privileged-api/update-analysis-task.php: Added. Updates 'result' and 'needed' values of an analysis task.
411 * public/v2/analysis.js:
412 (App.AnalysisTask.result): Added.
413 (App.AnalysisTask.needed): Added. We don't use DS.attr('boolean') here since that would coerce null into false
414 and we want to differentiate null from false in order to differentiate the null-ness of the value.
415 (App.AnalysisTask.saveStatus): Added.
416 (App.AnalysisTask.statusLabel): Use 'result' as the label if it's set and all build requests have been processed.
419 (App.AnalysisTaskController.analysisResultOptions): Added.
420 (App.AnalysisTaskController.shouldNotHaveBeenCreated): Added.
421 (App.AnalysisTaskController.needsFeedback): Added. Show the checkbox to indicate the analysis task should not have
422 been created if 'no change' is selected.
423 (App.AnalysisTaskController._updateChosenAnalysisResult): Added.
424 (App.AnalysisTaskController.actions.saveStatus): Added.
425 * public/v2/index.html: Extracted a partial template for updating the bug numbers. Also added the UI to update
426 'result' and 'needed' values of the analysis task.
428 2015-04-10 Ryosuke Niwa <rniwa@webkit.org>
430 Unreviewed build fix. Updated config.json after recent changes.
434 2015-04-10 Ryosuke Niwa <rniwa@webkit.org>
436 Make the analysis page more useful
437 https://bugs.webkit.org/show_bug.cgi?id=143617
439 Reviewed by Chris Dumez.
441 * public/api/analysis-tasks.php:
442 (fetch_and_push_bugs_to_tasks): Added total and finished numbers of build requests associated
443 with the fetched analysis tasks as buildRequestCount and finishedBuildRequestCount respectively.
444 * public/v2/analysis.js:
445 (App.AnalysisTask.formattedCreatedAt): Added.
446 (App.AnalysisTask._addLeadingZero): Added.
447 (App.AnalysisTask.buildRequestCount): Added.
448 (App.AnalysisTask.finishedBuildRequestCount): Added.
449 (App.AnalysisTask.statusLabel): Added. Status total and finished numbers of build requests.
450 (App.AnalysisTask.testGroups):
451 (App.AnalysisTask.triggerable):
452 (App.AnalysisTask.label):
454 * public/v2/app.css: Tweaked style rules for the analysis page.
457 (App.buildPopup): Sort the list of platforms by name.
458 (App.AnalysisRoute.model): Sort the list of analysis tasks by the order they are created.
459 (App.AnalysisTaskController._fetchedManifest): Added elementId to associate bug tracker names
460 such as "Bugzilla" with the corresponding text field.
462 * public/v2/index.html: Added a bunch of columns to the analysis page and also wrapped the table
463 showing A/B testing results in a div with overflow: scroll so that it always leaves enough space
464 for the accompanying graph.
466 2015-04-09 Ryosuke Niwa <rniwa@webkit.org>
468 Perf dashboard should automatically select ranges for A/B testing
469 https://bugs.webkit.org/show_bug.cgi?id=143580
471 Reviewed by Chris Dumez.
473 Added a new statistics option for picking a A/B test range selection strategy.
474 The selected ranges are shown in the graph using the same UI to show analysis tasks.
477 (App.DashboardPaneProxyForPicker._platformOrMetricIdChanged): Updated the query parameters for
478 charts page used by the dashboard since we've added a new parameter at the end.
479 (App.Pane.ranges): Added. Merges ranges created for analysis tasks and A/B testing.
480 (App.Pane.updateStatisticsTools): Clone and set the test range selection strategies.
481 (App.Pane._cloneStrategy): Copy isSegmentation.
482 (App.Pane._updateMovingAverageAndEnvelope): Set testRangeCandidates.
483 (App.Pane._movingAverageOrEnvelopeStrategyDidChange): Update the charts when a new text range
484 selection strategy is picked by the user.
485 (App.Pane._computeMovingAverageAndOutliers): Compute the test ranges using the chosen strategy.
486 Avoid going through isAnomalyArray when no anomaly detection strategy is enabled. Also changed
487 the return value from the moving average time series to a dictionary that contains the moving
488 average time series, a dictionary of anomalies, and an array of test ranges.
489 (App.ChartsController._parsePaneList): Parse the test range selection strategy configuration.
490 (App.ChartsController._serializePaneList): Ditto for serialization.
491 (App.ChartsController._scheduleQueryStringUpdate): Update the URL hash when the user picks a new
492 test range selection strategy.
494 * public/v2/chart-pane.css: Fixed a typo as well as added a CSS rule for test ranges markers.
496 * public/v2/index.html: Added UI for selecting a test range selection strategy.
498 * public/v2/interactive-chart.js:
499 (App.InteractiveChartComponent._rangesChanged): Pass down "status" to be used as a class name.
501 * public/v2/js/statistics.js:
502 (Statistics.MovingAverageStrategies): Added isSegmentation to segmentation strategies.
503 (Statistics.TestRangeSelectionStrategies): Added.
505 2015-04-08 Ryosuke Niwa <rniwa@webkit.org>
507 The results of A/B testing should state statistical significance
508 https://bugs.webkit.org/show_bug.cgi?id=143552
510 Reviewed by Chris Dumez.
512 Added statistical comparisons between results for each configuration on analysis task page using
513 Welch's t-test. The probability as well as t-statistics and the degrees of freedoms are reported.
516 (App.TestGroupPane._populate): Report the list of statistical comparison between every pair of
517 root configurations in the results. e.g. if we've got A, B, C configurations then compare A/B, A/C
519 (App.TestGroupPane._computeStatisticalSignificance): Compute the statistical significance using
520 Welch's t-test. Report the probability by which two samples do not come from the same distribution.
521 (App.TestGroupPane._createConfigurationSummary): Include the array of results for this configuration.
522 Also renamed "items" to "requests" for clarity.
524 * public/v2/index.html: Added the template for showing statistical comparisons.
526 * public/v2/js/statistics.js: Renamed tDistributionQuantiles to tDistributionByOneSidedProbability
527 for clarity. Also factored out the functions to convert from one-sided probability to two-sided
528 probability and vice versa.
529 (Statistics.supportedConfidenceIntervalProbabilities):
530 (Statistics.confidenceIntervalDelta):
531 (Statistics.probabilityRangeForWelchsT): Added. Computes the lower bound and the upper bound for
532 the probability that two values are sampled from distinct distributions using Welch's t-test.
533 (Statistics.computeWelchsT): This function now takes two-sided probability like all other functions.
534 (.tDistributionByOneSidedProbability): Renamed from tDistributionQuantiles.
535 (.oneSidedToTwoSidedProbability): Extracted.
536 (.twoSidedToOneSidedProbability): Extracted.
537 (Statistics.MovingAverageStrategies): Converted the one-sided probability to the two-sided probability
538 now that computeWelchsT takes two-sided probability.
540 2015-04-08 Ryosuke Niwa <rniwa@webkit.org>
542 Unreviewed fix after r182496 for when the cached runs JSON doesn't exist.
546 (App.Pane.refetchRuns):
548 2015-04-07 Ryosuke Niwa <rniwa@webkit.org>
550 Perf dashboard should have a way of marking outliers
551 https://bugs.webkit.org/show_bug.cgi?id=143466
553 Reviewed by Chris Dumez.
555 Address kling's in-person comment to notify users when the new run status is saved in the database.
558 (App.PaneController._selectedItemIsMarkedOutlierDidChange)
559 * public/v2/chart-pane.css: Fixed a typo.
561 2015-04-07 Ryosuke Niwa <rniwa@webkit.org>
563 Perf dashboard should have a way of marking outliers
564 https://bugs.webkit.org/show_bug.cgi?id=143466
566 Reviewed by Chris Dumez.
568 Added UI to mark a data point as an outlier as well as a button to toggle the visibility of outliers.
569 Added a new privileged API /privileged-api/update-run-status to store this boolean flag.
571 * init-database.sql: Added run_marked_outlier column to test_runs table.
573 * public/admin/tests.php:
575 * public/api/runs.php:
576 (main): Only emit Cache-Control and Expires headers in v1 UI.
577 (RunsGenerator::format_run): Emit markedOutlier.
579 * public/include/admin-header.php:
581 * public/include/db.php:
582 (Database::is_true): Made it static.
584 * public/include/manifest.php:
585 (Manifest::platforms):
587 * public/index.html: Call into /api/runs/ with ?cache=true.
589 * public/privileged-api/update-run-status.php: Added.
590 (main): Updates the newly added column in test_runs table.
594 (App.Pane.refetchRuns): Extracted from App.Pane._fetch.
595 (App.Pane._didFetchRuns): Renamed from _updateChartData.
596 (App.Pane._setNewChartData): Added. Pick the right time series based based on the value of showOutlier.
597 Cloning chartData is necessary when toggling the outlier visibility or using statistics tools because
598 the interactive chart component only observes changes to chartData and not individual properties of it.
599 (App.Pane._highlightPointsMarkedAsOutlier): Added. Highlight points marked as outliers.
600 (App.Pane._movingAverageOrEnvelopeStrategyDidChange): Call to _setNewChartData replaced the code to
601 clone chartData here.
603 (App.PaneController.actions.toggleShowOutlier): Toggle the visibility of points marked as outliers by
604 invoking App.Pane._setNewChartData.
605 (App.PaneController._detailsChanged): Don't hide the analysis pane when details changed since keep
606 opening the pane for marking points as outliers would be annoying.
607 (App.PaneController._updateCanAnalyze): Update 'cannotMarkOutlier' as well as 'cannotAnalyze'.
608 (App.PaneController.selectedMeasurement): Added.
609 (App.PaneController.showOutlierTitle): Added.
610 (App.PaneController._selectedItemIsMarkedOutlierDidChange): Added. Call out to setMarkedOutlier to
611 mark the selected point as an outlier via the newly added privileged API.
613 * public/v2/chart-pane.css: Updated styles.
616 (PrivilegedAPI._post): Report the semantic errors.
617 (Measurement.prototype.markedOutlier): Added.
618 (Measurement.prototype.setMarkedOutlier): Added. Uses PrivilegedAPI to update the database.
619 (RunsData.prototype.timeSeriesByCommitTime): Added a new argument, includeOutliers, to indicate
620 whether the time series should include measurements marked as outliers or not.
621 (RunsData.prototype.timeSeriesByBuildTime): Ditto.
622 (RunsData.prototype._timeSeriesByTimeInternal): Extracted from timeSeriesByCommitTime and
623 timeSeriesByBuildTime to share code. Now ignores measurements marked as outliers if needed.
625 * public/v2/index.html: Added an icon for showing and hiding outliers. Also added a checkbox to
626 mark individual points as outliers.
628 * public/v2/interactive-chart.js:
629 (App.InteractiveChartComponent._selectClosestPointToMouseAsCurrentItem): Re-enable the distance
630 heuristics that takes vertical closeness into account. This heuristics is more useful when marking
631 some points as outliers. This heuristics was disabled because the behavior was unpredictable but
632 with the arrow key navigation support, this is no longer an issue.
634 * public/v2/manifest.js:
635 (App.Manifest._formatFetchedData): Added showOutlier to the chart data. This function dynamically
636 updates the time series in this chart data in order to include or exclude outliers.
638 2015-04-03 Ryosuke Niwa <rniwa@webkit.org>
640 Perf dashboard should be able to trigger A/B testing jobs for iOS
641 https://bugs.webkit.org/show_bug.cgi?id=143398
643 Reviewed by Chris Dumez.
645 Fix various bugs in the perf dashboard so that it can schedule A/B testing jobs for iOS.
647 Also generalized sync-with-buildbot.py slightly to meet the requirements of iOS builders.
649 * public/api/triggerables.php:
650 (main): Avoid spitting a warning when $id_to_triggerable doesn't contain the triggerable.
651 * public/v2/analysis.js:
652 (App.AnalysisTask.triggerable): Log an error when failed to fetch triggerables for debugging purposes.
654 (App.AnalysisTaskController.updateRootConfigurations): Show 'None' when a revision is missing from
655 some of the data points. This will happen when we modify the list of projects we build for iOS.
656 (App.AnalysisTaskController.actions.createTestGroup): Gracefully fail by showing alerts when an user
657 attempts to create an invalid test group; when there is already another test group of the same or when
658 only either configuration specifies the revision for some repository.
659 (App.AnalysisTaskController._updateRootsBySelectedPoints): Fixed a typo: sets[i] -> set.
660 * public/v2/index.html: Don't show the form to create a new test group if it's not available.
661 * tools/sync-with-buildbot.py:
662 (find_request_updates):
663 (schedule_request): iOS builders take a JSON that contains the list of roots. Generate this JSON when
664 a dictionary of the form {rootsExcluding: ["WebKit"]} is specified. Also replaced the way we refer to
665 a revision from $-based text replacements to an explicit dictionary of the form {root: "WebKit"}.
666 (request_id_from_build): Don't hard code the parameter name here. Retrieve the name from the config.
668 2015-04-03 Ryosuke Niwa <rniwa@webkit.org>
670 Add time series segmentation algorithms as moving averages
671 https://bugs.webkit.org/show_bug.cgi?id=143362
673 Reviewed by Chris Dumez.
675 This patch implements two preliminary time series segmentation algorithms as moving averages.
677 Recursive t-test: Compute Welch's t-statistic at each point in a given segment of the time series.
678 If Welch's t-test implicates a statistically significance difference, then split the segment into two
679 sub segments with the maximum t-statistic (i.e. the point at which if split would yield the highest
680 probability that two segments do not share the same "underlying" mean in classical / frequentist sense).
681 We repeat this process recursively. See [1] for the evaluation of this particular algorithm.
683 Schwarz criterion: Use Schwarz or Bayesian information criterion to heuristically find the optimal
684 segmentation. Intuitively, the problem of finding the best segmentation comes down to minimizing the
685 residual sum of squares in each segment as in linear regressions. That is, for a given segment with
686 values y_1 through y_n with mean y_avg, we want to minimize the sum of (y_i - y_avg)^2 over i = 1
687 through i = n. However, we also don't want to split every data point into a separate segment so we need
688 to account the "cost" of introducing new segments. We use a cost function that's loosely based on two
689 models discussed in [2] for simplicity. We will tune this cost function further in the future.
691 The problem of finding the best segmentation then reduces to a search problem. Unfortunately, our problem
692 space is exponential with respect to the size of the time series since we could split at each data point.
693 We workaround this problem by first splitting the time series into a manageable smaller grids, and only
694 considering segmentation of a fixed size (i.e. the number of segments is constant). Since time series
695 tend to contain a lot more data points than segments, this strategy finds the optimal solution without
696 exploring much of the problem space.
698 Finding the optimal segmentation of a fixed size is, itself, another search problem that is equivalent to
699 finding the shortest path of a fixed length in DAG. Here, we use dynamic programming with a matrix of size
700 n by n where n is the length of the time series (grid). Each entry in this matrix at (i, k) stores
701 the minimum cost of segmenting data points 1 through i using k segments. We start our search at i = 1.
702 Clearly C(1, 0) = 0 (note the actual code uses 0-based index). In i-th iteration, we compute the cost
703 S(i, j) of each segment starting at i and ending at another point j after i and update C(j, k + 1) by
704 min( C(j, k + 1), C(i, k) + S(i, j) ) for all values of j above i.
706 [1] Kensuke Fukuda, H. Eugene Stanley, and Luis A. Nunes Amaral, "Heuristic segmentation of
707 a nonstationary time series", Physical Review E 69, 021108 (2004)
709 [2] Marc Lavielle, Gilles Teyssi`ere, "Detection of Multiple Change–Points in Multivariate Time Series"
710 Lithuanian Mathematical Journal, vol 46, 2006
712 * public/v2/index.html: Show the optional description for the chosen moving average strategy.
713 * public/v2/js/statistics.js:
714 (Statistics.testWelchsT):
715 (Statistics.computeWelchsT): Extracted from testWelchsT. Generalized to take the offset and the length
716 of each value array between which Welch's t-statistic is computed. This generalization helps the
717 Schwarz criterion segmentation algorithm avoid splitting values array O(n^2) times.
718 (.sampleMeanAndVarianceForValues): Ditto for the generalization.
719 (.recursivelySplitIntoTwoSegmentsAtMaxTIfSignificantlyDifferent): Added. Implements recursive t-test.
720 (.splitIntoSegmentsUntilGoodEnough): Added. Implements Schwarz criterion.
721 (.findOptimalSegmentation): Added. Implements the algorithm to find the optimal segmentation of a fixed
723 (.SampleVarianceUpperTriangularMatrix): Added. Stores S(i, j) used by findOptimalSegmentation.
724 (.SampleVarianceUpperTriangularMatrix.prototype.costBetween): Added.
726 2015-04-03 Ryosuke Niwa <rniwa@webkit.org>
728 REGRESSION: Perf dashboard sometimes fails to update zooming level
729 https://bugs.webkit.org/show_bug.cgi?id=143359
731 Reviewed by Darin Adler.
733 The bug was caused by various bugs that ended up in an exception.
736 (App.Pane._handleFetchErrors): Removed superfluous console.log.
737 (App.Pane.computeStatus): Fixed the bug in r182185 that previousPoint could be null.
738 (App.PaneController.actions.zoomed): Update the overview when the main chart triggered a zoom.
739 * public/v2/index.html: Replaced all instances of href="#" by href="javascript:false" to avoid navigating
740 to # when Ember.js fails to attach event listeners on time.
741 * public/v2/interactive-chart.js:
742 (App.InteractiveChartComponent._updateDimensionsIfNeeded): Avoid using a negative width or height when
743 the containing element's size is 0.
744 (App.InteractiveChartComponent._updateBrush): Ditto.
746 2015-04-02 Ryosuke Niwa <rniwa@webkit.org>
748 Perf dashboard should have UI to test out anomaly detection strategies
749 https://bugs.webkit.org/show_bug.cgi?id=143290
751 Reviewed by Benjamin Poulain.
753 Added the UI to select anomaly detection strategies. The detected anomalies are highlighted in the graph.
755 Implemented the Western Electric Rules 1 through 4 in http://en.wikipedia.org/wiki/Western_Electric_rules
756 as well as Welch's t-test that compares the last five points to the prior twenty points.
758 The latter is what Mozilla uses (or at least did in the past) to detect performance regressions on their
759 performance tests although they compare medians instead of means.
761 All of these strategies don't quite work for us since our data points are too noisy but this is a good start.
764 (App.Pane.updateStatisticsTools): Clone anomaly detection strategies.
765 (App.Pane._updateMovingAverageAndEnvelope): Highlight anomalies detected by the enabled strategies.
766 (App.Pane._movingAverageOrEnvelopeStrategyDidChange): Observe changes to anomaly detection strategies.
767 (App.Pane._computeMovingAverageAndOutliers): Detect anomalies by each strategy and aggregate results.
768 Only report the first data point when multiple consecutive data points are detected as anomalies.
769 * public/v2/chart-pane.css: Updated styles.
770 * public/v2/index.html: Added the pane for selecting anomaly detection strategies.
771 * public/v2/js/statistics.js:
772 (Statistics.testWelchsT): Added. Implements Welch's t-test.
773 (.sampleMeanAndVarianceForValues): Added.
774 (.createWesternElectricRule): Added.
775 (.countValuesOnSameSide): Added.
776 (Statistics.AnomalyDetectionStrategy): Added.
778 2015-03-31 Ryosuke Niwa <rniwa@webkit.org>
780 REGRESSION: Searching commits can highlight wrong data points
781 https://bugs.webkit.org/show_bug.cgi?id=143272
783 Reviewed by Antti Koivisto.
785 The bug was caused by /api/commits returning commit times with millisecond precision whereas /api/runs
786 return commit times with only second precision. This resulted in the frontend code to match a commit
787 with the data point that included the next commit when the millisecond component of commit's timestamp
788 wasn't identically 0.
790 This discrepancy was caused by the fact PHP's strtotime only ignores milliseconds and /api/commits
791 was returning timestamp as string instead of parsing via Database::to_js_time as done in /api/runs
792 so miliseconds component was only preserved in /api/commits.
794 Fixed the bug by always using Database::to_js_time to return commit time. Also fixed to_js_time so that
795 it returns time in milisecond precision.
797 * public/api/commits.php:
798 (fetch_commits_between): Use Database::to_js_time for format commit times.
799 (format_commit): Ditto.
800 * public/include/db.php:
801 (Database::to_js_time): Parse and append millisecond component. Ignore sub-milliseconds for simplicity.
803 (CommitLogs.fetchForTimeRange): The commit time is now an integer so don't call "replace" on it.
805 2015-03-31 Ryosuke Niwa <rniwa@webkit.org>
807 Perf dashboard should show relative change in values
808 https://bugs.webkit.org/show_bug.cgi?id=143252
810 Reviewed by Antti Koivisto.
812 When a range of values are selected, show the percentage difference between the start and the end
813 in addition to the absolute value difference. When a single point is selected, show the relative
814 difference with respect to the previous point. Use two significant figures and always show plus sign
815 when the difference is positive.
817 * public/v2/app.js: Compute and format the relative difference.
818 * public/v2/chart-pane.css: Don't let commits view shrink itself when they're all collapsed.
819 * public/v2/index.html: Show the relative difference.
821 2015-03-31 Ryosuke Niwa <rniwa@webkit.org>
823 REGRESSION(r180000): Changing moving average or enveloping strategy doesn't update the graph
824 https://bugs.webkit.org/show_bug.cgi?id=143254
826 Reviewed by Antti Koivisto.
828 The bug was caused by App.Pane no longer replacing 'chartData' property when updating the moving average
829 or the enveloping values. Fixed the bug by creating a new chartData object when the strategy is changed
830 so that the interactive chart component will observe a change to 'chartData'.
833 (App.Pane._movingAverageOrEnvelopeStrategyDidChange): Added.
835 2015-03-19 Ryosuke Niwa <rniwa@webkit.org>
837 Unreviewed build fixes.
839 * public/include/manifest.php:
840 (Manifest::generate): These should be {} instead of [] when they're empty.
842 (Measurement.prototype.formattedRevisions): Don't assume previousRevisions[repositoryId] exits.
843 * public/v2/manifest.js:
844 (App.Metric.fullName): Fixed the typo.
845 * tests/admin-regenerate-manifest.js: Fixed the test.
847 2015-02-20 Ryosuke Niwa <rniwa@webkit.org>
849 Commit the erroneously reverted change.
851 * public/api/runs.php:
852 (RunsGenerator::results):
854 2015-02-20 Ryosuke Niwa <rniwa@webkit.org>
856 Loading the perf dashboard takes multiple seconds
857 https://bugs.webkit.org/show_bug.cgi?id=141860
859 Reviewed by Andreas Kling.
861 This patch introduces the caches of JSON files returned by /api/ in /data/ directory. It also records
862 the last time test_runs rows associated with the requested platforms and metrics are inserted, updated,
863 or removed in the caches as well as the manifest JSON files ("last modified time"). Because the manifest
864 is regenerated each time a new test result is reported, the front end can compare last modified time in
865 the manifest file with that in a /api/runs JSON cache to detect the stale-ness.
867 More concretely, the front end first optimistically fetches the JSON in /data/. If the cache doesn't exit
868 or the last modified time in the cache doesn't match with that in the manifest file, it would fetch it
869 again via /api/runs. In the case the cache did exist, we render the charts based on the cache meanwhile.
870 This dramatically reduces the perceived latency for the page load since charts are drawn immediately using
871 the cache and we would only re-render the charts as new up-to-date JSON comes in.
873 This patch also changes the format of runs JSONs by pushing the exiting properties into 'configurations'
874 and adding 'lastModified' and 'elapsedTime' at the top level.
876 * init-database.sql: Added config_runs_last_modified to test_configurations table as well as a trigger to
877 auto-update this column upon changes to test_runs table.
879 * public/admin/test-configurations.php:
880 (add_run): Regenerate the manifest file to invalidate the /api/runs JSON cache.
883 * public/api/runs.php:
884 (main): Fetch all columns of test_configurations table including config_runs_last_modified. Also generate
885 the cache in /data/ directory.
886 (RunsGenerator::__construct): Compute the last modified time for this (platform, metric) pair.
887 (RunsGenerator::results): Put the old content in 'configurations' property and include 'lastModified' and
888 'elapsedTime' properties. 'elapsedTime' is added for debugging purposes.
889 (RunsGenerator::add_runs):
890 (RunsGenerator::parse_revisions_array):
892 * public/include/db.php:
894 (generate_data_file): Added based on ManifestGenerator::store.
895 (Database::to_js_time): Extracted from RunsGenerator::add_runs to share code.
897 * public/include/json-header.php:
898 (echo_success): Renamed from success_json. Return the serialized JSON instead of echo'ing it so that we can
899 generate caches in /api/runs/.
902 * public/include/manifest.php:
903 (ManifestGenerator::generate): Added 'elapsedTime' property for the time taken to generate the manifest.
904 It seems like we're generating it in 200-300ms for now so that's good.
905 (ManifestGenerator::store): Uses generate_data_file.
906 (ManifestGenerator::platforms): Added 'lastModified' array to each platform entry. This array contains the
907 last modified time for each (platform, metric) pair.
910 (fetchTest): Updated per the format change in runs JSON.
913 (App.Pane._fetch): Fetch the cached JSON first. Refetch the uncached version if instructed as such.
914 (App.Pane._updateChartData): Extracted from App.Pane._fetch.
915 (App.Pane._handleFetchErrors): Ditto.
918 (RunsData.fetchRuns): Takes the fourth argument indicating whether we should fetch the cached version or not.
919 The cached JSON is located in /data/ with the same filename. When fetching a cached JSON results in 404,
920 fulfill the promise with null as the result instead of rejecting it. The only client of this function which
921 sets useCache to true is App.Manifest.fetchRunsWithPlatformAndMetric, and it handles this special case.
923 * public/v2/manifest.js:
924 (App.DateArrayTransform): Added. Handles the array of last modified dates in platform objects.
925 (App.Platform.lastModifiedTimeForMetric): Added. Returns the last modified date in the manifest JSON.
926 (App.Manifest.fetchRunsWithPlatformAndMetric): Takes "useCache" like RunsData.fetchRuns. Set shouldRefetch
927 to true if response is null (the cache didn't exit) or the cache is out-of-date.
928 (App.Manifest._formatFetchedData): Extracted from App.Manifest.fetchRunsWithPlatformAndMetric.
931 (initializeDatabase): Avoid splitting function definitions in the middle.
933 * tests/api-report.js: Added tests to verify that reporting new test results updates the last modified time
934 in test_configurations.
936 2015-02-20 Ryosuke Niwa <rniwa@webkit.org>
938 REGRESSION(r180333): Analysis tasks can't be associated with bugs
939 https://bugs.webkit.org/show_bug.cgi?id=141858
941 Reviewed by Andreas Kling.
943 Added back the erroneously removed table to associate bugs. Also moved "details-table-container" div outside
944 of the chart-details partial template as it needs to wrap associate bugs in analysis task pages.
946 * public/v2/chart-pane.css:
947 * public/v2/index.html:
949 2015-02-20 Ryosuke Niwa <rniwa@webkit.org>
951 Selecting revisions for A/B testing is hard
952 https://bugs.webkit.org/show_bug.cgi?id=141824
954 Reviewed by Andreas Kling.
956 Update the revisions used in A/B testing based on the selection in the overview chart. This allows users to
957 intuitively select revisions based on points shown in the chart. Removed the old select elements used to
958 select A/B testing points manually.
960 Also renamed 'testSets' to 'configurations', 'roots' to 'rootConfigurations', and 'revisions' in each root's
961 sets to 'options' for clarity.
963 * public/v2/app.css: Reorganized style rules.
966 (App.AnalysisTaskController):
967 (App.AnalysisTaskController._taskUpdated): Merged updateTestGroupPanes.
968 (App.AnalysisTaskController._chartDataChanged): Renamed from paneDomain. It's now an observer instead of
969 a property, which sets 'overviewDomain' property as well as other properties.
970 (App.AnalysisTaskController.updateRootConfigurations): Renamed from updateRoots.
971 (App.AnalysisTaskController._updateRootsBySelectedPoints): Added. Select roots based on the selected points
972 in the overview chart.
974 * public/v2/chart-pane.css: Added arrows next to the configuration names (e.g. 'A') to indicate whether
975 individual build requests / test results are shown or not.
977 * public/v2/index.html: Removed the select element per configuration column. Also moved the select element
978 for the number of runs as it doesn't belong in the same table as the one that lists repositories and roots.
980 2015-02-20 Ryosuke Niwa <rniwa@webkit.org>
982 Unreviewed test fixes after r179037, r179591, and r179763.
984 * tests/admin-regenerate-manifest.js:
985 * tests/admin-reprocess-report.js:
987 2015-02-19 Ryosuke Niwa <rniwa@webkit.org>
989 Relationship between A/B testing results are unclear
990 https://bugs.webkit.org/show_bug.cgi?id=141810
992 Reviewed by Andreas Kling.
994 Show a "reference chart" indicating which two points have been tested in each test group pane.
996 Now the chart shown at the top of an analysis task page is called the "overview pane", and we use the pane
997 and the domain used in this chart to show charts in each test group.
999 Also renamed an array of revisions used in the A/B test results tables from 'revisions' to 'revisionList'.
1001 * public/v2/analysis.js:
1002 (App.TestGroup._fetchTestResults): Renamed from _fetchChartData. Set 'testResults' instead of 'chartData'
1003 since this is the results of A/B testing results, not the data for charts shown next to them.
1005 * public/v2/app.css: Added CSS rules for reference charts.
1008 (App.AnalysisTaskController.paneDomain): Set 'overviewPane' and 'overviewDomain' on each test group pane.
1009 (App.TestGroupPane._populate): Updated per 'chartData' to 'testResults' rename.
1010 (App.TestGroupPane._updateReferenceChart): Get the chart data via the overview pane and find points that
1011 identically matches root sets. If one of configuration used a set of revisions for which no measurement
1012 was made in the original chart, don't show the reference chart as that would be misleading / confusing.
1013 (App.TestGroupPane._computeRepositoryList): Updated per 'chartData' to 'testResults' rename.
1014 (App.TestGroupPane._createConfigurationSummary): Ditto. Also renamed 'revisions' to 'revisionList'.
1015 In addition, renamed 'buildNumber' to 'buildLabel' and prefixed it with "Build ".
1017 * public/v2/data.js:
1018 (Measurement.prototype.revisionForRepository): Added.
1019 (Measurement.prototype.commitTimeForRepository): Cleanup.
1020 (TimeSeries.prototype.findPointByRevisions): Added. Finds a point based on a set of revisions.
1022 * public/v2/index.html: Added the reference chart. Streamlined the status label for each build request
1023 by including the build number in the title attribute instead of in the markup.
1025 * public/v2/interactive-chart.js:
1026 (App.InteractiveChartComponent._updateDomain): Fixed a typo introduced as a consequence of r179913.
1027 (App.InteractiveChartComponent._computeYAxisDomain): Expand the y-axis to show the highlighted points.
1028 (App.InteractiveChartComponent._highlightedItemsChanged): Adjust the y-axis as needed.
1030 2015-02-18 Ryosuke Niwa <rniwa@webkit.org>
1032 Analysis task pages are unusable
1033 https://bugs.webkit.org/show_bug.cgi?id=141786
1035 Reviewed by Andreas Kling.
1037 This patch makes following improvements to analysis task pages:
1038 1. Making the main chart interactive. This change required the use of App.Pane as well as moving the code to
1039 compute the data for the details pane from PaneController.
1040 2. Moving the form to add a new test group to the top of test groups instead of the bottom of them.
1041 3. Grouping the build requests in each test group by root sets instead of the order by which they were ran.
1042 This change required the creation of App.TestGroupPane as well as its methods.
1043 4. Show a box plot for each root set configuration as well as each build request. This change required
1044 App.BoxPlotComponent.
1045 5. Show revisions of each repository (e.g. WebKit) for each root set and build request.
1047 * public/api/build-requests.php:
1048 (main): Update per the rename of BuildRequestsFetcher::root_sets to BuildRequestsFetcher::root_sets_by_id.
1050 * public/api/test-groups.php:
1051 (main): Include root sets and roots in the response.
1052 (format_test_group):
1054 * public/include/build-requests-fetcher.php:
1055 (BuildRequestsFetcher::root_sets_by_id): Renamed from root_sets.
1056 (BuildRequestsFetcher::root_sets): Added.
1057 (BuildRequestsFetcher::roots): Added.
1058 (BuildRequestsFetcher::fetch_roots_for_set): Takes a boolean argument $resolve_ids. This flag is only set to
1059 true in /api/build-requests/ (as done prior to this patch) to use repository names as identifiers since
1060 tools/sync-with-buildbot.py can't convert repository names to their ids.
1062 * public/v2/analysis.js:
1064 (App.RootSet): Added.
1065 (App.RootSet.revisionForRepository): Added.
1066 (App.TestGroup.rootSets): Deleted the code to compute root set ids from build requests now that the JSON
1067 response at /api/test-groups will include them.
1068 (App.BuildRequest): Ditto. Also deleted 'configLetter' property, which has been moved to a proxy created by
1069 _createConfigurationSummary.
1070 (App.BuildRequest.statusLabel): Use 'Completed' as the human readable label for 'completed' status.
1071 (App.BuildRequest.aggregateStatuses): Added. Generates a human readable status for a set of build requests.
1073 * public/v2/app.css: Updated style rules for analysis task pages.
1076 (App.Pane): This class is now used in analysis task pages to make the main chart interactive.
1077 (App.Pane._updateDetails): Moved from App.PaneController.
1079 (App.PaneController._updateCanAnalyze): Updated the code per the move of selectedPoints.
1081 (App.AnalysisTaskController): Added 'details'.
1082 (App.AnalysisTaskController._taskUpdated):
1083 (App.AnalysisTaskController.paneDomain):Renamed from _fetchedRuns.
1084 (App.AnalysisTaskController.updateTestGroupPanes): Added. Creates App.TestGroupPane for each test group.
1085 (App.AnalysisTaskController.actions.toggleShowRequestList): Added.
1087 (App.TestGroupPane): Added.
1088 (App.TestGroupPane._populate): Added. Group build requests by root sets and create a summary for each group.
1089 (App.TestGroupPane._computeRepositoryList): Added. Returns a sorted list of repositories which is the union
1090 of all repositories appearing in root sets and builds associated with A/B testing results.
1091 (App.TestGroupPane._groupRequestsByConfigurations): Added. Groups build requests by root sets.
1092 (App.TestGroupPane._createConfigurationSummary): Added. Creates a summary for a group of build requests that
1093 use the same root set. We start by wrapping "raw" build requests in a proxy with formatted values,
1094 build numbers, etc... obtained from the fetched chart data. The list of revisions shown in the group summary
1095 is a union of revisions in the root set and the first build request in the group. We null-out revision info
1096 for a build request if it is identical to the one in the summary. The range of values is expanded as needed
1097 by the values in the group as well as 95% percentile confidence interval.
1099 (App.BoxPlotComponent): Added. Controls a box plot shown for each test group summary and build request.
1100 (App.BoxPlotComponent.didInsertElement): Added. Inserts a SVG element as well as two indicator rects to show
1101 the mean and the confidence interval.
1102 (App.BoxPlotComponent._updateBars): Added. Updates the dimensions of the indicator rects.
1103 (App.BoxPlotComponent.valueChanged): Added. Computes the relative dimensions of the indicator rects and
1104 calls _updateBars to update the rects.
1106 * public/v2/chart-pane.css: Added some style rules to be used in the details pane in analysis task pages.
1108 * public/v2/data.js:
1109 (Measurement.prototype.formattedRevisions):
1110 (Measurement.formatRevisionRange): Renamed from Measurement.prototype._formatRevisionRange so that it can be
1111 called in _createConfigurationSummary.
1113 * public/v2/index.html: Updated the templates for analysis task pages. Moved the form to create a new test
1114 group above all test groups, and replaced the list of data points by "details" pane used in the charts page.
1115 Also made the fetching of chartData no longer block showing of test groups.
1117 * public/v2/interactive-chart.js:
1118 (App.InteractiveChartComponent._updateDomain): Added an early exit to fix a newly revealed race condition.
1119 (App.InteractiveChartComponent._domainChanged): Ditto.
1120 (App.InteractiveChartComponent._updateSelectionToolbar): Made it respect 'zoomable' boolean property.
1122 * public/v2/js/statistics.js:
1123 (Statistics.min): Added.
1124 (Statistics.max): Added.
1126 * public/v2/manifest.js:
1127 (App.Manifest.fetchRunsWithPlatformAndMetric): Added formatWithDeltaAndUnit to be used in _createConfigurationSummary.
1129 2015-02-14 Ryosuke Niwa <rniwa@webkit.org>
1131 Build URL on new perf dashboard doesn't resolve $builderName
1132 https://bugs.webkit.org/show_bug.cgi?id=141583
1134 Reviewed by Darin Adler.
1136 Support $builderName in the build URL template.
1138 * public/js/helper-classes.js:
1139 (TestBuild.buildUrl): Replaced $builderName with the builder name.
1141 * public/v2/manifest.js:
1142 (App.Metric.fullName): Fixed the typo. We need &ni, not &in.
1143 (App.BuilderurlFromBuildNumber): Replaced $builderName with the builder name.
1145 2015-02-13 Ryosuke Niwa <rniwa@webkit.org>
1147 Unreviewed build fix after r179591.
1149 * public/api/commits.php:
1151 2015-02-13 Ryosuke Niwa <rniwa@webkit.org>
1153 The status of a A/B testing request always eventually becomes "Failed"
1154 https://bugs.webkit.org/show_bug.cgi?id=141523
1156 Reviewed by Andreas Kling.
1158 The bug was caused by /api/build-requests always setting the status of a build request to 'failed' when
1159 'failedIfNotCompleted' was sent by the buildbot sync'er.
1161 Fixed the bug by only setting the status to 'failed' if it wasn't set to 'completed'.
1163 * public/api/build-requests.php:
1166 2015-02-13 Csaba Osztrogonác <ossy@webkit.org>
1168 Unreviewed, remove empty directories.
1170 * public/data: Removed.
1172 2015-02-12 Ryosuke Niwa <rniwa@webkit.org>
1174 Perf dashboard should show the results of A/B testing
1175 https://bugs.webkit.org/show_bug.cgi?id=141500
1177 Reviewed by Chris Dumez.
1179 Added the support for fetching test_runs for a specific test group in /api/runs/, and used it in the
1180 analysis task page to fetch results for each test group.
1182 Merged App.createChartData into App.Manifest.fetchRunsWithPlatformAndMetric so that App.BuildRequest
1183 can use the formatter.
1185 * public/api/runs.php:
1186 (fetch_runs_for_config_and_test_group): Added.
1187 (fetch_runs_for_config): Just return the fetched rows since main will format them with RunsGenerator.
1188 (main): Use fetch_runs_for_config_and_test_group to fetch rows when a test group id is specified. Also
1189 use RunsGenerator to format results.
1190 (RunsGenerator): Added.
1191 (RunsGenerator::__construct): Added.
1192 (RunsGenerator::add_runs): Added.
1193 (RunsGenerator::format_run): Moved.
1194 (RunsGenerator::parse_revisions_array): Moved.
1196 * public/v2/analysis.js:
1197 (App.TestGroup): Fixed a typo. The property on a test group that refers to an analysis task is "task".
1198 (App.TestGroup._fetchChartData): Added. Fetches all A/B testing results for this group.
1199 (App.BuildRequest.configLetter): Renamed from config since this returns a letter that identifies the
1200 configuration associated with this build request such as "A" and "B".
1201 (App.BuildRequest.statusLabel): Added the missing label for failed build requests.
1202 (App.BuildRequest.url): Added. Returns the URL associated with this build request.
1203 (App.BuildRequest._meanFetched): Added. Retrieve the mean and the build number for this request via
1207 (App.Pane._fetch): Set chartData directly here.
1208 (App.Pane._updateMovingAverageAndEnvelope): Renamed from _computeChartData. No longer sets chartData
1209 now that it's done in App.Pane._fetch.
1210 (App.AnalysisTaskController._fetchedRuns): Updated per createChartData merge.
1212 * public/v2/data.js:
1213 (Measurement.prototype.buildId): Added.
1214 (TimeSeries.prototype.findPointByBuild): Added.
1216 * public/v2/index.html: Fixed a bug that build status URL was broken. We can't use link-to helper since
1217 url is not an Ember routed path.
1219 * public/v2/manifest.js:
1220 (App.Manifest.fetchRunsWithPlatformAndMetric): Takes testGroupId as the third argument. Merged
1221 App.createChartData here so that App.BuildRequest can use the formatter
1223 2015-02-12 Ryosuke Niwa <rniwa@webkit.org>
1225 v2 UI should adjust the number of ticks on dashboards based on screen size
1226 https://bugs.webkit.org/show_bug.cgi?id=141502
1228 Reviewed by Chris Dumez.
1230 * public/v2/interactive-chart.js:
1231 (App.InteractiveChartComponent._updateDimensionsIfNeeded): Compute the number of ticks based on the
1234 2015-02-11 Ryosuke Niwa <rniwa@webkit.org>
1236 New perf dashboard shows too much space around interesting data points
1237 https://bugs.webkit.org/show_bug.cgi?id=141487
1239 Reviewed by Chris Dumez.
1241 Revise the y-axis range adjustment algorithm in r179913. Instead of showing the entire moving average,
1242 show the current time series excluding points in the series outside the moving average envelope.
1245 (App.Pane._computeChartData): Don't deal with missing moving average or enveloping strategy here.
1246 (App.Pane._computeMovingAverageAndOutliers): Set isOutliner to true on all data points in the current
1247 time series if the point lies outside the moving average envelope. Don't expose the moving average or
1248 the envelope computed for this purpose if they're not set by the user.
1250 * public/v2/data.js:
1251 (TimeSeries.prototype.minMaxForTimeRange): Takes a boolean argument, ignoreOutlier. When the flag is set
1252 to true, min/max computation will ignore any point in the series with non-falsy "isOutliner" property.
1254 * public/v2/interactive-chart.js:
1255 (App.InteractiveChartComponent._constructGraphIfPossible): Unsupport hideMovingAverage and hideEnvelope.
1256 (App.InteractiveChartComponent._computeYAxisDomain): Removed the commented out code. Also moved the code
1257 to deal with showFullYAxis here.
1258 (App.InteractiveChartComponent._minMaxForAllTimeSeries): Rewrote the code. Takes ignoreOutliners as an
1259 argument instead of directly inspecting showFullYAxis.
1261 2015-02-10 Ryosuke Niwa <rniwa@webkit.org>
1263 New perf dashboard shouldn't always show outliners
1264 https://bugs.webkit.org/show_bug.cgi?id=141445
1266 Reviewed by Chris Dumez.
1268 Use the simple moving average with an average difference envelope to compute the y-axis range to show
1269 to avoid expanding it spuriously to show one off outlier.
1272 (App.Pane): Don't show the full y-axis range by default.
1273 (App.Pane._computeChartData): Use the first strategies for the moving average and the enveloping if
1274 one is not specified by the user but without showing them in the charts.
1275 (App.Pane._computeMovingAverage): Takes moving average and enveloping strategies as arguments instead
1276 of retrieving via chosenMovingAverageStrategy and chosenEnvelopingStrategy.
1278 (App.ChartsController._parsePaneList): Added showFullYAxis as a query string argument to each pane.
1279 (App.ChartsController._serializePaneList): Ditto.
1281 * public/v2/chart-pane.css: Added a CSS rule for when y-axis is clickable.
1283 * public/v2/index.html: Pass in showFullYAxis as an argument to the main interactive chart.
1285 * public/v2/interactive-chart.js:
1286 (App.InteractiveChartComponent._constructGraphIfPossible): Add an event listener on y-axis labels when
1287 the chart is interactive so that toggle showFullYAxis. Also hide the moving average and/or the envelope
1288 if they are not specified by the user (i.e. only used to adjust y-axis range).
1289 (App.InteractiveChartComponent._updateDomain): Don't exit early if y-axis domains are different even if
1290 x-axis domain remained the same. Without this change, the charts would never redraw.
1291 (App.InteractiveChartComponent._minMaxForAllTimeSeries): Use the moving average instead of the current
1292 time series to compute the y-axis range if showFullYAxis is false. When showFullYAxis is true, expand
1293 y-axis all the way down to 0 or the minimum value in the current time series whichever is smaller.
1295 * public/v2/js/statistics.js:
1296 (Statistics.MovingAverageStrategies): Use a wider window in Simple Moving Average by default.
1298 2015-02-10 Ryosuke Niwa <rniwa@webkit.org>
1300 Unreviewed build fix.
1303 (set get App.Pane.Ember.Object.extend):
1305 2015-02-10 Ryosuke Niwa <rniwa@webkit.org>
1307 New perf dashboard should have the ability to overlay moving average with an envelope
1308 https://bugs.webkit.org/show_bug.cgi?id=141438
1310 Reviewed by Andreas Kling.
1312 This patch adds three kinds of moving average strategies and two kinds of enveloping strategies:
1314 Simple Moving Average - The moving average x̄_i of x_i is computed as the arithmetic mean of values
1315 from x_(i - n) though x_(i + m) where n is a non-negative integer and m is a positive integer. It takes
1316 n, backward window size, and m, forward window size, as an argument.
1318 Cumulative Moving Average - x̄_i is computed as the arithmetic mean of all values x_0 though x_i.
1319 That is, x̄_1 = x_1 and x̄_i = ((i - 1) * M_(i - 1) + x_i) / i for all i > 1.
1321 Exponential Moving Average - x̄_i is computed as the weighted average of x_i and x̄_(i - 1) with α as
1322 an argument specifying x_i's weight. To be precise, x̄_1 = x_1 and x̄_i = α * x_i + (α - 1) x̄_(i-1).
1325 Average Difference - The enveloping delta d is computed as the arithmetic mean of the difference
1326 between each x_i and x̄_i.
1328 Moving Average Standard Deviation - d is computed like the standard deviation except the deviation
1329 for each term is measured from the moving average instead of the sample arithmetic mean. i.e. it uses
1330 the average of (x_i - x̄_i)^2 as the "sample variance" instead of the conventional (x_i - x̄)^2 where
1331 x̄ is the sample mean of all x_i's. This change was necessary since our time series is non-stationary.
1334 Each strategy is cloned for an App.Pane instance so that its parameterList can be configured per pane.
1335 The configuration of the currently chosen strategies is saved in the query string for convenience.
1337 Also added the "stat pane" to choose a moving average strategy and a enveloping strategy in each pane.
1339 * public/v2/app.css: Specify the fill color for all SVG groups in the pane toolbar icons.
1342 (App.Pane._fetch): Delegate the creation of 'chartData' to _computeChartData.
1343 (App.Pane.updateStatisticsTools): Added. Clones moving average and enveloping strategies for this pane.
1344 (App.Pane._cloneStrategy): Added. Clones a strategy for a new pane.
1345 (App.Pane._configureStrategy): Added. Finds and configures a strategy from the configuration retrieved
1346 from the query string via ChartsController.
1347 (App.Pane._computeChartData): Added. Creates chartData from fetchedData.
1348 (App.Pane._computeMovingAverage): Added. Computes the moving average and the envelope.
1349 (App.Pane._executeStrategy): Added.
1350 (App.Pane._updateStrategyConfigIfNeeded): Pushes the strategy configurations to the query string via
1352 (App.ChartsController._parsePaneList): Merged the query string arguments for the range and point
1353 selections, and added two new arguments for the moving average and the enveloping configurations.
1354 (App.ChartsController._serializePaneList): Ditto.
1355 (App.ChartsController._scheduleQueryStringUpdate): Observes strategy configurations.
1356 (App.PaneController.actions.toggleBugsPane): Hides the stat pane.
1357 (App.PaneController.actions.toggleSearchPane): Hides the stat pane.
1358 (App.PaneController.actions.toggleStatPane): Added.
1360 * public/v2/chart-pane.css: Added CSS rules for the new stat pane. Also added .foreground class for the
1361 current (as opposed to baseline and target) time series for when it's the most foreground graph without
1362 moving average and its envelope overlapping on top of it.
1364 * public/v2/index.html: Added the templates for the stat pane and the corresponding icon (Σ).
1366 * public/v2/interactive-chart.js:
1367 (App.InteractiveChartComponent.chartDataDidChange): Unset _totalWidth and _totalHeight to avoid exiting
1368 early inside _updateDimensionsIfNeeded when chartData changes after the initial layout.
1369 (App.InteractiveChartComponent.didInsertElement): Attach event listeners here instead of inside
1370 _constructGraphIfPossible since that could be called multiple times on the same SVG element.
1371 (App.InteractiveChartComponent._constructGraphIfPossible): Clear down the old SVG element we created
1372 but don't bother removing individual paths and circles. Added the code to show the moving average time
1373 series when there is one. Also add "foreground" class on SVG elements for the current time series when
1374 we're not showing the moving average. chart-pane.css has been updated to "dim down" the current time
1375 series when "foreground" is not set.
1376 (App.InteractiveChartComponent._minMaxForAllTimeSeries): Take the moving average time series into
1377 account when computing the y-axis range.
1378 (App.InteractiveChartComponent._brushChanged): Removed 'selectionIsLocked' argument as it's useless.
1380 * public/v2/js/statistics.js:
1381 (Statistics.MovingAverageStrategies): Added.
1382 (Statistics.EnvelopingStrategies): Added.
1384 2015-02-06 Ryosuke Niwa <rniwa@webkit.org>
1386 The delta value in the chart pane sometimes doens't show '+' for a positive delta
1387 https://bugs.webkit.org/show_bug.cgi?id=141340
1389 Reviewed by Andreas Kling.
1391 The bug was caused by computeStatus prefixing the value delta with '+' if it's greater than 0 after
1392 it had already been formatted. Fixed the bug by using a formatter that always emits a sign symbol.
1395 (App.Pane.computeStatus):
1396 (App.createChartData):
1398 2015-02-06 Ryosuke Niwa <rniwa@webkit.org>
1400 Unreviewed build fix. currentPoint wasn't defined when selectedPoints was used to find points.
1403 (App.PaneController._updateDetails):
1405 2015-02-06 Ryosuke Niwa <rniwa@webkit.org>
1407 Unreviewed. Commit the forgotten change.
1409 * public/include/manifest.php:
1411 2015-02-06 Ryosuke Niwa <rniwa@webkit.org>
1413 New perf dashboard should have multiple dashboard pages
1414 https://bugs.webkit.org/show_bug.cgi?id=141339
1416 Reviewed by Chris Dumez.
1418 Added the support for multiple dashboard pages. Also added the status of the latest data point.
1419 e.g. "5% better than target"
1421 * public/v2/app.css: Tweaked the styles to work around the fact Ember.js creates empty script elements.
1422 Also hid the border lines around charts on the dashboard page for a cleaner look.
1425 (App.IndexRoute): Added. Navigate to /dashboard/<defaultDashboardName> once the manifest.json is loaded.
1426 (App.IndexRoute.beforeModel): Added.
1427 (App.DashboardRoute): Added.
1428 (App.DashboardRoute.model): Added. Return the dashboard specified by the name.
1429 (App.CustomDashboardRoute): Added. This route is used for a customized dashboard specified by "grid".
1430 (App.CustomDashboardRoute.model): Create a dashboard model from "grid" query parameter.
1431 (App.CustomDashboardRoute.renderTemplate): Use the dashboard template.
1432 (App.DashboardController): Renamed from App.IndexController.
1433 (App.DashboardController.modelChanged): Renamed from gridChanged. Removed the code to deal with "grid"
1434 and "defaultDashboard" as these are taken care of by newly added routers.
1435 (App.DashboardController.computeGrid): Renamed from updateGrid. No longer updates "grid" since this is
1436 now done in actions.toggleEditMode.
1437 (App.DashboardController.actions.toggleEditMode): Navigate to CustomDashboardRoute when start editing
1438 an existing dashboard.
1440 (App.Pane.computeStatus): Moved from App.PaneController so that to be called in App.Pane.latestStatus.
1441 Also moved the code to compute the delta with respect to the previous data point from _updateDetails.
1442 (App.Pane._relativeDifferentToLaterPointInTimeSeries): Ditto.
1443 (App.Pane.latestStatus): Added. Used by the dashboard template to show the status of the latest result.
1445 (App.createChartData): Added deltaFormatter to show less significant digits for differences.
1447 (App.PaneController._updateDetails): Updated per changes to computeStatus.
1449 * public/v2/chart-pane.css: Added style rules for the status labels on the dashboard.
1451 * public/v2/data.js:
1452 (TimeSeries.prototype.lastPoint): Added.
1454 * public/v2/index.html: Prefetch manifest.json as soon as possible, show the latest data points' status
1455 on the dashboard, and enumerate all predefined dashboards.
1457 * public/v2/interactive-chart.js:
1458 (App.InteractiveChartComponent._relayoutDataAndAxes): Slightly adjust the offset at which we show unit
1459 for the dashboard page.
1461 * public/v2/manifest.js:
1462 (App.Dashboard): Inherit from App.NameLabelModel now that each predefined dashboard has a name.
1463 (App.MetricSerializer.normalizePayload): Parse all predefined dashboards instead of a single dashboard.
1464 IDs are generated for each dashboard for forward compatibility.
1466 (App.Manifest.dashboardByName): Added.
1467 (App.Manifest.defaultDashboardName): Added.
1468 (App.Manifest._fetchedManifest): Create dashboard model objects for all predefined ones.
1470 2015-02-05 Ryosuke Niwa <rniwa@webkit.org>
1472 Move commits viewer to the end of details view
1473 https://bugs.webkit.org/show_bug.cgi?id=141315
1475 Rubber-stamped by Andreas Kling.
1477 Show the difference instead of the old value per kling's request.
1480 (App.PaneController._updateDetails):
1481 * public/v2/index.html:
1483 2015-02-05 Ryosuke Niwa <rniwa@webkit.org>
1485 Move commits viewer to the end of details view
1486 https://bugs.webkit.org/show_bug.cgi?id=141315
1488 Reviewed by Andreas Kling.
1490 Improved the way list of commits are shown per kling's request.
1493 (App.PaneController._updateDetails): Always show the old value even when a single point is selected.
1495 * public/v2/chart-pane.css: Updated the style for the commits viewer.
1497 * public/v2/commits-viewer.js:
1498 (App.CommitsViewerComponent): Added "visible" property to hide the list of commits.
1499 (App.CommitsViewerComponent.actions.toggleVisibility): Added. Toggles "visible" property.
1501 * public/v2/index.html: Updated the template for commits viewer to support "visible" property. Also
1502 moved the commits viewers out of the details tables so that they don't interleave revision data.
1504 2015-02-05 Ryosuke Niwa <rniwa@webkit.org>
1506 New perf dashboard should compare results to baseline and target
1507 https://bugs.webkit.org/show_bug.cgi?id=141286
1509 Reviewed by Chris Dumez.
1511 Compare the selected value against baseline and target values as done in v1. e.g. "5% below target"
1512 Also use d3.format to format the selected value to show four significant figures.
1515 (App.Pane.searchCommit):
1516 (App.Pane._fetch): Create time series here via createChartData so that _computeStatus can use them
1517 to compute the status text without having to recreate them.
1518 (App.createChartData): Added.
1519 (App.PaneController._updateDetails): Use 3d.format on current and old values.
1520 (App.PaneController._computeStatus): Added. Computes the status text.
1521 (App.PaneController._relativeDifferentToLaterPointInTimeSeries): Added.
1522 (App.AnalysisTaskController._fetchedManifest): Use createChartData as done in App.Pane._fetch. Also
1523 format the values using chartData.formatter.
1525 * public/v2/chart-pane.css: Enlarge the status text. Show the status text in red if it's worse than
1526 the baseline and in blue if it's better than the target.
1528 * public/v2/data.js:
1529 (TimeSeries.prototype.findPointAfterTime): Added.
1531 * public/v2/index.html: Added a new tbody for the status text and the selected value. Also fixed
1532 the bug that we were not showing the old value's unit.
1534 * public/v2/interactive-chart.js:
1535 (App.InteractiveChartComponent._constructGraphIfPossible): Use chartData.formatter. Also cleaned up
1536 the code to show the baseline and the target lines.
1538 * public/v2/manifest.js:
1539 (App.Manifest.fetchRunsWithPlatformAndMetric): Added smallerIsBetter.
1541 2015-02-05 Ryosuke Niwa <rniwa@webkit.org>
1543 Unreviewed build fix.
1546 (App.IndexController.gridChanged): Use store.createRecord to create a custom dashboard as required by Ember.js
1548 2015-02-04 Ryosuke Niwa <rniwa@webkit.org>
1550 New perf dashboard doesn't preserve the number of days when clicking on a dashboard chart
1551 https://bugs.webkit.org/show_bug.cgi?id=141280
1553 Reviewed by Chris Dumez.
1555 Fixed the bug by passing in "since" as a query parameter to the charts page.
1557 Also fixed the styling issue that manifests when a JSON fetching fails on "Dashboard" page.
1559 * public/v2/app.css: Fixed CSS rules for error messages shown in the place of charts.
1561 (App.IndexController): Changed the default number of days from one month to one week.
1562 (App.IndexController._sharedDomainChanged): Set "since" property on the controller.
1563 * public/v2/index.html: Pass in "since" property on the controller as a query parameter.
1565 2015-02-04 Ryosuke Niwa <rniwa@webkit.org>
1567 New perf dashboard erroneously clears zoom when poping history items
1568 https://bugs.webkit.org/show_bug.cgi?id=141278
1570 Reviewed by Chris Dumez.
1572 The bug was caused by _sharedZoomChanged updating overviewSelection without updating mainPlotDomain.
1574 Updating overviewSelection resulted in _overviewSelectionChanged, which observes changes to overviewSelection,
1575 to schedule a call to propagateZoom, which in turn overrode "sharedZoom" we just parsed from the query string.
1578 (App.PaneController._overviewSelectionChanged): Don't schedule propagateZoom if the selected domain is already
1579 shown in the main plot.
1580 (App.PaneController._sharedZoomChanged): Set both overviewSelection and mainPlotDomain to avoid overriding
1581 "sharedZoom" via propagateZoom inside _overviewSelectionChanged.
1583 2015-02-04 Ryosuke Niwa <rniwa@webkit.org>
1585 New perf dashboard shows null as the aggregator name if no aggregation is done
1586 https://bugs.webkit.org/show_bug.cgi?id=141256
1588 Reviewed by Chris Dumez.
1590 Don't show the aggregator name if there isn't one.
1592 * public/v2/manifest.js:
1595 2015-02-04 Ryosuke Niwa <rniwa@webkit.org>
1597 Unreviewed build fix after r179611.
1599 * public/v2/interactive-chart.js:
1601 2015-02-04 Ryosuke Niwa <rniwa@webkit.org>
1603 Perf dashboard doesn’t show the right unit for Safari UI tests
1604 https://bugs.webkit.org/show_bug.cgi?id=141238
1606 Reviewed by Darin Adler.
1608 Safari UI tests use custom metrics that end with "Time". This patch teaches the perf dashboard how to
1609 get the unit for a given metric based on the suffix of the metric name instead of hard-coding the mapping
1610 between metrics and their units.
1612 * public/js/helper-classes.js:
1613 (PerfTestRuns): Use the suffix of the metric name to compute the unit.
1614 * public/v2/manifest.js:
1615 (App.Manifest.fetchRunsWithPlatformAndMetric): Ditto. Also set "useSI" property iff for "bytes".
1616 * public/v2/interactive-chart.js:
1617 (App.InteractiveChartComponent._constructGraphIfPossible): Respect useSI. Use toPrecision(3) otherwise.
1618 (App.InteractiveChartComponent._relayoutDataAndAxes): Place the unit vertically on the left of ticks.
1620 2015-02-04 Ryosuke Niwa <rniwa@webkit.org>
1622 Interactive chart component provides two duplicate API for highlighting points
1623 https://bugs.webkit.org/show_bug.cgi?id=141234
1625 Reviewed by Chris Dumez.
1627 Prior to this patch, the interactive chart component supported highlightedItems for finding commits
1628 on the main charts page and markedPoints to show the two end points in the analysis task page.
1630 This patch merges markedPoints into highlightedItems.
1633 (App.AnalysisTaskController._fetchedRuns): Use highlightedItems.
1634 * public/v2/chart-pane.css:
1635 * public/v2/index.html: Ditto.
1636 * public/v2/interactive-chart.js:
1637 (App.InteractiveChartComponent._constructGraphIfPossible): Make this._highlights an array instead of
1638 array of arrays. Also call _highlightedItemsChanged at the end to fix the bug that we never highlight
1639 items if highlightedItems was set before the initial layout.
1640 (App.InteractiveChartComponent._relayoutDataAndAxes):
1641 (App.InteractiveChartComponent._updateHighlightPositions): Now that highlights are circles instead of
1642 vertical lines, just set cx and cy as done for other "dots".
1643 (App.InteractiveChartComponent._highlightedItemsChanged): Exit early only if _clippedContainer wasn't
1644 already set; i.e. _constructGraphIfPossible hasn't been called. Also updated the logic to accommodate
1645 the fact this._highlights is an array of elements instead of an array of arrays of elements. Finally,
1646 set the radius of highlight circles here.
1648 2015-02-03 Ryosuke Niwa <rniwa@webkit.org>
1650 Don’t use repository names as id’s.
1651 https://bugs.webkit.org/show_bug.cgi?id=141226
1653 Reviewed by Chris Dumez.
1655 Not using repository names as their id's reduces the need to fetch the entire repositories table.
1656 Since names of repositories are available in manifest.json, we can resolve their names in the front end.
1658 * Websites/perf.webkit.org/public/api/runs.php:
1659 (parse_revisions_array): No longer uses $repository_id_to_name.
1660 (main): No longer populates $repository_id_to_name.
1662 * Websites/perf.webkit.org/public/api/triggerables.php:
1663 (main): Don't resolve repository names.
1665 * Websites/perf.webkit.org/public/include/manifest.php:
1666 (ManifestGenerator::repositories): Use repositories ids as keys in the result and include their names.
1667 (ManifestGenerator::bug_trackers): Don't resolve repository names.
1669 * Websites/perf.webkit.org/public/js/helper-classes.js:
1670 (TestBuild): Renamed repositoryName to repositoryId.
1671 (TestBuild.revision): Ditto.
1672 (TestBuild.formattedRevisions): Ditto. Continue to use the repository name in the formatted result
1673 since this is the text shown to human.
1675 * Websites/perf.webkit.org/public/v2/app.js:
1676 (App.pane.searchCommit): Renamed repositoryName to repositoryId.
1677 (App.PaneController._updateDetails): Ditto.
1678 (App.AnalysisTaskController.updateRoots): Ditto.
1680 * Websites/perf.webkit.org/public/v2/data.js:
1681 (Measurement): Ditto.
1682 (Measurement.prototype.commitTimeForRepository): Ditto.
1683 (Measurement.prototype.formattedRevisions): Ditto.
1685 * Websites/perf.webkit.org/public/v2/index.html: Use the repository name and the repository id as
1686 select element's label and value respectively.
1688 2015-02-03 Ryosuke Niwa <rniwa@webkit.org>
1690 Unreviewed build fix. Declare $repository_id_to_name in the global scope.
1692 * public/api/runs.php:
1694 2015-02-03 Ryosuke Niwa <rniwa@webkit.org>
1696 /api/runs.php should have main function
1697 https://bugs.webkit.org/show_bug.cgi?id=141220
1699 Reviewed by Benjamin Poulain.
1701 Wrapped the code inside main function for clarity.
1703 * public/api/runs.php:
1705 2015-01-27 Ryosuke Niwa <rniwa@webkit.org>
1707 Unreviewed build fix. "eta" isn't set on a in-progress build on a newly added builder.
1709 * tools/sync-with-buildbot.py:
1710 (find_request_updates):
1712 2015-01-23 Ryosuke Niwa <rniwa@webkit.org>
1714 Perf dashboard always assigns the result of A/B testing with build request 1
1715 https://bugs.webkit.org/show_bug.cgi?id=140382
1717 Reviewed by Darin Adler.
1719 The bug was caused by the expression array_get($report, 'jobId') or array_get($report, 'buildRequest')
1720 which always evaluated to 1 when the report contained jobId. Fixed the bug by cascading array_get instead.
1722 Also fixed a typo as well as a bug that reports were never associated with builds.
1724 * public/include/report-processor.php:
1725 (ReportProcessor::process): Don't use "or" to find the non-null value since that always evaluates to 1
1726 instead of the first non-null value.
1727 (ReportProcessor::resolve_build_id): Fixed the typo by adding the missing "$this->".
1728 (ReportProcessor::commit): Associate the report with the corresponding build as intended.
1730 2015-01-23 Ryosuke Niwa <rniwa@webkit.org>
1732 Unreviewed typo fix. The prefix in triggerable_configurations is "trigconfig", not "trigrepo".
1734 * public/admin/tests.php:
1736 2015-01-10 Ryosuke Niwa <rniwa@webkit.org>
1738 Unreviewed build fix. Removed the stale code.
1740 * public/admin/triggerables.php:
1742 2015-01-09 Ryosuke Niwa <rniwa@webkit.org>
1744 Perf dashboard should have the ability to post A/B testing builds
1745 https://bugs.webkit.org/show_bug.cgi?id=140317
1747 Rubber-stamped by Simon Fraser.
1749 This patch adds the support for triggering A/B testing from the perf dashboard.
1751 We add a few new tables to the database. "build_triggerables", which represents a set of builders
1752 that accept A/B testing. "triggerable_repositories" associates each "triggerable" with a fixed set
1753 of repositories for which an arbitrary revision can be specified for A/B testing.
1754 "triggerable_configurations" specifies a triggerable available on a given test on a given platform.
1755 "roots" table which specifies the revision used in a given root set in each repository.
1757 * init-database.sql: Added "build_triggerables", "triggerable_repositories",
1758 "triggerable_configurations", and "roots" tables. Added references to "build_triggerables",
1759 "platforms", and "tests" tables as well as columns to store status, status url, and creation time
1760 to build_requests table. Also made each test group's name unique in a given analysis task as it
1761 would be confusing to have multiple test groups of the same name.
1763 * public/admin/tests.php: Added the UI and the code to associate a test with a triggerable.
1765 * public/admin/triggerables.php: Added. Manages the list of triggerables as well as repositories
1766 for which a specific revision can be set in an A/B testing on a given triggerable.
1768 * public/api/build-requests.php: Added. Returns the list of open build requests on a specified
1769 triggerable. Also updates the status' and the status urls of specified build requests when
1770 buildRequestUpdates is provided in the raw POST data.
1773 * public/api/runs.php:
1774 (fetch_runs_for_config): Don't include results associated with a build request, meaning they are
1775 results of an A/B testing.
1777 * public/api/test-groups.php:
1778 (main): Use the newly added BuildRequestsFetcher. Also merged fetch_test_groups_for_task back.
1780 * public/api/triggerables.php: Added.
1781 (main): Returns a list of triggerables or a triggerable associated with a given analysis task.
1783 * public/include/admin-header.php:
1785 * public/include/build-requests-fetcher.php: Added. Extracted from public/api/test-groups.php.
1786 (BuildRequestsFetcher): This class abstracts the process of fetching a list of builds requests
1787 and root sets used in those requests.D
1788 (BuildRequestsFetcher::__construct):
1789 (BuildRequestsFetcher::fetch_for_task):
1790 (BuildRequestsFetcher::fetch_for_group):
1791 (BuildRequestsFetcher::fetch_incomplete_requests_for_triggerable):
1792 (BuildRequestsFetcher::has_results):
1793 (BuildRequestsFetcher::results):
1794 (BuildRequestsFetcher::results_with_resolved_ids):
1795 (BuildRequestsFetcher::results_internal):
1796 (BuildRequestsFetcher::root_sets):
1797 (BuildRequestsFetcher::fetch_roots_for_set):
1799 * public/include/db.php:
1800 (Database::prefixed_column_names): Don't return "$prefix_" when there are no columns.
1801 (Database::insert_row): Support taking an empty array for values. This is useful in "root_sets"
1802 table since it only has the primary key, id, column.
1803 (Database::select_or_insert_row):
1804 (Database::update_or_insert_row):
1805 (Database::update_row): Added.
1806 (Database::_select_update_or_insert_row): Takes an extra argument specifying whether a new row
1807 should be inserted when no row matches the specified criteria. This is used while updating
1808 build_requests' status and url in public/api/build-requests.php since we shouldn't be inserting
1809 new build requests in that API.
1810 (Database::select_rows): Also use "1 == 1" in the select query when the query criteria is empty.
1811 This is used in public/api/triggerables.php when no analysis task is specified.
1813 * public/include/json-header.php:
1814 (find_triggerable_for_task): Added. Finds a triggerable available on a given test. We return the
1815 triggerable associated with the closest ancestor of the test. Since issuing a new query for each
1816 ancestor test is expensive, we retrieve triggerable for all ancestor tests at once and manually
1817 find the closest ancestor with a triggerable.
1819 * public/include/report-processor.php:
1820 (ReportProcessor::process):
1821 (ReportProcessor::resolve_build_id): Associate a build request with the newly created build
1822 if jobId or buildRequest is specified.
1824 * public/include/test-name-resolver.php:
1825 (TestNameResolver::map_metrics_to_tests): Store the entire metric row instead of its name so that
1826 test_exists_on_platform can use it. The last diff in public/admin/tests.php adopts this change.
1827 (TestNameResolver::test_exists_on_platform): Added. Returns true iff the test has ever run on
1830 * public/include/test-path-resolver.php: Added.
1831 (TestPathResolver): This class abstracts the ancestor chains of a test. It retrieves the entire
1832 "tests" table to do this since there could be arbitrary number of ancestors for a given test.
1833 This class is a lot more lightweight than TestNameResolver, which retrieves a whole bunch of tables
1834 in order to compute full test metric names.
1835 (TestPathResolver::__construct):
1836 (TestPathResolver::ancestors_for_test): Returns the ordered list of ancestors from the closest to
1837 the highest (a test without a parent).
1838 (TestPathResolver::path_for_test): Returns a test "path", the ordered list of test names from
1839 the highest ancestor to the test itself.
1840 (TestPathResolver::ensure_id_to_test_map): Fetches "tests" table to construct id_to_test_map.
1842 * public/privileged-api/create-test-group.php: Added. An API to create A/B testing groups.
1844 (commit_sets_from_root_sets): Given a dictionary of repository names to a pair of revisions
1845 for sets A and B respectively, returns a pair of arrays, each of which contains the corresponding
1846 set of "commits" for sets A and B respectively. e.g. {"WebKit": [1, 2], "Safari": [3, 4]} will
1847 result in [[WebKit commit at r1, Safari commit at r3], [WebKit commit at r2, Safari commit at r4]].
1849 * public/v2/analysis.js:
1850 (App.AnalysisTask.testGroups): Takes arguments so that set('testGroups') will invalidate the cache.
1851 (App.AnalysisTask.triggerable): Added. Retrieves the triggerable associated with the task lazily.
1852 (App.TestGroup.rootSets): Added. Returns the list of root set ids used in this A/B testing group.
1853 (App.TestGroup.create): Added. Creates a new A/B testing group.
1854 (App.Triggerable): Added.
1855 (App.TriggerableAdapter): Added.
1856 (App.TriggerableAdapter.buildURL): Added.
1857 (App.BuildRequest.testGroup): Renamed from group.
1858 (App.BuildRequest.orderLabel): Added. One-based index to be used in labels.
1859 (App.BuildRequest.config): Added. Returns either 'A' or 'B' depending on the configuration used
1860 in this build request.
1861 (App.BuildRequest.status): Added.
1862 (App.BuildRequest.statusLabel): Added. Returns a human friendly label for the current status.
1863 (App.BuildRequest): Removed buildNumber, buildBuilder, as well as buildTime as they're unused.
1866 (App.AnalysisTaskController.testGroups): Added.
1867 (App.AnalysisTaskController.possibleRepetitionCounts): Added.
1868 (App.AnalysisTaskController.updateRoots): Renamed from roots. This is also no longer a property
1869 but an observer that updates "roots" property. Filter out the repositories that are not accepted
1870 by the associated triggerable as they will be ignored.
1871 (App.AnalysisTaskController.actions.createTestGroup): Added.
1873 * public/v2/index.html: Updated the UI, and added a form element to trigger createTestGroup action.
1875 * tools/sync-with-buildbot.py: Added. This scripts posts new builds on buildbot and reports back
1876 the status of those builds to the perf dashboard. A similar script can be written to support
1877 other continuous builds systems.
1878 (main): Fetches the list of pending builds as well as currently running or completed builds from
1879 a buildbot, and report new statuses of builds requests to the perf dashboard. It will then schedule
1880 a single new build on each builder with no pending builds, and marks the set of open build requests
1881 that have been scheduled to run on the buildbot but not found in the first step as stale.
1882 (load_config): Loads a JSON that contains the configurations for each builder. e.g.
1885 "platform": "mac-mavericks",
1886 "test": ["Parser", "html5-full-render.html"],
1887 "builder": "Trunk Syrah Production Perf AB Tests",
1889 "forcescheduler": "force-mac-mavericks-release-perf",
1890 "webkit_revision": "$WebKit",
1891 "jobid": "$buildRequest"
1896 (find_request_updates): Return a list of build request status updates to make based on the pending
1897 builds as well as in-progress and completed builds on each builder on the buildbot. When a build is
1898 completed, we use the special status "failedIfNotCompleted" which results in "failed" status only
1899 if the build request had not been completed. This is necessary because a failed build will not
1900 report its failed-ness back to the perf dashboard in some cases; e.g. lost slave or svn up failure.
1901 (update_and_fetch_build_requests): Submit the build request status updates and retrieve the list
1902 of open requests the perf dashboard has.
1903 (find_stale_request_updates): Compute the list of build requests that have been scheduled on the
1904 buildbot but not found in find_request_updates. These build requests are lost. e.g. a master reboot
1905 or human canceling a build may trigger such a state.
1906 (schedule_request): Schedules a build with the arguments specified in the configuration JSON after
1907 replacing repository names with their revisions and buildRequest with the build request id.
1908 (config_for_request): Finds a builder for the test and the platform of a build request.
1909 (fetch_json): Fetches a JSON from the specified URL, optionally with BasicAuth.
1910 (property_value_from_build): Returns the value of a specific property in a buildbot build.
1911 (request_id_from_build): Returns the build request id of a given buildbot build if there is one.
1913 2015-01-09 Ryosuke Niwa <rniwa@webkit.org>
1915 Cache-control should be set only on api/runs
1916 https://bugs.webkit.org/show_bug.cgi?id=140312
1918 Reviewed by Andreas Kling.
1920 Some JSON APIs such as api/analysis-tasks can't be cached even for a short period of time (e.g. a few minutes)
1921 since they can be modified by the user on demand. Since only api/runs.php takes a long time to generate JSONs,
1922 just set cache-control there instead of json-header.php which is used by other JSON APIs.
1924 Also set date_default_timezone_set in db.php since we never use non-UTC timezone in our scripts.
1926 * public/api/analysis-tasks.php:
1927 * public/api/runs.php: Set the cache control headers.
1928 * public/api/test-groups.php:
1929 * public/include/db.php: Set the default timezone to UTC.
1930 * public/include/json-header.php: Don't set the cache control headers.
1932 2015-01-09 Ryosuke Niwa <rniwa@webkit.org>
1934 api/report-commit should authenticate with a slave name and password
1935 https://bugs.webkit.org/show_bug.cgi?id=140308
1937 Reviewed by Benjamin Poulain.
1939 Use a slave name and a password to authenticate new commit reports.
1941 * public/api/report-commits.php:
1943 * public/include/json-header.php:
1944 (verify_slave): Renamed and repurposed from verify_builder in report-commits.php. Now authenticates with
1945 a slave name and a password instead of a builder name and a password.
1946 * tests/api-report-commits.js: Updated tests.
1947 * tools/pull-svn.py:
1948 (main): Renamed variables.
1949 (submit_commits): Submits slaveName and slavePassword instead of builderName and builderPassword.
1951 2014-12-19 Ryosuke Niwa <rniwa@webkit.org>
1953 Perf dashboard should support authentication via a slave password
1954 https://bugs.webkit.org/show_bug.cgi?id=139837
1956 Reviewed by Andreas Kling.
1958 For historical reasons, perf dashboard conflated builders and build slaves. As a result we ended up
1959 having to add multiple builders with the same password when a single build slave is shared among them.
1961 This patch introduces the concept of build_slave into the perf dashboard to end this madness.
1963 * init-database.sql: Added build_slave table as well as references to it in builds and reports.
1965 * public/admin/build-slaves.php: Added.
1967 * public/admin/builders.php: Added the support for updating passwords.
1969 * public/include/admin-header.php:
1970 (update_field): Takes an extra argument when a new value needs to be supplied by the caller instead of
1971 being retrieved from $_POST.
1972 (AdministrativePage::render_table): Use array_get to retrieve a value out of the database row since
1973 the raw may not exist (e.g. new_password).
1974 (AdministrativePage::render_form_to_add): Added the support for post_insertion. Don't render the form
1975 control here when this flag evaluates to TRUE.
1977 * public/include/report-processor.php:
1978 (ReportProcessor::process): Added the logic to authenticate with slaveName and slavePassword if those
1979 values are present in the report. In addition, try authenticating builderName with slavePassword if
1980 builderPassword is not specified. When neither password is specified, exit with BuilderNotFound.
1981 Also insert the slave or the builder whichever is missing after we've successfully authenticated.
1982 (ReportProcessor::construct_build_data): Takes a builder ID and an optional slave ID instead of
1984 (ReportProcessor::store_report): Store the slave ID with the report.
1985 (ReportProcessor::resolve_build_id): Exit with MismatchingBuildSlave when the slave associated with
1986 the matching build is different from what's being reported.
1988 * tests/api-report.js: Added a bunch of tests to test the new features of /api/report.
1991 2014-12-18 Ryosuke Niwa <rniwa@webkit.org>
1993 New perf dashboard should not duplicate author information in each commit
1994 https://bugs.webkit.org/show_bug.cgi?id=139756
1996 Reviewed by Darin Adler.
1998 Instead of each commit having author name and email, make it reference a newly added committers table.
1999 Also replace "email" by "account" since some repositories don't use emails as account names.
2001 This improves the keyword search performance in commits.php since LIKE now runs on committers table,
2002 which only contains as many rows as there are accounts in each repository, instead of commits table
2003 which contains every commit ever happened in each repository.
2005 To migrate an existing database into match the new schema, run:
2009 INSERT INTO committers (committer_repository, committer_name, committer_email)
2010 (SELECT DISTINCT commit_repository, commit_author_name, commit_author_email
2011 FROM commits WHERE commit_author_email IS NOT NULL);
2013 ALTER TABLE commits ADD COLUMN commit_committer integer REFERENCES committers ON DELETE CASCADE;
2015 UPDATE commits SET commit_committer = committer_id FROM committers
2016 WHERE commit_repository = committer_repository AND commit_author_email = committer_email;
2018 ALTER TABLE commits DROP COLUMN commit_author_name CASCADE;
2019 ALTER TABLE commits DROP COLUMN commit_author_email CASCADE;
2023 * init-database.sql: Added committers table, and replaced author columns in commits table by a foreign
2024 reference to committers. Also added the missing drop table statements.
2026 * public/api/commits.php:
2027 (main): Fetch the corresponding committers row for a single commit. Also wrap a single commit by
2028 an array here instead of doing it in format_commit.
2029 (fetch_commits_between): Updated queries to JOIN commits with committers.
2030 (format_commit): Takes both commit and committers rows. Also don't wrap the result in an array as that
2031 is now done in main.
2033 * public/api/report-commits.php:
2034 (main): Store the reported committer information or update the existing entry if there is one.
2036 * tests/admin-regenerate-manifest.js: Fixed tests.
2038 * tests/api-report-commits.js: Ditto. Also added a test for updating an existing committer entry.
2040 * tools/pull-svn.py: Renamed email to account.
2042 (fetch_commit_and_resolve_author):
2044 (resolve_author_name_from_account):
2045 (resolve_author_name_from_email): Deleted.
2047 2014-12-17 Ryosuke Niwa <rniwa@webkit.org>
2049 Unreviewed build fix.
2051 * public/v2/index.html: Include js files we extracted in r177424.
2053 2014-12-16 Ryosuke Niwa <rniwa@webkit.org>
2055 Unreviewed. Adding the forgotten svnprop.
2057 * tools/pull-svn.py: Added property svn:executable.
2059 2014-12-16 Ryosuke Niwa <rniwa@webkit.org>
2061 Split InteractiveChartComponent and CommitsViewerComponent into separate files
2062 https://bugs.webkit.org/show_bug.cgi?id=139716
2064 Rubber-stamped by Benjamin Poulain.
2066 Refactored InteractiveChartComponent and CommitsViewerComponent out of app.js into commits-viewer.js
2067 and interactive-chart.js respectively since app.js has gotten really large.
2070 * public/v2/commits-viewer.js: Added.
2071 * public/v2/interactive-chart.js: Added.
2073 2014-12-02 Ryosuke Niwa <rniwa@webkit.org>
2075 New perf dashboard's chart UI is buggy
2076 https://bugs.webkit.org/show_bug.cgi?id=139214
2078 Reviewed by Chris Dumez.
2080 The bugginess was caused by weird interactions between charts and panes. Rewrote the code to fix it.
2082 Superfluous selectionChanged and domainChanged "event" actions were removed from the interactive chart
2083 component. This is not how Ember.js components should interact to begin with. The component now exposes
2084 selectedPoints and always updates selection instead of sharedSelection.
2087 (App.ChartsController.present): Added. We can't call Date.now() in various points in our code as that
2088 would lead to infinite mutual recursions since X-axis domain values wouldn't match up.
2089 (App.ChartsController.updateSharedDomain): This function was completely useless. The overview's start
2090 and end time should be completely determined by "since" and the present time.
2091 (App.ChartsController._startTimeChanged): Ditto.
2092 (App.ChartsController._scheduleQueryStringUpdate):
2093 (App.ChartsController._updateQueryString): Set "zoom" only if it's different from the shared domain.
2095 (App.domainsAreEqual): Moved from InteractiveChartComponent._xDomainsAreSame.
2097 (App.PaneController.actions.createAnalysisTask): Use selectedPoints property set by the chart.
2098 (App.PaneController.actions.overviewDomainChanged): Removed; only needed to call updateSharedDomain.
2099 (App.PaneController.actions.rangeChanged): Removed. _showDetails (renamed to _updateDetails) directly
2100 observes the changes to selectedPoints property as it gets updated by the main chart.
2101 (App.PaneController._overviewSelectionChanged): This was previously a dead code. Now it's used again
2102 with a bug fix. When the overview selection is cleared, we use the same domain in the main chart and
2104 (App.PaneController._sharedDomainChanged): Fixed a but that it erroneously updates the overview domain
2105 when domain arrays aren't identical. This was causing a subtle race with other logic.
2106 (App.PaneController._sharedZoomChanged): Ditto. Also don't set mainPlotDomain here as any changes to
2107 overviewSelection will automatically propagate to the main plot's domain as they're aliased.
2108 (App.PaneController._currentItemChanged): Merged into _updateDetails (renamed from _showDetails).
2109 (App.PaneController._updateDetails): Previously, this function took points and inspected _hasRange to
2110 see if those two points correspond to a range or a single data point. Rewrote all that logic by
2111 directly observing selectedPoints and currentItem properties instead of taking points and relying on
2112 an instance variable, which was a terrible API.
2113 (App.PaneController._updateCanAnalyze): Use selectedPoints property. Since this property is only set
2114 when the main plot has a selected range, we don't have to check this._hasRange anymore.
2116 (App.InteractiveChartComponent._updateDomain): No longer sends domainChanged "event" action.
2117 (App.InteractiveChartComponent._sharedSelectionChanged): Removed. This is a dead code.
2118 (App.InteractiveChartComponent._updateSelection):
2119 (App.InteractiveChartComponent._xDomainsAreSame): Moved to App.domainsAreEqual.
2120 (App.InteractiveChartComponent._setCurrentSelection): Update the selection only if needed. Also set
2121 selectedPoints property.
2123 (App.AnalysisTaskController._fetchedRuns):
2124 (App.AnalysisTaskController._rootChangedForTestSet):
2126 * public/v2/index.html:
2127 Removed non-functional sharedSelection and superfluous selectionChanged and domainChanged actions.
2129 2014-11-21 Ryosuke Niwa <rniwa@webkit.org>
2131 Unreviewed. Fixed syntax errors.
2133 * init-database.sql:
2134 * public/api/commits.php:
2136 2014-11-21 Ryosuke Niwa <rniwa@webkit.org>
2138 The dashboard on new perf monitor should be configurable
2139 https://bugs.webkit.org/show_bug.cgi?id=138994
2141 Reviewed by Benjamin Poulain.
2143 For now, make it configurable via config.json. We should eventually make it configurable via
2144 an administrative page but this will do for now.
2146 * config.json: Added the empty dashboard configuration.
2148 * public/include/manifest.php: Include the dashboard configuration in the manifest file.
2151 (App.IndexController): Removed defaultTable since this is now dynamically obtained via App.Manifest.
2152 (App.IndexController.gridChanged): Use App.Dashboard to parse the dashboard configuration.
2153 Also obtain the default configuration from App.Manifest.
2154 (App.IndexController._normalizeTable): Moved to App.Dashboard.
2156 * public/v2/manifest.js:
2157 (App.Repository.urlForRevision): Fixed the position of the open curly bracket.
2158 (App.Repository.urlForRevisionRange): Ditto.
2159 (App.Dashboard): Added.
2160 (App.Dashboard.table): Extracted from App.IndexController.gridChanged.
2161 (App.Dashboard.rows): Ditto.
2162 (App.Dashboard.headerColumns): Ditto.
2163 (App.Dashboard._normalizeTable): Moved from App.IndexController._normalizeTable.
2164 (App.MetricSerializer.normalizePayload): Synthesize a dashboard record from the configuration.
2165 Since there is exactly one dashboard object per app, it's okay to hard code an id here.
2166 (App.Manifest._fetchedManifest): Set defaultDashboard to the one and only one dashboard we have.
2168 2014-11-21 Ryosuke Niwa <rniwa@webkit.org>
2170 There should be a way to associate bugs with analysis tasks
2171 https://bugs.webkit.org/show_bug.cgi?id=138977
2173 Reviewed by Benjamin Poulain.
2175 Updated associate-bug.php to match the new database schema.
2177 * public/include/json-header.php:
2178 (require_format): Removed the call to camel_case_words_separated_by_underscore since the name is
2179 already camel-cased in require_existence_of. This makes the function usable elsewhere.
2181 * public/privileged-api/associate-bug.php:
2182 (main): Changed the API to take run, bugTracker, and number to match the new database schema.
2183 Also verify that those values are integers using require_format.
2185 * public/v2/analysis.js:
2186 (App.AnalysisTask.label): Added. Concatenates the task's name with the bug numbers.
2187 (App.Bug.label): Added.
2188 (App.BugAdapter): Added.
2189 (App.BugAdapter.createRecord): Use PrivilegedAPI instead of the builtin ajax call.
2190 (App.BuildRequest): Inherit from newly added App.Model, which is set to DS.Model right now.
2192 * public/v2/app.css: Renamed .test-groups to .analysis-group. Also added new rules for the table
2193 containing the bug information.
2196 (App.InteractiveChartComponent._rangesChanged): Added label to range bar objects.
2197 (App.AnalysisTaskRoute):
2198 (App.AnalysisTaskController): Replaced the functionality of App.AnalysisTaskViewModel.
2199 (App.AnalysisTaskController._fetchedManifest): Added.
2200 (App.AnalysisTaskController.actions.associateBug): Added.
2202 * public/v2/chart-pane.css: Renamed .bugs-pane to .analysis-pane.
2204 * public/v2/data.js:
2205 (Measurement.prototype.associateBug): Deleted.
2207 * public/v2/index.html: Renamed .bugs-pane to .analysis-pane and .test-groups to .analysis-group.
2208 Added a table show the bug information. Also hide the chart until chartData is available.
2210 * public/v2/manifest.js:
2213 2014-11-20 Ryosuke Niwa <rniwa@webkit.org>
2215 Fix misc bugs and typos in app.js
2216 https://bugs.webkit.org/show_bug.cgi?id=138946
2218 Reviewed by Benjamin Poulain.
2221 (App.DashboardPaneProxyForPicker._platformOrMetricIdChanged):
2222 (App.ChartsController.init):
2223 (App.buildPopup): Renamed from App.BuildPopup.
2224 (App.InteractiveChartComponent._constructGraphIfPossible): Fixed the bug that we were calling
2225 remove() on the wrong object (an array as opposed to elements in the array).
2226 (App.InteractiveChartComponent._highlightedItemsChanged): Check the length of _highlights as
2227 _highlights is always an array and evalutes to true.
2229 2014-11-20 Ryosuke Niwa <rniwa@webkit.org>
2231 New perf dashboard should provide UI to create a new analysis task
2232 https://bugs.webkit.org/show_bug.cgi?id=138910
2234 Reviewed by Benjamin Poulain.
2236 This patch reverts some parts of r175006 and re-introduces bugs associated with analysis tasks.
2237 I'll add UI to show and edit bug numbers associated with an analysis task in a follow up patch.
2239 With this patch, we can create a new analysis task by selection a range of points and opening
2240 "analysis pane" (renamed from "bugs pane"). Each analysis task created is represented by a yellow bar
2241 in the chart hyperlinked to the analysis task.
2243 * init-database.sql: Redefined the bugs to be associated with an analysis task instead of a test run.
2245 * public/api/analysis-tasks.php: Added the support for querying analysis tasks for a specific metric
2246 on a specific platform. Also retrieve and return all bugs associated with analysis tasks.
2248 (fetch_and_push_bugs_to_tasks): Added. Fetches all bugs associated with an array of analysis tasks
2249 and adds the associated bugs to each task in the array.
2252 * public/api/runs.php: Reverted changes made in r175006.
2253 (fetch_runs_for_config):
2256 * public/api/test-groups.php:
2257 (fetch_test_groups_for_task): Use the newly added Database::select_rows.
2259 * public/include/db.php:
2260 (Database::select_first_or_last_row):
2261 (Database::select_rows): Extracted from select_first_or_last_row.
2263 * public/v2/analysis.js:
2264 (App.AnalysisTask): Added "bugs" property.
2265 (App.Bug): Added now that bugs are regular data store objects.
2268 (App.Pane._fetch): Calls this.fetchAnalyticRanges to fetch analysis tasks as well as test runs.
2269 (App.Pane.fetchAnalyticRanges): Added. Fetches analysis tasks for the current metric on the current
2270 platform that are associated with a specific range of runs.
2271 (App.PaneController.actions.toggleBugsPane): Updated per showingBugsPane to showingAnalysisPane rename.
2272 (App.PaneController.actions.associateBug): Deleted.
2273 (App.PaneController.actions.createAnalysisTask): Replaced the pre-condition checks with assertions as
2274 this action should never be triggered when the pre-condition is not met. Also re-fetch analysis tasks
2275 once we've created one.
2276 (App.PaneController.toggleSearchPane): Updated per showingBugsPane to showingAnalysisPane rename.
2277 (App.PaneController._detailsChanged): Ditto. Removed selectedSinglePoint since it's no longer used.
2278 (App.PaneController._showDetails): Call _updateCanAnalyze to update the status of "Analyze" button.
2279 (App.PaneController._updateBugs): Deleted.
2280 (App.PaneController._updateMarkedPoints): Deleted.
2281 (App.PaneController._updateCanAnalyze): Added. Disables the button to create an analysis task when
2282 the name is missing or when at most one point is selected.
2284 (App.InteractiveChartComponent._constructGraphIfPossible): Update the locations of range rects.
2285 (App.InteractiveChartComponent._relayoutDataAndAxes): Ditto.
2286 (App.InteractiveChartComponent._mousePointInGraph): Don't return a point unless the mouse cursor is
2287 on our svg element to avoid locking the current item when a bar shown for an analysis task is clicked.
2288 (App.InteractiveChartComponent._rangesChanged): Added. Creates an array of objects representing
2289 clickable bars for analysis tasks.
2290 (App.InteractiveChartComponent._updateRangeBarRects): Computes the inline style used by each clickable
2291 bar for analysis tasks to place them at the right location.
2292 (App.InteractiveChartComponent.actions.openRange): Added. Forwards the action to the parent controller.
2294 * public/v2/chart-pane.css:
2295 (.chart .extent): Use the same color as the vertical indicator in the highlight behind the selection.
2296 (.chart .rangeBar): Added.
2298 * public/v2/data.js:
2299 (TimeSeries.prototype.nextPoint): Added. Used by _rangesChanged.
2301 * public/v2/index.html: Renamed "bugs pane" to "analysis pane" and removed the UI to associate bugs.
2302 This ability will be reinstated in a follow up patch. Also added a container div and spans for analysis
2303 task bars in the interactive chart component.
2305 2014-11-19 Ryosuke Niwa <rniwa@webkit.org>
2307 Fix typos in r176203.
2310 (App.ChartsController.actions.addPaneByMetricAndPlatform):
2311 (App.AnalysisTaskRoute):
2313 2014-11-18 Ryosuke Niwa <rniwa@webkit.org>
2315 Unreviewed. Updated the install instruction.
2319 2014-11-17 Ryosuke Niwa <rniwa@webkit.org>
2321 App.Manifest shouldn't use App.__container__.lookup
2322 https://bugs.webkit.org/show_bug.cgi?id=138768
2324 Reviewed by Andreas Kling.
2326 Removed the hack to find the store object via App.__container__.lookup.
2327 Pass around the store object instead.
2330 (App.DashboardRow._createPane): Add "store" property to the pane.
2331 (App.DashboardPaneProxyForPicker._platformOrMetricIdChanged): Ditto.
2332 (App.IndexController.gridChanged): Ditto.
2333 (App.IndexController.actions.addRow): Ditto.
2334 (App.IndexController.init): Ditto.
2335 (App.Pane._fetch): Ditto.
2336 (App.ChartsController._parsePaneList): Ditto.
2337 (App.ChartsController._updateQueryString): Ditto.
2338 (App.ChartsController.actions.addPaneByMetricAndPlatform): Ditto.
2339 (App.BuildPopup): Ditto.
2340 (App.AnalysisTaskRoute.model): Ditto.
2341 (App.AnalysisTaskViewModel._taskUpdated): Ditto.
2343 * public/v2/manifest.js:
2344 (App.Manifest.fetch): Removed the code to find the store object.
2346 2014-11-08 Ryosuke Niwa <rniwa@webkit.org>
2348 Fix Ember.js warnings the new perf dashboard
2349 https://bugs.webkit.org/show_bug.cgi?id=138531
2351 Reviewed by Darin Adler.
2353 Fixed various warnings.
2356 (App.InteractiveChartComponent._relayoutDataAndAxes): We can't use "rem". Use this._rem as done for x.
2357 * public/v2/data.js:
2358 (PrivilegedAPI._post): Removed the superfluous console.log.
2359 (CommitLogs.fetchForTimeRange): Ditto.
2360 * public/v2/index.html: Added tbody as required by the HTML specification.
2362 2014-11-07 Ryosuke Niwa <rniwa@webkit.org>
2364 Fix typos in r175768.
2367 (App.AnalysisTaskViewModel.roots):
2369 2014-11-07 Ryosuke Niwa <rniwa@webkit.org>
2371 Introduce the concept of analysis task to perf dashboard
2372 https://bugs.webkit.org/show_bug.cgi?id=138517
2374 Reviewed by Andreas Kling.
2376 Introduced the concept of an analysis task, which is created for a range of measurements for a given metric on
2377 a single platform and used to bisect regressions in the range.
2379 Added a new page to see the list of active analysis tasks and a page to view the contents of an analysis task.
2381 * init-database.sql: Added a bunch of tables to store information about analysis tasks.
2382 analysis_tasks - Represents each analysis task. Associated with a platform and a metric and possibly with two
2383 test runs. Analysis tasks not associated with test runs are used for try new patches.
2384 analysis_test_groups - A test group in an analysis task represents a bunch of related A/B testing results.
2385 root_sets - A root set represents a set of roots (or packages) installed in each A/B testing.
2386 build_requests - A build request represents a single pending build for A/B testing.
2388 * public/api/analysis-tasks.php: Added. Returns the specified analysis task or all analysis tasks in an array.
2392 * public/api/test-groups.php: Added. Returns analysis task groups for the specified analysis task or returns
2393 the specified analysis task group as well as build requests associated with them.
2395 (fetch_test_groups_for_task):
2396 (fetch_build_requests_for_task):
2397 (fetch_build_requests_for_group):
2398 (format_test_group):
2399 (format_build_request):
2401 * public/include/json-header.php:
2402 (remote_user_name): Extracted from compute_token so that we can use it in create-analysis-task.php.
2405 * public/privileged-api/associate-bug.php:
2406 (main): Fixed a typo.
2408 * public/privileged-api/create-analysis-task.php: Added. Creates a new analysis task for a given test run range.
2411 (ensure_config_from_runs):
2413 * public/privileged-api/generate-csrf-token.php: Use remote_user_name.
2415 * public/v2/analysis.js: Added. Various Ember data store models to represent analysis tasks and related objects.
2417 (App.AnalysisTask.create):
2419 (App.TestGroupAdapter):
2420 (App.AnalysisTaskSerializer):
2421 (App.TestGroupSerializer):
2424 * public/v2/app.css: Added style rules for the analysis page.
2427 (App.Pane._fetch): Use fetchRunsWithPlatformAndMetric, which has been refactored into App.Manifest.
2429 (App.PaneController.actions.toggleBugsPane): Show bugs pane even when there are no bug trackers or there is not
2430 exactly one selected point as we can still create an analysis task.
2431 (App.PaneController.actions.associateBug): Renamed singlySelectedPoint to selectedSinglePoint to be more
2432 grammatical and also alert'ed the error message when there is one.
2433 (App.PaneController.actions.createAnalysisTask): Added. Creates a new analysis task and opens it in a new tab.
2434 Since window.open only works during the click, we open the new "window" preemptively and navigates or closes it
2435 once XHR request has completed.
2436 (App.PaneController._detailsChanged): Changes due to singlySelectedPoint to selectedSinglePoint rename.
2437 (App.PaneController._updateBugs): Fixed a bug that we were showing bugs in the previous point when a single point
2438 is selected in the details pane.
2440 (App.AnalysisRoute): Added.
2441 (App.AnalysisTaskRoute): Added.
2442 (App.AnalysisTaskViewModel): Added.
2443 (App.AnalysisTaskViewModel._taskUpdated): Fetch runs for the associated platform and metric.
2444 (App.AnalysisTaskViewModel._fetchedRuns): Setup the chart data to show.
2445 (App.AnalysisTaskViewModel.testSets): The computed property used to update roots for all repositories/projects.
2446 (App.AnalysisTaskViewModel._rootChangedForTestSet): Updates root selections for all repositories/projects when
2447 the user selects an option for all roots in A or B configuration.
2448 (App.AnalysisTaskViewModel.roots): The computed property used to show root choices for each repository/project.
2450 * public/v2/chart-pane.css: Added style rules for details view in the analysis task page.
2452 * public/v2/data.js:
2453 (Measurement.prototype._formatRevisionRange): Don't prefix a revision number with "At " when there is no previous
2454 point so that we can use it in App.AnalysisTaskViewModel.roots.
2455 (TimeSeries.prototype.findPointByMeasurementId): Added.
2456 (TimeSeries.prototype.seriesBetweenPoints): Added.
2458 * public/v2/index.html: Use Metric.fullName since the same value is needed in the analysis task page. Also added
2459 a button to create an analysis task, and made bugs pane button always enabled since we can an analysis task even
2460 when multiple points are selected. Finally, added a new template for the analysis task page.
2462 * public/v2/manifest.js:
2463 (App.Metric.fullName): Added to share code between the charts page and the analysis task page.
2464 (App.Manifest.fetchRunsWithPlatformAndMetric): Extracted from App.Pane._fetch to be reused in
2465 App.AnalysisTaskViewModel._taskUpdated.
2467 2014-10-28 Ryosuke Niwa <rniwa@webkit.org>
2469 Remove App.PaneController.bugsChangeCount in the new perf dashboard
2470 https://bugs.webkit.org/show_bug.cgi?id=138111
2472 Reviewed by Darin Adler.
2475 (App.PaneController.bugsChangeCount): Removed.
2476 (App.PaneController.actions.associateBug): Call _updateMarkedPoints instead of incrementing bugsChangeCount.
2477 (App.PaneController._updateMarkedPoints): Extracted from App.InteractiveChartComponent._updateDotsWithBugs.
2478 Finds the list of current run's points that are associated with bugs.
2479 (App.InteractiveChartComponent._updateMarkedDots): Renamed from _updateDotsWithBugs.
2480 * public/v2/chart-pane.css:
2481 (.chart .marked): Renamed from .hasBugs.
2482 * public/v2/index.html: Specify chartPointRadius and markedPoints.
2484 2014-10-27 Ryosuke Niwa <rniwa@webkit.org>
2486 REGRESSION: commit logs are not shown sometimes on the new dashboard UI
2487 https://bugs.webkit.org/show_bug.cgi?id=138099
2489 Reviewed by Benjamin Poulain.
2491 The bug was caused by _currentItemChanged not passing the previous point in the list of points and also
2492 _showDetails inverting the order of the current and old measurements.
2495 (App.PaneController._currentItemChanged): Pass in the previous point to _showDetails when there is one.
2496 (App.PaneController._showDetails): Since points are ordered chronologically, the last point is the
2497 current (latest) measurement and the first point is the oldest measurement.
2498 (App.CommitsViewerComponent.commitsChanged): Don't show a single measurement as a range for clarity.
2500 2014-10-18 Ryosuke Niwa <rniwa@webkit.org>
2502 Perf dashboard should provide a way to associate bugs with a test run
2503 https://bugs.webkit.org/show_bug.cgi?id=137857
2505 Reviewed by Andreas Kling.
2507 Added a "privileged" API, /privileged-api/associate-bug, to associate a bug with a test run.
2508 /privileged-api/ is to be protected by an authentication mechanism such as DigestAuth over https by
2509 the Apache configuration.
2512 The Cross Site Request (CSRF) Forgery prevention for privileged APIs work as follows. When a user is
2513 about to make a privileged API access, the front end code obtains a CSRF token generated by POST'ing
2514 to privileged-api/generate-csrf-token; the page sets a randomly generated salt and an expiration time
2515 via the cookie and returns a token computed from those two values as well as the remote username.
2517 The font end code then POST's the request along with the returned token. The server side code verifies
2518 that the specified token can be generated from the salt and the expiration time set in the cookie, and
2519 the token hasn't expired.
2522 * init-database.sql: Added bug_url to bug_trackers table, and added bugs table. Each bug tracker will
2523 have zero or exactly one bug associated with a test run.
2525 * public/admin/bug-trackers.php: Added the support for editing bug_url.
2526 * public/api/runs.php:
2527 (fetch_runs_for_config): Modified the query to fetch bugs associated with test_runs.
2528 (parse_bugs_array): Added. Parses the aggregated bugs and creates a dictionary that maps a tracker id to
2529 an associated bug if there is one.
2530 (format_run): Calls parse_bugs_array.
2532 * public/include/json-header.php: Added helper functions to deal for CSRF prevention.
2533 (ensure_privileged_api_data): Added. Dies immediately if the request's method is not POST or doesn't
2534 have a valid JSON payload.
2535 (ensure_privileged_api_data_and_token): Ditto. Also checks that the CSRF prevention token is valid.
2536 (compute_token): Computes a CSRF token using the REMOTE_USER (e.g. set via BasicAuth), the salt, and
2537 the expiration time stored in the cookie.
2538 (verify_token): Returns true iff the specified token matches what compute_token returns from the cookie.
2540 * public/include/manifest.php:
2541 (ManifestGenerator::bug_trackers): Include bug_url as bugUrl in the manifest. Also use tracker_id instead
2542 of tracker_name as the key in the manifest. This requires changes to both v1 and v2 front end.
2544 * public/index.html:
2545 (Chart..showTooltipWithResults): Updated for the manifest format changed mentioned above.
2547 * public/privileged-api/associate-bug.php: Added.
2548 (main): Added. Associates or dissociates a bug with a test run inside a transaction. It prevent a CSRF
2549 attack via ensure_privileged_api_data_and_token, which calls verify_token.
2551 * public/privileged-api/generate-csrf-token.php: Added. Generates a CSRF token valid for one hour.
2553 * public/v2/app.css:
2554 (.disabled .icon-button:hover g): Used by the "bugs" icon when a range of points or no points are
2555 selected in a chart.
2558 (App.PaneController.actions.toggleBugsPane): Added. Toggles the visibility of the bugs pane when exactly
2559 one point is selected in the chart. Also hides the search pane when making the bugs pane visible since
2560 they would overlap on each other if both of them are shown.
2561 (App.PaneController.actions.associateBug): Makes a privileged API request to associate the specified bug
2562 with the currently selected point (test run). Updates the bug information in "details" and colors of dots
2563 in the charts to reflect new states. Because chart data objects aren't real Ember objects for performance
2564 reasons, we have to use a dirty hack of modifying a dummy counter bugsChangeCount.
2565 (App.PaneController.actions.toggleSearchPane): Renamed from toggleSearch. Also hides the bugs pane when
2566 showing the search pane.
2567 (App.PaneController.actions.rangeChanged): Takes all selected points as the second argument instead of
2568 taking start and end points as the second and the third arguments so that _showDetails can enumerate all
2569 bugs in the selected range.
2571 (App.PaneController._detailsChanged): Added. Hide the bugs pane whenever a new point is selected.
2572 Also update singlySelectedPoint, which is used by toggleBugsPane and associateBug.
2573 (App.PaneController._currentItemChanged): Updated for the _showDetails change.
2574 (App.PaneController._showDetails): Takes an array of selected points in place of old arguments.
2575 Simplified the code to compute the revision information. Calls _updateBugs to format the associated bugs.
2576 (App.PaneController._updateBugs): Sets details.bugTrackers to a dictionary that maps a bug tracker id to
2577 a bug tracker proxy with an array of (bugNumber, bugUrl) pairs and also editedBugNumber, which is used by
2578 the bugs pane to associate or dissociate a bug number, if exactly one point is selected.
2580 (App.InteractiveChartComponent._updateDotsWithBugs): Added. Sets hasBugs class on dots as needed.
2581 (App.InteractiveChartComponent._setCurrentSelection): Finds and passes all points in the selected range
2582 to selectionChanged action instead of just finding the first and the last points.
2584 * public/v2/chart-pane.css: Updated the style.
2586 * public/v2/data.js:
2587 (PrivilegedAPI): Added. A wrapper for privileged APIs' CSRF tokens.
2588 (PrivilegedAPI.sendRequest): Makes a privileged API call. Fetches a new CSRF token if needed.
2589 (PrivilegedAPI._generateTokenInServerIfNeeded): Makes a request to privileged-api/generate-csrf-token if
2590 we haven't already obtained a CSRF token or if the token has already been expired.
2591 (PrivilegedAPI._post): Makes a single POST request to /privileged-api/* with a JSON payload.
2593 (Measurement.prototype.bugs): Added.
2594 (Measurement.prototype.hasBugs): Returns true iff bugs has more than one bug number.
2595 (Measurement.prototype.associateBug): Associates a bug with a test run via privileged-api/associate-bug.
2597 * public/v2/index.html: Added the bugs pane. Also added a list of bugs associated with the current run in
2600 * public/v2/manifest.js:
2601 (App.BugTracker.bugUrl):
2602 (App.BugTracker.newBugUrl): Added.
2603 (App.BugTracker.repositories): Added. This was a missing back reference to repositories.
2604 (App.MetricSerializer.normalizePayload): Now parses/loads the list of bug trackers from the manifest.
2605 (App.Manifest.repositoriesWithReportedCommits): Now initialized to an empty array instead of null.
2606 (App.Manifest.bugTrackers): Added.
2607 (App.Manifest._fetchedManifest): Sets App.Manifest.bugTrackers. Also sorts the list of repositories by
2608 their respective ids to make the ordering stable.
2610 2014-10-14 Ryosuke Niwa <rniwa@webkit.org>
2612 Remove unused jobs table
2613 https://bugs.webkit.org/show_bug.cgi?id=137724
2615 Reviewed by Daniel Bates.
2617 Removed jobs table in the database as well as related code.
2619 * init-database.sql:
2620 * public/admin/jobs.php: Removed.
2621 * public/admin/tests.php:
2622 * public/include/admin-header.php:
2624 2014-10-13 Ryosuke Niwa <rniwa@webkit.org>
2626 New perf dashboard should have an ability to search commits by a keyword
2627 https://bugs.webkit.org/show_bug.cgi?id=137675
2629 Reviewed by Geoffrey Garen.
2631 /api/commits/ now accepts query parameters to search a commit by a keyword. Its output format changed to
2632 include "authorEmail" and "authorName" directly as columns instead of including an "author" object.
2633 This API change allows fetch_commits_between to generate results without processing Postgres query results.
2635 In the front end side, we've added a search pane in pane controller, and the interactive chart component
2636 now has a concept of highlighted items which is used to indicate commits found by the search pane.
2638 * public/api/commits.php:
2639 (main): Extract query parameters: keyword, from, and to and use that to fetch appropriate commits.
2640 (fetch_commits_between): Moved some code from main. Now takes a search term as the third argument.
2641 We look for a commit if its author name or email contains the keyword or if its revision matches the keyword.
2642 (format_commit): Renamed from format_commits. Now only formats one commit.
2644 * public/include/db.php:
2645 (Database::query_and_fetch_all): Now returns array() when the query results is empty (instead of false).
2647 * public/v2/app.css: Renamed .close-button to .icon-button since it's used by a search button as well.
2650 (App.Pane.searchCommit): Added. Finds the commits by a search term and assigns 'highlightedItems',
2651 which is a hash table that contains highlighted items' measurements' ids as keys.
2652 (App.PaneController.actions.toggleSearch): Toggles the visibility of the search pane. Also sets
2653 the default commit repository.
2654 (App.PaneController.actions.searchCommit): Delegates the work to App.Pane.searchCommit.
2655 (App.InteractiveChartComponent._constructGraphIfPossible): Fixed a bug that we weren't removing old this._dots.
2656 Added the code to initialize this._highlights.
2657 (App.InteractiveChartComponent._updateDimensionsIfNeeded): Updates dimensions of highlight lines.
2658 (App.InteractiveChartComponent._updateHighlightPositions): Added. Ditto.
2659 (App.InteractiveChartComponent._highlightedItemsChanged): Adds vertical lines for highlighted items and deletes
2660 the existing lines for the old highlighted items.
2661 (App.CommitsViewerComponent.commitsChanged): Updated the code per JSON API change mentioned above.
2662 Also fixed a bug that the code tries to update the commits viewer even if the viewer had already been destroyed.
2664 * public/v2/chart-pane.css: Added style for the search pane and the search button.
2666 * public/v2/data.js: Turned FetchCommitsForTimeRange into a class: CommitLogs.
2667 (CommitLogs): Added.
2668 (CommitLogs.fetchForTimeRange): Renamed from FetchCommitsForTimeRange. Takes a search term as an argument.
2669 (CommitLogs._cachedCommitsBetween): Extracted from FetchCommitsForTimeRange.
2670 (CommitLogs._cacheConsecutiveCommits): Ditto.
2671 (FetchCommitsForTimeRange._cachedCommitsByRepository): Deleted.
2672 (Measurement.prototype.commitTimeForRepository): Extracted from formattedRevisions.
2673 (Measurement.prototype.formattedRevisions): Uses formattedRevisions. Deleted the unused code for commitTime.
2675 * public/v2/index.html: Added the search pane and the search button. Also removed the unused attribute binding
2676 for showingDetails since this property is no longer used.
2678 * public/v2/manifest.js:
2679 (App.Manifest.repositories): Added.
2680 (App.Manifest.repositoriesWithReportedCommits): Ditto. Used by App.PaneController.actions.toggleSearch to find
2681 the default repository to search.
2682 (App.Manifest._fetchedManifest): Populates repositories and repositoriesWithReportedCommits.
2684 2014-10-13 Ryosuke Niwa <rniwa@webkit.org>
2686 Unreviewed build fix after r174555.
2688 * public/include/manifest.php:
2689 (ManifestGenerator::generate): Assign an empty array to $repositories_with_commit when there are no commits.
2690 * tests/admin-regenerate-manifest.js: Fixed the test case.
2692 2014-10-09 Ryosuke Niwa <rniwa@webkit.org>
2694 New perf dashboard UI tries to fetch commits all the time
2695 https://bugs.webkit.org/show_bug.cgi?id=137592
2697 Reviewed by Andreas Kling.
2699 Added hasReportedCommits boolean to repository meta data in manifest.json, and used that in
2700 the front end to avoid issuing HTTP requests to fetch commit logs for repositories with
2701 no reported commits as they are all going to fail.
2703 Also added an internal cache to FetchCommitsForTimeRange in the front end to avoid fetching
2704 the same commit logs repeatedly. There are two data structures we cache: commitsByRevision
2705 which maps a given commit revision/hash to a commit object; and commitsByTime which is an array
2706 of commits sorted chronologically by time.
2708 * public/include/manifest.php:
2711 (App.CommitsViewerComponent.commitsChanged):
2713 * public/v2/data.js:
2714 (FetchCommitsForTimeRange):
2715 (FetchCommitsForTimeRange._cachedCommitsByRepository):
2717 * public/v2/manifest.js:
2720 2014-10-08 Ryosuke Niwa <rniwa@webkit.org>
2722 Another unreviewed build fix after r174477.
2724 Don't try to insert a duplicated row into build_commits as it results in a database constraint error.
2726 This has been caught by a test in /api/report. I don't know why I thought all tests were passing.
2728 * public/include/report-processor.php:
2730 2014-10-08 Ryosuke Niwa <rniwa@webkit.org>
2732 Unreviewed build fix after r174477.
2734 * init-database.sql: Removed build_commits_index since it's redundant with build_commit's primary key.
2735 Also fixed a syntax error that we were missing "," after line that declared build_commit column.
2737 * public/api/runs.php: Fixed the query so that test_runs without commits data will be retrieved.
2738 This is necessary for baseline and target values manually added via admin pages.
2740 2014-10-08 Ryosuke Niwa <rniwa@webkit.org>
2742 Add v2 UI for the perf dashboard
2743 https://bugs.webkit.org/show_bug.cgi?id=137537
2745 Rubber-stamped by Andreas Kling.
2748 * public/v2/app.css: Added.
2749 * public/v2/app.js: Added.
2750 * public/v2/chart-pane.css: Added.
2751 * public/v2/data.js: Added.
2752 * public/v2/index.html: Added.
2753 * public/v2/js: Added.
2754 * public/v2/js/d3: Added.
2755 * public/v2/js/d3/LICENSE: Added.
2756 * public/v2/js/d3/d3.js: Added.
2757 * public/v2/js/d3/d3.min.js: Added.
2758 * public/v2/js/ember-data.js: Added.
2759 * public/v2/js/ember.js: Added.
2760 * public/v2/js/handlebars.js: Added.
2761 * public/v2/js/jquery.min.js: Added.
2762 * public/v2/js/statistics.js: Added.
2763 * public/v2/manifest.js: Added.
2764 * public/v2/popup.js: Added.
2766 2014-10-08 Ryosuke Niwa <rniwa@webkit.org>
2768 Remove superfluously duplicated code in public/api/report-commits.php.
2770 2014-10-08 Ryosuke Niwa <rniwa@webkit.org>
2772 Perf dashboard should store commit logs
2773 https://bugs.webkit.org/show_bug.cgi?id=137510
2775 Reviewed by Darin Adler.
2777 For the v2 version of the perf dashboard, we would like to be able to see commit logs in the dashboard itself.
2779 This patch replaces "build_revisions" table with "commits" and "build_commits" relations to store commit logs,
2780 and add JSON APIs to report and retrieve them. It also adds a tools/pull-svn.py to pull commit logs from
2781 a subversion directory. The git version of this script will be added in a follow up patch.
2784 In the new database schema, each revision in each repository is represented by exactly one row in "commits"
2785 instead of one row for each build in "build_revisions". "commits" and "builds" now have a proper many-to-many
2786 relationship via "build_commits" relations.
2788 In order to migrate an existing instance of this application, run the following SQL commands:
2792 INSERT INTO commits (commit_repository, commit_revision, commit_time)
2793 (SELECT DISTINCT ON (revision_repository, revision_value)
2794 revision_repository, revision_value, revision_time FROM build_revisions);
2796 INSERT INTO build_commits (commit_build, build_commit) SELECT revision_build, commit_id
2797 FROM commits, build_revisions
2798 WHERE commit_repository = revision_repository AND commit_revision = revision_value;
2800 DROP TABLE build_revisions;
2805 The helper script to submit commit logs can be used as follows:
2807 python ./tools/pull-svn.py "WebKit" https://svn.webkit.org/repository/webkit/ https://perf.webkit.org
2808 feeder-slave feeder-slave-password 60 "webkit-patch find-users"
2810 The above command will pull the subversion server at https://svn.webkit.org/repository/webkit/ every 60 seconds
2811 to retrieve at most 10 commits, and submits the results to https://perf.webkit.org using "feeder-slave" and
2812 "feeder-slave-password" as the builder name and the builder password respectively.
2814 The last, optional, argument is the shell command to convert a subversion account to the corresponding username.
2815 e.g. "webkit-patch find-users rniwa@webkit.org" yields "Ryosuke Niwa" <rniwa@webkit.org> in the stdout.
2818 * init-database.sql: Replaced "build_revisions" relation with "commits" and "build_commits" relations.
2820 * public/api/commits.php: Added. Retrieves a list of commits based on arguments in its path of the form
2821 /api/commits/<repository-name>/<filter>. The behavior of this API depends on <filter> as follows:
2823 - Not specified - It returns every single commit for a given repository.
2824 - Matches "oldest" - It returns the commit with the oldest timestamp.
2825 - Matches "latest" - It returns the commit with the latest timestamp.
2826 - Matches "last-reported" - It returns the commit with the latest timestamp added via report-commits.php.
2827 - Is entirely alphanumeric - It returns the commit whose revision matches the filter.
2828 - Is of the form <alphanumeric>:<alphanumeric> or <alphanumeric>-<alphanumeric> - It retrieves the list
2829 of commits added via report-commits.php between two timestamps retrieved from commits whose revisions
2830 match the two alphanumeric values specified. Because it retrieves commits based on their timestamps,
2831 the list may contain commits that do not appear as neither hash's ancestor in git/mercurial.
2833 (commit_from_revision):
2834 (fetch_commits_between):
2837 * public/api/report-commits.php: Added. A JSON API to report new subversion, git, or mercurial commits.
2838 See tests/api-report-commits.js for examples on how to use this API.
2840 * public/api/runs.php: Updated the query to use "commit_builds" and "commits" relations instead of
2841 "build_revisions". Regrettably, the new query is 20% slower but I'm going to wait until the new UI is ready
2842 to optimize this and other JSON APIs.
2844 * public/include/db.php:
2845 (Database::select_or_insert_row):
2846 (Database::update_or_insert_row): Added.
2847 (Database::_select_update_or_insert_row): Extracted from select_or_insert_row. Try to update first and then
2848 insert if the update fails for update_or_insert_row. Preserves the old behavior when $should_update is false.
2850 (Database::select_first_row):
2851 (Database::select_last_row): Added.
2852 (Database::select_first_or_last_row): Extracted from select_first_row. Fixed a bug that we were asserting
2853 $order_by to be not alphanumeric/underscore. Retrieve the last row instead of the first if $descending_order.
2855 * public/include/report-processor.php:
2856 (ReportProcessor::resolve_build_id): Store commits instead of build_revisions. We don't worry about the race
2857 condition for adding "build_commits" rows since we shouldn't have a single tester submitting the same result
2858 concurrently. Even if it happened, it will only result in a PHP error and the database will stay consistent.
2861 (pathToTests): Don't call path.resolve with "undefined" testName; It throws an exception in the latest node.js.
2863 * tests/api-report-commits.js: Added.
2864 * tests/api-report.js: Fixed a test per build_revisions to build_commits/commits replacement.
2867 * tools/pull-svn.py: Added. See above for how to use this script.
2869 (determine_first_revision_to_fetch):
2870 (fetch_revision_from_dasbhoard):
2871 (fetch_commit_and_resolve_author):
2874 (resolve_author_name_from_email):
2877 2014-09-30 Ryosuke Niwa <rniwa@webkit.org>
2879 Update Install.md for Mavericks and fix typos
2880 https://bugs.webkit.org/show_bug.cgi?id=137276
2882 Reviewed by Benjamin Poulain.
2884 Add the instruction to copy php.ini to enable the Postgres extension in PHP.
2886 Also use perf.webkit.org as the directory name instead of WebKitPerfMonitor.
2888 Finally, init-database.sql is no longer located inside database directory.
2892 2014-08-11 Ryosuke Niwa <rniwa@webkit.org>
2894 Report run id's in api/runs.php for the new dashboard UI
2895 https://bugs.webkit.org/show_bug.cgi?id=135813
2897 Reviewed by Andreas Kling.
2899 Include run_id in the generated JSON.
2901 * public/api/runs.php:
2902 (fetch_runs_for_config): Don't sort results by time since that has been done in the front end for ages now.
2905 2014-08-11 Ryosuke Niwa <rniwa@webkit.org>
2907 Merging platforms mixes baselines and targets into reported data
2908 https://bugs.webkit.org/show_bug.cgi?id=135260
2910 Reviewed by Andreas Kling.
2912 When merging two platforms, move test configurations of a different type (baseline, target)
2913 as well as of different metric (Time, Runs).
2915 Also avoid fetching the entire table of runs just to see if there are no remaining runs.
2916 It's sufficient to detect one such test_runs object.
2918 * public/admin/platforms.php:
2921 2014-07-30 Ryosuke Niwa <rniwa@webkit.org>
2923 Merging platforms mixes baselines and targets into reported data
2924 https://bugs.webkit.org/show_bug.cgi?id=135260
2926 Reviewed by Geoffrey Garen.
2928 Make sure two test configurations we're merging are of the same type (e.g. baseline, target, current).
2929 Otherwise, we'll erroneously mix up runs for baseline, target, and current (reported values).
2931 * public/admin/platforms.php:
2933 2014-07-23 Ryosuke Niwa <rniwa@webkit.org>
2935 Build fix after r171361.
2937 * public/js/helper-classes.js:
2938 (.this.formattedBuildTime):
2940 2014-07-22 Ryosuke Niwa <rniwa@webkit.org>
2942 Perf dashboard spends 2s processing JSON data during the page loads
2943 https://bugs.webkit.org/show_bug.cgi?id=135152
2945 Reviewed by Andreas Kling.
2947 In the Apple internal dashboard, we were spending as much as 2 seconds
2948 converting raw JSON data into proper JS objects while loading the dashboard.
2950 This caused the apparent unresponsiveness of the dashboard despite of the fact
2951 charts themselves updated almost instantaneously.
2953 * public/index.html:
2954 * public/js/helper-classes.js:
2955 (TestBuild): Compute the return values of formattedTime and formattedBuildTime
2956 lazily as creating new Date objects and running string replace is expensive.
2957 (TestBuild.formattedTime):
2958 (TestBuild.formattedBuildTime):
2959 (PerfTestRuns.setResults): Added. Pushing each result was the biggest bottle neck.
2960 (PerfTestRuns.addResult): Deleted.
2962 2014-07-18 Ryosuke Niwa <rniwa@webkit.org>
2964 Perf dashboard shouldn't show the full git hash
2965 https://bugs.webkit.org/show_bug.cgi?id=135083
2967 Reviewed by Benjamin Poulain.
2969 Detect Git/Mercurial hash by checking the length.
2971 If it's a hash, use the first 8 characters in the label
2972 while retaining the full length to be used in hyperlinks.
2974 * public/js/helper-classes.js:
2975 (.this.formattedRevisions):
2978 2014-05-29 Ryosuke Niwa <rniwa@webkit.org>
2980 Add an instruction on how to backup the database.
2981 https://bugs.webkit.org/show_bug.cgi?id=133391
2983 Rubber-stamped by Andreas Kling.
2987 2014-04-08 Ryosuke Niwa <rniwa@webkit.org>
2989 Build fix after r166479. 'bytes' is now abbreviated as 'B'.
2991 * public/js/helper-classes.js:
2992 (PerfTestRuns.smallerIsBetter):
2994 2014-04-08 Ryosuke Niwa <rniwa@webkit.org>
2998 * public/common.css:
3000 * public/index.html:
3004 2014-04-03 Ryosuke Niwa <rniwa@webkit.org>
3006 WebKitPerfMonitor: There should be a way to add all metrics of a suite without also adding subtests
3007 https://bugs.webkit.org/show_bug.cgi?id=131157
3009 Reviewed by Andreas Kling.
3011 Split "all metrics" into all metrics of a test suite and all subtests of the suite.
3012 This allows, for example, adding all metrics such as Arithmetic and Geometric for
3013 a given test suite without also adding its subtests.
3015 * public/index.html:
3019 2014-04-03 Ryosuke Niwa <rniwa@webkit.org>
3021 WebKitPerfMonitor: Tooltips cannot be pinned after using browser's back button
3022 https://bugs.webkit.org/show_bug.cgi?id=131155
3024 Reviewed by Andreas Kling.
3026 The bug was caused by Chart.attach binding event listeners on plot container on each call.
3027 This resulted in the click event handler toggling the visiblity of the tooltip twice upon
3028 click when attach() has been called even number of times, keeping the tooltip invisible.
3030 Fixed the bug by extracting the code to bind event listeners outside of Chart.attach as
3031 a separate function, bindPlotEventHandlers, and calling it exactly once when Chart.attach
3032 is called for the first time.
3034 * public/index.html:
3036 (Chart..bindPlotEventHandlers):
3038 2014-04-03 Ryosuke Niwa <rniwa@webkit.org>
3040 WebKitPerfMonitor: Tooltips can be cut off at the top
3041 https://bugs.webkit.org/show_bug.cgi?id=130960
3043 Reviewed by Andreas Kling.
3045 * public/common.css:
3046 (#title): Removed the gradients, box shadows, and border from the header.
3047 (#title h1): Reduce the font size.
3048 (#title ul): Use line-height to vertically align the navigation bar instead of specifying a padding atop.
3049 * public/index.html:
3050 (.tooltop:before): Added. Identical to .tooltop:after except it's upside down (arrow facing up).
3051 (.tooltip.inverted:before): Show the arrow facing up when .inverted is set.
3052 (.tooltip.inverted:before): Hide the arrow facing down when .inverted is set.
3053 * public/js/helper-classes.js:
3054 (Tooltip.show): Show the tooltip below the point if placing it above the point results in the top of the
3055 tooltip extending above y=0.
3057 2014-04-03 Ryosuke Niwa <rniwa@webkit.org>
3059 WebKitPerfMonitor: Y-axis adjustment is too aggressive
3060 https://bugs.webkit.org/show_bug.cgi?id=130937
3062 Reviewed by Andreas Kling.
3064 Previously, adjusted min. and max. were defined as the two standards deviations away from EWMA of measured
3065 results. This had two major problems:
3066 1. Two standard deviations can be too small to show the confidence interval for results.
3067 2. Sometimes baseline and target can be more than two standards deviations away.
3069 Fixed the bug by completely rewriting the algorithm to compute the interval. Instead of blindly using two
3070 standard deviations as margins, we keep adding quarter the standard deviation on each side until more than 90%
3071 of points lie in the interval or we've expanded 4 standard deviations. Once this condition is met, we reduce
3072 the margin on each side separately to reduce the empty space on either side.
3074 A more rigorous approach would involve computing least squared value of results with respect to intervals
3075 but that seems like an overkill for a simple UI problem; it's also computationally expensive.
3077 * public/index.html:
3078 (Chart..adjustedIntervalForRun): Extracted from computeYAxisBoundsToFitLines.
3079 (Chart..computeYAxisBoundsToFitLines): Compute the min. and max. adjusted intervals out of adjusted intervals
3080 for each runs (current, baseline, and target) so that at least one point from each set of results is shown.
3081 We wouldn't see the difference between measured values versus baseline and target values otherwise.
3082 * public/js/helper-classes.js:
3083 (PerfTestResult.unscaledConfidenceIntervalDelta): Returns the default value if the confidence
3084 interval delta cannot be computed.
3085 (PerfTestResult.isInUnscaledInterval): Added. Returns true iff the confidence intervals lies
3086 within the given interval.
3087 (PerfTestRuns..filteredResults): Extracted from unscaledMeansForAllResults now that PerfTestRuns.min and
3088 PerfTestRuns.max need to use both mean and confidence interval delta for each result.
3089 (PerfTestRuns..unscaledMeansForAllResults):
3090 (PerfTestRuns.min): Take the confidence interval delta into account.
3091 (PerfTestRuns.max): Ditto.
3092 (PerfTestRuns.countResults): Returns the number of results in the given time frame (> minTime).
3093 (PerfTestRuns.countResultsInInterval): Returns the number of results whose confidence interval lie within the
3095 (PerfTestRuns.exponentialMovingArithmeticMean): Fixed the typo so that it actually computes the EWMA.
3097 2014-03-31 Ryosuke Niwa <rniwa@webkit.org>
3099 Some CSS tweaks after r166477 and r166479,
3101 * public/index.html:
3103 2014-03-30 Ryosuke Niwa <rniwa@webkit.org>
3105 WebKitPerfMonitor: Sometimes text inside panes overlap
3106 https://bugs.webkit.org/show_bug.cgi?id=130956
3108 Reviewed by Gyuyoung Kim.
3110 Revamped the pane UI. Now build info uses table element instead of plane text with BRs. The computed status of
3111 the latest result against baseline/target such as "3% until target" is now shown above the current value. This
3112 reduces the total height of the pane and fits more information per screen capita on the dashboard.
3114 * public/index.html: Updated and added a bunch of CSS rules for the new look.
3115 (.computeStatus): Don't append the build info here. The build info is constructed as a separate table now.
3116 (.createSummaryRowMarkup): Use th instead of td for "Current", "Baseline", and "Target" in the summary table.
3117 (.buildLabelWithLinks): Construct table rows instead of br separated lines of text. This streamlines the look
3118 of the build info shown in a chart pane and a tooltip.
3119 (Chart): Made .status a table.
3120 (Chart.populate): Prepend status.text, which contains text such as "3% until target", into the summary rows
3121 right above "Current" value, and populate .status with buildLabelWithLinks manually instead of status.text
3122 now that status.text no longer contains it.
3123 (Chart..showTooltipWithResults): Wrap buildLabelWithLinks with a table element.
3125 * public/js/helper-classes.js:
3126 (TestBuild.formattedRevisions): Don't include repository names in labels since repository names are now added
3127 by buildLabelWithLinks inside th elements. Also place spaces around '-' between two different OS X versions.
3128 e.g. "OS X 10.8 - OS X 10.9" instead of "OS X 10.8-OS X 10.9".
3129 (PerfTestRuns): Use "/s" for "runs/s" and "B" for "bytes" to make text shorter in .status and .summaryTable.
3130 (PerfTestRuns..computeScalingFactorIfNeeded): Avoid placing a space between 'M' and a unit starting with a
3131 capital letter; e.g. "MB" instead of "M B".
3133 2014-03-30 Ryosuke Niwa <rniwa@webkit.org>
3135 WebKitPerfMonitor: Header and number-of-days slider takes up too much space
3136 https://bugs.webkit.org/show_bug.cgi?id=130957
3138 Reviewed by Gyuyoung Kim.
3140 Moved the slider into the header. Also reduced the spacing between the header and platform names.
3141 This reclaims 50px × width of the screen real estate.
3143 * public/common.css:
3144 (#title): Reduced the space below the header from 20px to 10px.
3145 * public/index.html:
3146 (#numberOfDaysPicker): Removed the rounded border around the number-of-days slider.
3147 (#dashboard > tbody > tr > td): Added a 1.5em padding at the bottom.
3148 (#dashboard > thead th): That allows us to remove the padding at the top here. This reduces the wasted screen
3149 real estate between the header and the platform names.
3151 2014-03-10 Zoltan Horvath <zoltan@webkit.org>
3153 Update the install guidelines for perf.webkit.org
3154 https://bugs.webkit.org/show_bug.cgi?id=129895
3156 Reviewed by Ryosuke Niwa.