Skip to content

Tests: close measured llvm-coverage gaps (batch 2) - #119970

Merged
alexbakharew merged 4 commits into
masterfrom
abakharew/llvm-agent-tests-2
Sep 24, 2026
Merged

alexbakharew merged 4 commits into
masterfrom
abakharew/llvm-agent-tests-2

Conversation

@alexbakharew

@alexbakharew alexbakharew commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

Test-only PR: 10 new stateless tests closing measured coverage gaps (second batch, follow-up to #117922).

Every test targets lines with zero hits in the master llvm coverage report. Each was verified under the llvm-coverage-instrumented CI build: running only the new test executes the targeted lines (hit counts below). Headers of each test explain the covered behaviour in plain language.

Test Target Targeted lines hit
05212_compression_codec_zstd_long_range_mode CompressionCodecZSTD.cpp — ZSTD long-range window mode 26/26
05213_compression_codec_parameter_errors codec parameter validation error paths measured
05214_functions_type_error_branches FunctionsStringSimilarity.h + FunctionMathBinaryFloat64.h error branches 12/12
05215_h3_to_center_child_error_branches h3ToCenterChild argument/resolution error branches measured
05216_mergetree_minmax_topk_handle_ties MergeTreeIndexMinMax.cpp getTopKMarks with handle_ties 15/15
05217_mutation_datetime_reversed_and_in_clause MutationsDateTimeLiteralVisitor.cpp — reversed comparisons and IN clauses in mutations 40/45
05218_analyzer_window_node_dump_tree Analyzer/WindowNode.cpp dump branches 19/19
05219_analyzer_interpolate_node_dump_tree Analyzer/InterpolateNode.cpp dump branches 7/7
05220_analyzer_query_tree_pass_manager Analyzer/QueryTreePassManager.cpp 16/16
05221_top_k_through_join_n_guards QueryPlan/Optimizations/topKThroughJoin.cpp guard returns 4/4

Conventions applied (from the review of #117922): tests are new files (no modifications to existing tests), analyzer-path sensitive queries pin enable_analyzer, no SYSTEM DROP without tags, ICU-dependent features tagged no-fasttest.

🤖 Generated with Claude Code


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

Version info

  • Merged into: 26.10.1.594-master (included in 26.10 and later)

…s, Analyzer, QueryPlan

Second agent-generated batch. Each test targets lines with zero hits in
the master llvm coverage report, verified under the instrumented build
(per-line hit counts in the PR description). All tests: deterministic,
validated with and without settings randomization (20 runs), style
check clean, behaviour documented in the header comment.

Co-Authored-By: Claude Fable 5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [5fcd0d6]

Summary: ✅


AI Review

Summary

This PR adds 10 new 0_stateless coverage tests across compression codecs, function/type validation, MergeTree top-K tie handling, mutation timezone rewriting, analyzer dump paths, and topKThroughJoin guard branches. I reviewed the current diff and all prior discussion; the current revision fixes the earlier determinism and observability gaps in 05216 and 05217, and I did not find a new correctness, flakiness, or contract gap that warrants another inline review comment.

Final Verdict

✅ No new findings in the current revision.

LLVM Coverage Report

Measured on commit 5fcd0d6.

Metric Baseline Current Δ
Lines 88.10% 88.10% +0.00%
Functions 91.70% 91.70% +0.00%
Branches 79.40% 79.40% +0.00%

Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage).

Newly covered: +321 lines in 56 files (-115 lines lost coverage) · Details

Full report

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Sep 14, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Sep 14, 2026
@alexbakharew alexbakharew added ci-force-all Do not skip any jobs when running and removed ci-coverage labels Sep 14, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Commit 5fcd0d666d0cf7af31092ddab4d41517376f6a08 was not compared: the CI logs cluster did not answer (every POST attempt failed with an exception).

See the job log for details.

CI randomizes query_plan_max_limit_for_top_k_optimization (down to 1,
which makes tryOptimizeTopK bail out for LIMIT 5 and drops the
"Filter TopK Granules" plan step the test asserts), plus
use_top_k_dynamic_filtering and skip-index settings. Pin them all in
the per-query SETTINGS. Verified: reference matches under default and
adversarial settings.

Co-Authored-By: Claude Fable 5 <[email protected]>
… in 05217

- 05216: add id tie-breaker queries whose correct answer lives in the
  LAST tied granules (ORDER BY v ASC, id DESC LIMIT 5 -> 199..195; a
  regression keeping only the first n*index_granularity granules would
  return 79..75). Same for the DESC direction and the multi-column
  scenario. The top-k cap was already pinned in 278c82a.
- 05217: session_timezone = 'America/Denver' (non-server timezone).
  Verified the contract is observable: without the visitor's literal
  wrapping the same DELETE removes all rows instead of rows 2-3.
  Reference output is wall-clock stable.

Co-Authored-By: Claude Fable 5 <[email protected]>
@alexbakharew
alexbakharew marked this pull request as ready for review September 23, 2026 20:07
@alexbakharew
alexbakharew added this pull request to the merge queue Sep 24, 2026
Merged via the queue into master with commit 845c709 Sep 24, 2026
347 of 349 checks passed
@alexbakharew
alexbakharew deleted the abakharew/llvm-agent-tests-2 branch September 24, 2026 10:22
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-force-all Do not skip any jobs when running comp-testing Test content only (no production code). pr-not-for-changelog This PR should not be mentioned in the changelog 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