WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 136363
[JSC] Some JSC stress tests are dependent on the machine time zone.
https://bugs.webkit.org/show_bug.cgi?id=136363
Summary
[JSC] Some JSC stress tests are dependent on the machine time zone.
Carlos Alberto Lopez Perez
Reported
2014-08-29 04:35:09 PDT
I have noticed that some of the JSC stress tests fail if your timezone is not PDT (At least on the GTK port, didn't tested other ports). They pass all OK if your timezone is PDT: $ export TZ="US/Pacific" $ Tools/Scripts/run-javascriptcore-tests --release --gtk --no-build [...] 9887/9887 Results for JSC stress tests: 0 failures found. OK. But some fail if you have another timezone: $ export TZ="Europe/Madrid" $ Tools/Scripts/run-javascriptcore-tests --release --gtk --no-build [...] 9887/9887 (failed 4) ** The following JSC stress test failures have been introduced: mozilla-tests.yaml/ecma_3/Date/15.9.5.6.js.mozilla mozilla-tests.yaml/ecma_3/Date/15.9.5.6.js.mozilla-baseline mozilla-tests.yaml/ecma_3/Date/15.9.5.6.js.mozilla-dfg-eager-no-cjit-validate-phases mozilla-tests.yaml/ecma_3/Date/15.9.5.6.js.mozilla-llint Results for JSC stress tests: 4 failures found. To workaround this, maybe we can just export the environment variable TZ to US/Pacific on the script run-javascriptcore-tests ?
Attachments
Patch
(1.51 KB, patch)
2014-08-29 06:30 PDT
,
Carlos Alberto Lopez Perez
no flags
Details
Formatted Diff
Diff
Patch
(1.98 KB, patch)
2014-08-29 10:26 PDT
,
Carlos Alberto Lopez Perez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Andy Wingo
Comment 1
2014-08-29 05:35:37 PDT
(In reply to
comment #0
)
> I have noticed that some of the JSC stress tests fail if your timezone is not PDT (At least on the GTK port, didn't tested other ports).
Yep, a long-standing bug present in these tests since they were imported from Mozilla. Note that these aren't the main tests for JSC -- those are in LayoutTests.
> To workaround this, maybe we can just export the environment variable TZ to US/Pacific on the script run-javascriptcore-tests ?
Sure, sounds like a good idea to me.
Csaba Osztrogonác
Comment 2
2014-08-29 05:44:16 PDT
It is a very old bug:
bug4930
. The workaround for us was always to set TZ to Apple time zone if you want to run JSC tests. :) +1 for adding this workaround if nobody wants to fix the buggy test.
Csaba Osztrogonác
Comment 3
2014-08-29 05:53:44 PDT
Adding $ENV{TZ}="US/Pacific"; to run-javascriptcore-tests works for me, feel free to create a patch for it.
Carlos Alberto Lopez Perez
Comment 4
2014-08-29 06:30:48 PDT
Created
attachment 237347
[details]
Patch
Csaba Osztrogonác
Comment 5
2014-08-29 06:32:43 PDT
Comment on
attachment 237347
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=237347&action=review
> Tools/Scripts/run-javascriptcore-tests:237 > + # Some tests fail if the time zone is not set to US/Pacific (<
https://webkit.org/b/136363
>) > + $ENV{TZ}="US/Pacific";
We can apply this if we only run the mozilla tests for some reason.
Carlos Alberto Lopez Perez
Comment 6
2014-08-29 06:43:25 PDT
(In reply to
comment #5
)
> (From update of
attachment 237347
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=237347&action=review
> > > Tools/Scripts/run-javascriptcore-tests:237 > > + # Some tests fail if the time zone is not set to US/Pacific (<
https://webkit.org/b/136363
>) > > + $ENV{TZ}="US/Pacific"; > > We can apply this if we only run the mozilla tests for some reason.
Not sure if I understand what you mean. Exporting it inside: if ($runMozilla) { [...] } Don't fixes the issue.
Carlos Alberto Lopez Perez
Comment 7
2014-08-29 06:44:31 PDT
Also, running "Tools/Scripts/run-javascriptcore-tests [...] --no-jsc-stress" don't fails
Csaba Osztrogonác
Comment 8
2014-08-29 06:47:12 PDT
I meant Tools/Scripts/run-javascriptcore-tests --no-jsc-stress case should be workarounded too, not only the stress test case.
Carlos Alberto Lopez Perez
Comment 9
2014-08-29 10:08:19 PDT
I see. There are some mozilla test skipped due to this issue with the timezone. See
r99580
<
http://trac.webkit.org/r99580
>. I have tested to unskip them and they fail only with a non US/Pacific timezone, but pass on US/Pacific. I'm going to unskip this tests and set the TZ environment variable on the main body of the script.
Carlos Alberto Lopez Perez
Comment 10
2014-08-29 10:26:16 PDT
Created
attachment 237355
[details]
Patch
WebKit Commit Bot
Comment 11
2014-08-29 11:15:45 PDT
Comment on
attachment 237355
[details]
Patch Clearing flags on attachment: 237355 Committed
r173116
: <
http://trac.webkit.org/changeset/173116
>
WebKit Commit Bot
Comment 12
2014-08-29 11:15:49 PDT
All reviewed patches have been landed. Closing bug.
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