Skip to content

More fuzzing in CI - #128707

Merged
PedroTadim merged 9 commits into
masterfrom
more-fuzz15
Nov 10, 2026
Merged

PedroTadim merged 9 commits into
masterfrom
more-fuzz15

Conversation

@PedroTadim

@PedroTadim PedroTadim commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

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

Extended the BuzzHouse, AST fuzzer and casa_del_dolor fuzzers with more features: the TimeSeries table engine with its inner tables and the timeSeries* table functions, column and subcolumn codecs (CODEC <path> (...), MODIFY COLUMN ... CODEC, REMOVE CODEC), FirstApplicable codecs (also for marks, primary key and TTL RECOMPRESS), the GDeflate codec, SHUFFLE, INSERT ... RETURNING, S3Queue and AzureQueue after_processing move/tag and the exclusive mode, the distributed cache with SYSTEM DROP DISTRIBUTED CACHE, Iceberg compaction settings, the bucketed_metric_log system log and more HTTP request headers for url.


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

Version info

  • Merged into: 26.11.1.1900-master (included in 26.11 and later)

@clickhouse-gh

clickhouse-gh Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [627d746]

Summary: ✅


AI Review

Summary

Reviewed #128707 at 627d746aa14b42eacf73e00150ec860e8a8f3d4c. The change expands BuzzHouse, the AST fuzzer, and casa_del_dolor coverage for codecs, TimeSeries, query syntax, and configuration settings. No new inline findings remain after reviewing the current code and all prior discussion. One previously reported Keeper startup failure remains reproducible and warrants changes.

Missing context / blind spots
  • ⚠️ Current-head CI is still pending. No local ClickHouse binary or build directory was available, so C++ paths were reviewed statically; completed current-head fuzzing jobs would provide runtime evidence.
  • ⚠️ The private distributed-cache implementation is absent from this checkout. Validation of its generated registry and placement configuration requires the corresponding private build and fuzzing run.
Findings

⚠️ Majors

  • tests/casa_del_dolor/properties.py:2989 — [dismissed by author -- https://github.com/More fuzzing in CI #128707#discussion_r4453739546]. Generated Keeper configurations must permit startup, but remove_orphaned_nodes_on_startup and coordination_settings.use_lsmt_storage are still sampled independently. KeeperContext::initialize rejects enabling both at src/Coordination/KeeperContext.cpp:120, aborting the run before the fuzzing workload starts. A configuration-only audit of the actual generator with 100 seeds, two CPUs, private mode, shared catalog enabled, and keeper_settings_prob=100 produced 18 invalid node configurations out of 300, including seed 0, node 1. The finding still holds because the current normalization never excludes this unsupported combination. Disable orphan cleanup whenever the generated Keeper uses LSM storage, or sample the settings together.
Final Verdict

⚠️ Request changes — ensure generated Keepers never combine LSM storage with orphan cleanup. The existing author-resolved thread is left untouched; there are no new inline findings to submit.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Nov 2, 2026
Comment thread ci/jobs/buzzhouse_job.py Resolved
@clickhouse-gh clickhouse-gh Bot added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Nov 2, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 627d746aa with master 2170ef336 (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

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Object file sizes

6 object files changed (+70.79 KiB total), 0 added.

Object file Master PR Δ
src/CMakeFiles/clickhouse_common_io.dir/Common/QueryFuzzer.cpp.o 1.64 MiB 1.70 MiB +67.48 KiB (+4.02%)

711 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only clickhouse-bundle) and not compared.

Slowest function optimization changes (ThinLTO)

Median per-function time ratio to the master baseline: programs/clickhouse-keeper ×1.09 (each binary is linked separately, on a different machine and with different build flags); deltas below are relative to it.

Binary Function Master PR Δ vs median
programs/clickhouse DB::registerFunctionConversion(DB::FunctionFactory&) 9.1 s 19.2 s +10.1 s (+111%)
Compile time of recompiled translation units

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

Median compile-time ratio to the baselines is ×1.06 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio.
The matched translation units cost +12.5 s (+7%) in total before that adjustment.

Job report

Comment thread tests/casa_del_dolor/properties.py Resolved
Comment thread tests/casa_del_dolor/properties.py Resolved
Comment thread tests/casa_del_dolor/properties.py Resolved
Comment thread tests/casa_del_dolor/properties.py Resolved
Comment thread tests/casa_del_dolor/properties.py Resolved
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Nov 4, 2026
The same crash happens when the RETURNING query reads the inserted table
through remote() on the local shard while the bare table name in the same
query resolves to the inserted block (found by the AST fuzzer in
Stateless tests (amd_tsan, s3 storage, targeted) on ClickHouse#128707).

prefer_localhost_replica is pinned to 1: with 0, remote() sends a separate
query over TCP and the read does not share the snapshot, so the case would
not reach the defect.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
BuzzHouse/QueryFuzzer/casa_del_dolor coverage additions for the fuzzing CI
checks. Rebased onto current master and squashed; conflicts in
SessionSettings.cpp (kept both added `query_plan_*` settings) and
QueryFuzzer.cpp (kept both the PCO and GDeflate codec-level branches) resolved
by taking both sides.

PR: #128707

Co-Authored-By: Claude Opus 4.8 <[email protected]>
QueryFuzzer now generates the `GDeflate` codec, which is gated behind the
experimental `enable_gdeflate_codec` setting (default false). Enable it in the
fuzzer's users.xml tweaks, next to the other `enable_*_codec` settings, so the
fuzzed `GDeflate` codec queries are accepted instead of rejected.

PR: #128707

Co-Authored-By: Claude Opus 4.8 <[email protected]>
PedroTadim and others added 6 commits November 8, 2026 10:59
Both fuzzers:
- `FirstApplicable(...)` codecs, with `Multiple` alternatives, in column
  codecs, `default_compression_codec`, TTL `RECOMPRESS` and, in BuzzHouse,
  the marks and primary key codecs.
- `SHUFFLE` in place of `ORDER BY`, never in oracle queries; the oracle
  checker treats a query with `SHUFFLE` as non-deterministic.
- S3Queue and AzureQueue with `after_processing` `move` (prefix or another
  destination) and `tag`, with the settings these actions require.

Also new session, format and MergeTree settings in BuzzHouse, a coordinated
queue `move`/`tag` block, and the `exclusive` queue mode in the AST fuzzer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	src/Client/BuzzHouse/Generator/TableSettings.cpp
#	tests/casa_del_dolor/properties.py
# Conflicts:
#	tests/casa_del_dolor/properties.py
@PedroTadim

Copy link
Copy Markdown
Member Author

I am merging this PR without review, and I take full responsibility when someone asks why in the next reliability meeting

@PedroTadim
PedroTadim enabled auto-merge November 10, 2026 16:06
@PedroTadim
PedroTadim added this pull request to the merge queue Nov 10, 2026
Merged via the queue into master with commit c8b19e5 Nov 10, 2026
187 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants