Skip to content

feat(canary): test Safari's ICU and time zone data, and add a Browser support page (CNRY-1) - #484

Merged
craig-o-curtis merged 6 commits into
mainfrom
feature/483-cnry-1-webkit-macos-leg
Nov 9, 2026
Merged

craig-o-curtis merged 6 commits into
mainfrom
feature/483-cnry-1-webkit-macos-leg

Conversation

@craig-o-curtis

@craig-o-curtis craig-o-curtis commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes #483.

What changed

GMT reads offsets and locale text from the host's Intl.DateTimeFormat, so a browser's answers depend on the ICU and time zone data built with it. The weekly native suite tested four legs. Its WebKit leg ran on Linux, which uses the runner's libicu74, but Safari uses Apple's ICU and the time zone data macOS and iOS ship. No leg tested the data Safari users have. This PR adds that leg, and a page that tracks the built-in Temporal in each engine.

This PR adds no function and changes no output of packages/gmt, so its changeset is empty and bumps nothing. It edits the temporalCompat README under packages/gmt, and CI's Story consistency check needs a changeset for any change under packages/.

The canary epic

  • context/canary/ holds the canary epic: its index, overview, tracker and issue files. The plan gate, the planning skills, the AGENTS.md index and scripts/deps.mjs read CNRY-* stories from there.

The leg

  • ENGINE_IDS is the one list of native-suite legs; the other lists derive from it. The polyfill swap check keeps its four legs.
  • webkit-macos refuses to run on a host that is not macOS, and webkit refuses to run on one that is. Either mismatch writes two could-not-run verdicts, so a result is never filed under another host's name.
  • The engine line reads macOS WebKit <version> · macOS <version>, so the two WebKit legs keep separate issue titles.
  • A workaround scoped to WebKit (D16, D18, D19) is removable only when both WebKit legs' verdicts say so. The trigger text, the temporalCompat README and temporal-compat.json say the same.

The workflow

  • The native-suite matrix has a macos-latest row. The system-package install (--with-deps) runs on Linux only.
  • The disk and memory trace works on Linux and macOS. A new otool -L step prints which ICU Playwright's JavaScriptCore links; it never fails the job.
  • A new test reads the workflow and checks it lists the same legs as the scripts, and runs the report job's awk parsing on the new job name.

The tags

  • Record AE: ICU4C 75 and later count every Persian year before year 0 as a leap year. addDate and subtractDate at -271820 diverge on macOS WebKit only. Shipped GMT is right, because it runs the polyfill.
  • WebKit on Linux refuses the POSIX zone ids CST6CDT, EST5EDT, MST7MDT and PST8PDT (group webkit-posix-zone-ids, filed as WebKit bug 330688). Safari on macOS 27 refuses them too, but the runner's macOS 26 accepts them, so the group names the Linux leg only. webkit-legacy-zone-ids narrows to CET, EET, MET and WET.
  • The ar-SA Islamic default calendar group, the Canada 2026 time zone data group and the JavaScriptCore divergences S and T now cover both WebKit legs.
  • The webkit-macos-* groups hold Apple's ICU locale text, each with evidence from CLDR 48.
  • The runner's time zone data predates tzdb 2026c, so the Morocco 2026 group covers the Mac leg as well. The Linux time zone group stays off the Mac leg, because the runner passes it.
  • The runner's macOS 26 gives other short Portuguese (pt-PT) weekday names than CLDR 48: one row, group webkit-macos-26-pt-pt-short-weekdays.

The changeset rule

  • Any file under packages/ needs a changeset, an empty one when nothing ships. context/coding-standards.md, AGENTS.md, the finalizer, dox-architect, /pipeline, /pr-desc and /changelog now say so, and the finalizer runs pnpm changeset:status on every story.

Review fixes

  • deps check accepts a canary story blocked by an open Dox story.
  • syntaxFloor parses once with latest first, so a source no edition parses fails at once with that error.

The page

  • The new page Temporal in every engine (/native-engines/) sits in the Migrate group, right after Helping fix Temporal. It tracks the built-in Temporal in each engine, not whether GMT runs: it opens by saying GMT ships its own Temporal and runs on every browser and runtime it lists.
  • It says which engine each browser and server runtime runs, where its data comes from, and which weekly leg tests that engine. Brave and DuckDuckGo are covered through their engine, not run by name. Chromium on Android loads a smaller ICU data file built for Android, so no leg covers it and the page lists it under No weekly run yet.
  • What GMT needs from a host is one line on Install: the ECMAScript edition it parses, Intl.DateTimeFormat with IANA time zones, and the Node engines range. No figure is typed by hand. scripts/syntax-floor.mjs measures the lowest ECMA-262 edition that parses every published entry, with a test (acorn 8.16.0, exact). gmtNodeEngines comes from engines.node.
  • Helping fix Temporal lists WebKit bug 330688, and says the Persian bug is reported on ICU's support list.
  • The wording about when host Temporal is reconsidered now names five legs.

Checks

  • Canary tests: 18 files, 809 tests pass.
  • Dox tests: 530 files, 18,293 tests pass.
  • dox check passes.
  • Dox gates at c2511df pass in Chromium and WebKit, dark and light, for /native-engines/, /install/ and /upstream/: build, frame-check, axe, tab walk, media and table-fit.
  • Firefox gates: not run locally, because Playwright's Firefox does not launch on the macOS used here ("Could not find profile folder"). They run on Linux in dox-gates-weekly.yml.
  • validate:full at 9835952: all 23 steps pass (gmt 71,610 tests, Dox 18,290).

The Mac leg in CI

  • Run 42578821204, the first on this branch, found 45 untagged host failures on webkit-macos and one stale tag. c98d050 tags them with evidence.
  • Run 42585083407 at c98d050 passes on every leg. webkit-macos ran macOS WebKit 26.6 · macOS 26.7.2 and classified 71,590 tests: 9 tagged divergences, 282 host-tagged failures, 0 untagged, 0 stale tags, 0 control-only. All five legs report 0 untagged, 0 stale and 0 control-only.

Owner notes

  • apps/dox/src/generated/syntax-floor.ts is generated by pnpm --filter dox generate, like versions.ts, and is not tracked.
  • artifacts/ is never committed.

Upstream

… support page (CNRY-1, #483)

The weekly native suite now has a fifth leg, `webkit-macos`. It runs
Playwright's WebKit on a macOS runner, so GMT is tested against the ICU and
time zone data that Safari and every iOS browser use. The Linux `webkit` leg
keeps testing the Linux distribution's ICU.

- Add `webkit-macos` to the canary scripts from one list of legs. The leg
  refuses to run on a host that is not macOS, and its engine line names the
  macOS version. The polyfill swap check keeps its four legs.
- Run the leg in `temporal-oracle.yml` on `macos-latest`, with a trace of disk
  and memory that works on macOS and a step that prints which ICU WebKit links.
- Tag what the Mac fails, sorted by cause: Apple's locale text, POSIX time zone
  ids on both WebKit legs, and record AE (ICU4C 75 and later count every
  Persian year before year 0 as a leap year).
- Add the Browser support page under Start here. It shows the syntax floor
  and the Node version from generated files, not by hand.
- Name five legs in the wording about when host `Temporal` is reconsidered.

Adds no function and changes no output of `packages/gmt`: no changeset.

@baldurpan baldurpan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read the whole diff at bdebb1c. These all check out:

  • the host guards for webkit and webkit-macos;
  • the lists derived from ENGINE_IDS;
  • the rule that both WebKit legs must agree before a workaround is removable;
  • the workflow's macOS row and the awk in the report job.

I also ran the new zone-id pattern against a Mac's JavaScriptCore: it refuses exactly EST5EDT, CST6CDT, MST7MDT and PST8PDT, and accepts CET, EET, MET and WET. That matches webkit-posix-zone-ids.

Three small things inline, none blocking:

  1. The Browser support page says DuckDuckGo on Android is covered by chromium, then lists Android System WebView as not tested.
  2. deps check rejects a canary row that is blocked by a Dox story.
  3. supportedEditions() never stops early, because acorn accepts any year.

CI: 35 checks pass and 5 were still running when I posted this. The webkit-macos leg itself has not run yet, as the description says.

Comment thread scripts/deps.mjs Resolved
Comment thread scripts/syntax-floor.mjs Resolved
…t for any change under packages/

- Browser support: the chromium leg covers desktop Chromium only. Chromium on Android
  (Chrome, Samsung Internet, DuckDuckGo, Android System WebView) loads a smaller ICU data
  file built for Android, so the page lists it as not tested.
- deps check: a canary story may be blocked by an open Dox story.
- syntax floor: one parse with `latest` decides whether any edition parses a source, so a
  source no edition parses fails at once with that parse's error.
- Changesets: any file under packages/ needs a changeset, an empty one when nothing ships,
  because CI's Story consistency check runs changeset status. The rule, AGENTS.md, the
  finalizer, dox-architect, pipeline, pr-desc and changelog now say so, and this branch
  carries an empty changeset for its workaround README edit.
baldurpan
baldurpan previously approved these changes Nov 9, 2026

@baldurpan baldurpan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All three threads are fixed in 9835952, and I checked each fix myself. I also read the rest of that push: the rule that any change under packages/ carries a changeset, an empty one when nothing ships, and the empty changeset this PR adds. That rule matches .changeset/config.json and the Dox-only PRs that merged without one.

CI was still running when I approved: 9 passed, 28 pending, none failed. The webkit-macos leg has not run yet. As the description says, its tags get reconciled with that run before merge.

…(CNRY-1, #483)

The runner (macos-26-arm64, macOS 26.7.2) has time zone data older than tzdb 2026c and older pt-PT short weekday names, and it accepts CST6CDT, EST5EDT, MST7MDT and PST8PDT. `browser-morocco-2026-tz-data` now names the Mac leg, a new `webkit-macos-26-pt-pt-short-weekdays` group tags the pt-PT row, and `webkit-posix-zone-ids` names the Linux leg only. Records WebKit bug 330688 and the icu-support thread for record AE.

@baldurpan baldurpan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read c98d050. The reconciliation matches run 42578821204 exactly. The Mac leg's artifact shows 45 untagged host failures: the 44 rows of oh-morocco.test.ts and the pt-PT row. Its one stale tag is webkit-posix-zone-ids. The new tags cover those rows and nothing more. The pt-PT reasoning also holds: the test checks the long list before the short one, so the first day of the week agrees, and only the short names differ. WebKit bug 330688 and the icu-support thread are live and say what the push records.

One thing left, on the Dox list of engine bugs. Dispatch 42585083407 at c98d050 is still running; that run shows whether the Mac leg is now clean.

Comment thread apps/dox/src/content/docs/upstream.mdx Resolved
…it beside `Helping fix Temporal`, and list WebKit bug 330688 (CNRY-1, #483)

The page tracks each engine's built-in Temporal, not GMT's support, so it leaves Start here. Install gets one line on what GMT needs from a host. Answers the review on #484: the engine list carries WebKit bug 330688, and the ICU line says the report is in.
@craig-o-curtis

Copy link
Copy Markdown
Contributor Author

Dispatch 42585083407 at c98d050 passed on every leg, webkit-macos included. The Mac leg is clean.

c2511df also changes the page this PR adds. It tracks each engine's built-in Temporal, not whether GMT runs, so:

  • it is now Temporal in every engine at /native-engines/, in the Migrate group right after Helping fix Temporal, and no longer under Start here;
  • it opens by saying GMT ships its own Temporal and runs on every browser and runtime listed;
  • what GMT needs from a host (the ECMAScript edition, Intl.DateTimeFormat with IANA zones, and the Node engines range) is now one line on Install, still from the generated values.

The DuckDuckGo and Android fixes you checked are unchanged on the renamed page.

@baldurpan baldurpan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read c2511df. The WebKit bullet is in, and so is the Persian update. The rename to Temporal in every engine is complete: there are no links left to /browser-support/, the sidebar test now expects 12 Migrate pages, and the 14 Dox test files this push touches pass at this head (669 tests).

One thing is new, on the engine page. The "No weekly run yet" section says GMT runs on older browser versions without the floor that Install sets.

@baldurpan baldurpan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving 4da30b6. Every thread I opened is answered and resolved. The engine page now gives the same host floor as Install and links to it rather than repeating the figures, and the rename to Temporal in every engine is complete.

CI was still running when I approved: 2 checks passed, 35 were pending and 1 was skipped.

@craig-o-curtis
craig-o-curtis enabled auto-merge (squash) November 9, 2026 08:59
@craig-o-curtis craig-o-curtis added enhancement New feature or request documentation Improvements or additions to documentation pipes gmt monorepo ai skills Adds AI skills, commands, context, enhancements canary Opened by a weekly canary workflow labels Nov 9, 2026

@baldurpan baldurpan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving ba54600 again. It merges main (#482) into the branch and changes nothing else. The merge is clean: its tree is the one git merge-tree builds on its own, and this PR's patch against the new base is line for line the one I approved at 4da30b6.

#482 and this PR both edit four files: AGENTS.md, .agents/finalizer.md, and the pipeline and pr-desc skills. I read them together. They don't conflict. #482's new first step in finalizer reads context/domination/tracker.md, and this PR's line about CNRY-* stories using context/canary/ throughout still covers that. #482's standing Git instructions and this PR's changeset and canary lines touch different text.

CI was still running when I approved: 2 checks passed, 35 were pending and 1 was skipped.

@craig-o-curtis
craig-o-curtis merged commit 8722c23 into main Nov 9, 2026
41 checks passed
@craig-o-curtis
craig-o-curtis deleted the feature/483-cnry-1-webkit-macos-leg branch November 9, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai skills Adds AI skills, commands, context, enhancements canary Opened by a weekly canary workflow documentation Improvements or additions to documentation enhancement New feature or request gmt monorepo pipes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CNRY-1 — Safari's ICU and time zone data in the native suite, and a browser support page

2 participants