Repository navigation
Revert "Correct nightly coverage selection and share PR test manifests" - #122110
Merged
alexey-milovidov merged 1 commit intoSep 24, 2026
Merged
Conversation
alexey-milovidov
deleted the
revert-118223-nightly-coverage-test-selection
branch
September 24, 2026 22:17
Contributor
fm4v
added a commit
that referenced
this pull request
Sep 25, 2026
The snapshot query counted `uniqExact(test_name)` over the whole 14-day window of `checks_coverage_lines`: 3.5 billion rows and 57 GB, about 6 s on an idle server. Every targeted stateless job of every PR runs it, so while the per-test coverage export was inserting (2026-09-24 18:00-20:00 and 2026-09-25 02:00-04:00 UTC) it exceeded the 60 s timeout on all five attempts. 190 of the 199 "Failed to load test selection" errors since the selector was merged were this query, and as `Stateless tests (amd_asan_ubsan, db disk, distributed plan, targeted)` is a core blocking job, each of them skipped the rest of the PR pipeline. This is why #118223 was reverted in #122110. Now the distinct `check_start_time` values of the window are listed first (only that column is read, about 0.3 s), and exported tests are counted for the newest three timestamps at a time, filtered by the primary key, until every shard has `coverage_run_count` healthy snapshots. On live CIDB data the result is identical to the old query at every cutoff tried, and it reads 6-10 GB of `test_name` instead of 57 GB, in 1.4-2.3 s instead of about 6 s. Example failure: https://s3.amazonaws.com/clickhouse-test-reports/PRs/122067/925c788e633f3e3fd2f31f3cd68b916ceb728a3e/pr/stateless_tests_arm_asan_ubsan_targeted/job.log (#122067)
groeneai
added a commit
to groeneai/ClickHouse
that referenced
this pull request
Sep 26, 2026
…est-selector Master reverted ClickHouse#118223 in ClickHouse#122110, and this branch was built on top of it: - ci/jobs/scripts/test_selection_smoke.py: deleted on master, modified here. Take the deletion. The two selector checks that were added to it go with the file; nothing on master runs a unit suite for find_tests.py. - ci/jobs/scripts/find_tests.py: merged cleanly as text, but selection_pattern called selection_test_name, which the revert removed. The name is now normalized in selection_pattern itself: normalize_stateless_test_name for the .gen / .gen.sql report names, then the trailing dot, then one file extension, because per-test coverage names a test by its case file name (00001_x.sql). Re-validated on the merged tree: every one of the 15,747 stateless test sources is selected alone by its selector, from every name shape a producer emits (X., X, X.gen, X.gen.sql, X<ext>), through the real run_tests command line, bash, and the tests/clickhouse-test matcher. Without the extension strip all 15,558 coverage-shaped names would select nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #118223
https://pastila.nl/?cafebabe/fca2afd9a44d2bff0bea387371dfae04.claude.jsonl#Mn+8Qc0G3keSaTRqvSYpSQ==
Workflow [PR]
Sync PR [sync-upstream/pr/122110]
Version info
26.10.1.638-master(included in26.10and later)