Repository navigation
Remove enable_analyzer and allow_experimental_analyzer from tests - #126194
Conversation
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]>
|
Workflow [PR], commit [61db0c7] Summary: ✅
AI ReviewSummaryRemoves obsolete Final VerdictStatus: ✅ Approve |
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]>
# 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
Removing the `enable_analyzer` line left an empty line that is now echoed. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=126194&sha=353c8618dd7af1b378bdb2bd7670c7b9a9502578&name_0=PR&name_1=Stateless%20tests%20%28amd_debug%2C%20parallel%29 #126194 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…was created Co-Authored-By: Claude Opus 5.5 <[email protected]>
…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]>
|
🕵 @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 |
|
Acknowledged. I'm investigating the |
|
The fix is in #126545: the flaky check and targeted check now pass the selected tests to |
…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]>
|
🕵 Merged |
`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]>
|
🕵 Merged |
…zer-from-tests # Conflicts: # tests/queries/0_stateless/03580_join_runtime_filter_pushdown.sql
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]>
`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]>
The old query analysis was removed, and
enable_analyzer(canonicallyallow_experimental_analyzer) is now an obsolete setting frozen at1, so setting it in tests does nothing. This removes it from stateless, integration, performance and SQLStorm tests:SETstatements,SETTINGSitems, 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, and05055_allow_experimental_codecs_obsolete. Thetest_analyzer_compatibilityintegration 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 usedenable_analyzeronly 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):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/126194]
Version info
26.11.1.703-master(included in26.11and later)