Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Issue 148153009: DOM-object leak detection at run_webkit_tests.py (Closed)

Created:
6 years, 10 months ago by hajimehoshi
Modified:
6 years, 9 months ago
CC:
blink-reviews, haraken
Visibility:
Public.

Description

DOM-object leak detection at run_webkit_tests.py Now we're implementing the DOM-object leak detector. When the number of DOM objects is increased after a test, we can assume that the test causes a leak. This feature is available at content_shell with the flag --enable-leak-detection. This patch enables this leak detection feature at run_webkit_test.py with the flag --enable-leak-detection. content_shell is assumed to report a detected leak with the following format: #LEAK - renderer pid PID (DETAIL_IN_JSON_FORMAT) and run_webkit_test.py will treat this as a kind of error by this patch. See also: https://docs.google.com/a/chromium.org/document/d/1sFAsZxeISKnbGdXoLZlB2tDZ8pvO102ePFQx6TX4X14/edit BUG=332630 TEST=test-webkitpy Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170255

Patch Set 1 : . #

Total comments: 6

Patch Set 2 : Add outputting leak logs #

Patch Set 3 : Remove .coverage #

Patch Set 4 : (rebasing) #

Patch Set 5 : Bug fix: Reset driver._leaked when starting tests #

Patch Set 6 : Bug fix: unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -12 lines) Patch
M LayoutTests/fast/harness/results.html View 1 2 3 4 chunks +12 lines, -1 line 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py View 1 1 chunk +4 lines, -0 lines 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer.py View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py View 1 4 chunks +5 lines, -2 lines 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/models/test_failures.py View 1 2 chunks +12 lines, -0 lines 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/models/test_run_results_unittest.py View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/port/base.py View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/port/driver.py View 1 2 3 4 10 chunks +30 lines, -5 lines 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/port/driver_unittest.py View 1 2 3 4 5 2 chunks +15 lines, -1 line 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
hajimehoshi
Can you take a look? Thank you in advance.
6 years, 10 months ago (2014-01-28 10:17:17 UTC) #1
jochen (gone - plz use gerrit)
+dpranke who's a better reviewer for this than me
6 years, 10 months ago (2014-01-28 13:08:38 UTC) #2
Dirk Pranke
I'm not sure if this patch is quite right. When we detect leaks, do we ...
6 years, 10 months ago (2014-01-28 20:11:46 UTC) #3
Dirk Pranke
On 2014/01/28 20:11:46, Dirk Pranke wrote: > I'm not sure if this patch is quite ...
6 years, 10 months ago (2014-01-28 20:12:29 UTC) #4
hajimehoshi
> When we detect leaks, do we actually also crash the process? No. There is ...
6 years, 10 months ago (2014-01-29 01:59:24 UTC) #5
kouhei (in TOK)
On 2014/01/29 01:59:24, hajimehoshi wrote: > > When we detect leaks, do we actually also ...
6 years, 10 months ago (2014-01-29 02:13:57 UTC) #6
Dirk Pranke
On 2014/01/29 01:59:24, hajimehoshi wrote: > > When we detect leaks, do we actually also ...
6 years, 10 months ago (2014-01-30 01:36:46 UTC) #7
Dirk Pranke
https://chromiumcodereview.appspot.com/148153009/diff/20001/Tools/Scripts/webkitpy/layout_tests/port/driver.py File Tools/Scripts/webkitpy/layout_tests/port/driver.py (right): https://chromiumcodereview.appspot.com/148153009/diff/20001/Tools/Scripts/webkitpy/layout_tests/port/driver.py#newcode189 Tools/Scripts/webkitpy/layout_tests/port/driver.py:189: crash_log += 'DOM-object leaking was detected.\n' Given that the ...
6 years, 10 months ago (2014-01-30 01:43:20 UTC) #8
hajimehoshi
Thank you! I added output of the detected leaks separated from crashes. Sorry for the ...
6 years, 10 months ago (2014-02-14 10:18:58 UTC) #9
hajimehoshi
+kouhei (CC)
6 years, 10 months ago (2014-02-14 10:21:28 UTC) #10
Dirk Pranke
Oh dear, I'm afraid I wasn't clear enough, and you've done a lot more work ...
6 years, 10 months ago (2014-02-14 21:27:00 UTC) #11
hajimehoshi
> (kouhei) > IIUC, we don't crash the process, but the content_shell would stop running ...
6 years, 10 months ago (2014-02-17 04:05:29 UTC) #12
Dirk Pranke
On 2014/02/17 04:05:29, hajimehoshi wrote: > > (kouhei) > > IIUC, we don't crash the ...
6 years, 10 months ago (2014-02-18 23:35:43 UTC) #13
hajimehoshi
On 2014/02/18 23:35:43, Dirk Pranke wrote: > On 2014/02/17 04:05:29, hajimehoshi wrote: > > > ...
6 years, 10 months ago (2014-02-19 04:49:09 UTC) #14
Dirk Pranke
On 2014/02/19 04:49:09, hajimehoshi wrote: > On 2014/02/18 23:35:43, Dirk Pranke wrote: > > On ...
6 years, 10 months ago (2014-02-19 06:59:17 UTC) #15
kouhei (in TOK)
On 2014/02/19 06:59:17, Dirk Pranke wrote: > On 2014/02/19 04:49:09, hajimehoshi wrote: > > On ...
6 years, 10 months ago (2014-02-19 08:00:20 UTC) #16
jochen (gone - plz use gerrit)
I wonder how useful this is if it currently reports thousands of leaks. I'd expect ...
6 years, 10 months ago (2014-02-19 17:25:50 UTC) #17
Dirk Pranke
Okay, well, I can't say that I'm wild about this approach, but I have failed ...
6 years, 10 months ago (2014-02-21 00:09:51 UTC) #18
ojan
I'm not sure I understand how this code is intended to work. What happens if ...
6 years, 10 months ago (2014-02-22 00:11:52 UTC) #19
Dirk Pranke
On 2014/02/22 00:11:52, ojan wrote: > An alternate proposal, what if we treat leak information ...
6 years, 10 months ago (2014-02-22 01:18:13 UTC) #20
eseidel
run-webkit-tests --leaks used to work based on stderr iirc. Then again it used the mac ...
6 years, 10 months ago (2014-02-22 06:10:36 UTC) #21
hajimehoshi
Sorry for my terribly late reply. Now we've tackled the problem that content_shell itself causes ...
6 years, 9 months ago (2014-03-26 08:31:30 UTC) #22
hajimehoshi
The CQ bit was checked by hajimehoshi@chromium.org
6 years, 9 months ago (2014-03-27 05:35:14 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/148153009/420001
6 years, 9 months ago (2014-03-27 05:35:23 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 06:04:52 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 9 months ago (2014-03-27 06:04:53 UTC) #26
hajimehoshi
The CQ bit was checked by hajimehoshi@chromium.org
6 years, 9 months ago (2014-03-27 09:52:07 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/148153009/440001
6 years, 9 months ago (2014-03-27 09:52:12 UTC) #28
hajimehoshi
The CQ bit was unchecked by hajimehoshi@chromium.org
6 years, 9 months ago (2014-03-27 09:52:40 UTC) #29
hajimehoshi
The CQ bit was checked by hajimehoshi@chromium.org
6 years, 9 months ago (2014-03-27 09:54:26 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/148153009/460001
6 years, 9 months ago (2014-03-27 09:54:27 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 10:23:03 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-27 10:23:03 UTC) #33
hajimehoshi
The CQ bit was checked by hajimehoshi@chromium.org
6 years, 9 months ago (2014-03-27 11:14:15 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/148153009/460001
6 years, 9 months ago (2014-03-27 11:14:24 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 12:19:30 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-27 12:19:31 UTC) #37
hajimehoshi
The CQ bit was checked by hajimehoshi@chromium.org
6 years, 9 months ago (2014-03-28 02:17:22 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/148153009/460001
6 years, 9 months ago (2014-03-28 02:17:27 UTC) #39
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 03:19:55 UTC) #40
Message was sent while issue was closed.
Change committed as 170255

Powered by Google App Engine
This is Rietveld 408576698