WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
163804
JavaScriptCore tests should have a mode to use a shared jsc process
https://bugs.webkit.org/show_bug.cgi?id=163804
Summary
JavaScriptCore tests should have a mode to use a shared jsc process
Christopher Reid
Reported
2016-10-21 11:48:27 PDT
This problem is a bit specific to us, we have a huge ~6s overhead for launching processes. jsc-stress-tests takes over 24 hours to run due to each test launching its own process. We would like a way to share a jsc process between tests. The approach we were thinking of implementing was to use stdio on a shared process for tests. Because the test runner uses shell scripts and ruby, it doesn't seem possible on all platforms to send input to that process across multiple shell scripts. We would likely need a way to use only ruby to run tests for this to work.
Attachments
Patch
(21.79 KB, patch)
2016-11-30 14:01 PST
,
Christopher Reid
beidson
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Christopher Reid
Comment 1
2016-10-21 15:17:36 PDT
An alternative solution would be to write a client and server wrapping jsc. This would avoid having to re-write the test scripts with ruby but it's adding a potentially unwanted layer of complexity. Are there any preferred approaches to this?
Geoffrey Garen
Comment 2
2016-10-21 15:38:57 PDT
DumpRenderTree accepts a series of file names through stdio and runs them sequentially. I think it would be fine to add a command-line option for that to jsc.cpp. I'm not sure how to solve your broader problem of not being able to launch processes for the scripted testing harness. Our test harness is pretty strongly designed around being able to launch processes.
Christopher Reid
Comment 3
2016-11-30 14:01:13 PST
Created
attachment 295764
[details]
Patch The batch mode param is right now a lot more coupled in to the jsc-tests than I would like. I was mainly wanting some initial feedback on what would like to be seen.
WebKit Commit Bot
Comment 4
2016-11-30 14:03:47 PST
Attachment 295764
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/jsc.cpp:2856: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/JavaScriptCore/jsc.cpp:2867: Missing spaces around = [whitespace/operators] [4] ERROR: Source/JavaScriptCore/jsc.cpp:2867: Missing spaces around < [whitespace/operators] [3] ERROR: Source/JavaScriptCore/jsc.cpp:2891: Missing spaces around = [whitespace/operators] [4] ERROR: Source/JavaScriptCore/jsc.cpp:2891: Missing spaces around < [whitespace/operators] [3] ERROR: Source/JavaScriptCore/jsc.cpp:3180: Extra space before ) [whitespace/parens] [2] Total errors found: 6 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Filip Pizlo
Comment 5
2016-11-30 14:12:14 PST
Comment on
attachment 295764
[details]
Patch This is a very invasive change to the test harness, and most JSC developers have platforms that have fast process start. We rely on the fact that tests are isolated in a lot of subtle ways, including relying on shell scripts that wrap each test. I don't want to lose this invariant in the test harness, because it will make all of our other test hacking harder.
Brady Eidson
Comment 6
2018-02-14 10:36:08 PST
Comment on
attachment 295764
[details]
Patch Patches that have been up for review since 2016 are almost certainly too stale to be relevant to trunk in their current form. If this patch is still important please rebase it and post it for review again.
Christopher Reid
Comment 7
2018-02-14 15:16:33 PST
Closing this as it is no longer relevant.
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