Closed Bug 1912757 Opened 2 years ago Closed 1 year ago

Build temporal in Nightly by default

Categories

(Core :: JavaScript: Standard Library, task, P3)

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: dminor, Assigned: dminor)

References

Details

(Keywords: dev-doc-complete, perf-alert)

Attachments

(3 external files)

Currently Temporal is disabled behind a build time flag (--with-temporal-api). A first step towards shipping it will be to flip this flag to default to on in Nightly builds. We also have a special Temporal build in CI that can probably be removed at the same time.

I'll plan to work on this the week of August 19th.

Assignee: nobody → dminor

ICU4X raises debug assertions for some valid Temporal inputs, so enabling Temporal by default may create fuzz-blockers:


The next large Temporal update will be for https://github.com/tc39/proposal-temporal/pull/2925. I have already prepared patches to remove custom time zones and calendars, but I'm still waiting for the PR to be merged before requesting review, because I don't want reviewers to have to build the Temporal spec locally to compare the patches against the spec.

Thank you for letting me know, I'll hold off until that is reviewed.

Severity: -- → N/A
Priority: -- → P3

The large Temporal update is over at Bug 1920955, and should be landing soon. I'll take a look at the potential fuzz blockers than Anba mentioned above. Unfortunately, it doesn't look like there's been much movement upstream towards fixing these, so I might end up creating a patch to turn the assertions into errors for now.

There will be a couple of follow-ups to bug 1920955, possibly ready by next week. Alternatively to modifying ICU4X, we could also just disallow dates too far into the past/future. (Assuming ICU4X assertions only get triggered for too large dates.)

Related issue: https://github.com/tc39/proposal-temporal/issues/2869.

Just to note: the current plan, I believe, is for ICU4X to implement a proleptic approximation for the calendars that currently have debug assertions failing for far-away dates. I intend to look at this after the 2.0 Beta release. If someone else wants to contribute a fix, I'm happy to mentor and review it.

Blocks: 1839682
Depends on: 1929284
Status: NEW → ASSIGNED
Depends on: 1935179

This removes the now redundant temporaldebug CI job, and adds
--without-temporal-api to the wasi builds. Perhaps in the future we'll want to
add a temporal wasi variant, or enable temporal in the wasi-intl build, but
that can be handled in a follow up bug.

Pushed by dminor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bd280f2e715e Build temporal in Nightly by default; r=anba https://hg.mozilla.org/integration/autoland/rev/47f01c6c1375 Remove temporaldebug CI job and disable temporal for wasi; r=anba https://hg.mozilla.org/integration/autoland/rev/ced2f35c2ec8 Use --enable-temporal flag for test262 tests; r=anba

Backed out for causing build bustages @emporalTypes.h.

Flags: needinfo?(dminor)
Depends on: 1936801

Looks like Anba is working on fixes in Bug 1936801 :)

Flags: needinfo?(dminor)
Pushed by dminor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8ee9a4563357 Build temporal in Nightly by default; r=anba https://hg.mozilla.org/integration/autoland/rev/7014fa357dd6 Remove temporaldebug CI job and disable temporal for wasi; r=anba https://hg.mozilla.org/integration/autoland/rev/0ac08a13ea4b Use --enable-temporal flag for test262 tests; r=anba
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

(In reply to Pulsebot from comment #11)

Pushed by dminor@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bd280f2e715e
Build temporal in Nightly by default; r=anba
https://hg.mozilla.org/integration/autoland/rev/47f01c6c1375
Remove temporaldebug CI job and disable temporal for wasi; r=anba
https://hg.mozilla.org/integration/autoland/rev/ced2f35c2ec8
Use --enable-temporal flag for test262 tests; r=anba

Perfherder has detected a build_metrics performance change from push ced2f35c2ec8a07723366365fa988e7ad447a266.

Regressions:

Ratio Test Platform Options Absolute values (old vs new)
0.12% installer size windows2012-64 101,635,077.79 -> 101,758,678.58

As author of one of the patches included in that push, we need your help to address this regression.
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests. Please follow our guide to handling regression bugs and let us know your plans within 3 business days, or the patch(es) may be backed out in accordance with our regression policy.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run these tests on try with ./mach try perf --alert 43124

For more information on performance sheriffing please see our FAQ.

This enabled building Temporal on Nightly, which is a new feature that includes a lot of new code, so this regression in installer size is expected. We've been in discussions with the Temporal proposal champions as well as representatives from V8 and JavaScriptCore about the size of this proposal, and it's already gone through a round of simplification based upon concerns raised by the other engines.

To add to comment #18: It also adds more code from ICU4X (crates: icu_calendar, icu_calendar_data, and calendrical_calculations), which will be needed anyway when switching date-time formatting from ICU4C to ICU4X.

Regressions: 1937778

(In reply to agoloman from comment #12)

Backed out for causing build bustages @emporalTypes.h.

Perfherder has detected a build_metrics performance change from push f53ab957fa8728bdcd662f76e57ab7e780677417.

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
0.21% installer size osx-aarch64-shippable aarch64 nightly 96,745,417.42 -> 96,538,959.67
0.18% installer size osx-shippable nightly 102,306,257.04 -> 102,123,456.00

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run these tests on try with ./mach try perf --alert 43098

For more information on performance sheriffing please see our FAQ.

Release Note Request (optional, but appreciated)
[Why is this notable]: We're now building Temporal for Nightly, off behind a pref (javascript.options.experimental.temporal). Temporal is meant to a be better version of Date, which has been a long-standing pain point in the language.
[Affects Firefox for Android]:
[Suggested wording]: The Temporal proposal is now available for experimentation in Firefox Nightly, behind the javascript.options.experimental.temporal preference. Temporal is a better version of Date, for more details, please see https://tc39.es/proposal-temporal/docs/.
[Links (documentation, blog post, etc)]: https://tc39.es/proposal-temporal/docs/

relnote-firefox: --- → ?

Added to the Nightly relnotes.

The Nightly relnote for this was superseded by the one in bug 1946823.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: