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