Skip to content

Add tests for reverted PR - #106342

Merged
Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:revert_test
Jun 3, 2026
Merged

Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:revert_test

Conversation

@Algunenano

@Algunenano Algunenano commented Jun 2, 2026 •

Copy link
Copy Markdown
Member

Add tests that detect that #98883 (reverted in #106277) broke some queries

Closes #106095

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):

...

Version info

  • Merged into: 26.6.1.358

@clickhouse-gh

clickhouse-gh Bot commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [7b771fd]

Summary: ✅


AI Review

Summary

This PR adds two stateless regression tests for the ColumnReplicated sorting exception reported in issue 106095, covering both the parallel-replicas reproducer and the direct lazy column replication path. The second test pins the important execution path, but the first one can pass under randomized stateless settings without exercising the intended parallel-replicas plus read-in-order path, so I am requesting a small test hardening change.

Missing context / blind spots
  • ⚠️ CI for commit 7b771fd2bb5c3048f2fe241816f8324e7868bae7 was still pending, and the S3 PR report had no populated test results when reviewed. A completed stateless run would close this gap.
  • ⚠️ I could not run the new stateless tests locally because this checkout has no ClickHouse binary or build directory.
Findings
  • ⚠️ Major: [tests/queries/0_stateless/04304_lazy_crash_1.sql:6] The test promises regression coverage for the parallel-replicas plus read-in-order path, but it leaves randomized settings unpinned. clickhouse-test can run with optimize_read_in_order = 0 and automatic_parallel_replicas_mode = 2, so the query can pass without using either half of the reproducer. Merges are also left enabled, so the three tiny inserted parts can be merged before read_in_order_two_level_merge_threshold = 2 matters. Pin automatic_parallel_replicas_mode = 0 and optimize_read_in_order = 1, and add SYSTEM STOP MERGES test after creating test, matching the hardening already used in 04304_lazy_crash_2.sql.
Tests
  • ⚠️ The intended regression coverage is insufficient until 04304_lazy_crash_1.sql forces the execution path it is meant to protect. CI was pending, so there is not yet external evidence that the new tests pass after that hardening.
Final Verdict

Status: ⚠️ Request changes

Minimum required action: harden 04304_lazy_crash_1.sql by pinning the randomized settings and preventing background merges before the repro query.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jun 2, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.40% 84.40% +0.00%
Functions 92.40% 92.40% +0.00%
Branches 77.00% 77.00% +0.00%

Changed lines: No C/C++ source files changed — skipping uncovered code analysis.

Newly covered by added/modified tests: 331 line(s), 27 function(s) across 111 file(s) · Details

Top files
  • src/AggregateFunctions/TimeSeries/AggregateFunctionTimeSeriesGroupArray.h: 14 line(s), 8 function(s)
  • src/Storages/Statistics/ConditionSelectivityEstimator.cpp: 11 line(s), 2 function(s)
  • src/Common/ZooKeeper/ZooKeeperImpl.cpp: 11 line(s)
  • src/Databases/DatabaseFactory.cpp: 11 line(s)
  • src/Common/ZooKeeper/ZooKeeper.cpp: 8 line(s), 2 function(s)

Full report

@Algunenano
Algunenano added this pull request to the merge queue Jun 3, 2026
Merged via the queue into ClickHouse:master with commit 788fa15 Jun 3, 2026
166 checks passed
@Algunenano
Algunenano deleted the revert_test branch June 3, 2026 18:19
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 3, 2026
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.

Logical error: Bad cast from type A to B (STID: 3336-2f87)

2 participants