Skip to content

Follow-up for #110541 (reduce size of sparse grams build test) - #114148

Merged
alexey-milovidov merged 3 commits into
ClickHouse:masterfrom
UnamedRus:sparse_grams_index_build_test_fix
Aug 11, 2026
Merged

alexey-milovidov merged 3 commits into
ClickHouse:masterfrom
UnamedRus:sparse_grams_index_build_test_fix

Conversation

@UnamedRus

Copy link
Copy Markdown
Contributor

Reduce size of test, as of #110541 (comment)

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Aug 10, 2026
@alexey-milovidov alexey-milovidov self-assigned this Aug 10, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [4b8d701]

Summary: ✅


AI Review

Summary

This PR shrinks tests/performance/sparse_grams_index_build.xml so the text(tokenizer = sparseGrams(3, 8)) build query stays under perf.py's 15-second per-query timeout, and it pins the measured queries to max_threads = 1 for less noisy timings. I did not find a correctness or benchmark-contract issue in the current diff, so I have no inline findings to post.

Missing context / blind spots
  • ⚠️ The current PR CI did not rerun the Performance Comparison shards with measurements because those jobs are skipped without the pr-performance label, so the claim that the new 30k-row sg_text_3_8 workload now fits comfortably under the timeout is not backed by a fresh artifact on this PR head.
Final Verdict

✅ No blocking review findings.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Aug 10, 2026
alexey-milovidov and others added 2 commits August 11, 2026 12:14
With 150k rows and `max_threads = 1`, `INSERT INTO sg_text_3_8 SELECT s FROM sg_src`
takes ~30 s and is killed by the 15 s `max_execution_time` that `perf.py` sets
(`Code: 159. DB::Exception: Timeout exceeded: elapsed 16081.223 ms, maximum: 15000 ms`),
failing the whole test. Building the `text` index is ~25x more expensive than the
`sparse_grams` bloom index, so insert a 30k-row subset for that query only (~6 s),
keeping single-threaded execution for stable measurements.

Report: https://s3.amazonaws.com/clickhouse-test-reports/PRs/114148/a1782d700dde22c875c24734daf4a3d9b8b8ce49/performance_comparison_arm_release_master_head_6_6/report.html
PR: ClickHouse#114148

Co-Authored-By: Claude Fable 5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 The Performance Comparison failure was caused by this test itself: with 150k rows and max_threads = 1, INSERT INTO sg_text_3_8 SELECT s FROM sg_src takes ~30 s and is killed by the 15 s max_execution_time that perf.py sets (Code: 159. DB::Exception: Timeout exceeded: elapsed 16081.223 ms, maximum: 15000 ms — see the report). Building the text index is ~25x more expensive than the sparse_grams bloom index, so I pushed a commit that inserts a 30k-row subset for that query only (~6 s per run), keeping max_threads = 1 for stable measurements, and merged the current master. The remaining red entries in that job (jit_aggregate_functions, polymorphic_parts_*, tpch-join_algorithm-partial_merge-fixed-str) are unrelated noise/flakes.

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Aug 11, 2026
Merged via the queue into ClickHouse:master with commit 3fc16bb Aug 11, 2026
180 checks passed
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors 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.

3 participants