WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
86696
[Performance test] Support "description" for PerfTestRunner.run and PerfTestRunner.runPerSecond
https://bugs.webkit.org/show_bug.cgi?id=86696
Summary
[Performance test] Support "description" for PerfTestRunner.run and PerfTestR...
Kentaro Hara
Reported
2012-05-16 19:13:34 PDT
We want to add some description for each run, so that people can know what each run is testing.
Attachments
Patch
(6.62 KB, patch)
2012-05-16 19:19 PDT
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
patch for landing
(5.82 KB, patch)
2012-05-16 19:32 PDT
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
Patch
(1.56 KB, patch)
2012-05-17 00:30 PDT
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
patch for landing
(1.83 KB, patch)
2012-05-17 00:43 PDT
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
Patch
(3.21 KB, patch)
2012-05-17 03:04 PDT
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Kentaro Hara
Comment 1
2012-05-16 19:19:31 PDT
Created
attachment 142394
[details]
Patch
Ryosuke Niwa
Comment 2
2012-05-16 19:23:00 PDT
Comment on
attachment 142394
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=142394&action=review
> Tools/ChangeLog:16 > + DESCRIPTION: Benchmark for DOM attributes that return a Node object.
Nice!
> Tools/Scripts/webkitpy/performance_tests/perftest.py:98 > + description_regex = re.compile(r'^description (?P<description>.*)$')
We should probably ignore cases here :)
> PerformanceTests/resources/runner.js:97 > + this.log("description " + description);
Why don't we capitalize description and put a comma as in: "Description: ~~~"
> PerformanceTests/resources/runner.js:126 > + this.logStatistics(this._results, this._description);
It seems odd that a function named logStatistics also prints description. Why don't we put the code here instead?
Kentaro Hara
Comment 3
2012-05-16 19:32:18 PDT
Created
attachment 142397
[details]
patch for landing
Kentaro Hara
Comment 4
2012-05-16 19:32:49 PDT
(In reply to
comment #2
)
> > Tools/Scripts/webkitpy/performance_tests/perftest.py:98 > > + description_regex = re.compile(r'^description (?P<description>.*)$') > > We should probably ignore cases here :)
Done.
> > PerformanceTests/resources/runner.js:97 > > + this.log("description " + description); > > Why don't we capitalize description and put a comma as in: "Description: ~~~"
Done.
> > PerformanceTests/resources/runner.js:126 > > + this.logStatistics(this._results, this._description); > > It seems odd that a function named logStatistics also prints description. Why don't we put the code here instead?
Done.
WebKit Review Bot
Comment 5
2012-05-16 22:15:31 PDT
Comment on
attachment 142397
[details]
patch for landing Clearing flags on attachment: 142397 Committed
r117397
: <
http://trac.webkit.org/changeset/117397
>
Csaba Osztrogonác
Comment 6
2012-05-17 00:22:40 PDT
(In reply to
comment #5
)
> (From update of
attachment 142397
[details]
) > Clearing flags on attachment: 142397 > > Committed
r117397
: <
http://trac.webkit.org/changeset/117397
>
It broke perf tests on the bot: Running PageLoad/svg/files/42450-under the see.svg (53 of 71) Traceback (most recent call last): File "./Tools/Scripts/run-perf-tests", line 39, in <module> sys.exit(PerfTestsRunner().run()) File "/home/webkitbuildbot/slaves/release64bitWebKit2-perf/buildslave/qt-linux-64-release-wk2-perf-tests/build/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py", line 138, in run unexpected = self._run_tests_set(sorted(list(tests), key=lambda test: test.test_name()), self._port) File "/home/webkitbuildbot/slaves/release64bitWebKit2-perf/buildslave/qt-linux-64-release-wk2-perf-tests/build/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py", line 226, in _run_tests_set if self._run_single_test(test, driver): File "/home/webkitbuildbot/slaves/release64bitWebKit2-perf/buildslave/qt-linux-64-release-wk2-perf-tests/build/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py", line 240, in _run_single_test new_results = test.run(driver, self._options.time_out_ms) File "/home/webkitbuildbot/slaves/release64bitWebKit2-perf/buildslave/qt-linux-64-release-wk2-perf-tests/build/Tools/Scripts/webkitpy/performance_tests/perftest.py", line 194, in run self.output_statistics(self.test_name(), results) File "/home/webkitbuildbot/slaves/release64bitWebKit2-perf/buildslave/qt-linux-64-release-wk2-perf-tests/build/Tools/Scripts/webkitpy/performance_tests/perftest.py", line 132, in output_statistics if results['description']: KeyError: 'description'
Kentaro Hara
Comment 7
2012-05-17 00:23:41 PDT
(In reply to
comment #6
)
> It broke perf tests on the bot:
looking
Ryosuke Niwa
Comment 8
2012-05-17 00:26:54 PDT
Comment on
attachment 142397
[details]
patch for landing View in context:
https://bugs.webkit.org/attachment.cgi?id=142397&action=review
> Tools/Scripts/webkitpy/performance_tests/perftest.py:132 > + if results['description']:
Oops, you can't assume that results['description'] is always yet :(
Kentaro Hara
Comment 9
2012-05-17 00:30:39 PDT
Reopening to attach new patch.
Kentaro Hara
Comment 10
2012-05-17 00:30:43 PDT
Created
attachment 142431
[details]
Patch
Ryosuke Niwa
Comment 11
2012-05-17 00:31:55 PDT
Comment on
attachment 142431
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=142431&action=review
> Tools/Scripts/webkitpy/performance_tests/perftest.py:193 > + 'description': '',
How about ChromiumStylePerfTest ?
Kentaro Hara
Comment 12
2012-05-17 00:37:13 PDT
(In reply to
comment #11
)
> How about ChromiumStylePerfTest ?
I want to fix it and confirm the bahavior, but how can I run ChromiumStylePerfTest?
Ryosuke Niwa
Comment 13
2012-05-17 00:40:27 PDT
(In reply to
comment #12
)
> (In reply to
comment #11
) > > How about ChromiumStylePerfTest ? > > I want to fix it and confirm the bahavior, but how can I run ChromiumStylePerfTest?
Tests in PerformanceTests/Inspector. However, they're skipped now.
Kentaro Hara
Comment 14
2012-05-17 00:43:58 PDT
Created
attachment 142434
[details]
patch for landing
Kentaro Hara
Comment 15
2012-05-17 00:45:24 PDT
Committed
r117410
: <
http://trac.webkit.org/changeset/117410
>
Csaba Osztrogonác
Comment 16
2012-05-17 02:47:16 PDT
(In reply to
comment #15
)
> Committed
r117410
: <
http://trac.webkit.org/changeset/117410
>
perf test is still broken, but with another error message: Uploaded JSON but got a bad response: The payload doesn't contain results or results are malformed
Kentaro Hara
Comment 17
2012-05-17 02:52:14 PDT
It seems that we need to fix the server side too. Just a moment...
Kentaro Hara
Comment 18
2012-05-17 03:04:01 PDT
Reopening to attach new patch.
Kentaro Hara
Comment 19
2012-05-17 03:04:05 PDT
Created
attachment 142446
[details]
Patch
Csaba Osztrogonác
Comment 20
2012-05-17 03:07:26 PDT
Comment on
attachment 142446
[details]
Patch LGTM, r=me.
Kentaro Hara
Comment 21
2012-05-17 03:09:17 PDT
Committed
r117422
: <
http://trac.webkit.org/changeset/117422
>
Csaba Osztrogonác
Comment 22
2012-05-17 03:53:19 PDT
And I realized that unit tests are bleeding too:
http://build.webkit.org/builders/Qt%20Linux%20Release/builds/47128/steps/webkitpy-test/logs/stdio
Kentaro Hara
Comment 23
2012-05-17 04:00:50 PDT
(In reply to
comment #22
)
> And I realized that unit tests are bleeding too:
http://build.webkit.org/builders/Qt%20Linux%20Release/builds/47128/steps/webkitpy-test/logs/stdio
Is this failure still happening even after landing
r117422
? Now 'results' does not have 'description'.
Csaba Osztrogonác
Comment 24
2012-05-17 04:07:09 PDT
(In reply to
comment #23
)
> (In reply to
comment #22
) > > And I realized that unit tests are bleeding too:
http://build.webkit.org/builders/Qt%20Linux%20Release/builds/47128/steps/webkitpy-test/logs/stdio
> > Is this failure still happening even after landing
r117422
? Now 'results' does not have 'description'.
Oh, sorry for the noise
r117422
fixed all of them, but bots are in late.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug