Bug 223158 - [JSC] Run one Mozilla test explicitly under PST since this test does not work when we are moving from PST to PDT
Summary: [JSC] Run one Mozilla test explicitly under PST since this test does not work...
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords: InRadar
Depends on: 223187
Blocks:
  Show dependency treegraph
 
Reported: 2021-03-14 00:58 PST by Yusuke Suzuki
Modified: 2021-03-15 09:39 PDT (History)
3 users (show)

See Also:


Attachments
Patch (31.16 KB, patch)
2021-03-14 00:59 PST, Yusuke Suzuki
mark.lam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2021-03-14 00:58:00 PST
[JSC] Run one Mozilla test explicitly under PST since this test does not work when we are moving from PST to DST
Comment 1 Yusuke Suzuki 2021-03-14 00:59:43 PST
Created attachment 423120 [details]
Patch
Comment 2 Mark Lam 2021-03-14 09:36:11 PDT
Comment on attachment 423120 [details]
Patch

r=me

Thanks for fixing this.  This bug has been present going back at least 8 years.  For 2 hours a year when we switch daylight savings time, this test would always fail.

I see that the real change that matters is that you specified "TZ=PST" and use runComplexTest to get it applied to the environment.  However, I wasn't able to tease out where our system picks up this env var.  Would you mind pointing me to it for future reference?
Comment 3 Yusuke Suzuki 2021-03-14 15:08:40 PDT
(In reply to Mark Lam from comment #2)
> Comment on attachment 423120 [details]
> Patch
> 
> r=me
> 
> Thanks for fixing this.  This bug has been present going back at least 8
> years.  For 2 hours a year when we switch daylight savings time, this test
> would always fail.
> 
> I see that the real change that matters is that you specified "TZ=PST" and
> use runComplexTest to get it applied to the environment.  However, I wasn't
> able to tease out where our system picks up this env var.  Would you mind
> pointing me to it for future reference?

This is ICU. "TZ" environment variable is recognized by ICU, and we use it for ICU date times. And JSC's date implementation is using ICU.
Comment 4 Yusuke Suzuki 2021-03-14 15:14:11 PDT
Committed r274405 (235272@main): <https://commits.webkit.org/235272@main>
Comment 5 Radar WebKit Bug Importer 2021-03-14 15:15:16 PDT
<rdar://problem/75412033>
Comment 6 WebKit Commit Bot 2021-03-15 09:39:35 PDT
Re-opened since this is blocked by bug 223187