Bug 102070 - Some Perf tests fail due to output text parse error
Summary: Some Perf tests fail due to output text parse error
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.7
: P2 Normal
Assignee: Pravin D
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-13 04:46 PST by Pravin D
Modified: 2017-07-18 08:30 PDT (History)
5 users (show)

See Also:


Attachments
Failing Testcase (18.43 KB, text/html)
2012-11-13 04:46 PST, Pravin D
no flags Details
Patch (1.58 KB, patch)
2012-11-13 05:15 PST, Pravin D
rniwa: review-
rniwa: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pravin D 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.
Comment 1 Pravin D 2012-11-13 05:15:48 PST
Created attachment 173872 [details]
Patch
Comment 2 Adam Barth 2012-11-13 08:01:12 PST
Looks like a patch for rniwa.
Comment 3 Ryosuke Niwa 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.
Comment 4 Ryosuke Niwa 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.