Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/jobs/functional_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def run_tests(
if "--no-zookeeper" not in extra_args:
extra_args += " --zookeeper"
# Remove --report-logs-stats, it hides sanitizer errors in def reportLogStats(args): clickhouse_execute(args, "SYSTEM FLUSH LOGS")
command = f"clickhouse-test --testname --check-zookeeper-session --hung-check --memory-limit {5*2**30} --trace \
command = f"clickhouse-test --testname --check-zookeeper-session --hung-check --memory-limit {10*2**30} --trace \
--capture-client-stacktrace --queries ./tests/queries --test-runs {rerun_count} \
{extra_args} \
--queries ./tests/queries {('--order=random' if random_order else '')} -- {' '.join(tests) if tests else ''} | ts '%Y-%m-%d %H:%M:%S' \
Expand Down
6 changes: 3 additions & 3 deletions ci/jobs/scripts/clickhouse_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ def prepare_stateful_data(self, with_s3_storage, is_db_replicated):
ENGINE = CollapsingMergeTree(Sign) PARTITION BY toYYYYMM(StartDate) ORDER BY (CounterID, StartDate, intHash32(UserID), VisitID)
SAMPLE BY intHash32(UserID) SETTINGS index_granularity = 8192, storage_policy='s3_cache'"

clickhouse-client --max_execution_time 600 --max_memory_usage 25G --query "INSERT INTO test.hits SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16"
clickhouse-client --max_execution_time 600 --max_memory_usage 25G --query "INSERT INTO test.visits SELECT * FROM datasets.visits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16"
clickhouse-client --max_execution_time 1200 --max_memory_usage 25G --query "INSERT INTO test.hits SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16"
clickhouse-client --max_execution_time 1200 --max_memory_usage 25G --query "INSERT INTO test.visits SELECT * FROM datasets.visits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16"
clickhouse-client --query "DROP TABLE datasets.visits_v1 SYNC"
clickhouse-client --query "DROP TABLE datasets.hits_v1 SYNC"
else
Expand All @@ -634,7 +634,7 @@ def prepare_stateful_data(self, with_s3_storage, is_db_replicated):
fi
clickhouse-client --query "CREATE TABLE test.hits_s3 (WatchID UInt64, JavaEnable UInt8, Title String, GoodEvent Int16, EventTime DateTime, EventDate Date, CounterID UInt32, ClientIP UInt32, ClientIP6 FixedString(16), RegionID UInt32, UserID UInt64, CounterClass Int8, OS UInt8, UserAgent UInt8, URL String, Referer String, URLDomain String, RefererDomain String, Refresh UInt8, IsRobot UInt8, RefererCategories Array(UInt16), URLCategories Array(UInt16), URLRegions Array(UInt32), RefererRegions Array(UInt32), ResolutionWidth UInt16, ResolutionHeight UInt16, ResolutionDepth UInt8, FlashMajor UInt8, FlashMinor UInt8, FlashMinor2 String, NetMajor UInt8, NetMinor UInt8, UserAgentMajor UInt16, UserAgentMinor FixedString(2), CookieEnable UInt8, JavascriptEnable UInt8, IsMobile UInt8, MobilePhone UInt8, MobilePhoneModel String, Params String, IPNetworkID UInt32, TraficSourceID Int8, SearchEngineID UInt16, SearchPhrase String, AdvEngineID UInt8, IsArtifical UInt8, WindowClientWidth UInt16, WindowClientHeight UInt16, ClientTimeZone Int16, ClientEventTime DateTime, SilverlightVersion1 UInt8, SilverlightVersion2 UInt8, SilverlightVersion3 UInt32, SilverlightVersion4 UInt16, PageCharset String, CodeVersion UInt32, IsLink UInt8, IsDownload UInt8, IsNotBounce UInt8, FUniqID UInt64, HID UInt32, IsOldCounter UInt8, IsEvent UInt8, IsParameter UInt8, DontCountHits UInt8, WithHash UInt8, HitColor FixedString(1), UTCEventTime DateTime, Age UInt8, Sex UInt8, Income UInt8, Interests UInt16, Robotness UInt8, GeneralInterests Array(UInt16), RemoteIP UInt32, RemoteIP6 FixedString(16), WindowName Int32, OpenerName Int32, HistoryLength Int16, BrowserLanguage FixedString(2), BrowserCountry FixedString(2), SocialNetwork String, SocialAction String, HTTPError UInt16, SendTiming Int32, DNSTiming Int32, ConnectTiming Int32, ResponseStartTiming Int32, ResponseEndTiming Int32, FetchTiming Int32, RedirectTiming Int32, DOMInteractiveTiming Int32, DOMContentLoadedTiming Int32, DOMCompleteTiming Int32, LoadEventStartTiming Int32, LoadEventEndTiming Int32, NSToDOMContentLoadedTiming Int32, FirstPaintTiming Int32, RedirectCount Int8, SocialSourceNetworkID UInt8, SocialSourcePage String, ParamPrice Int64, ParamOrderID String, ParamCurrency FixedString(3), ParamCurrencyID UInt16, GoalsReached Array(UInt32), OpenstatServiceName String, OpenstatCampaignID String, OpenstatAdID String, OpenstatSourceID String, UTMSource String, UTMMedium String, UTMCampaign String, UTMContent String, UTMTerm String, FromTag String, HasGCLID UInt8, RefererHash UInt64, URLHash UInt64, CLID UInt32, YCLID UInt64, ShareService String, ShareURL String, ShareTitle String, ParsedParams Nested(Key1 String, Key2 String, Key3 String, Key4 String, Key5 String, ValueDouble Float64), IslandID FixedString(16), RequestNum UInt32, RequestTry UInt8) ENGINE = MergeTree() PARTITION BY toYYYYMM(EventDate) ORDER BY (CounterID, EventDate, intHash32(UserID)) SAMPLE BY intHash32(UserID) SETTINGS index_granularity = 8192, storage_policy='s3_cache'"
# AWS S3 is very inefficient, so increase memory even further:
clickhouse-client --max_execution_time 900 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits_s3 SELECT * FROM test.hits SETTINGS enable_filesystem_cache_on_write_operations=0, write_through_distributed_cache=0, max_insert_threads=16"
clickhouse-client --max_execution_time 1200 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits_s3 SELECT * FROM test.hits SETTINGS enable_filesystem_cache_on_write_operations=0, write_through_distributed_cache=0, max_insert_threads=16"

clickhouse-client --query "SHOW TABLES FROM test"
clickhouse-client --query "SELECT count() FROM test.hits"
Expand Down
41 changes: 41 additions & 0 deletions tests/broken_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,47 @@
- name: 03644_object_storage_correlated_subqueries
reason: KNOWN - Unstable in upstream 25.8.
message: Timeout! Processes left in process group
- name: 03206_no_exceptions_clickhouse_local
reason: 'KNOWN - Unstable upstream'
message: 'return code: 134'
- name: 02815_no_throw_in_simple_queries
reason: 'KNOWN - Unstable upstream'
message: 'spawn id exp5 not open'
- name: 03367_l2_distance_transposed_1
reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764
check_types:
- arm
- cpu-aarch64
- name: 03369_l2_distance_transposed_variadic
reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764
check_types:
- arm
- cpu-aarch64
- name: 03367_l2_distance_transposed_2
reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764
check_types:
- arm
- cpu-aarch64
- name: 03377_qbit_parameters
reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764
check_types:
- arm
- cpu-aarch64
- name: 03370_l2_distance_transposed_negative
reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764
check_types:
- arm
- cpu-aarch64
- name: 03375_l2_distance_transposed_partial_reads_pass
reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764
check_types:
- arm
- cpu-aarch64
- name: 03378_cosine_distance_transposed
reason: INVESTIGATE - Float precision issue on Hetzner ARM https://github.com/ClickHouse/ClickHouse/issues/96764
check_types:
- arm
- cpu-aarch64
- name: test_storage_s3_queue/test_5.py::test_migration[1-s3queue_]
reason: KNOWN - Sometimes fails due to test order
message: 'Failed: Timeout >900.0s'
Expand Down
2 changes: 2 additions & 0 deletions tests/clickhouse-test
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def get_broken_tests_rules(broken_tests_file_path: str) -> dict:
def test_is_known_fail(test_name, test_logs, build_flags, broken_tests_file_path):
matching_rules = []

test_name = test_name.replace(".gen", "") # Remove suffix from templated tests

def matches_substring(substring, log, is_regex):
if log is None:
return False
Expand Down
2 changes: 1 addition & 1 deletion tests/config/users.d/limits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ profiles:
max_execution_speed: 100G
max_execution_speed_bytes: 10T
timeout_before_checking_execution_speed: 300
max_estimated_execution_time: 600
max_estimated_execution_time: 1000
max_columns_to_read: 20K
max_temporary_columns: 20K
max_temporary_non_const_columns: 20K
Expand Down
2 changes: 1 addition & 1 deletion tests/docker_scripts/stress_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ clickhouse-client --query "CREATE TABLE test.visits (CounterID UInt32, StartDat
ENGINE = CollapsingMergeTree(Sign) PARTITION BY toYYYYMM(StartDate) ORDER BY (CounterID, StartDate, intHash32(UserID), VisitID)
SAMPLE BY intHash32(UserID) SETTINGS index_granularity = 8192, storage_policy='$TEMP_POLICY'"

clickhouse-client --max_execution_time 600 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits_s3 SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16"
clickhouse-client --max_execution_time 1000 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits_s3 SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16"
clickhouse-client --max_execution_time 600 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16"
clickhouse-client --max_execution_time 600 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.visits SELECT * FROM datasets.visits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16"

Expand Down
Loading