Bug 164951 - Flaky 32-bit JSC test timeouts: stress/op_div-* and ress/op_mod-*
Summary: Flaky 32-bit JSC test timeouts: stress/op_div-* and ress/op_mod-*
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Lam
URL:
Keywords:
: 155289 (view as bug list)
Depends on:
Blocks: 164994
  Show dependency treegraph
 
Reported: 2016-11-18 13:29 PST by Ryan Haddad
Modified: 2016-11-23 07:32 PST (History)
9 users (show)

See Also:


Attachments
proposed patch. (6.27 KB, patch)
2016-11-19 00:13 PST, Mark Lam
ysuzuki: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Haddad 2016-11-18 13:29:15 PST
https://build.webkit.org/builders/Apple%20El%20Capitan%2032-bit%20JSC%20%28BuildAndTest%29/builds/4252

** The following JSC stress test failures have been introduced:
	stress/op_div-ConstVar.js.misc-ftl-no-cjit
	stress/op_div-VarConst.js.misc-ftl-no-cjit
	stress/op_div-VarVar.js.misc-ftl-no-cjit
	stress/op_mod-ConstVar.js.misc-ftl-no-cjit
	stress/op_mod-VarConst.js.misc-ftl-no-cjit
	stress/op_mod-VarVar.js.misc-ftl-no-cjit
Comment 1 Ryan Haddad 2016-11-18 13:30:21 PST
Another instance seen here:

https://build.webkit.org/builders/Apple%20El%20Capitan%2032-bit%20JSC%20%28BuildAndTest%29/builds/4226

** The following JSC stress test failures have been introduced:
	stress/op_div-VarConst.js.misc-ftl-no-cjit
	stress/op_mod-ConstVar.js.misc-ftl-no-cjit
	stress/op_mod-VarConst.js.misc-ftl-no-cjit
	stress/op_mod-VarVar.js.misc-ftl-no-cjit
Comment 2 Mark Lam 2016-11-18 13:36:47 PST
These are all due to time outs.  When did these failures started happening?  Either we started running on slower bots or potentially, someone introduced a perf regression.
Comment 3 Ryan Haddad 2016-11-18 13:38:10 PST
(In reply to comment #2)
> These are all due to time outs.  When did these failures started happening? 
> Either we started running on slower bots or potentially, someone introduced
> a perf regression.

I'm going through logs now to try to find out.
Comment 4 Ryan Haddad 2016-11-18 13:41:32 PST
Earliest instance I can find on this bot is r208607 / Fri Nov 11 13:56:25 2016

https://build.webkit.org/builders/Apple%20El%20Capitan%2032-bit%20JSC%20%28BuildAndTest%29/builds/4192
Comment 5 Ryan Haddad 2016-11-18 13:42:09 PST
The bot config has not changed.
Comment 6 Mark Lam 2016-11-19 00:13:49 PST
Created attachment 295255 [details]
proposed patch.

I'm fixing this by simply recognizing that not all tests are equal, and that some just needs more time to run.  I've added a --timeoutMultipler=<multiplier> option that can be used on these slower tests to increase their timeout duration.  This should fix this issue for good.
Comment 7 Yusuke Suzuki 2016-11-19 00:20:49 PST
Comment on attachment 295255 [details]
proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=295255&action=review

r=me

> Source/JavaScriptCore/jsc.cpp:2606
> +    auto timeout = std::chrono::microseconds(static_cast<std::chrono::microseconds::rep>(timeoutDuration * 1000000));

Let's use WTF::Seconds.
Comment 8 Mark Lam 2016-11-19 09:41:32 PST
Thanks for the review.  I've changed the timeout thread to use WTF::Seconds.

Landed in r208925: <http://trac.webkit.org/r208925>.
Comment 9 Mark Lam 2016-11-19 17:58:10 PST
I forgot to also lengthen the timeout for op_mod-* tests.  Will do that in https://bugs.webkit.org/show_bug.cgi?id=164994.
Comment 10 Mark Lam 2016-11-23 07:32:09 PST
*** Bug 155289 has been marked as a duplicate of this bug. ***