Bug 192486 - Consecutive DumpRenderTree crashes are happening again on WinCairo BuildBots since r238903
Summary: Consecutive DumpRenderTree crashes are happening again on WinCairo BuildBots ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-12-06 18:28 PST by Fujii Hironori
Modified: 2018-12-07 01:16 PST (History)
6 users (show)

See Also:


Attachments
Original Behavior (1.31 KB, patch)
2018-12-06 19:50 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Possible Improvement (1.25 KB, patch)
2018-12-06 19:54 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch for landing (1.42 KB, patch)
2018-12-06 21:28 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2018-12-06 18:28:27 PST
Consecutive DumpRenderTree crashes are happening again on WinCairo BuildBots since r238903

WinCairo BuildBots is using WEBKIT_TEST_CHILD_PROCESSES to avoid Bug 192161.
But, WEBKIT_TEST_CHILD_PROCESSES was removed in Bug 192161.
Comment 1 Fujii Hironori 2018-12-06 18:30:17 PST
(In reply to Fujii Hironori from comment #0)
> WinCairo BuildBots is using WEBKIT_TEST_CHILD_PROCESSES to avoid Bug 192161.

Oops. Wrong bug id. I meant this:

  Bug 188036 – Consecutive DumpRenderTree crash on WinCairo BuildBots
Comment 2 Jonathan Bedard 2018-12-06 19:38:35 PST
Didn't see WEBKIT_TEST_CHILD_PROCESSES being used anywhere, apparently didn't look hard enough. This is an easy enough fix.
Comment 3 Jonathan Bedard 2018-12-06 19:50:55 PST
Created attachment 356780 [details]
Original Behavior
Comment 4 Jonathan Bedard 2018-12-06 19:54:19 PST
Created attachment 356781 [details]
Possible Improvement
Comment 5 Jonathan Bedard 2018-12-06 19:58:11 PST
I don't have a great way to test this (nor am I familiar with the original bug) but I have 2 patches, either one will likely fix the issue. The first patch will return the original behavior and respect WEBKIT_TEST_CHILD_PROCESSES. The second what I think we actually want here, it modifies the maximum number of child processes for the WinCairo port, that way no one has to worry about setting up WEBKIT_TEST_CHILD_PROCESSES on machines running these tests.
Comment 6 Fujii Hironori 2018-12-06 20:57:52 PST
Thank you very much for working on this. I tested both patches,
and confirmed both work fine.

IMO, Original Behavior patch is somewhat more preferable because
Bug 188036 is happening only on WinCairo test bot. WinCairo test
bot is now running on 8-thread machine, but has limited RAM.
run-webkit-tests trys to run 8 DumpRenderTree processes on it,
but fails to spawning a new process due to memory shortage. It
doesn't happen on my PC. And, we have a plan to add new bot
machines. I don't know the spec yet. But, I hope it would be able
to run more workers to shorten testing time.
Comment 7 Jonathan Bedard 2018-12-06 21:20:51 PST
(In reply to Fujii Hironori from comment #6)
> Thank you very much for working on this. I tested both patches,
> and confirmed both work fine.
> 
> IMO, Original Behavior patch is somewhat more preferable because
> Bug 188036 is happening only on WinCairo test bot. WinCairo test
> bot is now running on 8-thread machine, but has limited RAM.
> run-webkit-tests trys to run 8 DumpRenderTree processes on it,
> but fails to spawning a new process due to memory shortage. It
> doesn't happen on my PC. And, we have a plan to add new bot
> machines. I don't know the spec yet. But, I hope it would be able
> to run more workers to shorten testing time.

For now, I'll land the first then.

We've actually had this problem with simulators too, the 'right' solution is to have the port define default processes based on CPU and RAM.
Comment 8 Fujii Hironori 2018-12-06 21:27:23 PST
(In reply to Jonathan Bedard from comment #7)
> For now, I'll land the first then.
> 
> We've actually had this problem with simulators too, the 'right' solution is
> to have the port define default processes based on CPU and RAM.

It makes sense. I get the idea.
Comment 9 Jonathan Bedard 2018-12-06 21:28:03 PST
Created attachment 356782 [details]
Patch for landing
Comment 10 WebKit Commit Bot 2018-12-06 22:17:53 PST
The commit-queue encountered the following flaky tests while processing attachment 356782 [details]:

imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/failures_RSASSA-PKCS1-v1_5.https.any.html bug 192488
The commit-queue is continuing to process your patch.
Comment 11 WebKit Commit Bot 2018-12-06 22:18:41 PST
Comment on attachment 356782 [details]
Patch for landing

Clearing flags on attachment: 356782

Committed r238950: <https://trac.webkit.org/changeset/238950>
Comment 12 WebKit Commit Bot 2018-12-06 22:18:43 PST
All reviewed patches have been landed.  Closing bug.
Comment 13 Radar WebKit Bug Importer 2018-12-06 22:19:30 PST
<rdar://problem/46546609>
Comment 14 Fujii Hironori 2018-12-07 01:16:38 PST
WinCairo test bots get back to normal. Thank you very much.
I am going to do comment#7 task in Bug 192490.