Skip to content

Revert "Correct nightly coverage selection and share PR test manifests" - #122110

Merged
alexey-milovidov merged 1 commit into
masterfrom
revert-118223-nightly-coverage-test-selection
Sep 24, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
revert-118223-nightly-coverage-test-selection

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

@alexey-milovidov alexey-milovidov self-assigned this Sep 24, 2026
@alexey-milovidov
alexey-milovidov merged commit 42bb6b6 into master Sep 24, 2026
1 check failed
@alexey-milovidov
alexey-milovidov deleted the revert-118223-nightly-coverage-test-selection branch September 24, 2026 22:17
@clickhouse-gh

clickhouse-gh Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [76f509e]

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Sep 24, 2026
@clickhouse-gh
clickhouse-gh Bot requested review from leshikus and maxknv September 24, 2026 22:18
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)
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 25, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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