1 2013-10-25 Ryosuke Niwa <rniwa@webkit.org>
3 One more build fix. Put each latest revision information in an actual td.
7 2013-10-25 Ryosuke Niwa <rniwa@webkit.org>
9 Yet another set of build fixes.
11 1. Manually strip / from revisions JSON if there is any.
12 2. Suppress warnings from ob_end_flush.
13 3. Allow "+" in actual and expected results as used in "TEXT+IMAGE".
15 * public/api/report.php:
16 * public/include/test-results.php:
18 2013-10-25 Ryosuke Niwa <rniwa@webkit.org>
20 Another build fix. Move .htaccess to public.
23 * public/.htaccess: Copied from .htaccess.
25 2013-10-25 Ryosuke Niwa <rniwa@webkit.org>
27 It turns out that the current instruction only works on Mountain Lion.
29 Also fixed some typos.
33 2013-10-24 Ryosuke Niwa <rniwa@webkit.org>
35 Add an instruction on how to setup test-results app
36 https://bugs.webkit.org/show_bug.cgi?id=123321
38 Rubber-stamped by Stephanie Lewis.
40 Added Install.md and updated config.json accordingly.
42 Also moved init-database.sql out of public/include since it doesn't need to be accessible via httpd.
46 * init-database.sql: Moved from public/include/init-database.sql.
48 2013-10-24 Ryosuke Niwa <rniwa@webkit.org>
50 Move everything except ChangeLog and config.json into public directory.
51 https://bugs.webkit.org/show_bug.cgi?id=123319
53 Rubber-stamped by Stephanie Lewis.
56 * admin/admin.css: Removed.
57 * admin/builders.php: Removed.
58 * admin/index.php: Removed.
59 * admin/repositories.php: Removed.
61 * api/failing-tests.php: Removed.
62 * api/manifest.php: Removed.
63 * api/report.php: Removed.
64 * api/results.php: Removed.
65 * common.css: Removed.
66 * config.json: Copied from include/config.json.
68 * include/admin-footer.php: Removed.
69 * include/admin-header.php: Removed.
70 * include/config.json: Removed.
71 * include/db.php: Removed.
72 * include/init-database.sql: Removed.
73 * include/json-shared.php: Removed.
74 * include/test-results.php: Removed.
75 * index.html: Removed.
77 * js/autocompleter.js: Removed.
78 * js/build.js: Removed.
82 * public/admin: Copied from admin.
83 * public/api: Copied from api.
84 * public/common.css: Copied from common.css.
85 * public/include: Copied from include.
86 * public/include/config.json: Removed.
87 * public/include/db.php:
88 * public/index.html: Copied from index.html.
89 * public/js: Copied from js.
90 * public/main.css: Copied from main.css.
92 2013-10-24 Ryosuke Niwa <rniwa@webkit.org>
94 Showing lists of flaky tests for a builder takes too long
95 https://bugs.webkit.org/show_bug.cgi?id=123311
97 Reviewed by Sam Weinig.
99 Generate JSONs for tests failing, flaky, or with wrong expectation at the time a builder reports results
100 instead when the frontend requests to those those results since it takes multiple seconds or minutes to
101 generate those JSON files.
103 * api/failing-tests.php: Moved and renamed to manually generate all JSON files for a given builder.
106 * api/report.php: Manually flush and end the request (to avoid blocking run-webkit-tests on the other side
107 for minutes), then generate JSONs for tests that are failing, are flaky, and have wrong expectations.
109 * api/results.php: Merge format_result_rows here since it's not used anywhere else.
111 * include/config.json: Added the path to the data directory into which JSON files are generated.
114 (configPath): Takes a relative path value from config.json, and resolves it.
116 * include/json-shared.php:
117 (echo_success): Extracted from exit_with_success.
120 * include/test-results.php:
121 (add_builder): Extracted from add_build.
123 (ResultsJSONWriter): Extracted from api/failing-tests.php.
124 (ResultsJSONWriter.__construct):
125 (ResultsJSONWriter.start):
126 (ResultsJSONWriter.end):
127 (ResultsJSONWriter.add_results_for_test_if_matches):
128 (ResultsJSONWriter.pass_for_failure_type):
129 (FailingResultsJSONWriter): Extracted from index.html's TestResultsView._matchesFailureType.
130 (FailingResultsJSONWriter.__construct):
131 (FailingResultsJSONWriter.pass_for_failure_type):
132 (FlakyResultsJSONWriter): Ditto.
133 (FlakyResultsJSONWriter.__construct):
134 (FlakyResultsJSONWriter.pass_for_failure_type):
135 (WrongExpectationsResultsJSONWriter): Ditto.
136 (WrongExpectationsResultsJSONWriter.__construct):
137 (WrongExpectationsResultsJSONWriter.pass_for_failure_type):
138 (ResultsJSONGenerator): Ditto.
139 (ResultsJSONGenerator.__construct):
140 (ResultsJSONGenerator.generate):
141 (ResultsJSONGenerator.open_json_for_failure_type):
142 (ResultsJSONGenerator.write_jsons):
146 (TestResultsView.setBuilders):
147 (TestResultsView._createResultCell): Add a hyperlink to results.html in the tooltip.
148 (TestResultsView.fetchFailingTestsForBuilder): Fetch the generated JSON files.
150 2013-10-23 Ryosuke Niwa <rniwa@webkit.org>
152 Reverted erroneously committed changes from the previous commit.
156 2013-10-23 Ryosuke Niwa <rniwa@webkit.org>
158 Clicking on a test name on the new flakiness dashboard should add a new test pane
159 https://bugs.webkit.org/show_bug.cgi?id=123194
161 Reviewed by Simon Fraser.
163 Added a new click handler on each test name inside the builder test view add a new test pane.
164 Moved the old trac link to a right-arrow inline SVG icon.
166 Also tweaked the style so that the builder test view looks different from other test panes.
169 (TestResultsView._urlFromTest): Extracted from TestResultsView._linkifiedTestName.
170 (TestResultsView._populateBuilderPane): Fetch the test when its name is clicked.
171 Added a circled right arrow for the old trac link.
172 * main.css: Tweaked the style to move the rounded border around the builder test view to be
173 around the form controls to clearly differentiate it from a regular test pane.
175 2013-10-22 Ryosuke Niwa <rniwa@webkit.org>
177 New flakiness dashboard's test pane should show the latest WebKit revision for each builder
178 https://bugs.webkit.org/show_bug.cgi?id=123189
180 Reviewed by Simon Fraser.
183 (TestResultsView._populateTestPane): Call _createTestResultHeader and _createTestResultRow with
184 a list of repository information.
185 (TestResultsView._createTestResultHeader): Optionally creates headers for a list of repositories.
186 (TestResultsView._createTestResultRow): Add a hyperlinked revision information for each builder.
187 Also add a hyperlink to file a Bugzilla bug when there is no bug associated with the test already.
189 (Build.formattedRevision): Extracted from Build.formattedRevisions.
190 (Build.formattedRevisions):
192 2013-10-22 Ryosuke Niwa <rniwa@webkit.org>
194 Make tables on the new flakiness dashboard sortable
195 https://bugs.webkit.org/show_bug.cgi?id=123141
197 Reviewed by Simon Fraser.
199 Use jquery.tablesorter.js to make test and builder tables sortable. The jquery plugin is already used by run-perf-tests.
202 (TestResultsView._populateTestPane): Add tablesorter to the class name and wrap tr's inside a tbody so that tablesorter
204 (TestResultsView._populateBuilderPane): Ditto.
206 (.resultsTable thead): Use cursor: pointer to signify the fact it's clickable.
207 (.resultsTable th): Don't repeat arrows.
208 (.resultsTable th.headerSortUp): Inline SVG up arrow.
209 (.resultsTable th.headerSortDown): Inline SVG down arrow.
211 2013-10-21 Ryosuke Niwa <rniwa@webkit.org>
213 New flakiness dashboard should hyperlink test names, WebKit revisions, and bubbles
214 https://bugs.webkit.org/show_bug.cgi?id=123134
216 Reviewed by Stephanie Lewis.
218 Copied admin.css, admin-header.php, admin-footer.php, builders.php, repositories.php from WebKit Perf Monitor.
219 (Unfortunately WebKit Perf Monitor hasn't been committed into WebKit repository just yet.)
221 Updated various parts of index.html to linkify test names, build numbers, and bubbles (to results page).
223 * admin/admin.css: Added.
224 * admin/builders.php: Added.
225 * admin/index.php: Removed the duplicated code now that it uses admin-header.php.
226 * admin/repositories.php: Added.
227 * api/manifest.php: Use camelCase for blame_url and build_url to be consistent with other JSON properties.
228 Also exported testCategories from config so that we can linkify test names in the dashboard.
229 * include/admin-footer.php: Added.
230 * include/admin-header.php: Added.
231 * include/config.json: Added test categories. This avoids hard-coding the URL to trac in php/js.
232 * include/init-database.sql: Added name and build_url to builders table and category to tests.
233 * include/test-results.php: Assume the test category to be LayoutTest for now.
236 (TestResultsView): Initialize _builders, _slaves, _repositories, _testCategories as dictionaries as intended.
237 (TestResultsView.setTestCategories): Added.
238 (TestResultsView._createResultCell): Dynamically resolve URLs of results page and and build page.
239 (TestResultsView._populateTestPane): Linkify the test name. Unfortunately we don't have a test object anywhere.
240 We need to figure out a way to find the test object here eventually. For now, hard-coding "LayoutTest" works.
241 (TestResultsView._linkifiedTestName): Added.
242 (TestResultsView._createBuildsAndComputeSlownessOfResults): Takes builderId to set "builder" property on each
243 result object as it's used by Build class.
244 (TestResultsView._populateBuilderPane):
248 (Build.buildUrl): Support $builderName so that we don't have to keep repeating builder names in the database.
249 (Build.revision): Don't access [0] if revisions[repositoryId] was undefined.
251 2013-10-21 Ryosuke Niwa <rniwa@webkit.org>
253 New flakiness dashboard should align results by revision numbers
254 https://bugs.webkit.org/show_bug.cgi?id=123129
256 Reviewed by Tim Horton.
258 * include/config.json: Specify the default cache time to be 10 minutes.
259 * include/json-shared.php: Added Expires and Cache-Control headers. It's configurable via config.json.
261 (TestResultsView._createResultCell): Don't put '-' in a result cell without time.
262 (TestResultsView._populateTestPane): Create an array of build times ordered from the newest to the oldest.
263 Not that build.time() is the newest commit time among all repository for each result. e.g. if we had
264 both WebKit and Safari repository information in a given result, the newer of the two will be used.
265 (TestResultsView._createTestResultHeader): Added.
266 (TestResultsView._createBuildsAndComputeSlownessOfResults): Extracted from _createTestResultRow so
267 that _populateTestPane could use Build object before calling _createTestResultRow.
268 (TestResultsView._createTestResultRow): Takes buildTimes. Insert an empty cell for a build time if
269 the current row doesn't contain that a result for that build time.
270 (TestResultsView._populateBuilderPane):
271 * main.css: Tweaked the style so that bubbles are aligned vertically without '-'.
273 (.resultsTable thead th):
274 (.resultsTable .resultCell):
276 (.resultsTable span a):
278 2013-10-21 Ryosuke Niwa <rniwa@webkit.org>
280 New flakiness dashboard show test time, modifiers, and flaky tests
281 https://bugs.webkit.org/show_bug.cgi?id=123119
283 Reviewed by Tim Horton.
285 * api/failing-tests.php: Manually serialize each row in the results to avoid hitting the memory limit.
287 (Database::query): Added.
288 (Database::fetch_next_row): Added.
289 * include/init-database.sql: Added modifiers and time columns to results table.
290 * include/test-results.php:
291 (store_test_results): Update start_time and end_time to the union of the new interval and the existing interval.
292 (recursively_add_test_results): Handle empty $full_name to eliminate the loop over tests in store_test_results.
293 Also verify that each test name, expected and actual results conform to the specific format to prevent XSS.
294 Also use insert_row instead of select_or_insert_row to avoid issuing an unnecessary SQL query.
295 (format_result): Extracted from format_result_rows. Used in failing-tests.php.
297 (TestResultsView): Added _currentBuilderFailureType and _currentBuilderDays.
298 (TestResultsView._createResultCell): Show the test time and the expected result.
299 (TestResultsView._createTestResultRow): Compute the slowest run and also round time to tenth of second for time
300 less than 10s or second if it's more than 10s so that the test time will always be shown in two digits.
301 Also show the bug number and the latest expected result on the left columns after linkifying the bug numbers.
302 (TestResultsView._matchesFailureType): Added. Determines whether results is of a particular failure type.
303 (TestResultsView._populateBuilderPane):
304 (TestResultsView.fetchFailingTestsForBuilder): Store the failure type such as flaky, wrongtestexpectations.
305 (TestResultsView.updateLocationHash):
306 (TestResultsView.loadTestsFromLocationHash):
309 (element): appendChild if an item is a Node. Otherwise, e.g. integer, create a text node out of toString() call.
310 * main.css: Updated styles.
312 2013-10-18 Ryosuke Niwa <rniwa@webkit.org>
314 New flakiness dashboard should support showing the failing tests per builder
315 https://bugs.webkit.org/show_bug.cgi?id=123011
317 Reviewed by Timothy Hatcher.
319 Added the feature. Also did some refactoring to add this feature.
322 * api/failing-tests.php: Added.
323 * api/manifest.php: Removed the code to make maps by id. The work is now done in index.html.
325 * common.css: Added. Extracted from index.html.
326 * include/test-results.php: Extracted parse_revisions_array and format_result_rows from results.php.
329 (TestResultsView.setAvailableTests): Added.
330 (TestResultsView.showTooltip): Fixed the code to compute x and y coordinates of the tooltip to take
331 scrolled positions into account.
332 (TestResultsView._createTestResultRow): Extracted from _populateTestPane.
333 (TestResultsView.fetchTest): Added the code to show "Loading..." in the pane while loading the JSON.
334 (TestResultsView.fetchTests): Respect the doNotUpdateHash flag.
335 (TestResultsView._populateBuilderPane): Added.
336 (TestResultsView.fetchFailingTestsForBuilder): Added.
337 (TestResultsView.updateLocationHash): Serialize builder & builderDays.
338 (TestResultsView.locationHashChanged): Don't delete existing test panes since that's now done in
339 loadTestsFromLocationHash.
340 (TestResultsView.loadTestsFromLocationHash): Take care of both 'tests' and 'builder' components.
341 (fetchManifest): Setup the UI to select a builder.