Skip to content

Remove obsolete settings from tests - #122537

Open
rschu1ze wants to merge 11 commits into
masterfrom
remove-obsolete-settings-from-tests
Open

rschu1ze wants to merge 11 commits into
masterfrom
remove-obsolete-settings-from-tests

Conversation

@rschu1ze

@rschu1ze rschu1ze commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

Settings in the `OBSOLETE_SETTINGS` block of `src/Core/Settings.cpp`
(both `MAKE_OBSOLETE` and `MAKE_DEPRECATED_BY_SERVER_CONFIG`) have no
effect anymore, but many tests still set them via `SET`, `SETTINGS`
clauses, client command-line flags, `settings={...}` dictionaries in
integration tests, user profiles in integration and CI configs, and
performance test settings. Remove these assignments.

- `SET` / `SETTINGS` items are removed; a `SETTINGS` clause whose only
  item was obsolete is dropped entirely.
- Reference files of `-- { echo }` tests that echoed the removed
  statements are updated accordingly.
- `03008_deduplication.python` no longer sets
  `update_insert_deduplication_token_in_dependent_materialized_views`
  and no longer probes it in the diagnostics report; the reference of
  `03008_deduplication_diagnostics_opt_in` is regenerated.
- Integration test configs that only set an obsolete profile setting
  (`test_storage_s3/configs/s3_max_redirects.xml`,
  `test_storage_alias_replicated/configs/config_alias.xml`) are deleted
  together with their references in `test.py`.
- In `test_iceberg_disk_client_replacement`, the query-scoped override
  of `s3_max_redirects` (now a no-op) is replaced by
  `s3_use_adaptive_timeouts`, another setting the S3 client is built
  from, so the assertion keeps its meaning.

Settings that share their name with a `MergeTree` or server setting
(`lightweight_mutation_projection_mode`,
`merge_tree_clear_old_parts_interval_seconds`, `background_pool_size`,
`s3_retry_attempts` at the server level, and so on) are left untouched
where they are used as table or server settings. Tests whose purpose is
the obsolete setting itself (`01945_system_warnings`,
`04356_compatibility_skips_obsolete_settings`,
`05055_allow_experimental_codecs_obsolete`, the client warning `expect`
tests, `02705_settings_check_changed_flag`) are also left as is.

`enable_analyzer` / `allow_experimental_analyzer` is tier `OBSOLETE`
too, but it is still set in about 2500 tests and is handled separately.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [e1e9899]

Summary: ✅


AI Review

Summary

The PR removes obsolete setting assignments from tests, updates echoed statements and diagnostic references, and uses s3_use_adaptive_timeouts to preserve disk-client isolation coverage. Reviewed all 537 changed files at e1e9899cc29df0f20947c7f5709f43c334875435 and revalidated the five earlier review threads. No actionable findings remain; no new inline comments are needed.

Missing context / blind spots
  • ⚠️ The full CI run is still in progress. Available Praktika reports report 15,295 passed tests and no failures so far. No tests were run locally; completed CI is needed to confirm the remaining configurations.
Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Sep 27, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Sep 27, 2026
…tings-from-tests

Conflicts were caused by both sides removing adjacent obsolete `SET`/`SETTINGS` lines from the same tests; the union of both removals is kept, together with master's other changes.
# Conflicts:
#	tests/queries/0_stateless/02482_json_nested_arrays_with_same_keys.sh
The test is deliberately heavy (2M single-row async inserts) and times out
when the flaky check runs it repeatedly. Removing the obsolete
`enable_json_type` setting from it is purely cosmetic, so leave the test
as on master to keep it out of the flaky check.

https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=122537&sha=08552d341ba0f8cb66f7aef288cbf245e5905911&name_0=PR&name_1=Stateless%20tests%20%28amd_debug%2C%20flaky%20check%29
PR: #122537

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

This comment was marked as low quality.

@groeneai

Copy link
Copy Markdown
Collaborator

I checked the three failures of this run.

05023_ie_join_selectivity_condition_choice: covered by #133112. Here only the two count(), sum(...) rows of the join on the group_by_overflow_mode = 'any' subquery differ (1445 2963510 instead of 5654 18438200). On a master build with index_granularity = 22 or 7 and max_threads = 1, max_block_size = 497, the test fails without #133112 and passes with it.

ColumnMap #0: not the mechanism of #133126. No trace_log flush ran during its runs on either server (the nearest ones were at most 258 rows / 32 ms), and OSCPUWait stayed below 1 ms in every run. Every run read the same 10000 rows, and the time rose on both servers (reference 0.231 to 0.297 s). The query only reads, so my #132631 skips it: on this job's analyze/query-runs.tsv the current check flags it and the check of #132631 does not.

insert_select_squashing_dynamic #1: not covered yet. Same picture: the only trace_log flush during its runs was 829 rows / 42 ms, and OSCPUWait stayed below 1 ms. Every run inserted the same 2000000 rows into the Null table; the tested server's system CPU time went from 35 to 69 ms per run, while the reference stayed at 0.101-0.107 s. #132631 still checks it because it is an INSERT. I'll send a separate PR and link it here. Direction: flag a query only when the reference server's runs grow too. Both servers run the same test on their own tables, so a test whose runs change what the next run reads slows down on both; in 6 of the 12 failures of this check since its merge, the reference stayed under the thresholds.

If you would rather drop the check, I can revert #129330 (mine) instead.

@groeneai

Copy link
Copy Markdown
Collaborator

The separate PR for insert_select_squashing_dynamic #1 is #133241.

Two corrections to the direction I gave above:

  • The reference decides only in a PR that changes only files under tests/. Only then do both servers run the same server code; in any other PR a slowdown of the tested server alone can come from the PR itself, so those PRs are judged as before.
  • The reference has to rise by either bound (correlation above 0.8 or last run over first above 1.2), not both. Files written by earlier runs slow down both servers unevenly while the disk writes them out: with both bounds the check would catch number_formatting_formats (before Write the number_formatting_formats perf test output to /dev/null #127695) in 20% of arm_release jobs instead of 61% (CIDB, 2026-10-08 to 11-19).

On this job's query-runs.tsv with the 537 changed files of this PR, the current check fails and the new one passes. Of the 12 failures of the check since its merge, it drops only this one: the 4 others with a flat reference are in PRs that change src/.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Thanks, @groeneai. All three failures of the last run are unrelated to this tests-only PR and their fixes are open: #133112 (05023_ie_join_selectivity_condition_choice), #132631 (ColumnMap #0), and #133241 (insert_select_squashing_dynamic #1). I merged the latest master (no conflicts, PR scope unchanged) to restart CI.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 The only failure of the last run is test_text_index_upgrade/test.py::test_downgrade_after_writing_on_new_version in Integration tests (arm_binary, 1/5): cp: cannot create regular file '/usr/bin/clickhouse': Text file busy inside restart_with_original_version. It is unrelated to this tests-only PR, which touches neither test_text_index_upgrade nor helpers/cluster.py. The fix is open in #133327 and not merged yet.

Report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=122537&sha=509dfa5fe0ce873cf2f40255f9a2807ec0063563&name_0=PR&name_1=Integration%20tests%20%28arm_binary%2C%201%2F5%29

I merged the latest master (no conflicts, PR scope unchanged: 537 files) to restart CI.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 The last run (092a5cded0a8) had one real failure, unrelated to this tests-only PR: ThreadSanitizer: data race (STID: 3628-42d9) in La Casa Del Dolor (amd_tsan) — RabbitMQConnection::reconnect from StorageRabbitMQ::threadFunc racing with the looping task. The fix is open in #133632 and not merged yet. Fast test was cancelled by the infrastructure after 85 seconds (reported as dropped), so the rest of the CI did not run.

Report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=122537&sha=092a5cded0a8ede0c5ab2a798a094f10ceaccc45&name_0=PR&name_1=La%20Casa%20Del%20Dolor%20%28amd_tsan%29

I merged the latest master (no conflicts, PR scope unchanged: 537 files) to restart CI.

This branch has not been deployed

No deployments
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants