Skip to content

fix: Update tzdb to 2026e for the Canadian DST changes (backport #12466 to v1.6) - #12471

Merged
waralexrom merged 2 commits into
lts/v1.6from
deps-bump-tzdb-lts-v1.6
Oct 29, 2026
Merged

waralexrom merged 2 commits into
lts/v1.6from
deps-bump-tzdb-lts-v1.6

Conversation

@waralexrom

Copy link
Copy Markdown
Member

Summary

Backport of #12466 to lts/v1.6. tzdb 2026b–2026e cancel the November 1, 2026 fall-back for British Columbia, Alberta, Inuvik (NWT) and Manitoba; with the bundled 2025b data every conversion in America/Vancouver, America/Edmonton, America/Inuvik and America/Winnipeg after 2026-11-01 is an hour off.

Fixes #12431 for 1.6.

Changes

Same as #12466:

  • moment-timezone → ^0.6.5 in schema-compiler, api-gateway and backend-shared, plus a resolutions entry in the root and cubejs-docker package.json so snowflake-sdk no longer loads a 0.5.x copy that replaces moment.tz on the shared moment instance.
  • [patch.crates-io] with the cube-js/chrono-tz fork pinned by rev in every Rust workspace: 0.10.4 for Tesseract, Cube Store (its direct 0.8.2 is bumped to 0.10.4) and pg-srv, 0.6.3 for the arrow 13 fork under CubeSQL. Drops CubeSQL's unused direct chrono-tz dependency.
  • Regression tests for date range bounds, Tesseract QueryDateTime and Cube Store CONVERT_TZ_KSQL.

Differences from master: the schema-compiler test uses the 1.6 test helpers (compilers.compiler.compile(), new PostgresQuery(...)); lockfiles are regenerated from lts/v1.6.

Testing

  • yarn tsc is clean; base-query.test (121), backend-shared time/timezone, api-gateway date tests pass.
  • After loading snowflake-sdk, moment.tz.dataVersion stays 2026e.
  • cubesqlplanner --lib (1075), pg-srv (35), CubeSQL timestamp/timezone tests, Cube Store streaming tests (18) pass; cubejs-backend-native builds.
  • The node:22.23.4-bookworm-slim base image already ships ICU tzdb 2026e.

🤖 Generated with Claude Code

@waralexrom
waralexrom requested review from a team as code owners October 28, 2026 15:43
@github-actions github-actions Bot added cube store Issues relating to Cube Store rust Pull requests that update Rust code javascript Pull requests that update Javascript code labels Oct 28, 2026
@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.19%. Comparing base (7f7a59e) to head (4d79237).
⚠️ Report is 11 commits behind head on lts/v1.6.

Additional details and impacted files
@@              Coverage Diff              @@
##           lts/v1.6   #12471       +/-   ##
=============================================
+ Coverage     58.89%   79.19%   +20.29%     
=============================================
  Files           225      482      +257     
  Lines         17950    97651    +79701     
  Branches       3664     3667        +3     
=============================================
+ Hits          10571    77330    +66759     
- Misses         6854    19796    +12942     
  Partials        525      525               
Flag Coverage Δ
cube-backend 58.91% <ø> (+0.02%) ⬆️
cubesql 83.76% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

… to v1.6)

tzdb 2026b-2026e cancel the November 1, 2026 fall-back for
America/Vancouver, Edmonton, Inuvik and Winnipeg. The bundled tz databases
predated that, so every conversion in these zones after 2026-11-01 was an
hour off (e.g. date range bounds in both planners).

- moment-timezone 0.5.48 -> 0.6.5 (tzdb 2026e), deduped through
  `resolutions` so snowflake-sdk no longer loads a 0.5.x copy that takes
  over `moment.tz` on the shared moment instance.
- chrono-tz has no release with 2026 data, so every Rust workspace patches
  it with the cube-js/chrono-tz fork pinned by rev: 0.10.4 for Tesseract,
  Cube Store and pg-srv, 0.6.3 for the arrow 13 fork under CubeSQL.
- Regression tests for date range bounds, Tesseract QueryDateTime and
  Cube Store CONVERT_TZ_KSQL.

Fixes #12431

(cherry picked from commit b837c02)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@waralexrom
waralexrom force-pushed the deps-bump-tzdb-lts-v1.6 branch from 046500d to 10fc87d Compare October 29, 2026 15:16
The host refuses the download with 403 Forbidden.
`table_partition_split_threshold` generates the file locally, since the
location only ever contributed its size. `create_table_with_url` serves the
CSV from a listener the test owns, so the HTTP import path stays covered.

Test-only part of fe263b9 (#11786); its websocket logging change is not
backported.

(cherry picked from commit fe263b9)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@waralexrom
waralexrom merged commit 26b4813 into lts/v1.6 Oct 29, 2026
184 of 187 checks passed
@waralexrom
waralexrom deleted the deps-bump-tzdb-lts-v1.6 branch October 29, 2026 17:52
@hank-sq

hank-sq commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

🤖 Thanks for merging the 1.6 backport! Could you please cut a 1.6 LTS release containing this fix as soon as possible, including the npm packages and Docker image?

The affected Canadian zones will not fall back on November 1, 2026, so we need time to validate and roll out the release before that deadline. We are currently on 1.6.69 and cannot move to 1.7+ yet because of the numeric REST serialization change.

Could you share an ETA for the release? Getting this published ahead of November 1 would be greatly appreciated.

ovr pushed a commit that referenced this pull request Nov 9, 2026
… to v1.4)

Backport of #12466 / #12471 to lts/v1.4. tzdb 2026b–2026e cancel the
November 1, 2026 fall-back for British Columbia, Alberta, Inuvik (NWT)
and Manitoba; with the bundled 2025b data every conversion in
America/Vancouver, America/Edmonton, America/Inuvik and America/Winnipeg
after 2026-11-01 is an hour off.

Fixes #12431 for 1.4.

- moment-timezone → ^0.6.5 (resolves to 0.6.6, tzdb 2026f) in
  schema-compiler, api-gateway and backend-shared, plus a `resolutions`
  entry in the root and cubejs-docker package.json so snowflake-sdk
  does not load a 0.5.x copy that replaces moment.tz on the shared
  moment instance.
- `[patch.crates-io]` with the cube-js/chrono-tz fork (0.10.4) pinned by
  rev in every Rust workspace; Tesseract, Cube Store and pg-srv move to
  chrono-tz 0.10.4. Drops CubeSQL's unused direct `chrono-tz` 0.6
  dependency.
- Regression tests for date range bounds, Tesseract QueryDateTime and
  Cube Store CONVERT_TZ_KSQL.

Differences from lts/v1.6: no `rust/cube` workspace here, so the patch
goes into `rust/cubesqlplanner/Cargo.toml`; the arrow fork on this
branch does not depend on chrono-tz, so the 0.6.3 fork patch is not
needed; Cube Store's chrono moves 0.4.20 → 0.4.45 (required by
chrono-tz 0.10); the unrelated Cube Store test-fixture changes
(local CSV server) are not included. Lockfiles regenerated from
lts/v1.4.

(cherry picked from commit 26b4813)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cube store Issues relating to Cube Store javascript Pull requests that update Javascript code rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

⌂ Proxy