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