Skip to content

Fuzz more, keep CI red - #110228

Merged
PedroTadim merged 14 commits into
masterfrom
more-fuzz6
Jul 16, 2026
Merged

PedroTadim merged 14 commits into
masterfrom
more-fuzz6

Conversation

@PedroTadim

@PedroTadim PedroTadim commented Jul 13, 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):

Improve QueryFuzzer coverage of CREATE, ALTER, OPTIMIZE, DROP and lightweight mutation statements, add BuzzHouse generation of partition-value ALTERs, the Tuple combinator and new 26.7 session/server/MergeTree settings, and fix several casa_del_dolor lake-test issues.

Version info

  • Merged into: 26.7.1.1008 (included in 26.7 and later)

@clickhouse-gh

clickhouse-gh Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [1a16e68]

Summary: ✅


AI Review

Summary

This PR broadens QueryFuzzer and BuzzHouse coverage across ALTER, CHECK, Iceberg maintenance, and casa-del-dolor lake checks. The direction is good, but the current head still contains several previously-discussed mutations that collapse into guaranteed-invalid statements, so the claimed coverage gain is materially lower than intended.

Findings

⚠️ Majors

  • [dismissed by author -- https://github.com/ClickHouse/ClickHouse/pull/110228#discussion_r3586786155] [src/Client/BuzzHouse/Generator/FuzzConfig.cpp:1127] getRandomIcebergHistoryValue now returns DEFAULT on empty history for session-setting resets, but the same helper is still used for expire_snapshots timestamps and snapshot_ids. That makes empty-history cases emit expire_snapshots('DEFAULT') or snapshot_ids = [DEFAULT], both rejected before the Iceberg maintenance code is exercised.
  • [dismissed by author -- https://github.com/ClickHouse/ClickHouse/pull/110228#discussion_r3579250375] [src/Client/BuzzHouse/Generator/StatementGenerator.cpp:2028] ADD ENUM VALUES is still generated from the global enum name/id pools without filtering out members already present in the target enum column. Once a column already has labels, many of these alters immediately fail in mergeEnumTypes with duplicate-name or duplicate-value conflicts, so the new branch mostly tests rejection instead of successful enum extension.
  • [dismissed by author -- https://github.com/ClickHouse/ClickHouse/pull/110228#discussion_r3586511476] [src/Common/QueryFuzzer.cpp:2041] fuzzCodecFunction still exposes ALP and SZ3 in the untyped AST-level codec pool. That helper is reused for arbitrary CODEC(...) ASTs, including non-float columns and TTL recompression, so the new codecs often turn otherwise valid seeds into immediate BAD_ARGUMENTS failures instead of exercising codec serialization paths.
  • [dismissed by author -- https://github.com/ClickHouse/ClickHouse/pull/110228#discussion_r3586786164] [src/Common/QueryFuzzer.cpp:5336] The AST fuzzer still stacks aggregate suffixes without respecting Tuple ordering. If it adds If/ArgMin/ArgMax first and Tuple second, it wraps the trailing scalar condition/key into tuple(...) and emits unsupported *IfTuple / *ArgMinTuple shapes, so this branch still burns coverage on guaranteed semantic errors.
Final Verdict

Status: ⚠️ Request changes

  • Revisit the remaining dismissed coverage gaps above, or explicitly narrow those branches, because they still turn several of the new fuzzing paths into fixed parser/interpreter failures rather than meaningful coverage.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jul 13, 2026
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
@alexey-milovidov

Copy link
Copy Markdown
Member

Your PR was poisoned by the test 02346_text_index_bug108519_qcc_skip_index. It is fixed in master. Please update the branch.

Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
Comment thread src/Common/QueryFuzzer.cpp Resolved
@clickhouse-gh

clickhouse-gh Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 28.60% 85.90% +57.30%
Functions 39.40% 92.70% +53.30%
Branches 20.60% 78.00% +57.40%

Changed lines: Changed C/C++ lines covered: 0/4 (0.00%) · Uncovered code

Full report · Diff report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants