Skip to content

Release pull request for branch 25.8 - #86119

Closed
robot-clickhouse wants to merge 1431 commits into
masterfrom
25.8
Closed

robot-clickhouse wants to merge 1431 commits into
masterfrom
25.8

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Aug 25, 2025 •

Copy link
Copy Markdown
Member

This PullRequest is a part of ClickHouse release cycle. It is used by CI system only. Do not perform any changes with it.


Note

High Risk
Large vendor/library updates (notably Expat XML parser changes plus multiple contrib dependency bumps) and socket/throttling adjustments can subtly affect parsing, memory behavior, and networking across the system.

Overview
CI/release workflow changes: Adds new ReleaseBranchCI jobs for ASan stateless tests using a distributed plan (two parallel shards plus a sequential run) and wires them into finish_workflow; also expands ci/workflows/release_branches.py to run ASan functional tests on release branches. Adds a new BackportPR pre-hook (check_backport_branch.py) to validate backport PRs (commit count range, changed files) and updates job filtering to skip all PR-workflow jobs when the PR is labeled release/release-lts.

Build/runtime & deps: Updates the bundled Expat in base/poco/XML to 2.7.3 with new allocation-tracking/limits APIs and widespread internal memory-allocation refactors, plus small Poco fixes (Exception::rethrow marked [[noreturn]], HTTPChunkedStreamBuf::isComplete made noexcept, and socket throttling now uses a fixed max blocking window). Refreshes multiple contrib build configs/versions (e.g., curl source list, ICU data to 78, libarchive 3.9.0, libxml2 2.15.1, mongo-c-driver 2.2.2, libssh sources) and improves Rust/corrosion sanitizer handling (address sanitizer support + per-sanitizer cargo metadata). Also tweaks CI docker tmpfs mounts to mode=1777 for functional tests and updates .gitmodules to use upstream OpenLDAP.

Written by Cursor Bugbot for commit d4c5834. This will update automatically on new commits. Configure here.

@robot-clickhouse robot-clickhouse added release Label for release pull request release-lts LTS release-branch (label name is hardcoded into backport automation) labels Aug 25, 2025
@clickhouse-gh

clickhouse-gh Bot commented Aug 25, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [74696ae]

Summary: ❌
15 failures out of 117 shown:

job_name test_name status info comment
Config Workflow failure
python3 ./ci/jobs/scripts/workflow_hooks/pr_description.py failure
Dockers Build (amd) dropped
Dockers Build (arm) dropped
Dockers Build (multiplatform manifest) dropped
Style check dropped
Docs check dropped
Fast test dropped
Build (arm_tidy) dropped
Build (amd_debug) dropped
Build (amd_release) dropped
Build (amd_asan) dropped
Build (amd_tsan) dropped
Build (amd_msan) dropped
Build (amd_ubsan) dropped
Build (amd_binary) dropped

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

#endif

#include "expat_config.h"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Removed expat_config.h include breaks XML parser configuration

High Severity

The #include "expat_config.h" was removed from xmlparse.cpp, but this header defines critical macros like XML_CONTEXT_BYTES (set to 1024), BYTEORDER, and HAVE_MEMMOVE. Without it, XML_CONTEXT_BYTES is undefined and treated as 0 by the preprocessor in #if XML_CONTEXT_BYTES > 0 guards, disabling input context tracking and altering buffer management behavior. The header is still included by xmlrole.c and xmltok.c, so the removal from xmlparse.cpp appears accidental during the expat upgrade.

Fix in Cursor Fix in Web

allow_statistics_optimize
allow_unrestricted_reads_from_keeper
allow_reorder_prewhere_conditions
allow_general_join_planning

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Duplicate entries in experimental settings ignore list

Low Severity

allow_reorder_prewhere_conditions already exists at line 51 and is duplicated at line 56. Similarly, allow_general_join_planning already exists at line 38 and is duplicated at line 57. These redundant entries in the newly added block suggest an oversight during merge.

Fix in Cursor Fix in Web

@mintlify

mintlify Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
ClickHouse-docs 🔴 Failed – Jul 5, 2026, 12:15 PM

tavplubix and others added 10 commits July 6, 2026 15:52
Backport #104881 to 25.8: Use explicit flag for secondary on cluster queries
Backport #104785 to 25.8: Fix duplicate `arrayJoin` execution in JOIN ON with new logical join step
Backport #108509 to 25.8: Match http_forbid_headers case-insensitively
The new auth_header validation rejects values not in 'HeaderName: HeaderValue'
format. test_database_hms/test.py exists only on 25.8 (not master), so the
original PR never updated its test_hide_sensitive_info, leaving it with an
invalid auth_header. Apply the same fix as the other catalog test files.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Backport #109389 to 25.8: Fix TSan data race in uniqExact two-level parallel merge
alexey-milovidov and others added 10 commits August 24, 2026 17:41
The tests backported with #114912 assert behavior that comes from other,
unbackported master changes:
- `04510_accurateCastOrDefault_settings`: the time-zone substitution block
  needs master's `substituteTimeZoneInDateTimeType` in `CastOverloadResolverImpl`.
- `04512_accurateCastOrDefault_nullable_target`: the `Dynamic` and
  `LowCardinality(Nullable(...))` targets need master's `canContainNull`
  check in `CastOverloadResolverImpl::getReturnTypeImpl` (25.8 still has
  `isVariant`, so `makeNullable(Dynamic)` throws ILLEGAL_TYPE_OF_ARGUMENT).

Same trim as the 26.3 backport #115536. Both trimmed tests verified locally
against this PR's own CI binary (25.8.33.1).

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115535&sha=a4fa72b7604c3af05e53398053eaa63f87bbadd9&name_0=BackportPR
PR: #115535

Co-Authored-By: Claude Fable 5 <[email protected]>
The vectorized `String = FixedString` equality on 25.8 does not ignore
the `FixedString` padding (that fix is not on this branch), so the
`arrayFilter` oracle of `04881_low_cardinality_default_value_needle`
reads 0 where master reads 1. The `LowCardinality` result itself (1)
matches master, so assert only it.

Failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115918&sha=latest&name_0=BackportPR&name_1=Stateless%20tests%20(amd_asan%2C%20distributed%20plan%2C%20parallel%2C%202%2F2)
PR: #115918

Co-Authored-By: Claude Fable 5 <[email protected]>
Backport #115704 to 25.8: Do not expose uninitialized memory in query results
Backport #114624 to 25.8: Find a LowCardinality needle equal to the type's default value
@Blargian
Blargian removed the request for review from a team August 26, 2026 13:29
robot-clickhouse and others added 16 commits August 26, 2026 14:10
…eck-25.8

Fix crash when reading malformed ZSTD-compressed ORC files (25.8)
Backport #115708 to 25.8: Bound the size of the PostgreSQL startup message
25.8 has no generic `readWKB` function — only the type-specific
`readWKBPoint`/`readWKBMultiLineString`/`readWKBMultiPolygon` — and its WKB
parser does not support `MultiPoint` (type 4). Use the type-specific
functions and drop the type-4 case; the recursion guard in
`parseWKBFormat` is still exercised through them.

Verified against the PR's CI-built binary (build_arm_release 25.8.33.1):
deep types 5/6 return `TOO_DEEP_RECURSION` (306), shallow point returns (0,0).

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=116305&sha=5728593fae5a91022eba330a711e3c84c1a80390&name_0=BackportPR
PR: #116305

Co-Authored-By: Claude Fable 5 <[email protected]>
Backport #108470 to 25.8: Hide legacy storage_* credential settings of DataLakeCatalog
Backport #115703 to 25.8: Fix crashes of the Parquet, ORC and Iceberg readers on malformed input
Backport #115700 to 25.8: Bound the recursion in several parsers and schema readers
Backport #115334 to 25.8: Do not let SET <name> = DEFAULT bypass the settings constraints
Backport #114912 to 25.8: Revert "Revert "Fix propagation of settings in `accurateCastOrDefault`""
Backport #115596 to 25.8: Fix read_rows/read_bytes/written_rows/written_bytes in system.query_thread_log
Backport #112329 to 25.8: Enforce parent table row policy in mergeTreeProjection table function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Label for release pull request release-lts LTS release-branch (label name is hardcoded into backport automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.