Bug 102070

Summary: Some Perf tests fail due to output text parse error
Product: WebKit Reporter: Pravin D <pravind.2k4>
Component: Tools / TestsAssignee: Pravin D <pravind.2k4>
Status: NEW    
Severity: Normal CC: abarth, dpranke, jchaffraix, rniwa, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.7   
Attachments:
Description Flags
Failing Testcase
none
Patch rniwa: review-, rniwa: commit-queue-

Pravin D
Reported 2012-11-13 04:46:03 PST
Created attachment 173864 [details] Failing Testcase Description : When some perf tests run using ./Tools/Scripts/run-perf-tests , fail with the following msg $./Tools/Scripts/run-perf-tests PerformanceTests/reattach/abs_to_static_inline_inline.html Running 1 tests Running reattach/abs_to_static_inline_inline.html (1 of 1) Running 20 times FAILED Finished: 47.007584 s Even though the test has run successfully, the result is not published to PerformanceTestsResults.json due to the above failure. The reason is that is some cases the output.text in being parsed in parse_output() in Tools/Scripts/webkitpy/perftest.py contains a leading space. parse_output() calls _should_ignore_line_in_parser_test_result() which in turn uses a list "_lines_to_ignore_in_parser_result" to check if the line has to ignored or not. As _lines_to_ignore_in_parser_result does not expect a line with leading/trailing spaces , _should_ignore_line_in_parser_test_result() fails which results in the parse_output() assuming that an error has occured. Attaching the perf test.
Attachments
Failing Testcase (18.43 KB, text/html)
2012-11-13 04:46 PST, Pravin D
no flags
Patch (1.58 KB, patch)
2012-11-13 05:15 PST, Pravin D
rniwa: review-
rniwa: commit-queue-
Pravin D
Comment 1 2012-11-13 05:15:48 PST
Adam Barth
Comment 2 2012-11-13 08:01:12 PST
Looks like a patch for rniwa.
Ryosuke Niwa
Comment 3 2012-11-13 10:16:42 PST
Comment on attachment 173872 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173872&action=review > Tools/Scripts/webkitpy/performance_tests/perftest.py:108 > + line = line.strip() No. This is a bug in the test. We need to fix the test.
Ryosuke Niwa
Comment 4 2012-11-13 10:19:38 PST
The whole point of parser being very strict about the output is so that we can detect incorrectness errors. The test output shouldn’t contain superfluous whitespaces.
Note You need to log in before you can comment on or make changes to this bug.