Build temporal in Nightly by default
Categories
(Core :: JavaScript: Standard Library, task, P3)
Tracking
()
| 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.
| Assignee | ||
Comment 1•2 years ago
|
||
I'll plan to work on this the week of August 19th.
Comment 2•2 years ago
|
||
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.
| Assignee | ||
Comment 3•2 years ago
|
||
Thank you for letting me know, I'll hold off until that is reviewed.
Updated•2 years ago
|
Comment 4•2 years ago
|
||
This should be documented at https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features.
Sebastian
| Assignee | ||
Comment 5•2 years ago
|
||
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.
Comment 6•2 years ago
|
||
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.
Comment 7•2 years ago
|
||
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.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 8•1 year ago
|
||
| Assignee | ||
Comment 9•1 year ago
|
||
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.
| Assignee | ||
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
Comment 12•1 year ago
|
||
Backed out for causing build bustages @emporalTypes.h.
| Assignee | ||
Comment 13•1 year ago
|
||
Looks like Anba is working on fixes in Bug 1936801 :)
Comment 14•1 year ago
|
||
Comment 15•1 year ago
|
||
This increased the installer size by 224KB/ 0.2%
Comment 16•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8ee9a4563357
https://hg.mozilla.org/mozilla-central/rev/7014fa357dd6
https://hg.mozilla.org/mozilla-central/rev/0ac08a13ea4b
Comment 17•1 year ago
|
||
(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.
Updated•1 year ago
|
| Assignee | ||
Comment 18•1 year ago
|
||
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.
Comment 19•1 year ago
|
||
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.
Comment 20•1 year ago
|
||
(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.
| Assignee | ||
Comment 21•1 year ago
|
||
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/
Comment 24•1 year ago
|
||
The Nightly relnote for this was superseded by the one in bug 1946823.
Description
•