1 2015-04-23 Ryosuke Niwa <rniwa@webkit.org>
3 Build fix after r183232.
5 * public/include/json-header.php:
7 2015-04-23 Ryosuke Niwa <rniwa@webkit.org>
9 Perf dashboard should automatically detect regressions
10 https://bugs.webkit.org/show_bug.cgi?id=141443
12 Reviewed by Anders Carlsson.
14 Added a node.js script detect-changes.js to detect potential regressions and progressions
15 on the graphs tracked on v2 dashboards.
17 * init-database.sql: Added analysis_strategies table and task_segmentation and task_test_range
18 columns to analysis_tasks to keep the segmentation and test range selection strategies used
19 to create an analysis task.
21 * public/api/analysis-tasks.php:
22 (format_task): Include task_segmentation and analysis_tasks in the results.
24 * public/include/json-header.php:
25 (remote_user_name): Returns null when the privileged API is authenticated as a slave instead
26 of a CSRF prevention token.
27 (should_authenticate_as_slave): Added.
28 (ensure_privileged_api_data_and_token_or_slave): Added. Authenticate as a slave if slaveName
29 and slavePassword are specified. Since detect-changes.js and other slaves are not susceptible
30 to a CSRF attack, we don't need to check a CSRF token.
32 * public/privileged-api/create-analysis-task.php:
33 (main): Use ensure_privileged_api_data_and_token_or_slave to let detect-changes.js create new
34 analysis task. Also add or find segmentation and test range selection strategies if specified.
36 * public/privileged-api/create-test-group.php:
37 (main): Use ensure_privileged_api_data_and_token_or_slave.
39 * public/privileged-api/generate-csrf-token.php:
42 (App.Pane._computeMovingAverageAndOutliers): _executeStrategy has been moved to Statistics.
44 * public/v2/data.js: Export Measurement, RunsData, TimeSeries. Used in detect-changes.js.
45 (Array.prototype.find): Added a polyfill to be used in node.js.
47 (RunsData.pathForFetchingRuns): Extracted from fetchRuns. Used in detect-changes.js.
48 (RunsData.createRunsDataInResponse): Extracted from App.Manifest._formatFetchedData to use it
50 (RunsData.unitFromMetricName): Ditto.
51 (RunsData.isSmallerBetter): Ditto.
52 (RunsData.prototype._timeSeriesByTimeInternal): Added secondaryTime to sort points when commit
54 (TimeSeries): When commit times are identical, order points based on build time. This is needed
55 for when we trigger two builds at two different OS versions with the same WebKit revision since
56 OS versions don't change the commit times.
57 (TimeSeries.prototype.findPointByIndex): Added.
58 (TimeSeries.prototype.rawValues): Added.
60 * public/v2/js/statistics.js:
61 (Statistics.TestRangeSelectionStrategies.[0]): Use the 99% two-sided probability as claimed in the
62 description of this strategy instead of the default probability. Also fixed a bug that debugging
63 code was referring to non-existent variables.
64 (Statistics.executeStrategy): Moved from App.Pane (app.js).
66 * public/v2/manifest.js:
67 (App.Manifest._formatFetchedData): Various code has been extracted into RunsData in data.js to be
68 used in detect-changes.js.
70 * tools/detect-changes.js: Added. The script fetches the manifest JSON, analyzes each graph in
71 the v2 dashboards, and creates an analysis task for the latest regression or progression detected.
72 It also schedules an A/B testing if possible and notifies another server; e.g. to send an email.
73 (main): Loads the settings JSON specified in the argument.
74 (fetchManifestAndAnalyzeData): The main loop that periodically wakes up to do the analysis.
75 (mapInOrder): Executes callback sequentially (i.e. blocking) on each item in the array.
76 (configurationsForTesting): Finds every (platform, metric) pair to analyze in the v2 dashbaords,
77 and computes various values for when statistically significant changes are detected later.
78 (analyzeConfiguration): Finds potential regressions and progression in the last X days where X
79 is the specified maximum number of days using the specified strategies. Sort the resultant ranges
80 in chronological order and create a new analysis task for the very last change we detected. We'll
81 eventually create an analysis task for all detected changes since we're repeating the analysis in
82 fetchManifestAndAnalyzeData after some time.
83 (computeRangesForTesting): Fetch measured values and compute ranges to test using the specified
84 segmentation and test range selection strategies. Once ranges are found, find overlapping analysis
85 tasks as they need to be filtered out in analyzeConfiguration to avoid creating multiple analysis
86 tasks for the same range (e.g. humans may create one before the script gets to do it).
87 (createAnalysisTaskAndNotify): Create a new analysis task for the specified range, trigger an A/B
88 testing if available, and notify another server with a HTML message as specified.
89 (findStrategyByLabel):
90 (changeTypeForRange): A change is a regression if values are getting larger in a smaller-is-better
91 test or values are getting smaller in a larger-is-better test and vice versa.
92 (summarizeRange): Create a human readable string that summarizes the change detected. e.g.
93 "Potential 3.2% regression detected between 2015-04-20 12:00 and 17:00".
97 (postNotification): Recursively replaces $title and $massage in the specified JSON template.
98 (instantiateNotificationTemplate):
101 2015-04-20 Ryosuke Niwa <rniwa@webkit.org>
103 Perf dashboard should have UI to set status on analysis tasks
104 https://bugs.webkit.org/show_bug.cgi?id=143977
106 Reviewed by Chris Dumez.
108 Added the UI to set the result of an analysis task to 'progression', 'regression', 'unchanged', and 'inconclusive'
109 as well as a boolean indicating whether creating the analysis task was the right thing to do or not.
110 The latter will be a useful metric once we start automatically creating analysis tasks.
112 * init-database.sql: Added two columns to analysis_tasks table.
113 * public/api/analysis-tasks.php: Include the added columns in the JSON.
114 * public/include/db.php:
115 (Database::to_database_boolean): Added.
116 * public/include/json-header.php:
117 (require_match_one_of_values): Added.
118 * public/privileged-api/update-analysis-task.php: Added. Updates 'result' and 'needed' values of an analysis task.
120 * public/v2/analysis.js:
121 (App.AnalysisTask.result): Added.
122 (App.AnalysisTask.needed): Added. We don't use DS.attr('boolean') here since that would coerce null into false
123 and we want to differentiate null from false in order to differentiate the null-ness of the value.
124 (App.AnalysisTask.saveStatus): Added.
125 (App.AnalysisTask.statusLabel): Use 'result' as the label if it's set and all build requests have been processed.
128 (App.AnalysisTaskController.analysisResultOptions): Added.
129 (App.AnalysisTaskController.shouldNotHaveBeenCreated): Added.
130 (App.AnalysisTaskController.needsFeedback): Added. Show the checkbox to indicate the analysis task should not have
131 been created if 'no change' is selected.
132 (App.AnalysisTaskController._updateChosenAnalysisResult): Added.
133 (App.AnalysisTaskController.actions.saveStatus): Added.
134 * public/v2/index.html: Extracted a partial template for updating the bug numbers. Also added the UI to update
135 'result' and 'needed' values of the analysis task.
137 2015-04-10 Ryosuke Niwa <rniwa@webkit.org>
139 Unreviewed build fix. Updated config.json after recent changes.
143 2015-04-10 Ryosuke Niwa <rniwa@webkit.org>
145 Make the analysis page more useful
146 https://bugs.webkit.org/show_bug.cgi?id=143617
148 Reviewed by Chris Dumez.
150 * public/api/analysis-tasks.php:
151 (fetch_and_push_bugs_to_tasks): Added total and finished numbers of build requests associated
152 with the fetched analysis tasks as buildRequestCount and finishedBuildRequestCount respectively.
153 * public/v2/analysis.js:
154 (App.AnalysisTask.formattedCreatedAt): Added.
155 (App.AnalysisTask._addLeadingZero): Added.
156 (App.AnalysisTask.buildRequestCount): Added.
157 (App.AnalysisTask.finishedBuildRequestCount): Added.
158 (App.AnalysisTask.statusLabel): Added. Status total and finished numbers of build requests.
159 (App.AnalysisTask.testGroups):
160 (App.AnalysisTask.triggerable):
161 (App.AnalysisTask.label):
163 * public/v2/app.css: Tweaked style rules for the analysis page.
166 (App.buildPopup): Sort the list of platforms by name.
167 (App.AnalysisRoute.model): Sort the list of analysis tasks by the order they are created.
168 (App.AnalysisTaskController._fetchedManifest): Added elementId to associate bug tracker names
169 such as "Bugzilla" with the corresponding text field.
171 * public/v2/index.html: Added a bunch of columns to the analysis page and also wrapped the table
172 showing A/B testing results in a div with overflow: scroll so that it always leaves enough space
173 for the accompanying graph.
175 2015-04-09 Ryosuke Niwa <rniwa@webkit.org>
177 Perf dashboard should automatically select ranges for A/B testing
178 https://bugs.webkit.org/show_bug.cgi?id=143580
180 Reviewed by Chris Dumez.
182 Added a new statistics option for picking a A/B test range selection strategy.
183 The selected ranges are shown in the graph using the same UI to show analysis tasks.
186 (App.DashboardPaneProxyForPicker._platformOrMetricIdChanged): Updated the query parameters for
187 charts page used by the dashboard since we've added a new parameter at the end.
188 (App.Pane.ranges): Added. Merges ranges created for analysis tasks and A/B testing.
189 (App.Pane.updateStatisticsTools): Clone and set the test range selection strategies.
190 (App.Pane._cloneStrategy): Copy isSegmentation.
191 (App.Pane._updateMovingAverageAndEnvelope): Set testRangeCandidates.
192 (App.Pane._movingAverageOrEnvelopeStrategyDidChange): Update the charts when a new text range
193 selection strategy is picked by the user.
194 (App.Pane._computeMovingAverageAndOutliers): Compute the test ranges using the chosen strategy.
195 Avoid going through isAnomalyArray when no anomaly detection strategy is enabled. Also changed
196 the return value from the moving average time series to a dictionary that contains the moving
197 average time series, a dictionary of anomalies, and an array of test ranges.
198 (App.ChartsController._parsePaneList): Parse the test range selection strategy configuration.
199 (App.ChartsController._serializePaneList): Ditto for serialization.
200 (App.ChartsController._scheduleQueryStringUpdate): Update the URL hash when the user picks a new
201 test range selection strategy.
203 * public/v2/chart-pane.css: Fixed a typo as well as added a CSS rule for test ranges markers.
205 * public/v2/index.html: Added UI for selecting a test range selection strategy.
207 * public/v2/interactive-chart.js:
208 (App.InteractiveChartComponent._rangesChanged): Pass down "status" to be used as a class name.
210 * public/v2/js/statistics.js:
211 (Statistics.MovingAverageStrategies): Added isSegmentation to segmentation strategies.
212 (Statistics.TestRangeSelectionStrategies): Added.
214 2015-04-08 Ryosuke Niwa <rniwa@webkit.org>
216 The results of A/B testing should state statistical significance
217 https://bugs.webkit.org/show_bug.cgi?id=143552
219 Reviewed by Chris Dumez.
221 Added statistical comparisons between results for each configuration on analysis task page using
222 Welch's t-test. The probability as well as t-statistics and the degrees of freedoms are reported.
225 (App.TestGroupPane._populate): Report the list of statistical comparison between every pair of
226 root configurations in the results. e.g. if we've got A, B, C configurations then compare A/B, A/C
228 (App.TestGroupPane._computeStatisticalSignificance): Compute the statistical significance using
229 Welch's t-test. Report the probability by which two samples do not come from the same distribution.
230 (App.TestGroupPane._createConfigurationSummary): Include the array of results for this configuration.
231 Also renamed "items" to "requests" for clarity.
233 * public/v2/index.html: Added the template for showing statistical comparisons.
235 * public/v2/js/statistics.js: Renamed tDistributionQuantiles to tDistributionByOneSidedProbability
236 for clarity. Also factored out the functions to convert from one-sided probability to two-sided
237 probability and vice versa.
238 (Statistics.supportedConfidenceIntervalProbabilities):
239 (Statistics.confidenceIntervalDelta):
240 (Statistics.probabilityRangeForWelchsT): Added. Computes the lower bound and the upper bound for
241 the probability that two values are sampled from distinct distributions using Welch's t-test.
242 (Statistics.computeWelchsT): This function now takes two-sided probability like all other functions.
243 (.tDistributionByOneSidedProbability): Renamed from tDistributionQuantiles.
244 (.oneSidedToTwoSidedProbability): Extracted.
245 (.twoSidedToOneSidedProbability): Extracted.
246 (Statistics.MovingAverageStrategies): Converted the one-sided probability to the two-sided probability
247 now that computeWelchsT takes two-sided probability.
249 2015-04-08 Ryosuke Niwa <rniwa@webkit.org>
251 Unreviewed fix after r182496 for when the cached runs JSON doesn't exist.
255 (App.Pane.refetchRuns):
257 2015-04-07 Ryosuke Niwa <rniwa@webkit.org>
259 Perf dashboard should have a way of marking outliers
260 https://bugs.webkit.org/show_bug.cgi?id=143466
262 Reviewed by Chris Dumez.
264 Address kling's in-person comment to notify users when the new run status is saved in the database.
267 (App.PaneController._selectedItemIsMarkedOutlierDidChange)
268 * public/v2/chart-pane.css: Fixed a typo.
270 2015-04-07 Ryosuke Niwa <rniwa@webkit.org>
272 Perf dashboard should have a way of marking outliers
273 https://bugs.webkit.org/show_bug.cgi?id=143466
275 Reviewed by Chris Dumez.
277 Added UI to mark a data point as an outlier as well as a button to toggle the visibility of outliers.
278 Added a new privileged API /privileged-api/update-run-status to store this boolean flag.
280 * init-database.sql: Added run_marked_outlier column to test_runs table.
282 * public/admin/tests.php:
284 * public/api/runs.php:
285 (main): Only emit Cache-Control and Expires headers in v1 UI.
286 (RunsGenerator::format_run): Emit markedOutlier.
288 * public/include/admin-header.php:
290 * public/include/db.php:
291 (Database::is_true): Made it static.
293 * public/include/manifest.php:
294 (Manifest::platforms):
296 * public/index.html: Call into /api/runs/ with ?cache=true.
298 * public/privileged-api/update-run-status.php: Added.
299 (main): Updates the newly added column in test_runs table.
303 (App.Pane.refetchRuns): Extracted from App.Pane._fetch.
304 (App.Pane._didFetchRuns): Renamed from _updateChartData.
305 (App.Pane._setNewChartData): Added. Pick the right time series based based on the value of showOutlier.
306 Cloning chartData is necessary when toggling the outlier visibility or using statistics tools because
307 the interactive chart component only observes changes to chartData and not individual properties of it.
308 (App.Pane._highlightPointsMarkedAsOutlier): Added. Highlight points marked as outliers.
309 (App.Pane._movingAverageOrEnvelopeStrategyDidChange): Call to _setNewChartData replaced the code to
310 clone chartData here.
312 (App.PaneController.actions.toggleShowOutlier): Toggle the visibility of points marked as outliers by
313 invoking App.Pane._setNewChartData.
314 (App.PaneController._detailsChanged): Don't hide the analysis pane when details changed since keep
315 opening the pane for marking points as outliers would be annoying.
316 (App.PaneController._updateCanAnalyze): Update 'cannotMarkOutlier' as well as 'cannotAnalyze'.
317 (App.PaneController.selectedMeasurement): Added.
318 (App.PaneController.showOutlierTitle): Added.
319 (App.PaneController._selectedItemIsMarkedOutlierDidChange): Added. Call out to setMarkedOutlier to
320 mark the selected point as an outlier via the newly added privileged API.
322 * public/v2/chart-pane.css: Updated styles.
325 (PrivilegedAPI._post): Report the semantic errors.
326 (Measurement.prototype.markedOutlier): Added.
327 (Measurement.prototype.setMarkedOutlier): Added. Uses PrivilegedAPI to update the database.
328 (RunsData.prototype.timeSeriesByCommitTime): Added a new argument, includeOutliers, to indicate
329 whether the time series should include measurements marked as outliers or not.
330 (RunsData.prototype.timeSeriesByBuildTime): Ditto.
331 (RunsData.prototype._timeSeriesByTimeInternal): Extracted from timeSeriesByCommitTime and
332 timeSeriesByBuildTime to share code. Now ignores measurements marked as outliers if needed.
334 * public/v2/index.html: Added an icon for showing and hiding outliers. Also added a checkbox to
335 mark individual points as outliers.
337 * public/v2/interactive-chart.js:
338 (App.InteractiveChartComponent._selectClosestPointToMouseAsCurrentItem): Re-enable the distance
339 heuristics that takes vertical closeness into account. This heuristics is more useful when marking
340 some points as outliers. This heuristics was disabled because the behavior was unpredictable but
341 with the arrow key navigation support, this is no longer an issue.
343 * public/v2/manifest.js:
344 (App.Manifest._formatFetchedData): Added showOutlier to the chart data. This function dynamically
345 updates the time series in this chart data in order to include or exclude outliers.
347 2015-04-03 Ryosuke Niwa <rniwa@webkit.org>
349 Perf dashboard should be able to trigger A/B testing jobs for iOS
350 https://bugs.webkit.org/show_bug.cgi?id=143398
352 Reviewed by Chris Dumez.
354 Fix various bugs in the perf dashboard so that it can schedule A/B testing jobs for iOS.
356 Also generalized sync-with-buildbot.py slightly to meet the requirements of iOS builders.
358 * public/api/triggerables.php:
359 (main): Avoid spitting a warning when $id_to_triggerable doesn't contain the triggerable.
360 * public/v2/analysis.js:
361 (App.AnalysisTask.triggerable): Log an error when failed to fetch triggerables for debugging purposes.
363 (App.AnalysisTaskController.updateRootConfigurations): Show 'None' when a revision is missing from
364 some of the data points. This will happen when we modify the list of projects we build for iOS.
365 (App.AnalysisTaskController.actions.createTestGroup): Gracefully fail by showing alerts when an user
366 attempts to create an invalid test group; when there is already another test group of the same or when
367 only either configuration specifies the revision for some repository.
368 (App.AnalysisTaskController._updateRootsBySelectedPoints): Fixed a typo: sets[i] -> set.
369 * public/v2/index.html: Don't show the form to create a new test group if it's not available.
370 * tools/sync-with-buildbot.py:
371 (find_request_updates):
372 (schedule_request): iOS builders take a JSON that contains the list of roots. Generate this JSON when
373 a dictionary of the form {rootsExcluding: ["WebKit"]} is specified. Also replaced the way we refer to
374 a revision from $-based text replacements to an explicit dictionary of the form {root: "WebKit"}.
375 (request_id_from_build): Don't hard code the parameter name here. Retrieve the name from the config.
377 2015-04-03 Ryosuke Niwa <rniwa@webkit.org>
379 Add time series segmentation algorithms as moving averages
380 https://bugs.webkit.org/show_bug.cgi?id=143362
382 Reviewed by Chris Dumez.
384 This patch implements two preliminary time series segmentation algorithms as moving averages.
386 Recursive t-test: Compute Welch's t-statistic at each point in a given segment of the time series.
387 If Welch's t-test implicates a statistically significance difference, then split the segment into two
388 sub segments with the maximum t-statistic (i.e. the point at which if split would yield the highest
389 probability that two segments do not share the same "underlying" mean in classical / frequentist sense).
390 We repeat this process recursively. See [1] for the evaluation of this particular algorithm.
392 Schwarz criterion: Use Schwarz or Bayesian information criterion to heuristically find the optimal
393 segmentation. Intuitively, the problem of finding the best segmentation comes down to minimizing the
394 residual sum of squares in each segment as in linear regressions. That is, for a given segment with
395 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
396 through i = n. However, we also don't want to split every data point into a separate segment so we need
397 to account the "cost" of introducing new segments. We use a cost function that's loosely based on two
398 models discussed in [2] for simplicity. We will tune this cost function further in the future.
400 The problem of finding the best segmentation then reduces to a search problem. Unfortunately, our problem
401 space is exponential with respect to the size of the time series since we could split at each data point.
402 We workaround this problem by first splitting the time series into a manageable smaller grids, and only
403 considering segmentation of a fixed size (i.e. the number of segments is constant). Since time series
404 tend to contain a lot more data points than segments, this strategy finds the optimal solution without
405 exploring much of the problem space.
407 Finding the optimal segmentation of a fixed size is, itself, another search problem that is equivalent to
408 finding the shortest path of a fixed length in DAG. Here, we use dynamic programming with a matrix of size
409 n by n where n is the length of the time series (grid). Each entry in this matrix at (i, k) stores
410 the minimum cost of segmenting data points 1 through i using k segments. We start our search at i = 1.
411 Clearly C(1, 0) = 0 (note the actual code uses 0-based index). In i-th iteration, we compute the cost
412 S(i, j) of each segment starting at i and ending at another point j after i and update C(j, k + 1) by
413 min( C(j, k + 1), C(i, k) + S(i, j) ) for all values of j above i.
415 [1] Kensuke Fukuda, H. Eugene Stanley, and Luis A. Nunes Amaral, "Heuristic segmentation of
416 a nonstationary time series", Physical Review E 69, 021108 (2004)
418 [2] Marc Lavielle, Gilles Teyssi`ere, "Detection of Multiple Change–Points in Multivariate Time Series"
419 Lithuanian Mathematical Journal, vol 46, 2006
421 * public/v2/index.html: Show the optional description for the chosen moving average strategy.
422 * public/v2/js/statistics.js:
423 (Statistics.testWelchsT):
424 (Statistics.computeWelchsT): Extracted from testWelchsT. Generalized to take the offset and the length
425 of each value array between which Welch's t-statistic is computed. This generalization helps the
426 Schwarz criterion segmentation algorithm avoid splitting values array O(n^2) times.
427 (.sampleMeanAndVarianceForValues): Ditto for the generalization.
428 (.recursivelySplitIntoTwoSegmentsAtMaxTIfSignificantlyDifferent): Added. Implements recursive t-test.
429 (.splitIntoSegmentsUntilGoodEnough): Added. Implements Schwarz criterion.
430 (.findOptimalSegmentation): Added. Implements the algorithm to find the optimal segmentation of a fixed
432 (.SampleVarianceUpperTriangularMatrix): Added. Stores S(i, j) used by findOptimalSegmentation.
433 (.SampleVarianceUpperTriangularMatrix.prototype.costBetween): Added.
435 2015-04-03 Ryosuke Niwa <rniwa@webkit.org>
437 REGRESSION: Perf dashboard sometimes fails to update zooming level
438 https://bugs.webkit.org/show_bug.cgi?id=143359
440 Reviewed by Darin Adler.
442 The bug was caused by various bugs that ended up in an exception.
445 (App.Pane._handleFetchErrors): Removed superfluous console.log.
446 (App.Pane.computeStatus): Fixed the bug in r182185 that previousPoint could be null.
447 (App.PaneController.actions.zoomed): Update the overview when the main chart triggered a zoom.
448 * public/v2/index.html: Replaced all instances of href="#" by href="javascript:false" to avoid navigating
449 to # when Ember.js fails to attach event listeners on time.
450 * public/v2/interactive-chart.js:
451 (App.InteractiveChartComponent._updateDimensionsIfNeeded): Avoid using a negative width or height when
452 the containing element's size is 0.
453 (App.InteractiveChartComponent._updateBrush): Ditto.
455 2015-04-02 Ryosuke Niwa <rniwa@webkit.org>
457 Perf dashboard should have UI to test out anomaly detection strategies
458 https://bugs.webkit.org/show_bug.cgi?id=143290
460 Reviewed by Benjamin Poulain.
462 Added the UI to select anomaly detection strategies. The detected anomalies are highlighted in the graph.
464 Implemented the Western Electric Rules 1 through 4 in http://en.wikipedia.org/wiki/Western_Electric_rules
465 as well as Welch's t-test that compares the last five points to the prior twenty points.
467 The latter is what Mozilla uses (or at least did in the past) to detect performance regressions on their
468 performance tests although they compare medians instead of means.
470 All of these strategies don't quite work for us since our data points are too noisy but this is a good start.
473 (App.Pane.updateStatisticsTools): Clone anomaly detection strategies.
474 (App.Pane._updateMovingAverageAndEnvelope): Highlight anomalies detected by the enabled strategies.
475 (App.Pane._movingAverageOrEnvelopeStrategyDidChange): Observe changes to anomaly detection strategies.
476 (App.Pane._computeMovingAverageAndOutliers): Detect anomalies by each strategy and aggregate results.
477 Only report the first data point when multiple consecutive data points are detected as anomalies.
478 * public/v2/chart-pane.css: Updated styles.
479 * public/v2/index.html: Added the pane for selecting anomaly detection strategies.
480 * public/v2/js/statistics.js:
481 (Statistics.testWelchsT): Added. Implements Welch's t-test.
482 (.sampleMeanAndVarianceForValues): Added.
483 (.createWesternElectricRule): Added.
484 (.countValuesOnSameSide): Added.
485 (Statistics.AnomalyDetectionStrategy): Added.
487 2015-03-31 Ryosuke Niwa <rniwa@webkit.org>
489 REGRESSION: Searching commits can highlight wrong data points
490 https://bugs.webkit.org/show_bug.cgi?id=143272
492 Reviewed by Antti Koivisto.
494 The bug was caused by /api/commits returning commit times with millisecond precision whereas /api/runs
495 return commit times with only second precision. This resulted in the frontend code to match a commit
496 with the data point that included the next commit when the millisecond component of commit's timestamp
497 wasn't identically 0.
499 This discrepancy was caused by the fact PHP's strtotime only ignores milliseconds and /api/commits
500 was returning timestamp as string instead of parsing via Database::to_js_time as done in /api/runs
501 so miliseconds component was only preserved in /api/commits.
503 Fixed the bug by always using Database::to_js_time to return commit time. Also fixed to_js_time so that
504 it returns time in milisecond precision.
506 * public/api/commits.php:
507 (fetch_commits_between): Use Database::to_js_time for format commit times.
508 (format_commit): Ditto.
509 * public/include/db.php:
510 (Database::to_js_time): Parse and append millisecond component. Ignore sub-milliseconds for simplicity.
512 (CommitLogs.fetchForTimeRange): The commit time is now an integer so don't call "replace" on it.
514 2015-03-31 Ryosuke Niwa <rniwa@webkit.org>
516 Perf dashboard should show relative change in values
517 https://bugs.webkit.org/show_bug.cgi?id=143252
519 Reviewed by Antti Koivisto.
521 When a range of values are selected, show the percentage difference between the start and the end
522 in addition to the absolute value difference. When a single point is selected, show the relative
523 difference with respect to the previous point. Use two significant figures and always show plus sign
524 when the difference is positive.
526 * public/v2/app.js: Compute and format the relative difference.
527 * public/v2/chart-pane.css: Don't let commits view shrink itself when they're all collapsed.
528 * public/v2/index.html: Show the relative difference.
530 2015-03-31 Ryosuke Niwa <rniwa@webkit.org>
532 REGRESSION(r180000): Changing moving average or enveloping strategy doesn't update the graph
533 https://bugs.webkit.org/show_bug.cgi?id=143254
535 Reviewed by Antti Koivisto.
537 The bug was caused by App.Pane no longer replacing 'chartData' property when updating the moving average
538 or the enveloping values. Fixed the bug by creating a new chartData object when the strategy is changed
539 so that the interactive chart component will observe a change to 'chartData'.
542 (App.Pane._movingAverageOrEnvelopeStrategyDidChange): Added.
544 2015-03-19 Ryosuke Niwa <rniwa@webkit.org>
546 Unreviewed build fixes.
548 * public/include/manifest.php:
549 (Manifest::generate): These should be {} instead of [] when they're empty.
551 (Measurement.prototype.formattedRevisions): Don't assume previousRevisions[repositoryId] exits.
552 * public/v2/manifest.js:
553 (App.Metric.fullName): Fixed the typo.
554 * tests/admin-regenerate-manifest.js: Fixed the test.
556 2015-02-20 Ryosuke Niwa <rniwa@webkit.org>
558 Commit the erroneously reverted change.
560 * public/api/runs.php:
561 (RunsGenerator::results):
563 2015-02-20 Ryosuke Niwa <rniwa@webkit.org>
565 Loading the perf dashboard takes multiple seconds
566 https://bugs.webkit.org/show_bug.cgi?id=141860
568 Reviewed by Andreas Kling.
570 This patch introduces the caches of JSON files returned by /api/ in /data/ directory. It also records
571 the last time test_runs rows associated with the requested platforms and metrics are inserted, updated,
572 or removed in the caches as well as the manifest JSON files ("last modified time"). Because the manifest
573 is regenerated each time a new test result is reported, the front end can compare last modified time in
574 the manifest file with that in a /api/runs JSON cache to detect the stale-ness.
576 More concretely, the front end first optimistically fetches the JSON in /data/. If the cache doesn't exit
577 or the last modified time in the cache doesn't match with that in the manifest file, it would fetch it
578 again via /api/runs. In the case the cache did exist, we render the charts based on the cache meanwhile.
579 This dramatically reduces the perceived latency for the page load since charts are drawn immediately using
580 the cache and we would only re-render the charts as new up-to-date JSON comes in.
582 This patch also changes the format of runs JSONs by pushing the exiting properties into 'configurations'
583 and adding 'lastModified' and 'elapsedTime' at the top level.
585 * init-database.sql: Added config_runs_last_modified to test_configurations table as well as a trigger to
586 auto-update this column upon changes to test_runs table.
588 * public/admin/test-configurations.php:
589 (add_run): Regenerate the manifest file to invalidate the /api/runs JSON cache.
592 * public/api/runs.php:
593 (main): Fetch all columns of test_configurations table including config_runs_last_modified. Also generate
594 the cache in /data/ directory.
595 (RunsGenerator::__construct): Compute the last modified time for this (platform, metric) pair.
596 (RunsGenerator::results): Put the old content in 'configurations' property and include 'lastModified' and
597 'elapsedTime' properties. 'elapsedTime' is added for debugging purposes.
598 (RunsGenerator::add_runs):
599 (RunsGenerator::parse_revisions_array):
601 * public/include/db.php:
603 (generate_data_file): Added based on ManifestGenerator::store.
604 (Database::to_js_time): Extracted from RunsGenerator::add_runs to share code.
606 * public/include/json-header.php:
607 (echo_success): Renamed from success_json. Return the serialized JSON instead of echo'ing it so that we can
608 generate caches in /api/runs/.
611 * public/include/manifest.php:
612 (ManifestGenerator::generate): Added 'elapsedTime' property for the time taken to generate the manifest.
613 It seems like we're generating it in 200-300ms for now so that's good.
614 (ManifestGenerator::store): Uses generate_data_file.
615 (ManifestGenerator::platforms): Added 'lastModified' array to each platform entry. This array contains the
616 last modified time for each (platform, metric) pair.
619 (fetchTest): Updated per the format change in runs JSON.
622 (App.Pane._fetch): Fetch the cached JSON first. Refetch the uncached version if instructed as such.
623 (App.Pane._updateChartData): Extracted from App.Pane._fetch.
624 (App.Pane._handleFetchErrors): Ditto.
627 (RunsData.fetchRuns): Takes the fourth argument indicating whether we should fetch the cached version or not.
628 The cached JSON is located in /data/ with the same filename. When fetching a cached JSON results in 404,
629 fulfill the promise with null as the result instead of rejecting it. The only client of this function which
630 sets useCache to true is App.Manifest.fetchRunsWithPlatformAndMetric, and it handles this special case.
632 * public/v2/manifest.js:
633 (App.DateArrayTransform): Added. Handles the array of last modified dates in platform objects.
634 (App.Platform.lastModifiedTimeForMetric): Added. Returns the last modified date in the manifest JSON.
635 (App.Manifest.fetchRunsWithPlatformAndMetric): Takes "useCache" like RunsData.fetchRuns. Set shouldRefetch
636 to true if response is null (the cache didn't exit) or the cache is out-of-date.
637 (App.Manifest._formatFetchedData): Extracted from App.Manifest.fetchRunsWithPlatformAndMetric.
640 (initializeDatabase): Avoid splitting function definitions in the middle.
642 * tests/api-report.js: Added tests to verify that reporting new test results updates the last modified time
643 in test_configurations.
645 2015-02-20 Ryosuke Niwa <rniwa@webkit.org>
647 REGRESSION(r180333): Analysis tasks can't be associated with bugs
648 https://bugs.webkit.org/show_bug.cgi?id=141858
650 Reviewed by Andreas Kling.
652 Added back the erroneously removed table to associate bugs. Also moved "details-table-container" div outside
653 of the chart-details partial template as it needs to wrap associate bugs in analysis task pages.
655 * public/v2/chart-pane.css:
656 * public/v2/index.html:
658 2015-02-20 Ryosuke Niwa <rniwa@webkit.org>
660 Selecting revisions for A/B testing is hard
661 https://bugs.webkit.org/show_bug.cgi?id=141824
663 Reviewed by Andreas Kling.
665 Update the revisions used in A/B testing based on the selection in the overview chart. This allows users to
666 intuitively select revisions based on points shown in the chart. Removed the old select elements used to
667 select A/B testing points manually.
669 Also renamed 'testSets' to 'configurations', 'roots' to 'rootConfigurations', and 'revisions' in each root's
670 sets to 'options' for clarity.
672 * public/v2/app.css: Reorganized style rules.
675 (App.AnalysisTaskController):
676 (App.AnalysisTaskController._taskUpdated): Merged updateTestGroupPanes.
677 (App.AnalysisTaskController._chartDataChanged): Renamed from paneDomain. It's now an observer instead of
678 a property, which sets 'overviewDomain' property as well as other properties.
679 (App.AnalysisTaskController.updateRootConfigurations): Renamed from updateRoots.
680 (App.AnalysisTaskController._updateRootsBySelectedPoints): Added. Select roots based on the selected points
681 in the overview chart.
683 * public/v2/chart-pane.css: Added arrows next to the configuration names (e.g. 'A') to indicate whether
684 individual build requests / test results are shown or not.
686 * public/v2/index.html: Removed the select element per configuration column. Also moved the select element
687 for the number of runs as it doesn't belong in the same table as the one that lists repositories and roots.
689 2015-02-20 Ryosuke Niwa <rniwa@webkit.org>
691 Unreviewed test fixes after r179037, r179591, and r179763.
693 * tests/admin-regenerate-manifest.js:
694 * tests/admin-reprocess-report.js:
696 2015-02-19 Ryosuke Niwa <rniwa@webkit.org>
698 Relationship between A/B testing results are unclear
699 https://bugs.webkit.org/show_bug.cgi?id=141810
701 Reviewed by Andreas Kling.
703 Show a "reference chart" indicating which two points have been tested in each test group pane.
705 Now the chart shown at the top of an analysis task page is called the "overview pane", and we use the pane
706 and the domain used in this chart to show charts in each test group.
708 Also renamed an array of revisions used in the A/B test results tables from 'revisions' to 'revisionList'.
710 * public/v2/analysis.js:
711 (App.TestGroup._fetchTestResults): Renamed from _fetchChartData. Set 'testResults' instead of 'chartData'
712 since this is the results of A/B testing results, not the data for charts shown next to them.
714 * public/v2/app.css: Added CSS rules for reference charts.
717 (App.AnalysisTaskController.paneDomain): Set 'overviewPane' and 'overviewDomain' on each test group pane.
718 (App.TestGroupPane._populate): Updated per 'chartData' to 'testResults' rename.
719 (App.TestGroupPane._updateReferenceChart): Get the chart data via the overview pane and find points that
720 identically matches root sets. If one of configuration used a set of revisions for which no measurement
721 was made in the original chart, don't show the reference chart as that would be misleading / confusing.
722 (App.TestGroupPane._computeRepositoryList): Updated per 'chartData' to 'testResults' rename.
723 (App.TestGroupPane._createConfigurationSummary): Ditto. Also renamed 'revisions' to 'revisionList'.
724 In addition, renamed 'buildNumber' to 'buildLabel' and prefixed it with "Build ".
727 (Measurement.prototype.revisionForRepository): Added.
728 (Measurement.prototype.commitTimeForRepository): Cleanup.
729 (TimeSeries.prototype.findPointByRevisions): Added. Finds a point based on a set of revisions.
731 * public/v2/index.html: Added the reference chart. Streamlined the status label for each build request
732 by including the build number in the title attribute instead of in the markup.
734 * public/v2/interactive-chart.js:
735 (App.InteractiveChartComponent._updateDomain): Fixed a typo introduced as a consequence of r179913.
736 (App.InteractiveChartComponent._computeYAxisDomain): Expand the y-axis to show the highlighted points.
737 (App.InteractiveChartComponent._highlightedItemsChanged): Adjust the y-axis as needed.
739 2015-02-18 Ryosuke Niwa <rniwa@webkit.org>
741 Analysis task pages are unusable
742 https://bugs.webkit.org/show_bug.cgi?id=141786
744 Reviewed by Andreas Kling.
746 This patch makes following improvements to analysis task pages:
747 1. Making the main chart interactive. This change required the use of App.Pane as well as moving the code to
748 compute the data for the details pane from PaneController.
749 2. Moving the form to add a new test group to the top of test groups instead of the bottom of them.
750 3. Grouping the build requests in each test group by root sets instead of the order by which they were ran.
751 This change required the creation of App.TestGroupPane as well as its methods.
752 4. Show a box plot for each root set configuration as well as each build request. This change required
753 App.BoxPlotComponent.
754 5. Show revisions of each repository (e.g. WebKit) for each root set and build request.
756 * public/api/build-requests.php:
757 (main): Update per the rename of BuildRequestsFetcher::root_sets to BuildRequestsFetcher::root_sets_by_id.
759 * public/api/test-groups.php:
760 (main): Include root sets and roots in the response.
763 * public/include/build-requests-fetcher.php:
764 (BuildRequestsFetcher::root_sets_by_id): Renamed from root_sets.
765 (BuildRequestsFetcher::root_sets): Added.
766 (BuildRequestsFetcher::roots): Added.
767 (BuildRequestsFetcher::fetch_roots_for_set): Takes a boolean argument $resolve_ids. This flag is only set to
768 true in /api/build-requests/ (as done prior to this patch) to use repository names as identifiers since
769 tools/sync-with-buildbot.py can't convert repository names to their ids.
771 * public/v2/analysis.js:
773 (App.RootSet): Added.
774 (App.RootSet.revisionForRepository): Added.
775 (App.TestGroup.rootSets): Deleted the code to compute root set ids from build requests now that the JSON
776 response at /api/test-groups will include them.
777 (App.BuildRequest): Ditto. Also deleted 'configLetter' property, which has been moved to a proxy created by
778 _createConfigurationSummary.
779 (App.BuildRequest.statusLabel): Use 'Completed' as the human readable label for 'completed' status.
780 (App.BuildRequest.aggregateStatuses): Added. Generates a human readable status for a set of build requests.
782 * public/v2/app.css: Updated style rules for analysis task pages.
785 (App.Pane): This class is now used in analysis task pages to make the main chart interactive.
786 (App.Pane._updateDetails): Moved from App.PaneController.
788 (App.PaneController._updateCanAnalyze): Updated the code per the move of selectedPoints.
790 (App.AnalysisTaskController): Added 'details'.
791 (App.AnalysisTaskController._taskUpdated):
792 (App.AnalysisTaskController.paneDomain):Renamed from _fetchedRuns.
793 (App.AnalysisTaskController.updateTestGroupPanes): Added. Creates App.TestGroupPane for each test group.
794 (App.AnalysisTaskController.actions.toggleShowRequestList): Added.
796 (App.TestGroupPane): Added.
797 (App.TestGroupPane._populate): Added. Group build requests by root sets and create a summary for each group.
798 (App.TestGroupPane._computeRepositoryList): Added. Returns a sorted list of repositories which is the union
799 of all repositories appearing in root sets and builds associated with A/B testing results.
800 (App.TestGroupPane._groupRequestsByConfigurations): Added. Groups build requests by root sets.
801 (App.TestGroupPane._createConfigurationSummary): Added. Creates a summary for a group of build requests that
802 use the same root set. We start by wrapping "raw" build requests in a proxy with formatted values,
803 build numbers, etc... obtained from the fetched chart data. The list of revisions shown in the group summary
804 is a union of revisions in the root set and the first build request in the group. We null-out revision info
805 for a build request if it is identical to the one in the summary. The range of values is expanded as needed
806 by the values in the group as well as 95% percentile confidence interval.
808 (App.BoxPlotComponent): Added. Controls a box plot shown for each test group summary and build request.
809 (App.BoxPlotComponent.didInsertElement): Added. Inserts a SVG element as well as two indicator rects to show
810 the mean and the confidence interval.
811 (App.BoxPlotComponent._updateBars): Added. Updates the dimensions of the indicator rects.
812 (App.BoxPlotComponent.valueChanged): Added. Computes the relative dimensions of the indicator rects and
813 calls _updateBars to update the rects.
815 * public/v2/chart-pane.css: Added some style rules to be used in the details pane in analysis task pages.
818 (Measurement.prototype.formattedRevisions):
819 (Measurement.formatRevisionRange): Renamed from Measurement.prototype._formatRevisionRange so that it can be
820 called in _createConfigurationSummary.
822 * public/v2/index.html: Updated the templates for analysis task pages. Moved the form to create a new test
823 group above all test groups, and replaced the list of data points by "details" pane used in the charts page.
824 Also made the fetching of chartData no longer block showing of test groups.
826 * public/v2/interactive-chart.js:
827 (App.InteractiveChartComponent._updateDomain): Added an early exit to fix a newly revealed race condition.
828 (App.InteractiveChartComponent._domainChanged): Ditto.
829 (App.InteractiveChartComponent._updateSelectionToolbar): Made it respect 'zoomable' boolean property.
831 * public/v2/js/statistics.js:
832 (Statistics.min): Added.
833 (Statistics.max): Added.
835 * public/v2/manifest.js:
836 (App.Manifest.fetchRunsWithPlatformAndMetric): Added formatWithDeltaAndUnit to be used in _createConfigurationSummary.
838 2015-02-14 Ryosuke Niwa <rniwa@webkit.org>
840 Build URL on new perf dashboard doesn't resolve $builderName
841 https://bugs.webkit.org/show_bug.cgi?id=141583
843 Reviewed by Darin Adler.
845 Support $builderName in the build URL template.
847 * public/js/helper-classes.js:
848 (TestBuild.buildUrl): Replaced $builderName with the builder name.
850 * public/v2/manifest.js:
851 (App.Metric.fullName): Fixed the typo. We need &ni, not &in.
852 (App.BuilderurlFromBuildNumber): Replaced $builderName with the builder name.
854 2015-02-13 Ryosuke Niwa <rniwa@webkit.org>
856 Unreviewed build fix after r179591.
858 * public/api/commits.php:
860 2015-02-13 Ryosuke Niwa <rniwa@webkit.org>
862 The status of a A/B testing request always eventually becomes "Failed"
863 https://bugs.webkit.org/show_bug.cgi?id=141523
865 Reviewed by Andreas Kling.
867 The bug was caused by /api/build-requests always setting the status of a build request to 'failed' when
868 'failedIfNotCompleted' was sent by the buildbot sync'er.
870 Fixed the bug by only setting the status to 'failed' if it wasn't set to 'completed'.
872 * public/api/build-requests.php:
875 2015-02-13 Csaba Osztrogonác <ossy@webkit.org>
877 Unreviewed, remove empty directories.
879 * public/data: Removed.
881 2015-02-12 Ryosuke Niwa <rniwa@webkit.org>
883 Perf dashboard should show the results of A/B testing
884 https://bugs.webkit.org/show_bug.cgi?id=141500
886 Reviewed by Chris Dumez.
888 Added the support for fetching test_runs for a specific test group in /api/runs/, and used it in the
889 analysis task page to fetch results for each test group.
891 Merged App.createChartData into App.Manifest.fetchRunsWithPlatformAndMetric so that App.BuildRequest
892 can use the formatter.
894 * public/api/runs.php:
895 (fetch_runs_for_config_and_test_group): Added.
896 (fetch_runs_for_config): Just return the fetched rows since main will format them with RunsGenerator.
897 (main): Use fetch_runs_for_config_and_test_group to fetch rows when a test group id is specified. Also
898 use RunsGenerator to format results.
899 (RunsGenerator): Added.
900 (RunsGenerator::__construct): Added.
901 (RunsGenerator::add_runs): Added.
902 (RunsGenerator::format_run): Moved.
903 (RunsGenerator::parse_revisions_array): Moved.
905 * public/v2/analysis.js:
906 (App.TestGroup): Fixed a typo. The property on a test group that refers to an analysis task is "task".
907 (App.TestGroup._fetchChartData): Added. Fetches all A/B testing results for this group.
908 (App.BuildRequest.configLetter): Renamed from config since this returns a letter that identifies the
909 configuration associated with this build request such as "A" and "B".
910 (App.BuildRequest.statusLabel): Added the missing label for failed build requests.
911 (App.BuildRequest.url): Added. Returns the URL associated with this build request.
912 (App.BuildRequest._meanFetched): Added. Retrieve the mean and the build number for this request via
916 (App.Pane._fetch): Set chartData directly here.
917 (App.Pane._updateMovingAverageAndEnvelope): Renamed from _computeChartData. No longer sets chartData
918 now that it's done in App.Pane._fetch.
919 (App.AnalysisTaskController._fetchedRuns): Updated per createChartData merge.
922 (Measurement.prototype.buildId): Added.
923 (TimeSeries.prototype.findPointByBuild): Added.
925 * public/v2/index.html: Fixed a bug that build status URL was broken. We can't use link-to helper since
926 url is not an Ember routed path.
928 * public/v2/manifest.js:
929 (App.Manifest.fetchRunsWithPlatformAndMetric): Takes testGroupId as the third argument. Merged
930 App.createChartData here so that App.BuildRequest can use the formatter
932 2015-02-12 Ryosuke Niwa <rniwa@webkit.org>
934 v2 UI should adjust the number of ticks on dashboards based on screen size
935 https://bugs.webkit.org/show_bug.cgi?id=141502
937 Reviewed by Chris Dumez.
939 * public/v2/interactive-chart.js:
940 (App.InteractiveChartComponent._updateDimensionsIfNeeded): Compute the number of ticks based on the
943 2015-02-11 Ryosuke Niwa <rniwa@webkit.org>
945 New perf dashboard shows too much space around interesting data points
946 https://bugs.webkit.org/show_bug.cgi?id=141487
948 Reviewed by Chris Dumez.
950 Revise the y-axis range adjustment algorithm in r179913. Instead of showing the entire moving average,
951 show the current time series excluding points in the series outside the moving average envelope.
954 (App.Pane._computeChartData): Don't deal with missing moving average or enveloping strategy here.
955 (App.Pane._computeMovingAverageAndOutliers): Set isOutliner to true on all data points in the current
956 time series if the point lies outside the moving average envelope. Don't expose the moving average or
957 the envelope computed for this purpose if they're not set by the user.
960 (TimeSeries.prototype.minMaxForTimeRange): Takes a boolean argument, ignoreOutlier. When the flag is set
961 to true, min/max computation will ignore any point in the series with non-falsy "isOutliner" property.
963 * public/v2/interactive-chart.js:
964 (App.InteractiveChartComponent._constructGraphIfPossible): Unsupport hideMovingAverage and hideEnvelope.
965 (App.InteractiveChartComponent._computeYAxisDomain): Removed the commented out code. Also moved the code
966 to deal with showFullYAxis here.
967 (App.InteractiveChartComponent._minMaxForAllTimeSeries): Rewrote the code. Takes ignoreOutliners as an
968 argument instead of directly inspecting showFullYAxis.
970 2015-02-10 Ryosuke Niwa <rniwa@webkit.org>
972 New perf dashboard shouldn't always show outliners
973 https://bugs.webkit.org/show_bug.cgi?id=141445
975 Reviewed by Chris Dumez.
977 Use the simple moving average with an average difference envelope to compute the y-axis range to show
978 to avoid expanding it spuriously to show one off outlier.
981 (App.Pane): Don't show the full y-axis range by default.
982 (App.Pane._computeChartData): Use the first strategies for the moving average and the enveloping if
983 one is not specified by the user but without showing them in the charts.
984 (App.Pane._computeMovingAverage): Takes moving average and enveloping strategies as arguments instead
985 of retrieving via chosenMovingAverageStrategy and chosenEnvelopingStrategy.
987 (App.ChartsController._parsePaneList): Added showFullYAxis as a query string argument to each pane.
988 (App.ChartsController._serializePaneList): Ditto.
990 * public/v2/chart-pane.css: Added a CSS rule for when y-axis is clickable.
992 * public/v2/index.html: Pass in showFullYAxis as an argument to the main interactive chart.
994 * public/v2/interactive-chart.js:
995 (App.InteractiveChartComponent._constructGraphIfPossible): Add an event listener on y-axis labels when
996 the chart is interactive so that toggle showFullYAxis. Also hide the moving average and/or the envelope
997 if they are not specified by the user (i.e. only used to adjust y-axis range).
998 (App.InteractiveChartComponent._updateDomain): Don't exit early if y-axis domains are different even if
999 x-axis domain remained the same. Without this change, the charts would never redraw.
1000 (App.InteractiveChartComponent._minMaxForAllTimeSeries): Use the moving average instead of the current
1001 time series to compute the y-axis range if showFullYAxis is false. When showFullYAxis is true, expand
1002 y-axis all the way down to 0 or the minimum value in the current time series whichever is smaller.
1004 * public/v2/js/statistics.js:
1005 (Statistics.MovingAverageStrategies): Use a wider window in Simple Moving Average by default.
1007 2015-02-10 Ryosuke Niwa <rniwa@webkit.org>
1009 Unreviewed build fix.
1012 (set get App.Pane.Ember.Object.extend):
1014 2015-02-10 Ryosuke Niwa <rniwa@webkit.org>
1016 New perf dashboard should have the ability to overlay moving average with an envelope
1017 https://bugs.webkit.org/show_bug.cgi?id=141438
1019 Reviewed by Andreas Kling.
1021 This patch adds three kinds of moving average strategies and two kinds of enveloping strategies:
1023 Simple Moving Average - The moving average x̄_i of x_i is computed as the arithmetic mean of values
1024 from x_(i - n) though x_(i + m) where n is a non-negative integer and m is a positive integer. It takes
1025 n, backward window size, and m, forward window size, as an argument.
1027 Cumulative Moving Average - x̄_i is computed as the arithmetic mean of all values x_0 though x_i.
1028 That is, x̄_1 = x_1 and x̄_i = ((i - 1) * M_(i - 1) + x_i) / i for all i > 1.
1030 Exponential Moving Average - x̄_i is computed as the weighted average of x_i and x̄_(i - 1) with α as
1031 an argument specifying x_i's weight. To be precise, x̄_1 = x_1 and x̄_i = α * x_i + (α - 1) x̄_(i-1).
1034 Average Difference - The enveloping delta d is computed as the arithmetic mean of the difference
1035 between each x_i and x̄_i.
1037 Moving Average Standard Deviation - d is computed like the standard deviation except the deviation
1038 for each term is measured from the moving average instead of the sample arithmetic mean. i.e. it uses
1039 the average of (x_i - x̄_i)^2 as the "sample variance" instead of the conventional (x_i - x̄)^2 where
1040 x̄ is the sample mean of all x_i's. This change was necessary since our time series is non-stationary.
1043 Each strategy is cloned for an App.Pane instance so that its parameterList can be configured per pane.
1044 The configuration of the currently chosen strategies is saved in the query string for convenience.
1046 Also added the "stat pane" to choose a moving average strategy and a enveloping strategy in each pane.
1048 * public/v2/app.css: Specify the fill color for all SVG groups in the pane toolbar icons.
1051 (App.Pane._fetch): Delegate the creation of 'chartData' to _computeChartData.
1052 (App.Pane.updateStatisticsTools): Added. Clones moving average and enveloping strategies for this pane.
1053 (App.Pane._cloneStrategy): Added. Clones a strategy for a new pane.
1054 (App.Pane._configureStrategy): Added. Finds and configures a strategy from the configuration retrieved
1055 from the query string via ChartsController.
1056 (App.Pane._computeChartData): Added. Creates chartData from fetchedData.
1057 (App.Pane._computeMovingAverage): Added. Computes the moving average and the envelope.
1058 (App.Pane._executeStrategy): Added.
1059 (App.Pane._updateStrategyConfigIfNeeded): Pushes the strategy configurations to the query string via
1061 (App.ChartsController._parsePaneList): Merged the query string arguments for the range and point
1062 selections, and added two new arguments for the moving average and the enveloping configurations.
1063 (App.ChartsController._serializePaneList): Ditto.
1064 (App.ChartsController._scheduleQueryStringUpdate): Observes strategy configurations.
1065 (App.PaneController.actions.toggleBugsPane): Hides the stat pane.
1066 (App.PaneController.actions.toggleSearchPane): Hides the stat pane.
1067 (App.PaneController.actions.toggleStatPane): Added.
1069 * public/v2/chart-pane.css: Added CSS rules for the new stat pane. Also added .foreground class for the
1070 current (as opposed to baseline and target) time series for when it's the most foreground graph without
1071 moving average and its envelope overlapping on top of it.
1073 * public/v2/index.html: Added the templates for the stat pane and the corresponding icon (Σ).
1075 * public/v2/interactive-chart.js:
1076 (App.InteractiveChartComponent.chartDataDidChange): Unset _totalWidth and _totalHeight to avoid exiting
1077 early inside _updateDimensionsIfNeeded when chartData changes after the initial layout.
1078 (App.InteractiveChartComponent.didInsertElement): Attach event listeners here instead of inside
1079 _constructGraphIfPossible since that could be called multiple times on the same SVG element.
1080 (App.InteractiveChartComponent._constructGraphIfPossible): Clear down the old SVG element we created
1081 but don't bother removing individual paths and circles. Added the code to show the moving average time
1082 series when there is one. Also add "foreground" class on SVG elements for the current time series when
1083 we're not showing the moving average. chart-pane.css has been updated to "dim down" the current time
1084 series when "foreground" is not set.
1085 (App.InteractiveChartComponent._minMaxForAllTimeSeries): Take the moving average time series into
1086 account when computing the y-axis range.
1087 (App.InteractiveChartComponent._brushChanged): Removed 'selectionIsLocked' argument as it's useless.
1089 * public/v2/js/statistics.js:
1090 (Statistics.MovingAverageStrategies): Added.
1091 (Statistics.EnvelopingStrategies): Added.
1093 2015-02-06 Ryosuke Niwa <rniwa@webkit.org>
1095 The delta value in the chart pane sometimes doens't show '+' for a positive delta
1096 https://bugs.webkit.org/show_bug.cgi?id=141340
1098 Reviewed by Andreas Kling.
1100 The bug was caused by computeStatus prefixing the value delta with '+' if it's greater than 0 after
1101 it had already been formatted. Fixed the bug by using a formatter that always emits a sign symbol.
1104 (App.Pane.computeStatus):
1105 (App.createChartData):
1107 2015-02-06 Ryosuke Niwa <rniwa@webkit.org>
1109 Unreviewed build fix. currentPoint wasn't defined when selectedPoints was used to find points.
1112 (App.PaneController._updateDetails):
1114 2015-02-06 Ryosuke Niwa <rniwa@webkit.org>
1116 Unreviewed. Commit the forgotten change.
1118 * public/include/manifest.php:
1120 2015-02-06 Ryosuke Niwa <rniwa@webkit.org>
1122 New perf dashboard should have multiple dashboard pages
1123 https://bugs.webkit.org/show_bug.cgi?id=141339
1125 Reviewed by Chris Dumez.
1127 Added the support for multiple dashboard pages. Also added the status of the latest data point.
1128 e.g. "5% better than target"
1130 * public/v2/app.css: Tweaked the styles to work around the fact Ember.js creates empty script elements.
1131 Also hid the border lines around charts on the dashboard page for a cleaner look.
1134 (App.IndexRoute): Added. Navigate to /dashboard/<defaultDashboardName> once the manifest.json is loaded.
1135 (App.IndexRoute.beforeModel): Added.
1136 (App.DashboardRoute): Added.
1137 (App.DashboardRoute.model): Added. Return the dashboard specified by the name.
1138 (App.CustomDashboardRoute): Added. This route is used for a customized dashboard specified by "grid".
1139 (App.CustomDashboardRoute.model): Create a dashboard model from "grid" query parameter.
1140 (App.CustomDashboardRoute.renderTemplate): Use the dashboard template.
1141 (App.DashboardController): Renamed from App.IndexController.
1142 (App.DashboardController.modelChanged): Renamed from gridChanged. Removed the code to deal with "grid"
1143 and "defaultDashboard" as these are taken care of by newly added routers.
1144 (App.DashboardController.computeGrid): Renamed from updateGrid. No longer updates "grid" since this is
1145 now done in actions.toggleEditMode.
1146 (App.DashboardController.actions.toggleEditMode): Navigate to CustomDashboardRoute when start editing
1147 an existing dashboard.
1149 (App.Pane.computeStatus): Moved from App.PaneController so that to be called in App.Pane.latestStatus.
1150 Also moved the code to compute the delta with respect to the previous data point from _updateDetails.
1151 (App.Pane._relativeDifferentToLaterPointInTimeSeries): Ditto.
1152 (App.Pane.latestStatus): Added. Used by the dashboard template to show the status of the latest result.
1154 (App.createChartData): Added deltaFormatter to show less significant digits for differences.
1156 (App.PaneController._updateDetails): Updated per changes to computeStatus.
1158 * public/v2/chart-pane.css: Added style rules for the status labels on the dashboard.
1160 * public/v2/data.js:
1161 (TimeSeries.prototype.lastPoint): Added.
1163 * public/v2/index.html: Prefetch manifest.json as soon as possible, show the latest data points' status
1164 on the dashboard, and enumerate all predefined dashboards.
1166 * public/v2/interactive-chart.js:
1167 (App.InteractiveChartComponent._relayoutDataAndAxes): Slightly adjust the offset at which we show unit
1168 for the dashboard page.
1170 * public/v2/manifest.js:
1171 (App.Dashboard): Inherit from App.NameLabelModel now that each predefined dashboard has a name.
1172 (App.MetricSerializer.normalizePayload): Parse all predefined dashboards instead of a single dashboard.
1173 IDs are generated for each dashboard for forward compatibility.
1175 (App.Manifest.dashboardByName): Added.
1176 (App.Manifest.defaultDashboardName): Added.
1177 (App.Manifest._fetchedManifest): Create dashboard model objects for all predefined ones.
1179 2015-02-05 Ryosuke Niwa <rniwa@webkit.org>
1181 Move commits viewer to the end of details view
1182 https://bugs.webkit.org/show_bug.cgi?id=141315
1184 Rubber-stamped by Andreas Kling.
1186 Show the difference instead of the old value per kling's request.
1189 (App.PaneController._updateDetails):
1190 * public/v2/index.html:
1192 2015-02-05 Ryosuke Niwa <rniwa@webkit.org>
1194 Move commits viewer to the end of details view
1195 https://bugs.webkit.org/show_bug.cgi?id=141315
1197 Reviewed by Andreas Kling.
1199 Improved the way list of commits are shown per kling's request.
1202 (App.PaneController._updateDetails): Always show the old value even when a single point is selected.
1204 * public/v2/chart-pane.css: Updated the style for the commits viewer.
1206 * public/v2/commits-viewer.js:
1207 (App.CommitsViewerComponent): Added "visible" property to hide the list of commits.
1208 (App.CommitsViewerComponent.actions.toggleVisibility): Added. Toggles "visible" property.
1210 * public/v2/index.html: Updated the template for commits viewer to support "visible" property. Also
1211 moved the commits viewers out of the details tables so that they don't interleave revision data.
1213 2015-02-05 Ryosuke Niwa <rniwa@webkit.org>
1215 New perf dashboard should compare results to baseline and target
1216 https://bugs.webkit.org/show_bug.cgi?id=141286
1218 Reviewed by Chris Dumez.
1220 Compare the selected value against baseline and target values as done in v1. e.g. "5% below target"
1221 Also use d3.format to format the selected value to show four significant figures.
1224 (App.Pane.searchCommit):
1225 (App.Pane._fetch): Create time series here via createChartData so that _computeStatus can use them
1226 to compute the status text without having to recreate them.
1227 (App.createChartData): Added.
1228 (App.PaneController._updateDetails): Use 3d.format on current and old values.
1229 (App.PaneController._computeStatus): Added. Computes the status text.
1230 (App.PaneController._relativeDifferentToLaterPointInTimeSeries): Added.
1231 (App.AnalysisTaskController._fetchedManifest): Use createChartData as done in App.Pane._fetch. Also
1232 format the values using chartData.formatter.
1234 * public/v2/chart-pane.css: Enlarge the status text. Show the status text in red if it's worse than
1235 the baseline and in blue if it's better than the target.
1237 * public/v2/data.js:
1238 (TimeSeries.prototype.findPointAfterTime): Added.
1240 * public/v2/index.html: Added a new tbody for the status text and the selected value. Also fixed
1241 the bug that we were not showing the old value's unit.
1243 * public/v2/interactive-chart.js:
1244 (App.InteractiveChartComponent._constructGraphIfPossible): Use chartData.formatter. Also cleaned up
1245 the code to show the baseline and the target lines.
1247 * public/v2/manifest.js:
1248 (App.Manifest.fetchRunsWithPlatformAndMetric): Added smallerIsBetter.
1250 2015-02-05 Ryosuke Niwa <rniwa@webkit.org>
1252 Unreviewed build fix.
1255 (App.IndexController.gridChanged): Use store.createRecord to create a custom dashboard as required by Ember.js
1257 2015-02-04 Ryosuke Niwa <rniwa@webkit.org>
1259 New perf dashboard doesn't preserve the number of days when clicking on a dashboard chart
1260 https://bugs.webkit.org/show_bug.cgi?id=141280
1262 Reviewed by Chris Dumez.
1264 Fixed the bug by passing in "since" as a query parameter to the charts page.
1266 Also fixed the styling issue that manifests when a JSON fetching fails on "Dashboard" page.
1268 * public/v2/app.css: Fixed CSS rules for error messages shown in the place of charts.
1270 (App.IndexController): Changed the default number of days from one month to one week.
1271 (App.IndexController._sharedDomainChanged): Set "since" property on the controller.
1272 * public/v2/index.html: Pass in "since" property on the controller as a query parameter.
1274 2015-02-04 Ryosuke Niwa <rniwa@webkit.org>
1276 New perf dashboard erroneously clears zoom when poping history items
1277 https://bugs.webkit.org/show_bug.cgi?id=141278
1279 Reviewed by Chris Dumez.
1281 The bug was caused by _sharedZoomChanged updating overviewSelection without updating mainPlotDomain.
1283 Updating overviewSelection resulted in _overviewSelectionChanged, which observes changes to overviewSelection,
1284 to schedule a call to propagateZoom, which in turn overrode "sharedZoom" we just parsed from the query string.
1287 (App.PaneController._overviewSelectionChanged): Don't schedule propagateZoom if the selected domain is already
1288 shown in the main plot.
1289 (App.PaneController._sharedZoomChanged): Set both overviewSelection and mainPlotDomain to avoid overriding
1290 "sharedZoom" via propagateZoom inside _overviewSelectionChanged.
1292 2015-02-04 Ryosuke Niwa <rniwa@webkit.org>
1294 New perf dashboard shows null as the aggregator name if no aggregation is done
1295 https://bugs.webkit.org/show_bug.cgi?id=141256
1297 Reviewed by Chris Dumez.
1299 Don't show the aggregator name if there isn't one.
1301 * public/v2/manifest.js:
1304 2015-02-04 Ryosuke Niwa <rniwa@webkit.org>
1306 Unreviewed build fix after r179611.
1308 * public/v2/interactive-chart.js:
1310 2015-02-04 Ryosuke Niwa <rniwa@webkit.org>
1312 Perf dashboard doesn’t show the right unit for Safari UI tests
1313 https://bugs.webkit.org/show_bug.cgi?id=141238
1315 Reviewed by Darin Adler.
1317 Safari UI tests use custom metrics that end with "Time". This patch teaches the perf dashboard how to
1318 get the unit for a given metric based on the suffix of the metric name instead of hard-coding the mapping
1319 between metrics and their units.
1321 * public/js/helper-classes.js:
1322 (PerfTestRuns): Use the suffix of the metric name to compute the unit.
1323 * public/v2/manifest.js:
1324 (App.Manifest.fetchRunsWithPlatformAndMetric): Ditto. Also set "useSI" property iff for "bytes".
1325 * public/v2/interactive-chart.js:
1326 (App.InteractiveChartComponent._constructGraphIfPossible): Respect useSI. Use toPrecision(3) otherwise.
1327 (App.InteractiveChartComponent._relayoutDataAndAxes): Place the unit vertically on the left of ticks.
1329 2015-02-04 Ryosuke Niwa <rniwa@webkit.org>
1331 Interactive chart component provides two duplicate API for highlighting points
1332 https://bugs.webkit.org/show_bug.cgi?id=141234
1334 Reviewed by Chris Dumez.
1336 Prior to this patch, the interactive chart component supported highlightedItems for finding commits
1337 on the main charts page and markedPoints to show the two end points in the analysis task page.
1339 This patch merges markedPoints into highlightedItems.
1342 (App.AnalysisTaskController._fetchedRuns): Use highlightedItems.
1343 * public/v2/chart-pane.css:
1344 * public/v2/index.html: Ditto.
1345 * public/v2/interactive-chart.js:
1346 (App.InteractiveChartComponent._constructGraphIfPossible): Make this._highlights an array instead of
1347 array of arrays. Also call _highlightedItemsChanged at the end to fix the bug that we never highlight
1348 items if highlightedItems was set before the initial layout.
1349 (App.InteractiveChartComponent._relayoutDataAndAxes):
1350 (App.InteractiveChartComponent._updateHighlightPositions): Now that highlights are circles instead of
1351 vertical lines, just set cx and cy as done for other "dots".
1352 (App.InteractiveChartComponent._highlightedItemsChanged): Exit early only if _clippedContainer wasn't
1353 already set; i.e. _constructGraphIfPossible hasn't been called. Also updated the logic to accommodate
1354 the fact this._highlights is an array of elements instead of an array of arrays of elements. Finally,
1355 set the radius of highlight circles here.
1357 2015-02-03 Ryosuke Niwa <rniwa@webkit.org>
1359 Don’t use repository names as id’s.
1360 https://bugs.webkit.org/show_bug.cgi?id=141226
1362 Reviewed by Chris Dumez.
1364 Not using repository names as their id's reduces the need to fetch the entire repositories table.
1365 Since names of repositories are available in manifest.json, we can resolve their names in the front end.
1367 * Websites/perf.webkit.org/public/api/runs.php:
1368 (parse_revisions_array): No longer uses $repository_id_to_name.
1369 (main): No longer populates $repository_id_to_name.
1371 * Websites/perf.webkit.org/public/api/triggerables.php:
1372 (main): Don't resolve repository names.
1374 * Websites/perf.webkit.org/public/include/manifest.php:
1375 (ManifestGenerator::repositories): Use repositories ids as keys in the result and include their names.
1376 (ManifestGenerator::bug_trackers): Don't resolve repository names.
1378 * Websites/perf.webkit.org/public/js/helper-classes.js:
1379 (TestBuild): Renamed repositoryName to repositoryId.
1380 (TestBuild.revision): Ditto.
1381 (TestBuild.formattedRevisions): Ditto. Continue to use the repository name in the formatted result
1382 since this is the text shown to human.
1384 * Websites/perf.webkit.org/public/v2/app.js:
1385 (App.pane.searchCommit): Renamed repositoryName to repositoryId.
1386 (App.PaneController._updateDetails): Ditto.
1387 (App.AnalysisTaskController.updateRoots): Ditto.
1389 * Websites/perf.webkit.org/public/v2/data.js:
1390 (Measurement): Ditto.
1391 (Measurement.prototype.commitTimeForRepository): Ditto.
1392 (Measurement.prototype.formattedRevisions): Ditto.
1394 * Websites/perf.webkit.org/public/v2/index.html: Use the repository name and the repository id as
1395 select element's label and value respectively.
1397 2015-02-03 Ryosuke Niwa <rniwa@webkit.org>
1399 Unreviewed build fix. Declare $repository_id_to_name in the global scope.
1401 * public/api/runs.php:
1403 2015-02-03 Ryosuke Niwa <rniwa@webkit.org>
1405 /api/runs.php should have main function
1406 https://bugs.webkit.org/show_bug.cgi?id=141220
1408 Reviewed by Benjamin Poulain.
1410 Wrapped the code inside main function for clarity.
1412 * public/api/runs.php:
1414 2015-01-27 Ryosuke Niwa <rniwa@webkit.org>
1416 Unreviewed build fix. "eta" isn't set on a in-progress build on a newly added builder.
1418 * tools/sync-with-buildbot.py:
1419 (find_request_updates):
1421 2015-01-23 Ryosuke Niwa <rniwa@webkit.org>
1423 Perf dashboard always assigns the result of A/B testing with build request 1
1424 https://bugs.webkit.org/show_bug.cgi?id=140382
1426 Reviewed by Darin Adler.
1428 The bug was caused by the expression array_get($report, 'jobId') or array_get($report, 'buildRequest')
1429 which always evaluated to 1 when the report contained jobId. Fixed the bug by cascading array_get instead.
1431 Also fixed a typo as well as a bug that reports were never associated with builds.
1433 * public/include/report-processor.php:
1434 (ReportProcessor::process): Don't use "or" to find the non-null value since that always evaluates to 1
1435 instead of the first non-null value.
1436 (ReportProcessor::resolve_build_id): Fixed the typo by adding the missing "$this->".
1437 (ReportProcessor::commit): Associate the report with the corresponding build as intended.
1439 2015-01-23 Ryosuke Niwa <rniwa@webkit.org>
1441 Unreviewed typo fix. The prefix in triggerable_configurations is "trigconfig", not "trigrepo".
1443 * public/admin/tests.php:
1445 2015-01-10 Ryosuke Niwa <rniwa@webkit.org>
1447 Unreviewed build fix. Removed the stale code.
1449 * public/admin/triggerables.php:
1451 2015-01-09 Ryosuke Niwa <rniwa@webkit.org>
1453 Perf dashboard should have the ability to post A/B testing builds
1454 https://bugs.webkit.org/show_bug.cgi?id=140317
1456 Rubber-stamped by Simon Fraser.
1458 This patch adds the support for triggering A/B testing from the perf dashboard.
1460 We add a few new tables to the database. "build_triggerables", which represents a set of builders
1461 that accept A/B testing. "triggerable_repositories" associates each "triggerable" with a fixed set
1462 of repositories for which an arbitrary revision can be specified for A/B testing.
1463 "triggerable_configurations" specifies a triggerable available on a given test on a given platform.
1464 "roots" table which specifies the revision used in a given root set in each repository.
1466 * init-database.sql: Added "build_triggerables", "triggerable_repositories",
1467 "triggerable_configurations", and "roots" tables. Added references to "build_triggerables",
1468 "platforms", and "tests" tables as well as columns to store status, status url, and creation time
1469 to build_requests table. Also made each test group's name unique in a given analysis task as it
1470 would be confusing to have multiple test groups of the same name.
1472 * public/admin/tests.php: Added the UI and the code to associate a test with a triggerable.
1474 * public/admin/triggerables.php: Added. Manages the list of triggerables as well as repositories
1475 for which a specific revision can be set in an A/B testing on a given triggerable.
1477 * public/api/build-requests.php: Added. Returns the list of open build requests on a specified
1478 triggerable. Also updates the status' and the status urls of specified build requests when
1479 buildRequestUpdates is provided in the raw POST data.
1482 * public/api/runs.php:
1483 (fetch_runs_for_config): Don't include results associated with a build request, meaning they are
1484 results of an A/B testing.
1486 * public/api/test-groups.php:
1487 (main): Use the newly added BuildRequestsFetcher. Also merged fetch_test_groups_for_task back.
1489 * public/api/triggerables.php: Added.
1490 (main): Returns a list of triggerables or a triggerable associated with a given analysis task.
1492 * public/include/admin-header.php:
1494 * public/include/build-requests-fetcher.php: Added. Extracted from public/api/test-groups.php.
1495 (BuildRequestsFetcher): This class abstracts the process of fetching a list of builds requests
1496 and root sets used in those requests.D
1497 (BuildRequestsFetcher::__construct):
1498 (BuildRequestsFetcher::fetch_for_task):
1499 (BuildRequestsFetcher::fetch_for_group):
1500 (BuildRequestsFetcher::fetch_incomplete_requests_for_triggerable):
1501 (BuildRequestsFetcher::has_results):
1502 (BuildRequestsFetcher::results):
1503 (BuildRequestsFetcher::results_with_resolved_ids):
1504 (BuildRequestsFetcher::results_internal):
1505 (BuildRequestsFetcher::root_sets):
1506 (BuildRequestsFetcher::fetch_roots_for_set):
1508 * public/include/db.php:
1509 (Database::prefixed_column_names): Don't return "$prefix_" when there are no columns.
1510 (Database::insert_row): Support taking an empty array for values. This is useful in "root_sets"
1511 table since it only has the primary key, id, column.
1512 (Database::select_or_insert_row):
1513 (Database::update_or_insert_row):
1514 (Database::update_row): Added.
1515 (Database::_select_update_or_insert_row): Takes an extra argument specifying whether a new row
1516 should be inserted when no row matches the specified criteria. This is used while updating
1517 build_requests' status and url in public/api/build-requests.php since we shouldn't be inserting
1518 new build requests in that API.
1519 (Database::select_rows): Also use "1 == 1" in the select query when the query criteria is empty.
1520 This is used in public/api/triggerables.php when no analysis task is specified.
1522 * public/include/json-header.php:
1523 (find_triggerable_for_task): Added. Finds a triggerable available on a given test. We return the
1524 triggerable associated with the closest ancestor of the test. Since issuing a new query for each
1525 ancestor test is expensive, we retrieve triggerable for all ancestor tests at once and manually
1526 find the closest ancestor with a triggerable.
1528 * public/include/report-processor.php:
1529 (ReportProcessor::process):
1530 (ReportProcessor::resolve_build_id): Associate a build request with the newly created build
1531 if jobId or buildRequest is specified.
1533 * public/include/test-name-resolver.php:
1534 (TestNameResolver::map_metrics_to_tests): Store the entire metric row instead of its name so that
1535 test_exists_on_platform can use it. The last diff in public/admin/tests.php adopts this change.
1536 (TestNameResolver::test_exists_on_platform): Added. Returns true iff the test has ever run on
1539 * public/include/test-path-resolver.php: Added.
1540 (TestPathResolver): This class abstracts the ancestor chains of a test. It retrieves the entire
1541 "tests" table to do this since there could be arbitrary number of ancestors for a given test.
1542 This class is a lot more lightweight than TestNameResolver, which retrieves a whole bunch of tables
1543 in order to compute full test metric names.
1544 (TestPathResolver::__construct):
1545 (TestPathResolver::ancestors_for_test): Returns the ordered list of ancestors from the closest to
1546 the highest (a test without a parent).
1547 (TestPathResolver::path_for_test): Returns a test "path", the ordered list of test names from
1548 the highest ancestor to the test itself.
1549 (TestPathResolver::ensure_id_to_test_map): Fetches "tests" table to construct id_to_test_map.
1551 * public/privileged-api/create-test-group.php: Added. An API to create A/B testing groups.
1553 (commit_sets_from_root_sets): Given a dictionary of repository names to a pair of revisions
1554 for sets A and B respectively, returns a pair of arrays, each of which contains the corresponding
1555 set of "commits" for sets A and B respectively. e.g. {"WebKit": [1, 2], "Safari": [3, 4]} will
1556 result in [[WebKit commit at r1, Safari commit at r3], [WebKit commit at r2, Safari commit at r4]].
1558 * public/v2/analysis.js:
1559 (App.AnalysisTask.testGroups): Takes arguments so that set('testGroups') will invalidate the cache.
1560 (App.AnalysisTask.triggerable): Added. Retrieves the triggerable associated with the task lazily.
1561 (App.TestGroup.rootSets): Added. Returns the list of root set ids used in this A/B testing group.
1562 (App.TestGroup.create): Added. Creates a new A/B testing group.
1563 (App.Triggerable): Added.
1564 (App.TriggerableAdapter): Added.
1565 (App.TriggerableAdapter.buildURL): Added.
1566 (App.BuildRequest.testGroup): Renamed from group.
1567 (App.BuildRequest.orderLabel): Added. One-based index to be used in labels.
1568 (App.BuildRequest.config): Added. Returns either 'A' or 'B' depending on the configuration used
1569 in this build request.
1570 (App.BuildRequest.status): Added.
1571 (App.BuildRequest.statusLabel): Added. Returns a human friendly label for the current status.
1572 (App.BuildRequest): Removed buildNumber, buildBuilder, as well as buildTime as they're unused.
1575 (App.AnalysisTaskController.testGroups): Added.
1576 (App.AnalysisTaskController.possibleRepetitionCounts): Added.
1577 (App.AnalysisTaskController.updateRoots): Renamed from roots. This is also no longer a property
1578 but an observer that updates "roots" property. Filter out the repositories that are not accepted
1579 by the associated triggerable as they will be ignored.
1580 (App.AnalysisTaskController.actions.createTestGroup): Added.
1582 * public/v2/index.html: Updated the UI, and added a form element to trigger createTestGroup action.
1584 * tools/sync-with-buildbot.py: Added. This scripts posts new builds on buildbot and reports back
1585 the status of those builds to the perf dashboard. A similar script can be written to support
1586 other continuous builds systems.
1587 (main): Fetches the list of pending builds as well as currently running or completed builds from
1588 a buildbot, and report new statuses of builds requests to the perf dashboard. It will then schedule
1589 a single new build on each builder with no pending builds, and marks the set of open build requests
1590 that have been scheduled to run on the buildbot but not found in the first step as stale.
1591 (load_config): Loads a JSON that contains the configurations for each builder. e.g.
1594 "platform": "mac-mavericks",
1595 "test": ["Parser", "html5-full-render.html"],
1596 "builder": "Trunk Syrah Production Perf AB Tests",
1598 "forcescheduler": "force-mac-mavericks-release-perf",
1599 "webkit_revision": "$WebKit",
1600 "jobid": "$buildRequest"
1605 (find_request_updates): Return a list of build request status updates to make based on the pending
1606 builds as well as in-progress and completed builds on each builder on the buildbot. When a build is
1607 completed, we use the special status "failedIfNotCompleted" which results in "failed" status only
1608 if the build request had not been completed. This is necessary because a failed build will not
1609 report its failed-ness back to the perf dashboard in some cases; e.g. lost slave or svn up failure.
1610 (update_and_fetch_build_requests): Submit the build request status updates and retrieve the list
1611 of open requests the perf dashboard has.
1612 (find_stale_request_updates): Compute the list of build requests that have been scheduled on the
1613 buildbot but not found in find_request_updates. These build requests are lost. e.g. a master reboot
1614 or human canceling a build may trigger such a state.
1615 (schedule_request): Schedules a build with the arguments specified in the configuration JSON after
1616 replacing repository names with their revisions and buildRequest with the build request id.
1617 (config_for_request): Finds a builder for the test and the platform of a build request.
1618 (fetch_json): Fetches a JSON from the specified URL, optionally with BasicAuth.
1619 (property_value_from_build): Returns the value of a specific property in a buildbot build.
1620 (request_id_from_build): Returns the build request id of a given buildbot build if there is one.
1622 2015-01-09 Ryosuke Niwa <rniwa@webkit.org>
1624 Cache-control should be set only on api/runs
1625 https://bugs.webkit.org/show_bug.cgi?id=140312
1627 Reviewed by Andreas Kling.
1629 Some JSON APIs such as api/analysis-tasks can't be cached even for a short period of time (e.g. a few minutes)
1630 since they can be modified by the user on demand. Since only api/runs.php takes a long time to generate JSONs,
1631 just set cache-control there instead of json-header.php which is used by other JSON APIs.
1633 Also set date_default_timezone_set in db.php since we never use non-UTC timezone in our scripts.
1635 * public/api/analysis-tasks.php:
1636 * public/api/runs.php: Set the cache control headers.
1637 * public/api/test-groups.php:
1638 * public/include/db.php: Set the default timezone to UTC.
1639 * public/include/json-header.php: Don't set the cache control headers.
1641 2015-01-09 Ryosuke Niwa <rniwa@webkit.org>
1643 api/report-commit should authenticate with a slave name and password
1644 https://bugs.webkit.org/show_bug.cgi?id=140308
1646 Reviewed by Benjamin Poulain.
1648 Use a slave name and a password to authenticate new commit reports.
1650 * public/api/report-commits.php:
1652 * public/include/json-header.php:
1653 (verify_slave): Renamed and repurposed from verify_builder in report-commits.php. Now authenticates with
1654 a slave name and a password instead of a builder name and a password.
1655 * tests/api-report-commits.js: Updated tests.
1656 * tools/pull-svn.py:
1657 (main): Renamed variables.
1658 (submit_commits): Submits slaveName and slavePassword instead of builderName and builderPassword.
1660 2014-12-19 Ryosuke Niwa <rniwa@webkit.org>
1662 Perf dashboard should support authentication via a slave password
1663 https://bugs.webkit.org/show_bug.cgi?id=139837
1665 Reviewed by Andreas Kling.
1667 For historical reasons, perf dashboard conflated builders and build slaves. As a result we ended up
1668 having to add multiple builders with the same password when a single build slave is shared among them.
1670 This patch introduces the concept of build_slave into the perf dashboard to end this madness.
1672 * init-database.sql: Added build_slave table as well as references to it in builds and reports.
1674 * public/admin/build-slaves.php: Added.
1676 * public/admin/builders.php: Added the support for updating passwords.
1678 * public/include/admin-header.php:
1679 (update_field): Takes an extra argument when a new value needs to be supplied by the caller instead of
1680 being retrieved from $_POST.
1681 (AdministrativePage::render_table): Use array_get to retrieve a value out of the database row since
1682 the raw may not exist (e.g. new_password).
1683 (AdministrativePage::render_form_to_add): Added the support for post_insertion. Don't render the form
1684 control here when this flag evaluates to TRUE.
1686 * public/include/report-processor.php:
1687 (ReportProcessor::process): Added the logic to authenticate with slaveName and slavePassword if those
1688 values are present in the report. In addition, try authenticating builderName with slavePassword if
1689 builderPassword is not specified. When neither password is specified, exit with BuilderNotFound.
1690 Also insert the slave or the builder whichever is missing after we've successfully authenticated.
1691 (ReportProcessor::construct_build_data): Takes a builder ID and an optional slave ID instead of
1693 (ReportProcessor::store_report): Store the slave ID with the report.
1694 (ReportProcessor::resolve_build_id): Exit with MismatchingBuildSlave when the slave associated with
1695 the matching build is different from what's being reported.
1697 * tests/api-report.js: Added a bunch of tests to test the new features of /api/report.
1700 2014-12-18 Ryosuke Niwa <rniwa@webkit.org>
1702 New perf dashboard should not duplicate author information in each commit
1703 https://bugs.webkit.org/show_bug.cgi?id=139756
1705 Reviewed by Darin Adler.
1707 Instead of each commit having author name and email, make it reference a newly added committers table.
1708 Also replace "email" by "account" since some repositories don't use emails as account names.
1710 This improves the keyword search performance in commits.php since LIKE now runs on committers table,
1711 which only contains as many rows as there are accounts in each repository, instead of commits table
1712 which contains every commit ever happened in each repository.
1714 To migrate an existing database into match the new schema, run:
1718 INSERT INTO committers (committer_repository, committer_name, committer_email)
1719 (SELECT DISTINCT commit_repository, commit_author_name, commit_author_email
1720 FROM commits WHERE commit_author_email IS NOT NULL);
1722 ALTER TABLE commits ADD COLUMN commit_committer integer REFERENCES committers ON DELETE CASCADE;
1724 UPDATE commits SET commit_committer = committer_id FROM committers
1725 WHERE commit_repository = committer_repository AND commit_author_email = committer_email;
1727 ALTER TABLE commits DROP COLUMN commit_author_name CASCADE;
1728 ALTER TABLE commits DROP COLUMN commit_author_email CASCADE;
1732 * init-database.sql: Added committers table, and replaced author columns in commits table by a foreign
1733 reference to committers. Also added the missing drop table statements.
1735 * public/api/commits.php:
1736 (main): Fetch the corresponding committers row for a single commit. Also wrap a single commit by
1737 an array here instead of doing it in format_commit.
1738 (fetch_commits_between): Updated queries to JOIN commits with committers.
1739 (format_commit): Takes both commit and committers rows. Also don't wrap the result in an array as that
1740 is now done in main.
1742 * public/api/report-commits.php:
1743 (main): Store the reported committer information or update the existing entry if there is one.
1745 * tests/admin-regenerate-manifest.js: Fixed tests.
1747 * tests/api-report-commits.js: Ditto. Also added a test for updating an existing committer entry.
1749 * tools/pull-svn.py: Renamed email to account.
1751 (fetch_commit_and_resolve_author):
1753 (resolve_author_name_from_account):
1754 (resolve_author_name_from_email): Deleted.
1756 2014-12-17 Ryosuke Niwa <rniwa@webkit.org>
1758 Unreviewed build fix.
1760 * public/v2/index.html: Include js files we extracted in r177424.
1762 2014-12-16 Ryosuke Niwa <rniwa@webkit.org>
1764 Unreviewed. Adding the forgotten svnprop.
1766 * tools/pull-svn.py: Added property svn:executable.
1768 2014-12-16 Ryosuke Niwa <rniwa@webkit.org>
1770 Split InteractiveChartComponent and CommitsViewerComponent into separate files
1771 https://bugs.webkit.org/show_bug.cgi?id=139716
1773 Rubber-stamped by Benjamin Poulain.
1775 Refactored InteractiveChartComponent and CommitsViewerComponent out of app.js into commits-viewer.js
1776 and interactive-chart.js respectively since app.js has gotten really large.
1779 * public/v2/commits-viewer.js: Added.
1780 * public/v2/interactive-chart.js: Added.
1782 2014-12-02 Ryosuke Niwa <rniwa@webkit.org>
1784 New perf dashboard's chart UI is buggy
1785 https://bugs.webkit.org/show_bug.cgi?id=139214
1787 Reviewed by Chris Dumez.
1789 The bugginess was caused by weird interactions between charts and panes. Rewrote the code to fix it.
1791 Superfluous selectionChanged and domainChanged "event" actions were removed from the interactive chart
1792 component. This is not how Ember.js components should interact to begin with. The component now exposes
1793 selectedPoints and always updates selection instead of sharedSelection.
1796 (App.ChartsController.present): Added. We can't call Date.now() in various points in our code as that
1797 would lead to infinite mutual recursions since X-axis domain values wouldn't match up.
1798 (App.ChartsController.updateSharedDomain): This function was completely useless. The overview's start
1799 and end time should be completely determined by "since" and the present time.
1800 (App.ChartsController._startTimeChanged): Ditto.
1801 (App.ChartsController._scheduleQueryStringUpdate):
1802 (App.ChartsController._updateQueryString): Set "zoom" only if it's different from the shared domain.
1804 (App.domainsAreEqual): Moved from InteractiveChartComponent._xDomainsAreSame.
1806 (App.PaneController.actions.createAnalysisTask): Use selectedPoints property set by the chart.
1807 (App.PaneController.actions.overviewDomainChanged): Removed; only needed to call updateSharedDomain.
1808 (App.PaneController.actions.rangeChanged): Removed. _showDetails (renamed to _updateDetails) directly
1809 observes the changes to selectedPoints property as it gets updated by the main chart.
1810 (App.PaneController._overviewSelectionChanged): This was previously a dead code. Now it's used again
1811 with a bug fix. When the overview selection is cleared, we use the same domain in the main chart and
1813 (App.PaneController._sharedDomainChanged): Fixed a but that it erroneously updates the overview domain
1814 when domain arrays aren't identical. This was causing a subtle race with other logic.
1815 (App.PaneController._sharedZoomChanged): Ditto. Also don't set mainPlotDomain here as any changes to
1816 overviewSelection will automatically propagate to the main plot's domain as they're aliased.
1817 (App.PaneController._currentItemChanged): Merged into _updateDetails (renamed from _showDetails).
1818 (App.PaneController._updateDetails): Previously, this function took points and inspected _hasRange to
1819 see if those two points correspond to a range or a single data point. Rewrote all that logic by
1820 directly observing selectedPoints and currentItem properties instead of taking points and relying on
1821 an instance variable, which was a terrible API.
1822 (App.PaneController._updateCanAnalyze): Use selectedPoints property. Since this property is only set
1823 when the main plot has a selected range, we don't have to check this._hasRange anymore.
1825 (App.InteractiveChartComponent._updateDomain): No longer sends domainChanged "event" action.
1826 (App.InteractiveChartComponent._sharedSelectionChanged): Removed. This is a dead code.
1827 (App.InteractiveChartComponent._updateSelection):
1828 (App.InteractiveChartComponent._xDomainsAreSame): Moved to App.domainsAreEqual.
1829 (App.InteractiveChartComponent._setCurrentSelection): Update the selection only if needed. Also set
1830 selectedPoints property.
1832 (App.AnalysisTaskController._fetchedRuns):
1833 (App.AnalysisTaskController._rootChangedForTestSet):
1835 * public/v2/index.html:
1836 Removed non-functional sharedSelection and superfluous selectionChanged and domainChanged actions.
1838 2014-11-21 Ryosuke Niwa <rniwa@webkit.org>
1840 Unreviewed. Fixed syntax errors.
1842 * init-database.sql:
1843 * public/api/commits.php:
1845 2014-11-21 Ryosuke Niwa <rniwa@webkit.org>
1847 The dashboard on new perf monitor should be configurable
1848 https://bugs.webkit.org/show_bug.cgi?id=138994
1850 Reviewed by Benjamin Poulain.
1852 For now, make it configurable via config.json. We should eventually make it configurable via
1853 an administrative page but this will do for now.
1855 * config.json: Added the empty dashboard configuration.
1857 * public/include/manifest.php: Include the dashboard configuration in the manifest file.
1860 (App.IndexController): Removed defaultTable since this is now dynamically obtained via App.Manifest.
1861 (App.IndexController.gridChanged): Use App.Dashboard to parse the dashboard configuration.
1862 Also obtain the default configuration from App.Manifest.
1863 (App.IndexController._normalizeTable): Moved to App.Dashboard.
1865 * public/v2/manifest.js:
1866 (App.Repository.urlForRevision): Fixed the position of the open curly bracket.
1867 (App.Repository.urlForRevisionRange): Ditto.
1868 (App.Dashboard): Added.
1869 (App.Dashboard.table): Extracted from App.IndexController.gridChanged.
1870 (App.Dashboard.rows): Ditto.
1871 (App.Dashboard.headerColumns): Ditto.
1872 (App.Dashboard._normalizeTable): Moved from App.IndexController._normalizeTable.
1873 (App.MetricSerializer.normalizePayload): Synthesize a dashboard record from the configuration.
1874 Since there is exactly one dashboard object per app, it's okay to hard code an id here.
1875 (App.Manifest._fetchedManifest): Set defaultDashboard to the one and only one dashboard we have.
1877 2014-11-21 Ryosuke Niwa <rniwa@webkit.org>
1879 There should be a way to associate bugs with analysis tasks
1880 https://bugs.webkit.org/show_bug.cgi?id=138977
1882 Reviewed by Benjamin Poulain.
1884 Updated associate-bug.php to match the new database schema.
1886 * public/include/json-header.php:
1887 (require_format): Removed the call to camel_case_words_separated_by_underscore since the name is
1888 already camel-cased in require_existence_of. This makes the function usable elsewhere.
1890 * public/privileged-api/associate-bug.php:
1891 (main): Changed the API to take run, bugTracker, and number to match the new database schema.
1892 Also verify that those values are integers using require_format.
1894 * public/v2/analysis.js:
1895 (App.AnalysisTask.label): Added. Concatenates the task's name with the bug numbers.
1896 (App.Bug.label): Added.
1897 (App.BugAdapter): Added.
1898 (App.BugAdapter.createRecord): Use PrivilegedAPI instead of the builtin ajax call.
1899 (App.BuildRequest): Inherit from newly added App.Model, which is set to DS.Model right now.
1901 * public/v2/app.css: Renamed .test-groups to .analysis-group. Also added new rules for the table
1902 containing the bug information.
1905 (App.InteractiveChartComponent._rangesChanged): Added label to range bar objects.
1906 (App.AnalysisTaskRoute):
1907 (App.AnalysisTaskController): Replaced the functionality of App.AnalysisTaskViewModel.
1908 (App.AnalysisTaskController._fetchedManifest): Added.
1909 (App.AnalysisTaskController.actions.associateBug): Added.
1911 * public/v2/chart-pane.css: Renamed .bugs-pane to .analysis-pane.
1913 * public/v2/data.js:
1914 (Measurement.prototype.associateBug): Deleted.
1916 * public/v2/index.html: Renamed .bugs-pane to .analysis-pane and .test-groups to .analysis-group.
1917 Added a table show the bug information. Also hide the chart until chartData is available.
1919 * public/v2/manifest.js:
1922 2014-11-20 Ryosuke Niwa <rniwa@webkit.org>
1924 Fix misc bugs and typos in app.js
1925 https://bugs.webkit.org/show_bug.cgi?id=138946
1927 Reviewed by Benjamin Poulain.
1930 (App.DashboardPaneProxyForPicker._platformOrMetricIdChanged):
1931 (App.ChartsController.init):
1932 (App.buildPopup): Renamed from App.BuildPopup.
1933 (App.InteractiveChartComponent._constructGraphIfPossible): Fixed the bug that we were calling
1934 remove() on the wrong object (an array as opposed to elements in the array).
1935 (App.InteractiveChartComponent._highlightedItemsChanged): Check the length of _highlights as
1936 _highlights is always an array and evalutes to true.
1938 2014-11-20 Ryosuke Niwa <rniwa@webkit.org>
1940 New perf dashboard should provide UI to create a new analysis task
1941 https://bugs.webkit.org/show_bug.cgi?id=138910
1943 Reviewed by Benjamin Poulain.
1945 This patch reverts some parts of r175006 and re-introduces bugs associated with analysis tasks.
1946 I'll add UI to show and edit bug numbers associated with an analysis task in a follow up patch.
1948 With this patch, we can create a new analysis task by selection a range of points and opening
1949 "analysis pane" (renamed from "bugs pane"). Each analysis task created is represented by a yellow bar
1950 in the chart hyperlinked to the analysis task.
1952 * init-database.sql: Redefined the bugs to be associated with an analysis task instead of a test run.
1954 * public/api/analysis-tasks.php: Added the support for querying analysis tasks for a specific metric
1955 on a specific platform. Also retrieve and return all bugs associated with analysis tasks.
1957 (fetch_and_push_bugs_to_tasks): Added. Fetches all bugs associated with an array of analysis tasks
1958 and adds the associated bugs to each task in the array.
1961 * public/api/runs.php: Reverted changes made in r175006.
1962 (fetch_runs_for_config):
1965 * public/api/test-groups.php:
1966 (fetch_test_groups_for_task): Use the newly added Database::select_rows.
1968 * public/include/db.php:
1969 (Database::select_first_or_last_row):
1970 (Database::select_rows): Extracted from select_first_or_last_row.
1972 * public/v2/analysis.js:
1973 (App.AnalysisTask): Added "bugs" property.
1974 (App.Bug): Added now that bugs are regular data store objects.
1977 (App.Pane._fetch): Calls this.fetchAnalyticRanges to fetch analysis tasks as well as test runs.
1978 (App.Pane.fetchAnalyticRanges): Added. Fetches analysis tasks for the current metric on the current
1979 platform that are associated with a specific range of runs.
1980 (App.PaneController.actions.toggleBugsPane): Updated per showingBugsPane to showingAnalysisPane rename.
1981 (App.PaneController.actions.associateBug): Deleted.
1982 (App.PaneController.actions.createAnalysisTask): Replaced the pre-condition checks with assertions as
1983 this action should never be triggered when the pre-condition is not met. Also re-fetch analysis tasks
1984 once we've created one.
1985 (App.PaneController.toggleSearchPane): Updated per showingBugsPane to showingAnalysisPane rename.
1986 (App.PaneController._detailsChanged): Ditto. Removed selectedSinglePoint since it's no longer used.
1987 (App.PaneController._showDetails): Call _updateCanAnalyze to update the status of "Analyze" button.
1988 (App.PaneController._updateBugs): Deleted.
1989 (App.PaneController._updateMarkedPoints): Deleted.
1990 (App.PaneController._updateCanAnalyze): Added. Disables the button to create an analysis task when
1991 the name is missing or when at most one point is selected.
1993 (App.InteractiveChartComponent._constructGraphIfPossible): Update the locations of range rects.
1994 (App.InteractiveChartComponent._relayoutDataAndAxes): Ditto.
1995 (App.InteractiveChartComponent._mousePointInGraph): Don't return a point unless the mouse cursor is
1996 on our svg element to avoid locking the current item when a bar shown for an analysis task is clicked.
1997 (App.InteractiveChartComponent._rangesChanged): Added. Creates an array of objects representing
1998 clickable bars for analysis tasks.
1999 (App.InteractiveChartComponent._updateRangeBarRects): Computes the inline style used by each clickable
2000 bar for analysis tasks to place them at the right location.
2001 (App.InteractiveChartComponent.actions.openRange): Added. Forwards the action to the parent controller.
2003 * public/v2/chart-pane.css:
2004 (.chart .extent): Use the same color as the vertical indicator in the highlight behind the selection.
2005 (.chart .rangeBar): Added.
2007 * public/v2/data.js:
2008 (TimeSeries.prototype.nextPoint): Added. Used by _rangesChanged.
2010 * public/v2/index.html: Renamed "bugs pane" to "analysis pane" and removed the UI to associate bugs.
2011 This ability will be reinstated in a follow up patch. Also added a container div and spans for analysis
2012 task bars in the interactive chart component.
2014 2014-11-19 Ryosuke Niwa <rniwa@webkit.org>
2016 Fix typos in r176203.
2019 (App.ChartsController.actions.addPaneByMetricAndPlatform):
2020 (App.AnalysisTaskRoute):
2022 2014-11-18 Ryosuke Niwa <rniwa@webkit.org>
2024 Unreviewed. Updated the install instruction.
2028 2014-11-17 Ryosuke Niwa <rniwa@webkit.org>
2030 App.Manifest shouldn't use App.__container__.lookup
2031 https://bugs.webkit.org/show_bug.cgi?id=138768
2033 Reviewed by Andreas Kling.
2035 Removed the hack to find the store object via App.__container__.lookup.
2036 Pass around the store object instead.
2039 (App.DashboardRow._createPane): Add "store" property to the pane.
2040 (App.DashboardPaneProxyForPicker._platformOrMetricIdChanged): Ditto.
2041 (App.IndexController.gridChanged): Ditto.
2042 (App.IndexController.actions.addRow): Ditto.
2043 (App.IndexController.init): Ditto.
2044 (App.Pane._fetch): Ditto.
2045 (App.ChartsController._parsePaneList): Ditto.
2046 (App.ChartsController._updateQueryString): Ditto.
2047 (App.ChartsController.actions.addPaneByMetricAndPlatform): Ditto.
2048 (App.BuildPopup): Ditto.
2049 (App.AnalysisTaskRoute.model): Ditto.
2050 (App.AnalysisTaskViewModel._taskUpdated): Ditto.
2052 * public/v2/manifest.js:
2053 (App.Manifest.fetch): Removed the code to find the store object.
2055 2014-11-08 Ryosuke Niwa <rniwa@webkit.org>
2057 Fix Ember.js warnings the new perf dashboard
2058 https://bugs.webkit.org/show_bug.cgi?id=138531
2060 Reviewed by Darin Adler.
2062 Fixed various warnings.
2065 (App.InteractiveChartComponent._relayoutDataAndAxes): We can't use "rem". Use this._rem as done for x.
2066 * public/v2/data.js:
2067 (PrivilegedAPI._post): Removed the superfluous console.log.
2068 (CommitLogs.fetchForTimeRange): Ditto.
2069 * public/v2/index.html: Added tbody as required by the HTML specification.
2071 2014-11-07 Ryosuke Niwa <rniwa@webkit.org>
2073 Fix typos in r175768.
2076 (App.AnalysisTaskViewModel.roots):
2078 2014-11-07 Ryosuke Niwa <rniwa@webkit.org>
2080 Introduce the concept of analysis task to perf dashboard
2081 https://bugs.webkit.org/show_bug.cgi?id=138517
2083 Reviewed by Andreas Kling.
2085 Introduced the concept of an analysis task, which is created for a range of measurements for a given metric on
2086 a single platform and used to bisect regressions in the range.
2088 Added a new page to see the list of active analysis tasks and a page to view the contents of an analysis task.
2090 * init-database.sql: Added a bunch of tables to store information about analysis tasks.
2091 analysis_tasks - Represents each analysis task. Associated with a platform and a metric and possibly with two
2092 test runs. Analysis tasks not associated with test runs are used for try new patches.
2093 analysis_test_groups - A test group in an analysis task represents a bunch of related A/B testing results.
2094 root_sets - A root set represents a set of roots (or packages) installed in each A/B testing.
2095 build_requests - A build request represents a single pending build for A/B testing.
2097 * public/api/analysis-tasks.php: Added. Returns the specified analysis task or all analysis tasks in an array.
2101 * public/api/test-groups.php: Added. Returns analysis task groups for the specified analysis task or returns
2102 the specified analysis task group as well as build requests associated with them.
2104 (fetch_test_groups_for_task):
2105 (fetch_build_requests_for_task):
2106 (fetch_build_requests_for_group):
2107 (format_test_group):
2108 (format_build_request):
2110 * public/include/json-header.php:
2111 (remote_user_name): Extracted from compute_token so that we can use it in create-analysis-task.php.
2114 * public/privileged-api/associate-bug.php:
2115 (main): Fixed a typo.
2117 * public/privileged-api/create-analysis-task.php: Added. Creates a new analysis task for a given test run range.
2120 (ensure_config_from_runs):
2122 * public/privileged-api/generate-csrf-token.php: Use remote_user_name.
2124 * public/v2/analysis.js: Added. Various Ember data store models to represent analysis tasks and related objects.
2126 (App.AnalysisTask.create):
2128 (App.TestGroupAdapter):
2129 (App.AnalysisTaskSerializer):
2130 (App.TestGroupSerializer):
2133 * public/v2/app.css: Added style rules for the analysis page.
2136 (App.Pane._fetch): Use fetchRunsWithPlatformAndMetric, which has been refactored into App.Manifest.
2138 (App.PaneController.actions.toggleBugsPane): Show bugs pane even when there are no bug trackers or there is not
2139 exactly one selected point as we can still create an analysis task.
2140 (App.PaneController.actions.associateBug): Renamed singlySelectedPoint to selectedSinglePoint to be more
2141 grammatical and also alert'ed the error message when there is one.
2142 (App.PaneController.actions.createAnalysisTask): Added. Creates a new analysis task and opens it in a new tab.
2143 Since window.open only works during the click, we open the new "window" preemptively and navigates or closes it
2144 once XHR request has completed.
2145 (App.PaneController._detailsChanged): Changes due to singlySelectedPoint to selectedSinglePoint rename.
2146 (App.PaneController._updateBugs): Fixed a bug that we were showing bugs in the previous point when a single point
2147 is selected in the details pane.
2149 (App.AnalysisRoute): Added.
2150 (App.AnalysisTaskRoute): Added.
2151 (App.AnalysisTaskViewModel): Added.
2152 (App.AnalysisTaskViewModel._taskUpdated): Fetch runs for the associated platform and metric.
2153 (App.AnalysisTaskViewModel._fetchedRuns): Setup the chart data to show.
2154 (App.AnalysisTaskViewModel.testSets): The computed property used to update roots for all repositories/projects.
2155 (App.AnalysisTaskViewModel._rootChangedForTestSet): Updates root selections for all repositories/projects when
2156 the user selects an option for all roots in A or B configuration.
2157 (App.AnalysisTaskViewModel.roots): The computed property used to show root choices for each repository/project.
2159 * public/v2/chart-pane.css: Added style rules for details view in the analysis task page.
2161 * public/v2/data.js:
2162 (Measurement.prototype._formatRevisionRange): Don't prefix a revision number with "At " when there is no previous
2163 point so that we can use it in App.AnalysisTaskViewModel.roots.
2164 (TimeSeries.prototype.findPointByMeasurementId): Added.
2165 (TimeSeries.prototype.seriesBetweenPoints): Added.
2167 * public/v2/index.html: Use Metric.fullName since the same value is needed in the analysis task page. Also added
2168 a button to create an analysis task, and made bugs pane button always enabled since we can an analysis task even
2169 when multiple points are selected. Finally, added a new template for the analysis task page.
2171 * public/v2/manifest.js:
2172 (App.Metric.fullName): Added to share code between the charts page and the analysis task page.
2173 (App.Manifest.fetchRunsWithPlatformAndMetric): Extracted from App.Pane._fetch to be reused in
2174 App.AnalysisTaskViewModel._taskUpdated.
2176 2014-10-28 Ryosuke Niwa <rniwa@webkit.org>
2178 Remove App.PaneController.bugsChangeCount in the new perf dashboard
2179 https://bugs.webkit.org/show_bug.cgi?id=138111
2181 Reviewed by Darin Adler.
2184 (App.PaneController.bugsChangeCount): Removed.
2185 (App.PaneController.actions.associateBug): Call _updateMarkedPoints instead of incrementing bugsChangeCount.
2186 (App.PaneController._updateMarkedPoints): Extracted from App.InteractiveChartComponent._updateDotsWithBugs.
2187 Finds the list of current run's points that are associated with bugs.
2188 (App.InteractiveChartComponent._updateMarkedDots): Renamed from _updateDotsWithBugs.
2189 * public/v2/chart-pane.css:
2190 (.chart .marked): Renamed from .hasBugs.
2191 * public/v2/index.html: Specify chartPointRadius and markedPoints.
2193 2014-10-27 Ryosuke Niwa <rniwa@webkit.org>
2195 REGRESSION: commit logs are not shown sometimes on the new dashboard UI
2196 https://bugs.webkit.org/show_bug.cgi?id=138099
2198 Reviewed by Benjamin Poulain.
2200 The bug was caused by _currentItemChanged not passing the previous point in the list of points and also
2201 _showDetails inverting the order of the current and old measurements.
2204 (App.PaneController._currentItemChanged): Pass in the previous point to _showDetails when there is one.
2205 (App.PaneController._showDetails): Since points are ordered chronologically, the last point is the
2206 current (latest) measurement and the first point is the oldest measurement.
2207 (App.CommitsViewerComponent.commitsChanged): Don't show a single measurement as a range for clarity.
2209 2014-10-18 Ryosuke Niwa <rniwa@webkit.org>
2211 Perf dashboard should provide a way to associate bugs with a test run
2212 https://bugs.webkit.org/show_bug.cgi?id=137857
2214 Reviewed by Andreas Kling.
2216 Added a "privileged" API, /privileged-api/associate-bug, to associate a bug with a test run.
2217 /privileged-api/ is to be protected by an authentication mechanism such as DigestAuth over https by
2218 the Apache configuration.
2221 The Cross Site Request (CSRF) Forgery prevention for privileged APIs work as follows. When a user is
2222 about to make a privileged API access, the front end code obtains a CSRF token generated by POST'ing
2223 to privileged-api/generate-csrf-token; the page sets a randomly generated salt and an expiration time
2224 via the cookie and returns a token computed from those two values as well as the remote username.
2226 The font end code then POST's the request along with the returned token. The server side code verifies
2227 that the specified token can be generated from the salt and the expiration time set in the cookie, and
2228 the token hasn't expired.
2231 * init-database.sql: Added bug_url to bug_trackers table, and added bugs table. Each bug tracker will
2232 have zero or exactly one bug associated with a test run.
2234 * public/admin/bug-trackers.php: Added the support for editing bug_url.
2235 * public/api/runs.php:
2236 (fetch_runs_for_config): Modified the query to fetch bugs associated with test_runs.
2237 (parse_bugs_array): Added. Parses the aggregated bugs and creates a dictionary that maps a tracker id to
2238 an associated bug if there is one.
2239 (format_run): Calls parse_bugs_array.
2241 * public/include/json-header.php: Added helper functions to deal for CSRF prevention.
2242 (ensure_privileged_api_data): Added. Dies immediately if the request's method is not POST or doesn't
2243 have a valid JSON payload.
2244 (ensure_privileged_api_data_and_token): Ditto. Also checks that the CSRF prevention token is valid.
2245 (compute_token): Computes a CSRF token using the REMOTE_USER (e.g. set via BasicAuth), the salt, and
2246 the expiration time stored in the cookie.
2247 (verify_token): Returns true iff the specified token matches what compute_token returns from the cookie.
2249 * public/include/manifest.php:
2250 (ManifestGenerator::bug_trackers): Include bug_url as bugUrl in the manifest. Also use tracker_id instead
2251 of tracker_name as the key in the manifest. This requires changes to both v1 and v2 front end.
2253 * public/index.html:
2254 (Chart..showTooltipWithResults): Updated for the manifest format changed mentioned above.
2256 * public/privileged-api/associate-bug.php: Added.
2257 (main): Added. Associates or dissociates a bug with a test run inside a transaction. It prevent a CSRF
2258 attack via ensure_privileged_api_data_and_token, which calls verify_token.
2260 * public/privileged-api/generate-csrf-token.php: Added. Generates a CSRF token valid for one hour.
2262 * public/v2/app.css:
2263 (.disabled .icon-button:hover g): Used by the "bugs" icon when a range of points or no points are
2264 selected in a chart.
2267 (App.PaneController.actions.toggleBugsPane): Added. Toggles the visibility of the bugs pane when exactly
2268 one point is selected in the chart. Also hides the search pane when making the bugs pane visible since
2269 they would overlap on each other if both of them are shown.
2270 (App.PaneController.actions.associateBug): Makes a privileged API request to associate the specified bug
2271 with the currently selected point (test run). Updates the bug information in "details" and colors of dots
2272 in the charts to reflect new states. Because chart data objects aren't real Ember objects for performance
2273 reasons, we have to use a dirty hack of modifying a dummy counter bugsChangeCount.
2274 (App.PaneController.actions.toggleSearchPane): Renamed from toggleSearch. Also hides the bugs pane when
2275 showing the search pane.
2276 (App.PaneController.actions.rangeChanged): Takes all selected points as the second argument instead of
2277 taking start and end points as the second and the third arguments so that _showDetails can enumerate all
2278 bugs in the selected range.
2280 (App.PaneController._detailsChanged): Added. Hide the bugs pane whenever a new point is selected.
2281 Also update singlySelectedPoint, which is used by toggleBugsPane and associateBug.
2282 (App.PaneController._currentItemChanged): Updated for the _showDetails change.
2283 (App.PaneController._showDetails): Takes an array of selected points in place of old arguments.
2284 Simplified the code to compute the revision information. Calls _updateBugs to format the associated bugs.
2285 (App.PaneController._updateBugs): Sets details.bugTrackers to a dictionary that maps a bug tracker id to
2286 a bug tracker proxy with an array of (bugNumber, bugUrl) pairs and also editedBugNumber, which is used by
2287 the bugs pane to associate or dissociate a bug number, if exactly one point is selected.
2289 (App.InteractiveChartComponent._updateDotsWithBugs): Added. Sets hasBugs class on dots as needed.
2290 (App.InteractiveChartComponent._setCurrentSelection): Finds and passes all points in the selected range
2291 to selectionChanged action instead of just finding the first and the last points.
2293 * public/v2/chart-pane.css: Updated the style.
2295 * public/v2/data.js:
2296 (PrivilegedAPI): Added. A wrapper for privileged APIs' CSRF tokens.
2297 (PrivilegedAPI.sendRequest): Makes a privileged API call. Fetches a new CSRF token if needed.
2298 (PrivilegedAPI._generateTokenInServerIfNeeded): Makes a request to privileged-api/generate-csrf-token if
2299 we haven't already obtained a CSRF token or if the token has already been expired.
2300 (PrivilegedAPI._post): Makes a single POST request to /privileged-api/* with a JSON payload.
2302 (Measurement.prototype.bugs): Added.
2303 (Measurement.prototype.hasBugs): Returns true iff bugs has more than one bug number.
2304 (Measurement.prototype.associateBug): Associates a bug with a test run via privileged-api/associate-bug.
2306 * public/v2/index.html: Added the bugs pane. Also added a list of bugs associated with the current run in
2309 * public/v2/manifest.js:
2310 (App.BugTracker.bugUrl):
2311 (App.BugTracker.newBugUrl): Added.
2312 (App.BugTracker.repositories): Added. This was a missing back reference to repositories.
2313 (App.MetricSerializer.normalizePayload): Now parses/loads the list of bug trackers from the manifest.
2314 (App.Manifest.repositoriesWithReportedCommits): Now initialized to an empty array instead of null.
2315 (App.Manifest.bugTrackers): Added.
2316 (App.Manifest._fetchedManifest): Sets App.Manifest.bugTrackers. Also sorts the list of repositories by
2317 their respective ids to make the ordering stable.
2319 2014-10-14 Ryosuke Niwa <rniwa@webkit.org>
2321 Remove unused jobs table
2322 https://bugs.webkit.org/show_bug.cgi?id=137724
2324 Reviewed by Daniel Bates.
2326 Removed jobs table in the database as well as related code.
2328 * init-database.sql:
2329 * public/admin/jobs.php: Removed.
2330 * public/admin/tests.php:
2331 * public/include/admin-header.php:
2333 2014-10-13 Ryosuke Niwa <rniwa@webkit.org>
2335 New perf dashboard should have an ability to search commits by a keyword
2336 https://bugs.webkit.org/show_bug.cgi?id=137675
2338 Reviewed by Geoffrey Garen.
2340 /api/commits/ now accepts query parameters to search a commit by a keyword. Its output format changed to
2341 include "authorEmail" and "authorName" directly as columns instead of including an "author" object.
2342 This API change allows fetch_commits_between to generate results without processing Postgres query results.
2344 In the front end side, we've added a search pane in pane controller, and the interactive chart component
2345 now has a concept of highlighted items which is used to indicate commits found by the search pane.
2347 * public/api/commits.php:
2348 (main): Extract query parameters: keyword, from, and to and use that to fetch appropriate commits.
2349 (fetch_commits_between): Moved some code from main. Now takes a search term as the third argument.
2350 We look for a commit if its author name or email contains the keyword or if its revision matches the keyword.
2351 (format_commit): Renamed from format_commits. Now only formats one commit.
2353 * public/include/db.php:
2354 (Database::query_and_fetch_all): Now returns array() when the query results is empty (instead of false).
2356 * public/v2/app.css: Renamed .close-button to .icon-button since it's used by a search button as well.
2359 (App.Pane.searchCommit): Added. Finds the commits by a search term and assigns 'highlightedItems',
2360 which is a hash table that contains highlighted items' measurements' ids as keys.
2361 (App.PaneController.actions.toggleSearch): Toggles the visibility of the search pane. Also sets
2362 the default commit repository.
2363 (App.PaneController.actions.searchCommit): Delegates the work to App.Pane.searchCommit.
2364 (App.InteractiveChartComponent._constructGraphIfPossible): Fixed a bug that we weren't removing old this._dots.
2365 Added the code to initialize this._highlights.
2366 (App.InteractiveChartComponent._updateDimensionsIfNeeded): Updates dimensions of highlight lines.
2367 (App.InteractiveChartComponent._updateHighlightPositions): Added. Ditto.
2368 (App.InteractiveChartComponent._highlightedItemsChanged): Adds vertical lines for highlighted items and deletes
2369 the existing lines for the old highlighted items.
2370 (App.CommitsViewerComponent.commitsChanged): Updated the code per JSON API change mentioned above.
2371 Also fixed a bug that the code tries to update the commits viewer even if the viewer had already been destroyed.
2373 * public/v2/chart-pane.css: Added style for the search pane and the search button.
2375 * public/v2/data.js: Turned FetchCommitsForTimeRange into a class: CommitLogs.
2376 (CommitLogs): Added.
2377 (CommitLogs.fetchForTimeRange): Renamed from FetchCommitsForTimeRange. Takes a search term as an argument.
2378 (CommitLogs._cachedCommitsBetween): Extracted from FetchCommitsForTimeRange.
2379 (CommitLogs._cacheConsecutiveCommits): Ditto.
2380 (FetchCommitsForTimeRange._cachedCommitsByRepository): Deleted.
2381 (Measurement.prototype.commitTimeForRepository): Extracted from formattedRevisions.
2382 (Measurement.prototype.formattedRevisions): Uses formattedRevisions. Deleted the unused code for commitTime.
2384 * public/v2/index.html: Added the search pane and the search button. Also removed the unused attribute binding
2385 for showingDetails since this property is no longer used.
2387 * public/v2/manifest.js:
2388 (App.Manifest.repositories): Added.
2389 (App.Manifest.repositoriesWithReportedCommits): Ditto. Used by App.PaneController.actions.toggleSearch to find
2390 the default repository to search.
2391 (App.Manifest._fetchedManifest): Populates repositories and repositoriesWithReportedCommits.
2393 2014-10-13 Ryosuke Niwa <rniwa@webkit.org>
2395 Unreviewed build fix after r174555.
2397 * public/include/manifest.php:
2398 (ManifestGenerator::generate): Assign an empty array to $repositories_with_commit when there are no commits.
2399 * tests/admin-regenerate-manifest.js: Fixed the test case.
2401 2014-10-09 Ryosuke Niwa <rniwa@webkit.org>
2403 New perf dashboard UI tries to fetch commits all the time
2404 https://bugs.webkit.org/show_bug.cgi?id=137592
2406 Reviewed by Andreas Kling.
2408 Added hasReportedCommits boolean to repository meta data in manifest.json, and used that in
2409 the front end to avoid issuing HTTP requests to fetch commit logs for repositories with
2410 no reported commits as they are all going to fail.
2412 Also added an internal cache to FetchCommitsForTimeRange in the front end to avoid fetching
2413 the same commit logs repeatedly. There are two data structures we cache: commitsByRevision
2414 which maps a given commit revision/hash to a commit object; and commitsByTime which is an array
2415 of commits sorted chronologically by time.
2417 * public/include/manifest.php:
2420 (App.CommitsViewerComponent.commitsChanged):
2422 * public/v2/data.js:
2423 (FetchCommitsForTimeRange):
2424 (FetchCommitsForTimeRange._cachedCommitsByRepository):
2426 * public/v2/manifest.js:
2429 2014-10-08 Ryosuke Niwa <rniwa@webkit.org>
2431 Another unreviewed build fix after r174477.
2433 Don't try to insert a duplicated row into build_commits as it results in a database constraint error.
2435 This has been caught by a test in /api/report. I don't know why I thought all tests were passing.
2437 * public/include/report-processor.php:
2439 2014-10-08 Ryosuke Niwa <rniwa@webkit.org>
2441 Unreviewed build fix after r174477.
2443 * init-database.sql: Removed build_commits_index since it's redundant with build_commit's primary key.
2444 Also fixed a syntax error that we were missing "," after line that declared build_commit column.
2446 * public/api/runs.php: Fixed the query so that test_runs without commits data will be retrieved.
2447 This is necessary for baseline and target values manually added via admin pages.
2449 2014-10-08 Ryosuke Niwa <rniwa@webkit.org>
2451 Add v2 UI for the perf dashboard
2452 https://bugs.webkit.org/show_bug.cgi?id=137537
2454 Rubber-stamped by Andreas Kling.
2457 * public/v2/app.css: Added.
2458 * public/v2/app.js: Added.
2459 * public/v2/chart-pane.css: Added.
2460 * public/v2/data.js: Added.
2461 * public/v2/index.html: Added.
2462 * public/v2/js: Added.
2463 * public/v2/js/d3: Added.
2464 * public/v2/js/d3/LICENSE: Added.
2465 * public/v2/js/d3/d3.js: Added.
2466 * public/v2/js/d3/d3.min.js: Added.
2467 * public/v2/js/ember-data.js: Added.
2468 * public/v2/js/ember.js: Added.
2469 * public/v2/js/handlebars.js: Added.
2470 * public/v2/js/jquery.min.js: Added.
2471 * public/v2/js/statistics.js: Added.
2472 * public/v2/manifest.js: Added.
2473 * public/v2/popup.js: Added.
2475 2014-10-08 Ryosuke Niwa <rniwa@webkit.org>
2477 Remove superfluously duplicated code in public/api/report-commits.php.
2479 2014-10-08 Ryosuke Niwa <rniwa@webkit.org>
2481 Perf dashboard should store commit logs
2482 https://bugs.webkit.org/show_bug.cgi?id=137510
2484 Reviewed by Darin Adler.
2486 For the v2 version of the perf dashboard, we would like to be able to see commit logs in the dashboard itself.
2488 This patch replaces "build_revisions" table with "commits" and "build_commits" relations to store commit logs,
2489 and add JSON APIs to report and retrieve them. It also adds a tools/pull-svn.py to pull commit logs from
2490 a subversion directory. The git version of this script will be added in a follow up patch.
2493 In the new database schema, each revision in each repository is represented by exactly one row in "commits"
2494 instead of one row for each build in "build_revisions". "commits" and "builds" now have a proper many-to-many
2495 relationship via "build_commits" relations.
2497 In order to migrate an existing instance of this application, run the following SQL commands:
2501 INSERT INTO commits (commit_repository, commit_revision, commit_time)
2502 (SELECT DISTINCT ON (revision_repository, revision_value)
2503 revision_repository, revision_value, revision_time FROM build_revisions);
2505 INSERT INTO build_commits (commit_build, build_commit) SELECT revision_build, commit_id
2506 FROM commits, build_revisions
2507 WHERE commit_repository = revision_repository AND commit_revision = revision_value;
2509 DROP TABLE build_revisions;
2514 The helper script to submit commit logs can be used as follows:
2516 python ./tools/pull-svn.py "WebKit" https://svn.webkit.org/repository/webkit/ https://perf.webkit.org
2517 feeder-slave feeder-slave-password 60 "webkit-patch find-users"
2519 The above command will pull the subversion server at https://svn.webkit.org/repository/webkit/ every 60 seconds
2520 to retrieve at most 10 commits, and submits the results to https://perf.webkit.org using "feeder-slave" and
2521 "feeder-slave-password" as the builder name and the builder password respectively.
2523 The last, optional, argument is the shell command to convert a subversion account to the corresponding username.
2524 e.g. "webkit-patch find-users rniwa@webkit.org" yields "Ryosuke Niwa" <rniwa@webkit.org> in the stdout.
2527 * init-database.sql: Replaced "build_revisions" relation with "commits" and "build_commits" relations.
2529 * public/api/commits.php: Added. Retrieves a list of commits based on arguments in its path of the form
2530 /api/commits/<repository-name>/<filter>. The behavior of this API depends on <filter> as follows:
2532 - Not specified - It returns every single commit for a given repository.
2533 - Matches "oldest" - It returns the commit with the oldest timestamp.
2534 - Matches "latest" - It returns the commit with the latest timestamp.
2535 - Matches "last-reported" - It returns the commit with the latest timestamp added via report-commits.php.
2536 - Is entirely alphanumeric - It returns the commit whose revision matches the filter.
2537 - Is of the form <alphanumeric>:<alphanumeric> or <alphanumeric>-<alphanumeric> - It retrieves the list
2538 of commits added via report-commits.php between two timestamps retrieved from commits whose revisions
2539 match the two alphanumeric values specified. Because it retrieves commits based on their timestamps,
2540 the list may contain commits that do not appear as neither hash's ancestor in git/mercurial.
2542 (commit_from_revision):
2543 (fetch_commits_between):
2546 * public/api/report-commits.php: Added. A JSON API to report new subversion, git, or mercurial commits.
2547 See tests/api-report-commits.js for examples on how to use this API.
2549 * public/api/runs.php: Updated the query to use "commit_builds" and "commits" relations instead of
2550 "build_revisions". Regrettably, the new query is 20% slower but I'm going to wait until the new UI is ready
2551 to optimize this and other JSON APIs.
2553 * public/include/db.php:
2554 (Database::select_or_insert_row):
2555 (Database::update_or_insert_row): Added.
2556 (Database::_select_update_or_insert_row): Extracted from select_or_insert_row. Try to update first and then
2557 insert if the update fails for update_or_insert_row. Preserves the old behavior when $should_update is false.
2559 (Database::select_first_row):
2560 (Database::select_last_row): Added.
2561 (Database::select_first_or_last_row): Extracted from select_first_row. Fixed a bug that we were asserting
2562 $order_by to be not alphanumeric/underscore. Retrieve the last row instead of the first if $descending_order.
2564 * public/include/report-processor.php:
2565 (ReportProcessor::resolve_build_id): Store commits instead of build_revisions. We don't worry about the race
2566 condition for adding "build_commits" rows since we shouldn't have a single tester submitting the same result
2567 concurrently. Even if it happened, it will only result in a PHP error and the database will stay consistent.
2570 (pathToTests): Don't call path.resolve with "undefined" testName; It throws an exception in the latest node.js.
2572 * tests/api-report-commits.js: Added.
2573 * tests/api-report.js: Fixed a test per build_revisions to build_commits/commits replacement.
2576 * tools/pull-svn.py: Added. See above for how to use this script.
2578 (determine_first_revision_to_fetch):
2579 (fetch_revision_from_dasbhoard):
2580 (fetch_commit_and_resolve_author):
2583 (resolve_author_name_from_email):
2586 2014-09-30 Ryosuke Niwa <rniwa@webkit.org>
2588 Update Install.md for Mavericks and fix typos
2589 https://bugs.webkit.org/show_bug.cgi?id=137276
2591 Reviewed by Benjamin Poulain.
2593 Add the instruction to copy php.ini to enable the Postgres extension in PHP.
2595 Also use perf.webkit.org as the directory name instead of WebKitPerfMonitor.
2597 Finally, init-database.sql is no longer located inside database directory.
2601 2014-08-11 Ryosuke Niwa <rniwa@webkit.org>
2603 Report run id's in api/runs.php for the new dashboard UI
2604 https://bugs.webkit.org/show_bug.cgi?id=135813
2606 Reviewed by Andreas Kling.
2608 Include run_id in the generated JSON.
2610 * public/api/runs.php:
2611 (fetch_runs_for_config): Don't sort results by time since that has been done in the front end for ages now.
2614 2014-08-11 Ryosuke Niwa <rniwa@webkit.org>
2616 Merging platforms mixes baselines and targets into reported data
2617 https://bugs.webkit.org/show_bug.cgi?id=135260
2619 Reviewed by Andreas Kling.
2621 When merging two platforms, move test configurations of a different type (baseline, target)
2622 as well as of different metric (Time, Runs).
2624 Also avoid fetching the entire table of runs just to see if there are no remaining runs.
2625 It's sufficient to detect one such test_runs object.
2627 * public/admin/platforms.php:
2630 2014-07-30 Ryosuke Niwa <rniwa@webkit.org>
2632 Merging platforms mixes baselines and targets into reported data
2633 https://bugs.webkit.org/show_bug.cgi?id=135260
2635 Reviewed by Geoffrey Garen.
2637 Make sure two test configurations we're merging are of the same type (e.g. baseline, target, current).
2638 Otherwise, we'll erroneously mix up runs for baseline, target, and current (reported values).
2640 * public/admin/platforms.php:
2642 2014-07-23 Ryosuke Niwa <rniwa@webkit.org>
2644 Build fix after r171361.
2646 * public/js/helper-classes.js:
2647 (.this.formattedBuildTime):
2649 2014-07-22 Ryosuke Niwa <rniwa@webkit.org>
2651 Perf dashboard spends 2s processing JSON data during the page loads
2652 https://bugs.webkit.org/show_bug.cgi?id=135152
2654 Reviewed by Andreas Kling.
2656 In the Apple internal dashboard, we were spending as much as 2 seconds
2657 converting raw JSON data into proper JS objects while loading the dashboard.
2659 This caused the apparent unresponsiveness of the dashboard despite of the fact
2660 charts themselves updated almost instantaneously.
2662 * public/index.html:
2663 * public/js/helper-classes.js:
2664 (TestBuild): Compute the return values of formattedTime and formattedBuildTime
2665 lazily as creating new Date objects and running string replace is expensive.
2666 (TestBuild.formattedTime):
2667 (TestBuild.formattedBuildTime):
2668 (PerfTestRuns.setResults): Added. Pushing each result was the biggest bottle neck.
2669 (PerfTestRuns.addResult): Deleted.
2671 2014-07-18 Ryosuke Niwa <rniwa@webkit.org>
2673 Perf dashboard shouldn't show the full git hash
2674 https://bugs.webkit.org/show_bug.cgi?id=135083
2676 Reviewed by Benjamin Poulain.
2678 Detect Git/Mercurial hash by checking the length.
2680 If it's a hash, use the first 8 characters in the label
2681 while retaining the full length to be used in hyperlinks.
2683 * public/js/helper-classes.js:
2684 (.this.formattedRevisions):
2687 2014-05-29 Ryosuke Niwa <rniwa@webkit.org>
2689 Add an instruction on how to backup the database.
2690 https://bugs.webkit.org/show_bug.cgi?id=133391
2692 Rubber-stamped by Andreas Kling.
2696 2014-04-08 Ryosuke Niwa <rniwa@webkit.org>
2698 Build fix after r166479. 'bytes' is now abbreviated as 'B'.
2700 * public/js/helper-classes.js:
2701 (PerfTestRuns.smallerIsBetter):
2703 2014-04-08 Ryosuke Niwa <rniwa@webkit.org>
2707 * public/common.css:
2709 * public/index.html:
2713 2014-04-03 Ryosuke Niwa <rniwa@webkit.org>
2715 WebKitPerfMonitor: There should be a way to add all metrics of a suite without also adding subtests
2716 https://bugs.webkit.org/show_bug.cgi?id=131157
2718 Reviewed by Andreas Kling.
2720 Split "all metrics" into all metrics of a test suite and all subtests of the suite.
2721 This allows, for example, adding all metrics such as Arithmetic and Geometric for
2722 a given test suite without also adding its subtests.
2724 * public/index.html:
2728 2014-04-03 Ryosuke Niwa <rniwa@webkit.org>
2730 WebKitPerfMonitor: Tooltips cannot be pinned after using browser's back button
2731 https://bugs.webkit.org/show_bug.cgi?id=131155
2733 Reviewed by Andreas Kling.
2735 The bug was caused by Chart.attach binding event listeners on plot container on each call.
2736 This resulted in the click event handler toggling the visiblity of the tooltip twice upon
2737 click when attach() has been called even number of times, keeping the tooltip invisible.
2739 Fixed the bug by extracting the code to bind event listeners outside of Chart.attach as
2740 a separate function, bindPlotEventHandlers, and calling it exactly once when Chart.attach
2741 is called for the first time.
2743 * public/index.html:
2745 (Chart..bindPlotEventHandlers):
2747 2014-04-03 Ryosuke Niwa <rniwa@webkit.org>
2749 WebKitPerfMonitor: Tooltips can be cut off at the top
2750 https://bugs.webkit.org/show_bug.cgi?id=130960
2752 Reviewed by Andreas Kling.
2754 * public/common.css:
2755 (#title): Removed the gradients, box shadows, and border from the header.
2756 (#title h1): Reduce the font size.
2757 (#title ul): Use line-height to vertically align the navigation bar instead of specifying a padding atop.
2758 * public/index.html:
2759 (.tooltop:before): Added. Identical to .tooltop:after except it's upside down (arrow facing up).
2760 (.tooltip.inverted:before): Show the arrow facing up when .inverted is set.
2761 (.tooltip.inverted:before): Hide the arrow facing down when .inverted is set.
2762 * public/js/helper-classes.js:
2763 (Tooltip.show): Show the tooltip below the point if placing it above the point results in the top of the
2764 tooltip extending above y=0.
2766 2014-04-03 Ryosuke Niwa <rniwa@webkit.org>
2768 WebKitPerfMonitor: Y-axis adjustment is too aggressive
2769 https://bugs.webkit.org/show_bug.cgi?id=130937
2771 Reviewed by Andreas Kling.
2773 Previously, adjusted min. and max. were defined as the two standards deviations away from EWMA of measured
2774 results. This had two major problems:
2775 1. Two standard deviations can be too small to show the confidence interval for results.
2776 2. Sometimes baseline and target can be more than two standards deviations away.
2778 Fixed the bug by completely rewriting the algorithm to compute the interval. Instead of blindly using two
2779 standard deviations as margins, we keep adding quarter the standard deviation on each side until more than 90%
2780 of points lie in the interval or we've expanded 4 standard deviations. Once this condition is met, we reduce
2781 the margin on each side separately to reduce the empty space on either side.
2783 A more rigorous approach would involve computing least squared value of results with respect to intervals
2784 but that seems like an overkill for a simple UI problem; it's also computationally expensive.
2786 * public/index.html:
2787 (Chart..adjustedIntervalForRun): Extracted from computeYAxisBoundsToFitLines.
2788 (Chart..computeYAxisBoundsToFitLines): Compute the min. and max. adjusted intervals out of adjusted intervals
2789 for each runs (current, baseline, and target) so that at least one point from each set of results is shown.
2790 We wouldn't see the difference between measured values versus baseline and target values otherwise.
2791 * public/js/helper-classes.js:
2792 (PerfTestResult.unscaledConfidenceIntervalDelta): Returns the default value if the confidence
2793 interval delta cannot be computed.
2794 (PerfTestResult.isInUnscaledInterval): Added. Returns true iff the confidence intervals lies
2795 within the given interval.
2796 (PerfTestRuns..filteredResults): Extracted from unscaledMeansForAllResults now that PerfTestRuns.min and
2797 PerfTestRuns.max need to use both mean and confidence interval delta for each result.
2798 (PerfTestRuns..unscaledMeansForAllResults):
2799 (PerfTestRuns.min): Take the confidence interval delta into account.
2800 (PerfTestRuns.max): Ditto.
2801 (PerfTestRuns.countResults): Returns the number of results in the given time frame (> minTime).
2802 (PerfTestRuns.countResultsInInterval): Returns the number of results whose confidence interval lie within the
2804 (PerfTestRuns.exponentialMovingArithmeticMean): Fixed the typo so that it actually computes the EWMA.
2806 2014-03-31 Ryosuke Niwa <rniwa@webkit.org>
2808 Some CSS tweaks after r166477 and r166479,
2810 * public/index.html:
2812 2014-03-30 Ryosuke Niwa <rniwa@webkit.org>
2814 WebKitPerfMonitor: Sometimes text inside panes overlap
2815 https://bugs.webkit.org/show_bug.cgi?id=130956
2817 Reviewed by Gyuyoung Kim.
2819 Revamped the pane UI. Now build info uses table element instead of plane text with BRs. The computed status of
2820 the latest result against baseline/target such as "3% until target" is now shown above the current value. This
2821 reduces the total height of the pane and fits more information per screen capita on the dashboard.
2823 * public/index.html: Updated and added a bunch of CSS rules for the new look.
2824 (.computeStatus): Don't append the build info here. The build info is constructed as a separate table now.
2825 (.createSummaryRowMarkup): Use th instead of td for "Current", "Baseline", and "Target" in the summary table.
2826 (.buildLabelWithLinks): Construct table rows instead of br separated lines of text. This streamlines the look
2827 of the build info shown in a chart pane and a tooltip.
2828 (Chart): Made .status a table.
2829 (Chart.populate): Prepend status.text, which contains text such as "3% until target", into the summary rows
2830 right above "Current" value, and populate .status with buildLabelWithLinks manually instead of status.text
2831 now that status.text no longer contains it.
2832 (Chart..showTooltipWithResults): Wrap buildLabelWithLinks with a table element.
2834 * public/js/helper-classes.js:
2835 (TestBuild.formattedRevisions): Don't include repository names in labels since repository names are now added
2836 by buildLabelWithLinks inside th elements. Also place spaces around '-' between two different OS X versions.
2837 e.g. "OS X 10.8 - OS X 10.9" instead of "OS X 10.8-OS X 10.9".
2838 (PerfTestRuns): Use "/s" for "runs/s" and "B" for "bytes" to make text shorter in .status and .summaryTable.
2839 (PerfTestRuns..computeScalingFactorIfNeeded): Avoid placing a space between 'M' and a unit starting with a
2840 capital letter; e.g. "MB" instead of "M B".
2842 2014-03-30 Ryosuke Niwa <rniwa@webkit.org>
2844 WebKitPerfMonitor: Header and number-of-days slider takes up too much space
2845 https://bugs.webkit.org/show_bug.cgi?id=130957
2847 Reviewed by Gyuyoung Kim.
2849 Moved the slider into the header. Also reduced the spacing between the header and platform names.
2850 This reclaims 50px × width of the screen real estate.
2852 * public/common.css:
2853 (#title): Reduced the space below the header from 20px to 10px.
2854 * public/index.html:
2855 (#numberOfDaysPicker): Removed the rounded border around the number-of-days slider.
2856 (#dashboard > tbody > tr > td): Added a 1.5em padding at the bottom.
2857 (#dashboard > thead th): That allows us to remove the padding at the top here. This reduces the wasted screen
2858 real estate between the header and the platform names.
2860 2014-03-10 Zoltan Horvath <zoltan@webkit.org>
2862 Update the install guidelines for perf.webkit.org
2863 https://bugs.webkit.org/show_bug.cgi?id=129895
2865 Reviewed by Ryosuke Niwa.
2867 The current install guideline for perf.webkit.org discourages the use of the installed
2868 Server application. I've actualized the documentation for Mavericks, and modified the
2869 guideline to include the instructions for Server.app also.
2873 2014-03-08 Zoltan Horvath <zoltan@webkit.org>
2875 Update perf.webkit.org json example
2876 https://bugs.webkit.org/show_bug.cgi?id=129907
2878 Reviewed by Andreas Kling.
2880 The current example is not valid json syntax. I fixed the syntax errors and indented the code properly.
2884 2014-01-31 Ryosuke Niwa <rniwa@webkit.org>
2886 Merge database-common.js and utility.js into run-tests.js.
2888 Reviewed by Matthew Hanson.
2890 Now that run-tests is the only node.js script, merged database-common.js and utility.js into it.
2891 Also moved init-database.sql out of the database directory and removed the directory entirely.
2893 * database: Removed.
2894 * database/database-common.js: Removed.
2895 * database/utility.js: Removed.
2896 * init-database.sql: Moved from database/init-database.sql.
2898 (connect): Moved from database-common.js.
2899 (pathToDatabseSQL): Extracted from pathToLocalScript.
2900 (pathToTests): Moved from database-common.js.
2903 (SerializedTaskQueue): Ditto.
2905 (initializeDatabase):
2906 (TestEnvironment.it):
2907 (TestEnvironment.queryAndFetchAll):
2910 2014-01-30 Ryosuke Niwa <rniwa@webkit.org>
2912 Remove the dependency on node.js from the production code.
2914 Reviewed by Ricky Mondello.
2916 Work towards <rdar://problem/15955053> Upstream SafariPerfMonitor.
2918 Removed node.js dependency from TestRunsGenerator. It was really a design mistake to invoke node.js from php.
2919 It added so much complexity with only theoretical extensibility of adding aggregators. It turns out that
2920 many aggregators we'd like to add are a lot more complicated than ones that could be written under the current
2921 infrastructure, and we need to make the other aspects (e.g. the level of aggregations) a lot more extensible.
2922 Removing and simplifying TestRunsGenerator allows us to implement such extensions in the future.
2924 Also removed the js files that are no longer used.
2926 * config.json: Moved from database/config.json.
2927 * database/aggregate.js: Removed. No longer used.
2928 * database/database-common.js: Removed unused functions, and updated the path to config.json.
2929 * database/process-jobs.js: Removed. No longer used.
2930 * database/sample-data.sql: Removed. We have a much better corpus of data now.
2931 * database/schema.graffle: Removed. It's completely obsolete.
2932 * public/include/db.php: Updated the path to config.json.
2933 * public/include/evaluator.js: Removed.
2935 * public/include/report-processor.php:
2936 (TestRunsGenerator::aggregate): Directly aggregate values via newly added aggregate_values method instead of
2937 storing values into $expressions and calling evaluate_expressions_by_node.
2938 (TestRunsGenerator::aggregate_values): Added.
2939 (TestRunsGenerator::compute_caches): Directly compute the caches.
2941 2014-01-30 Ryosuke Niwa <rniwa@webkit.org>
2943 Build fix. Don't fail the platform merges even if there are no test configurations to be moved to the new platform.
2945 * public/admin/platforms.php:
2946 * public/include/db.php:
2948 2014-01-30 Ryosuke Niwa <rniwa@webkit.org>
2950 Zoomed y-axis view is ununsable when the last result is an outlier.
2952 Reviewed by Stephanie Lewis.
2954 Show two standard deviations from the exponential moving average with alpha = 0.3 instead of the mean of
2955 the last result so that the graph looks sane if the last result was an outlier. However, always show
2956 the last result's mean even if it was an outlier.
2958 * public/index.html:
2959 * public/js/helper-classes.js:
2960 (unscaledMeansForAllResults): Extracted from min/max/sampleStandardDeviation.
2961 Also added the ability to cache the unscaled means to avoid recomputation.
2962 (PerfTestRuns.min): Refactored to use unscaledMeansForAllResults.
2963 (PerfTestRuns.max): Ditto.
2964 (PerfTestRuns.sampleStandardDeviation): Ditto.
2965 (PerfTestRuns.exponentialMovingArithmeticMean): Added.
2967 2014-01-30 Ryosuke Niwa <rniwa@webkit.org>
2971 * public/admin/tests.php:
2972 * public/js/helper-classes.js:
2974 2014-01-29 Ryosuke Niwa <rniwa@webkit.org>
2976 Use two standard deviations instead as I mentioned in the mailing list.
2978 * public/index.html:
2980 2014-01-28 Ryosuke Niwa <rniwa@webkit.org>
2982 The performance dashboard erroneously shows upward arrow for combined metrics.
2984 A single outlier can ruin the zoomed y-axis view.
2986 Rubber-stamped by Antti Koivisto.
2988 * public/index.html:
2989 (computeYAxisBoundsToFitLines): Added adjustedMax and adjustedMin, which are pegged at 4 standard deviations
2990 from the latest results' mean.
2991 (Chart): Renamed shouldStartYAxisAtZero to shouldShowEntireYAxis.
2992 (Chart.attachMainPlot): Use the adjusted max and min when we're not showing the entire y-axis.
2993 (Chart.toggleYAxis):
2994 * public/js/helper-classes.js:
2995 (PerfTestRuns.sampleStandardDeviation): Added.
2996 (PerfTestRuns.smallerIsBetter): 'Combined' is a smaller is better metric.
2998 2014-01-28 Ryosuke Niwa <rniwa@webkit.org>
3000 Don't include the confidence interval when computing the y-axis.
3002 Rubber-stamped by Simon Fraser.
3004 * public/js/helper-classes.js:
3008 2014-01-25 Ryosuke Niwa <rniwa@webkit.org>
3010 Tiny CSS tweak for tooltips.
3012 * public/index.html:
3014 2014-01-25 Ryosuke Niwa <rniwa@webkit.org>
3016 Remove the erroneously repeated code.
3018 * public/admin/test-configurations.php:
3020 2014-01-24 Ryosuke Niwa <rniwa@webkit.org>
3022 <rdar://problem/15704893> perf dashboard should show baseline numbers
3024 Reviewed by Stephanie Lewis.
3026 * public/admin/bug-trackers.php:
3027 (associated_repositories): Return an array of HTMLs instead of echo'ing as expected by AdministrativePage.
3030 * public/admin/platforms.php:
3031 (merge_list): Ditto.
3033 * public/admin/test-configurations.php: Added.
3034 (add_run): Adds a "synthetic" test run and a corresponding build. It doesn't create run_iterations and
3035 build_revisions as they're not meaningful for baseline / target numbers.
3036 (delete_run): Deletes a synthetic test run and its build. It verifies that the specified build has exactly
3037 one test run so that we don't accidentally delete a reported test run.
3038 (generate_rows_for_configurations): Generates rows of configuration IDs and types.
3039 (generate_rows_for_test_runs): Ditto for test runs. It also emits the form to add new "synthetic" test runs
3040 and delete existing ones.
3042 * public/admin/tests.php: We wrongfully assumed there is exactly one test configuration for each metric
3043 on each platform; there could be configurations of distinct types such as "current" and "baseline".
3044 Thus, update all test configurations for a given metric when updating config_is_in_dashboard.
3046 * public/api/runs.php: Remove the NotImplemented when we have multiple test configurations.
3047 (fetch_runs_for_config): "Synthetic" test runs created on test-configurations page are missing revision
3048 data so we need to left-outer-join (instead of inner-join) build_revisions. To avoid making the query
3049 unreadable, don't join revision_repository here. Instead, fetch the list of repositories upfront and
3050 resolve names in parse_revisions_array. This actually reduces the query time by ~10%.
3052 (parse_revisions_array): Skip an empty array created for "synthetic" test runs.
3054 * public/include/admin-header.php:
3055 (AdministrativePage::render_table): Now custom columns support sub columns. e.g. a configuration column may
3056 have id and type sub columns, and each custom column could generate multiple rows.
3058 Any table with sub columns now generates two rows for thead. We generate td's in in the first row without
3059 sub columns with rowspan of 2, and generate ones with sub columns with colspan set to the sub column count.
3060 We then proceed to generate the second header row with sub column names.
3062 When generating the actual content, we first generate all custom columns as they may have multiple rows in
3063 which case regular columns need rowspan set to the maximum number of rows.
3065 Once we've generated the first row, we proceed to generate subsequent rows for those custom columns that
3068 (AdministrativePage::render_custom_cells): Added. This function is responsible for generating table cells
3069 for a given row in a given custom column. It generates an empty td when the custom column doesn't have
3070 enough rows. It also generates empty an td when it doesn't have enough columns in some rows except when
3071 the entire row consists of exactly one cell for a custom column with sub columns, in which case the cell is
3072 expanded to occupy all sub columns.
3074 * public/include/manifest.php:
3075 (ManifestGenerator::platforms): Don't add the metric more than once.
3077 * public/include/test-name-resolver.php:
3078 (TestNameResolver::__construct): We had wrongfully assumed that we have exactly one test configuration on
3079 each platform for each metric like tests.php. Fixed that. Also fetch the list of aggregators to compute the
3080 full metric name later.
3081 (TestNameResolver::map_metrics_to_tests): Populate $this->id_to_metric.
3082 (TestNameResolver::test_id_for_full_name): Simplified the code using array_get.
3083 (TestNameResolver::full_name_for_test): Added.
3084 (TestNameResolver::full_name_for_metric): Added.
3085 (TestNameResolver::configurations_for_metric_and_platform): Renamed as it returns multiple configurations.
3087 * public/js/helper-classes.js:
3088 (TestBuild): Use the build time as the maximum time when revision information is missing for "synthetic"
3089 test runs created to set baseline and target points.
3091 2014-01-24 Ryosuke Niwa <rniwa@webkit.org>
3093 Build fix after r57928. Removed a superfluous close parenthesis.
3095 * public/api/runs.php:
3097 2014-01-24 Ryosuke Niwa <rniwa@webkit.org>
3099 Unreviewed build & typo fixes.
3101 * public/admin/platforms.php:
3102 * tests/admin-platforms.js:
3104 2014-01-24 Ryosuke Niwa <rniwa@webkit.org>
3106 <rdar://problem/15704893> perf dashboard should show baseline numbers
3108 Rubber-stamped by Antti Koivisto.
3110 Organize some code into functions in runs.php.
3112 Also added back $paths that was erroneously removed in r57925 from json-header.php.
3114 * public/api/runs.php:
3115 (fetch_runs_for_config): Extracted.
3116 (format_run): Ditto.
3118 2014-01-23 Ryosuke Niwa <rniwa@webkit.org>
3120 Merge the upstream json-shared.php as of https://trac.webkit.org/r162693.
3122 * database/config.json:
3123 * public/admin/reprocess-report.php:
3124 * public/api/report.php:
3125 * public/api/runs.php:
3126 * public/include/json-header.php:
3128 2014-01-23 Ryosuke Niwa <rniwa@webkit.org>
3130 Commit yet another forgotten change.
3132 Something went horribly wrong with my merge :(
3134 * database/init-database.sql:
3136 2014-01-23 Ryosuke Niwa <rniwa@webkit.org>
3138 Commit one more forgotten change. Sorry for making a mess here.
3140 2014-01-23 Ryosuke Niwa <rniwa@webkit.org>
3142 Commit the forgotten files.
3144 * public/admin/platforms.php: Added.
3145 * tests/admin-platforms.js: Added.
3147 2014-01-23 Ryosuke Niwa <rniwa@webkit.org>
3149 <rdar://problem/15889905> SafariPerfMonitor: there should be a way to merge and hide platforms
3151 Reviewed by Stephanie Lewis.
3153 Added /admin/platforms/ page to hide and merge platforms.
3155 Merging two platforms is tricky because we need to migrate test runs as well as some test configurations.
3156 Recall that each test (e.g. Dromaeo) can have many "test metrics" (e.g. MaxAllocations, EndAllocations),
3157 and they have a distinct "test&