Skip to content

Bump cctz to tzdata 2026c - #116539

Merged
alexey-milovidov merged 3 commits into
masterfrom
bump-cctz-2026c
Aug 28, 2026
Merged

alexey-milovidov merged 3 commits into
masterfrom
bump-cctz-2026c

Conversation

@thevar1able

@thevar1able thevar1able commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Use cctz tzdata 2026c.


Workflow [PR]
Sync PR [sync-upstream/pr/116539]

Version info

  • Merged into: 26.9.1.290 (included in 26.9 and later)
  • Backported to: 26.8.8.8, 26.7.12.8, 26.3.33.114

Update the `cctz` submodule from upstream `1f2268a` (tzdata 2025a) to
`e2e62f3` (tzdata 2026c), rebasing the three ClickHouse patches on top:

- `Remove dependency on CoreFoundation library`
- `Prevent arbitrary file open while loading timezone`
- `Fix -Wchar-subscripts warning on illumos.`

All three are still needed: upstream's own `UnsafePath` (added after the
2026c update) only rejects `..` path components, not absolute paths or
`~`; `time_zone_lookup.cc` still pulls in `CoreFoundation` on Apple; and
`days_per_month` still indexes `k_days_per_month` with a `month_t`.

The new timezone `America/Coyhaique` is picked up automatically -
`contrib/cctz-cmake/CMakeLists.txt` generates the embedded tzdata list
from `contrib/cctz/testdata/zoneinfo` at configure time, so no build file
changes are required. The only new upstream source file,
`src/time_zone_name_win.cc`, is Windows-only and stays out of `SRCS`.
@evillique evillique self-assigned this Aug 26, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [454db31]

Summary: ✅


AI Review

Summary

This PR moves the contrib/cctz gitlink from c2ba12b to 8e694da and updates the bundled tzdata from 2025a to 2026c, but the new submodule SHA is a broader ClickHouse/2026c branch snapshot rather than the single upstream 2026c data commit. That pulls in extra cctz code changes and even a new platform-specific source file without matching ClickHouse-side integration or evidence, so I do not think this is ready as a narrowly-scoped tzdata bump.

Missing context / blind spots
  • ⚠️ The only Praktika artifact linked from this PR is Build profile diff; I did not have a ClickHouse build/test report that exercises the vendored cctz code on the current SHA. A normal build plus timezone-focused tests would close that gap.
Findings

⚠️ Majors

  • [contrib/cctz:1] The PR contract says "Use cctz tzdata 2026c", but the gitlink actually switches the submodule onto a different branch snapshot that also changes cctz code (src/time_zone_lookup.cc, src/time_zone_format.cc, src/time_zone_name_win.*). ClickHouse uses this library in DateLUT, settings validation, and Arrow timezone normalization, so this is a broader behavior change than the title/body/changelog claim.
    Suggested fix: either pin the pure tzdata update commit (e2e62f3) or keep 8e694da and update the PR description/changelog, ClickHouse-side cctz integration, and evidence accordingly.
Tests
  • ⚠️ If we keep 8e694da instead of the pure tzdata commit, please add or point to focused evidence that the wider cctz snapshot still works in ClickHouse: at minimum a build that exercises the vendored library plus timezone coverage such as the existing DateLUT / timezone tests.
Final Verdict

Status: ⚠️ Request changes

  • Either reduce the submodule bump to the actual tzdata 2026c commit, or treat this as a wider cctz upgrade by updating the ClickHouse integration and providing build/test evidence for the extra behavior changes.

@clickhouse-gh clickhouse-gh Bot added pr-build Pull request with build/testing/packaging improvement submodule changed At least one submodule changed in this PR. labels Aug 26, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 454db313c with master 9d8eed34c (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes
Binary Master PR Δ
programs/clickhouse-stripped 711.97 MiB 708.91 MiB -3.05 MiB (-0.43%)

Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction.

Compile time of recompiled translation units

25 translation units recompiled, 73 s compile time in total, 25 of them have a recent master baseline.

Job report

Comment thread contrib/cctz Resolved
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Aug 28, 2026
Merged via the queue into master with commit 6c5b5aa Aug 28, 2026
354 of 356 checks passed
@alexey-milovidov
alexey-milovidov deleted the bump-cctz-2026c branch August 28, 2026 21:41
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 28, 2026
@den-crane

Copy link
Copy Markdown
Contributor

@evillique evillique added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Sep 18, 2026
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Sep 18, 2026
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Sep 18, 2026
clickhouse-gh Bot pushed a commit that referenced this pull request Sep 18, 2026
clickhouse-gh Bot added a commit that referenced this pull request Sep 18, 2026
Backport #116539 to 26.8: Bump `cctz` to tzdata 2026c
alexey-milovidov added a commit that referenced this pull request Sep 18, 2026
Backport #116539 to 26.3: Bump `cctz` to tzdata 2026c
PedroTadim added a commit that referenced this pull request Sep 19, 2026
Backport #116539 to 26.7: Bump `cctz` to tzdata 2026c
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Sep 25, 2026
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-build Pull request with build/testing/packaging improvement pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants