Repository navigation
Remove low-value integration tests - #122485
Conversation
The integration test suite often does not fit in its timeout. Many of the integration tests added since 2026-02 check rare corner cases, test the test harness or the Web UI JavaScript rather than the server, check how malformed configs are handled, or only assert that a metric, log line or setting exists. Remove 111 such test files: 107 low-value ones, plus the four `test_system_stop.py` modules for streaming engines (Kafka, NATS, RabbitMQ, S3Queue). The `test_system_stop.py` modules have some value, but together they take about 1450 s per run, which is too much for what they cover. Also remove config files and helpers used only by the removed tests, and their entries in the integration test durations table. According to CIDB (the week of 2026-09-21), the removed files take about 5.4% of the integration test time, which is about 4900 USD per week of CI cost. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Workflow [PR], commit [7fbb534] Summary: ✅ AI ReviewSummaryThis PR removes 111 integration-test modules plus their support files. A substantial subset really is CI noise, but several deleted tests are the only remaining regression coverage for restart/shutdown safety, streaming-engine background controls, and malformed-input handling on public boundaries. I do not think the current set is merge-safe as-is. Findings
Final VerdictRequest changes. LLVM Coverage ReportMeasured on commit 7fbb534.
Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage). Newly covered: +179 lines in 48 files (-3452 lines lost coverage) · Details |
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…tegration-tests Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
| return total | ||
|
|
||
|
|
||
| # The per-table verbs are parametrized over `keeper`: keeper=False exercises `StorageKafka`, keeper=True |
There was a problem hiding this comment.
Removing this drops more than a redundant SYSTEM STOP smoke test. The only surviving Kafka control coverage I can find is test_intent_sizes.py, which does one STOP/START round-trip on StorageKafka only. This file is where PAUSE, CANCEL, and one-shot REFRESH are exercised, and it is also the only place that covers the Keeper-backed StorageKafka2 durable-boundary differences (offset_guard rollback vs commit on STOP/PAUSE). Those are separate user-visible contracts, so I would keep a trimmed replacement instead of deleting the module outright.
| yield | ||
|
|
||
|
|
||
| def test_direct_read_from_inactive_table_is_not_a_logical_error(kafka_cluster): |
There was a problem hiding this comment.
This is the only regression coverage I found for direct reads from an inactive StorageKafka2 after Keeper session expiry failing with ABORTED rather than a logical error. rg only turns up the throw site in StorageKafka2::assertActive; I could not find another test that drives stream_like_engine_allow_direct_select through the inactive-table path. That is a user-facing query path, and in debug/sanitizer builds the wrong exception class aborts the server, so removing the test without a replacement seems unsafe.
| @@ -1,128 +0,0 @@ | |||
| #!/usr/bin/env python3 | |||
| # Regression tests for Coordination::ZooKeeper::sendThread request-window hazards. | |||
There was a problem hiding this comment.
Removing this leaves the sendThread exception-safety window untested. rg still finds the failpoints in ZooKeeperImpl.cpp, but I could not find another test that exercises the promise-completion guard for zk_send_thread_request_window_throw or the "increment ZooKeeperRequest only after the operations insert succeeds" invariant. If that regresses, a single Keeper request can again abort the server with a broken-promise future_error, or leak the in-flight metric indefinitely. I think this needs to stay, or move into a smaller focused test, rather than disappear entirely.
|
|
||
| # Regression test for https://github.com/ClickHouse/ClickHouse/issues/106737 | ||
| # | ||
| # A coordinated refreshable materialized view (created in a Replicated database) used to |
There was a problem hiding this comment.
This module is not covering a low-value corner case; it is the only restart-time coverage I found for coordinated refreshable materialized views on a Keeper without MULTI_READ. The remaining RMV tests do not exercise the ATTACH/restart path or the constructor-vs-scheduler feature-flag race, so deleting this reopens the class of regressions where a view re-attaches as coordinated, throws NOT_IMPLEMENTED in readZnodesIfNeeded, and the scheduler turns that into a server abort/crash-loop on startup. I would keep this coverage or replace it with an equivalent narrower restart test.
`test_iceberg_narrow_manifest_bounds` fails on every master run since ClickHouse#122679 restored its file: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=eb34e3144cb9f262e3b7dc8a6b49e0371dbac2d0&name_0=MasterCI&name_1=Integration%20tests%20%28amd_msan%2C%208%2F8%29 ClickHouse#122681 made `ManifestFileIterator::processRow` decode the bounds of only the columns the filter uses (`getMinMaxColumnTypes`). The test narrows the bound of `n` and then greps for the width guard's log line after a read filtered on `s` alone, which no longer decodes `n`, so the grep returns nothing. The CI of ClickHouse#122681 did not run this file, because ClickHouse#122485 had removed it at the time. The same change made the module's four other checks that a well-formed column in the same manifest entry keeps pruning vacuous: each filtered on the well-formed column alone, so the broken bound was never decoded and the check passed whatever the per-column fallback did. The five per-column checks now also filter on the broken column. The pruner keeps one `KeyCondition` per filter column with only that column as key, so the other column's atom is unknown and the conjunction prunes exactly as the single-column filter did; the expected counts are unchanged. Validated with two mutants that make the width guard or the inverted-pair guard drop min/max pruning for the whole entry instead of one column: each reddens the new file at exactly the checks of its own guard, while the old file's checks at those sites stay green. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This is a stricter version of ClickHouse#122485, which was reverted in ClickHouse#122679. Remove 85 integration test files. They test the integration test harness, server misconfigurations, corner cases in obscure functionality, contrived or hand-corrupted states, internal races rebuilt with failpoints, or only assert that a metric, log line or setting exists. Unlike the previous attempt, keep the tests related to data lakes (Iceberg, Delta Lake, Paimon, Hive, catalogs and their helpers, Spark), the `test_system_stop.py` tests of streaming engines, and a few other tests of real user-facing behavior. The durations table in `ci/jobs/scripts/integration_tests_configs.py` is left unchanged to avoid merge conflicts; entries for files that no longer exist are ignored. Also add guidelines against low-value integration tests to `.claude/CLAUDE.md`. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The integration test suite often does not fit in its timeout. Many of the integration tests added since 2026-02 are of low value: they check rare corner cases, test the test harness or the Web UI JavaScript rather than the server, check how malformed configs are handled, only assert that a metric, log line or setting exists, or reproduce internal races with failpoints.
This PR removes 111 such test files. They are 107 low-value tests plus the four
test_system_stop.pymodules for streaming engines (Kafka, NATS, RabbitMQ, S3Queue). Those four have some value, but together they take about 1450 s per run, which is too much for what they cover. Config files and helpers used only by the removed tests are removed too, along with their entries in the integration test durations table.Estimated savings, based on per-test durations in CIDB for the week starting 2026-09-21 and AWS on-demand prices:
Integration tests account for 40.6% of the total CI cost, so this is about 2.2% of the whole CI.
Removed test files
test_keeper_http_jemalloc/test.pytest_storage_s3_queue/test_file_iterator_lost_lock.pytest_unknown_config_option/test.pytest_parallel_replicas_alias_columns/test.pytest_refreshable_mv_no_multi_read/test.pytest_storage_kafka/test_keeper_session_loss_direct_read.pytest_executable_udf_async_metrics/test.pytest_keeper_container_nodes/test_disabled.pytest_keeper_ttl_nodes/test_disabled.pytest_http_handlers_config_error/test.pytest_refreshable_mv_watch_fault/test.pytest_rmv_access_denied_on_rename_race/test.pytest_storage_kafka/test_poll_timeout_after_assignment.pytest_phantom_parts_in_mutations/test.pytest_http_connection_socket_buffer_settings/test.pytest_intersect_or_except_kill_query/test.pytest_statistics_non_physical_upgrade/test.pytest_cluster_waiters/test_exec_in_container_detach.pytest_cluster_waiters/test_lost_network_interface.pytest_cluster_waiters/test_rabbitmq_start_retry.pytest_kafka_bad_messages/test_admin_client_helper.pytest_kafka_bad_messages/test_delete_topic_helper.pytest_prometheus_protocols/test_promqltest_loader.pytest_spark_session_recovery/test.pytest_keeper_sanitizer_logs/test.pytest_paimon_spark_smoke/test.pytest_keeper_bench_zookeeper/test.pytest_play_reconcile_startup/test.pytest_play_chart_helpers/test.pytest_docs_web_ui_links/test.pytest_hive_query/test.pytest_storage_rabbitmq/test_shutdown.pytest_e2e_catalogs/test.pytest_user_query_log_config_validation/test.pytest_user_query_log_distributed_backend/test.pytest_wasm_udf_fail_close/test.pytest_insert_deduplication_version_guard/test.pytest_thread_pool_queue_size/test.pytest_naive_bayes_xml_dictionary/test.pytest_replicated_database_active_node_taken/test.pytest_mutation_analyzer_setting/test.pytest_sql_security_analyzer_setting/test.pytest_database_hdfs_url_allowlist/test.pytest_executable_udf_profile_events/test.pytest_executable_pool_udf_profile_events/test.pytest_storage_s3_queue/test_dimensional_metrics.pytest_memory_tracker_large_allocation_trace/test.pytest_jemalloc_profiler_sampling_rate/test.pytest_jemalloc_merge_tree_arenas/test.pytest_concurrent_part_removal_threshold_for_remote_disk/test.pytest_keeper_memory_soft_limit_ratio/test.pytest_keeper_nuraft_streaming/test.pytest_keeper_slow_connection_log/test.pytest_keeper_commit_readahead_no_reset/test.pytest_parallel_table_shutdown/test.pytest_system_zookeeper_watches/test.pytest_replicated_database_system_clusters_log_level/test.pytest_filesystem_cache_eviction_metrics/test.pytest_memory_thread_stacks_metric/test.pytest_cgroup_metrics/test.pytest_insert_query_profile_events/test.pytest_keeper_watch_profile_events/test.pytest_keeper_request_total_with_subrequests/test.pytest_index_uncompressed_cache_zero_size/test.pytest_async_metrics_overload_warning/test.pytest_core_dump_size_limit/test.pytest_point_in_polygon_cache_size/test.pytest_executable_udf_driver_config_reload/test.pytest_storage_iceberg_with_spark/test_file_stats_logging.pytest_storage_iceberg_with_spark/test_manifest_read_performance.pytest_ddl_worker_stale_task_name/test.pytest_database_catalog_shutdown_system_logs/test.pytest_zookeeper_send_window_broken_promise/test.pytest_parallel_replicas_insert_select_coordinator_reuse/test.pytest_parallel_replicas_local_replica_forced_inactive/test.pytest_parallel_replicas_skip_inactive_replicas_all_groups/test.pytest_parallel_replicas_cluster_shadows_replicated_db/test.pytest_storage_iceberg_with_spark/test_lifetime_sources_bug.pytest_storage_iceberg_no_spark/test_iceberg_inverted_manifest_bounds.pytest_storage_iceberg_no_spark/test_iceberg_inverted_delete_bounds.pytest_storage_iceberg_no_spark/test_drop_partition_concurrent.pytest_broken_detached_part_quarantine/test.pytest_cache_s3_object_truncation/test.pytest_storage_log_damaged_array/test.pytest_zero_copy_drop_table_with_leftover/test.pytest_zero_copy_invalidated_system_columns/test.pytest_hypothetical_projection_estimate_writes_nothing/test.pytest_constraint_subquery_legacy_metadata/test.pytest_projection_unavailable_at_startup/test.pytest_projection_unavailable_replicated_db/test.pytest_totime_legacy_replicated_delete/test.pytest_create_dictionary_in_startup_script/test.pytest_storage_delta_shuffles/test.pytest_system_users_predicate_pushdown/test.pytest_rocksdb_backup_restore/test.pytest_storage_nats/test_nats_jetstream_credentials_rotation.pytest_nullable_tuple_subcolumns/test.pytest_named_collections_encrypted2/test_integr.pytest_drop_data/test.pytest_compatibility_readonly_constrained_setting/test.pytest_storage_iceberg_with_spark/test_local_table_safety.pytest_storage_s3/test_parquet_prewhere.pytest_native_incorrect_data_deserialization/test.pytest_concurrent_hash_join_single_join_memory_limit/test.pytest_role/test_replicated_ddl_current_roles.pytest_limit_by_transform_kill_query/test.pytest_aggregating_in_order_transform_kill_query/test.pytest_storage_kafka/test_system_stop.pytest_storage_nats/test_system_stop.pytest_storage_s3_queue/test_system_stop.pytest_storage_rabbitmq/test_system_stop.pyChangelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/122485]
Version info
26.10.1.905-master(included in26.10and later)