Skip to content

Remove enable_analyzer and allow_experimental_analyzer from tests - #126194

Merged
alexey-milovidov merged 12 commits into
masterfrom
remove-enable-analyzer-from-tests
Oct 24, 2026
Merged

alexey-milovidov merged 12 commits into
masterfrom
remove-enable-analyzer-from-tests

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

The old query analysis was removed, and enable_analyzer (canonically allow_experimental_analyzer) is now an obsolete setting frozen at 1, so setting it in tests does nothing. This removes it from stateless, integration, performance and SQLStorm tests: SET statements, SETTINGS items, client options, loops over both analyzer values together with their echoed labels, and comments that explained why the setting was pinned.

It also deletes tests that only check that an obsolete setting is still accepted and does nothing: 05136_analyzer_cannot_be_disabled, 05210_analyzer_cannot_be_disabled_by_query_kind, 05292_analyzer_setting_float_value, 04312_reverse_key_obsolete_setting, 04513_orc_fast_decoder_obsolete_setting, and 05055_allow_experimental_codecs_obsolete. The test_analyzer_compatibility integration test is reduced to the one case that is still meaningful: a new initiator enables the analyzer on an old replica whose profile disables it. Tests that used enable_analyzer only as an example of a setting (04348_query_parameter_name_collides_with_setting, 05099_client_options_exact_lookup, 04078_settings_constraints_compatibility_const, 05227_storage_settings_unknown_name) now use another setting.

All changed stateless tests were run locally against a recent master build; the only failures were WebAssembly tests that fail the same way without this change in the local environment.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

🤖 Generated with Claude Code


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

Version info

  • Merged into: 26.11.1.703-master (included in 26.11 and later)

The old query analysis was removed, and `enable_analyzer` (canonically
`allow_experimental_analyzer`) is an obsolete setting frozen at `1`, so setting
it in tests does nothing. Remove it from stateless, integration, performance and
SQLStorm tests: drop `SET` statements, `SETTINGS` items, client options, loops
over both values and their echoed labels, and comments explaining why the
setting was pinned.

Tests of the obsolete setting itself are kept as they are:
`05136_analyzer_cannot_be_disabled`, `05210_analyzer_cannot_be_disabled_by_query_kind`,
`05292_analyzer_setting_float_value`, `04348_query_parameter_name_collides_with_setting`,
`04078_settings_constraints_compatibility_const`, `05099_client_options_exact_lookup`,
`03999_settings_history_baseline` and the `test_analyzer_compatibility` integration
test, which runs an old server version that still honours the setting.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [61db0c7]

Summary: ✅


AI Review

Summary

Removes obsolete enable_analyzer and allow_experimental_analyzer settings and redundant test variants. The current code addresses both prior findings by preserving mixed-version analyzer propagation coverage and replacing the setting alias example. No actionable findings remain at commit 61db0c71a36105468410e07cb68819ea16bf07a3.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-not-for-changelog This PR should not be mentioned in the changelog comp-testing Test content only (no production code). labels Oct 16, 2026
Delete the tests that only check that an obsolete setting is still accepted
and does nothing: `05136_analyzer_cannot_be_disabled`,
`05210_analyzer_cannot_be_disabled_by_query_kind`,
`05292_analyzer_setting_float_value`, `04312_reverse_key_obsolete_setting`,
`04513_orc_fast_decoder_obsolete_setting`,
`05055_allow_experimental_codecs_obsolete`, and the `test_analyzer_compatibility`
integration test.

Tests that used `enable_analyzer` only as an example of a setting now use
another one: `replication_alter_partitions_sync` (an alias of `alter_sync`) in
`04348_query_parameter_name_collides_with_setting` and
`05099_client_options_exact_lookup`, and
`output_format_json_quote_64bit_integers` (changed by `compatibility`) in
`04078_settings_constraints_compatibility_const`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
alexey-milovidov and others added 5 commits October 17, 2026 22:49
# Conflicts:
#	tests/queries/0_stateless/04518_statistics_cache_pruned_scope.sh
#	tests/queries/0_stateless/05182_prewhere_partition_statistics.sql
#	tests/queries/0_stateless/05183_readonly_statistics_cache.sh
…s_unknown_name`

`replication_alter_partitions_sync` (alias of `alter_sync`) keeps the alias-resolution case
without depending on the obsolete analyzer setting.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…yzer_compatibility`

`MultiplexedConnections::sendQuery` and `HedgedConnections::sendQuery` still mark
`allow_experimental_analyzer = 1` as changed so that an old replica with the analyzer
disabled in its profile analyzes a distributed query the same way as the initiator.
Restore a minimal test of that: only the checks of the obsolete setting itself stay removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member Author

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=126194&sha=353c8618dd7af1b378bdb2bd7670c7b9a9502578&name_0=PR&name_1=Stateless%20tests%20%28amd_debug%2C%20flaky%20check%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.

All flaky-check and targeted jobs fail with [Errno 7] Argument list too long: '/bin/bash' because this PR changes about 2900 tests, and run_tests in ci/jobs/functional_tests.py passes every changed test name on the clickhouse-test command line. The runner should pass the list through a file (or cap the number of changed tests it reruns) instead of failing the job.

@groeneai

Copy link
Copy Markdown
Collaborator

Acknowledged. I'm investigating the Argument list too long failure of the flaky-check and targeted jobs; no fix is in progress yet, so I'll follow up here with a separate PR (or my findings) shortly.

@groeneai

Copy link
Copy Markdown
Collaborator

The fix is in #126545: the flaky check and targeted check now pass the selected tests to clickhouse-test through a file (--test-list-file), and the selectors are compiled once, so the 2745 tests of this PR are selected in seconds instead of about 40 minutes. It needs can be tested to run CI.

alexey-milovidov and others added 2 commits October 20, 2026 06:10
…zer-from-tests

Conflicts were in four tests where master added comments or renamed
`exact_division_for_integers` back to `sql_compatible_division_for_integers`;
kept master's changes and dropped the `enable_analyzer` settings, as the PR intends.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Also drop the control case of `05136_merge_over_distributed_join_group_by_modifiers`
that ran the query with `enable_analyzer = 0`: the setting is frozen at `1`,
so the case duplicated the main query.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member Author

🕵 Merged master (conflicts were in four tests: 02967, 03254, 05298, 05339) and removed enable_analyzer from the 45 tests added on master since the previous merge. The red flaky-check and targeted jobs are all the same Argument list too long runner failure, so the PR's tests were never run. Thanks @groeneai: that is fixed by #126545, which is still open, so these jobs will stay red until it is merged.

shantanusharma pushed a commit to shantanusharma/ClickHouse that referenced this pull request Oct 21, 2026
`run_tests` ran the whole `clickhouse-test` command as one `bash -c`
argument with every selected test after `--`. Linux caps a single
argument at 128 KiB (MAX_ARG_STRLEN), so a PR that changes about 1,580
or more stateless tests (ClickHouse#126194: 2745 tests, 224,183 bytes of
selectors) failed every flaky-check and targeted job with
`[Errno 7] Argument list too long: '/bin/bash'` before the runner
started.

`run_tests` now writes the selection to `ci/tmp/test_list.txt` and
passes it with the new `clickhouse-test --test-list-file` option (one
selector per line, added to the positional ones; a file that lists
nothing is an error, so an empty list never means the whole suite).

`get_selected_tests` searched every selector in every suite file with
`re.search`, and `re` caches only 512 compiled patterns, so with more
selectors each call recompiled: about 41 minutes for 2745 selectors
over 17,433 files, charged to `--global_time_limit`. The selectors are
now compiled once (3.3 s for the same list, identical selection).

`Targeting.selection_args` (shell quoting for the old command line) and
its smoke case are no longer needed and are removed.

Related: ClickHouse#126194

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…zer-from-tests

Conflicts resolved by taking master's version and removing `enable_analyzer`
from it. Also removed `SET enable_analyzer = 1` from tests added on master
since the last merge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member Author

🕵 Merged master again. The conflicts were in 01881_join_on_conditions_{hash,merge,merge_decimal}, 03928, 04371 and 04650: I took the master version and removed enable_analyzer from it. I also removed SET enable_analyzer = 1 from 7 tests added on master since the previous merge (05055, 05398, 05399, 05400, 05402, 05427, 05428). The Argument list too long failure of the flaky-check and targeted jobs is fixed on master by #126545, and this merge brings that fix in, so the PR's tests should actually run in the next CI round.

…zer-from-tests

# Conflicts:
#	tests/queries/0_stateless/03580_join_runtime_filter_pushdown.sql
@alexey-milovidov alexey-milovidov self-assigned this Oct 24, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 9644aa6 Oct 24, 2026
179 checks passed
@alexey-milovidov
alexey-milovidov deleted the remove-enable-analyzer-from-tests branch October 24, 2026 01:11
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 24, 2026
alexey-milovidov pushed a commit to Onyx2406/ClickHouse that referenced this pull request Nov 1, 2026
The merge queue fast-forwards master over up to 5 merges in one push and
MasterCI runs once, for the push head. For a push, praktika read the changed
files of the head commit only (`gh api commits/{sha}`), so a job affected
only by an earlier commit of the same push was filtered as "Not affected by
the changed files and not required", and functional/integration shards
skipped themselves as "Only test files changed". At master c189bd9 (ClickHouse#128277
in `src/` + ClickHouse#128142 tests only) this skipped 95 jobs, including both
`Build (*_release_performance_reference)`, so PR performance runs based on it
fell back to the official build (`long_primary_key` +16% on amd, ClickHouse#127846).
At f760cbb all 32 builds were skipped.

Now a push event records its `before` (`_Environment.PUSH_BEFORE_SHA`), and
`GH.get_changed_file_statuses` walks first parents from the head down to it,
reading all pages of each commit's file list (`gh api --paginate`), and
unions them (the newest commit's status wins). If the files cannot all be
known - an all-zero or malformed `before` (created branch), a failed or
malformed read, a commit at GitHub's 3000-file listing limit, a walk that
does not reach `before` within 50 commits - the result is `None` with a
warning, never a partial list, and it is not cached. `store_data.py` keeps
`None` for push events, so no job is filtered by it (`Job.is_affected_by`);
before, a failed read stored `[]`, which filtered every non-required job.
Without `before` (local runs, the native orchestrator) the head-only read
is unchanged; PR, merge queue, schedule and dispatch are unchanged.

Validated locally against the real GitHub API by replaying the 404 batched
master pushes of October: the result equals the union of every pushed
commit's files (re-parsed independently, commit lists from git) on 402, and
is unknown on the 2 that contain a 3000-file commit (ClickHouse#126194, and the docs
translation ClickHouse#124860); the job filter keeps 14,871 more job-runs on 131
pushes, plus 952 test shards that self-skipped now run in full, ~+7.8% of
October's 203,420 master job-runs, including both reference builds on 106
pushes. 100 single-commit pushes give identical statuses, with one request
for heads of up to 100 files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Nov 4, 2026
`enable_analyzer` is frozen at 1 on master, and ClickHouse#126194 removed it from
the other tests. The truthy-fallback comment in 04303 said 3 rows; the
query returns 2 (`k = 0` and `k = NULL`); the 3 is the number of granules
read.

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

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.

3 participants