Commit Graph

149502 Commits

Author SHA1 Message Date
Azat Khuzhin
ef7d12db66 tests: change the process group earlier to avoid killing self
Previously it was possible to have original pgid from the spawned
threads, that could lead to killing the caller script and in case of CI
it could be init process [1].

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/67737/e68c9c8d16f37f6c25739076c9b071ed97952269/stress_test__asan_/stress_test_run_21.txt

Repro:

    $ echo "SELECT '1" > tests/queries/0_stateless/00001_select_1.sql # break the test
    $ cat /tmp/test.sh
    ./tests/clickhouse-test 0001_select --test-runs 3 --max-failures-chain 1 --no-random-settings --no-random-merge-tree-settings

Before this change:

    $ /tmp/test.sh
    Using queries from '/src/ch/worktrees/clickhouse-upstream/tests/queries' directory
    Connecting to ClickHouse server... OK
    Connected to server 24.8.1.1 @ bef896ce143ea4e0464c9829de6277ba06cc1a53 mt/rename-without-lock-v2
    Running 3 stateless tests (MainProcess).
    00001_select_1:                                                         [ FAIL ]
    Reason: return code:  62
    Code: 62. DB::Exception: Syntax error: failed at position 8 (''1;
    '): '1;
    . Single quoted string is not closed: ''1;
    '. (SYNTAX_ERROR)

    , result:

    stdout:

    Database: test_hz2zwymr
    Child processes of 13041:
    13042 python3 ./tests/clickhouse-test 0001_select --test-runs 3 --max-failures-chain 1 --no-random-settings --no-random-merge-tree-settings
    Killing process group 13040
    Processes in process group 13040:
    13040 -bash
    13042 python3 ./tests/clickhouse-test 0001_select --test-runs 3 --max-failures-chain 1 --no-random-settings --no-random-merge-tree-settings

    [2]+  Stopped                 /tmp/test.sh
    [1]$ Process group 13040 should be killed
    Max failures chain

    [2]+  Killed                  /tmp/test.sh

After:

    $ /tmp/test.sh
    Using queries from '/src/ch/worktrees/clickhouse-upstream/tests/queries' directory
    Connecting to ClickHouse server... OK
    Connected to server 24.8.1.1 @ bef896ce143ea4e0464c9829de6277ba06cc1a53 mt/rename-without-lock-v2
    Running 3 stateless tests (MainProcess).
    00001_select_1:                                                         [ FAIL ]
    Reason: return code:  62
    Code: 62. DB::Exception: Syntax error: failed at position 8 (''1;
    '): '1;
    . Single quoted string is not closed: ''1;
    '. (SYNTAX_ERROR)

    , result:

    stdout:

    Database: test_urz6rk5z
    Child processes of 9782:
    9785 python3 ./tests/clickhouse-test 0001_select --test-runs 3 --max-failures-chain 1 --no-random-settings --no-random-merge-tree-settings
    Max failures chain

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-08-06 16:39:16 +02:00
Azat Khuzhin
b76fb165d1 tests: fix pylint issue in clickhouse_execute_http()
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-08-06 16:39:16 +02:00
Azat Khuzhin
a6ccf19869 tests: capture stderr/stdout/debuglog after terminating test
It was simply wrong before, but now, with capturing stacktrace that can
take sometime it is a must.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-08-06 16:39:16 +02:00
Azat Khuzhin
a478ad24a9 tests: try to catch stacktraces from client in case of test timeouts
This is to catch issues like [1].

  [1]: https://github.com/ClickHouse/ClickHouse/issues/67736

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-08-06 16:39:16 +02:00
Azat Khuzhin
f9dcce6da3 tests: omit python stacktace in case of signals/server died
It is simply useless and only create output that only distracts.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-08-06 16:39:16 +02:00
Azat Khuzhin
ea1575f60a tests: avoid leaving processes leftovers
Previously processes cleanup on i.e. SIGINT simply did not work, because
the launcher kills only processes in process group, while tests are
launched with start_new_session=True for Popen(), which creates own
process group.

This is needed for killing process group in case of test timeout.

So instead, look at the parent pid, and kill the child process groups.

Also add some logging to make it more explicit which processes will be
killed.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-08-06 16:39:16 +02:00
Alexey Milovidov
77fd21555f
Merge pull request #67910 from ClickHouse/auto/v24.6.3.95-stable
Update version_date.tsv and changelogs after v24.6.3.95-stable
2024-08-06 13:23:17 +00:00
robot-clickhouse
e2eeb6f180 Update version_date.tsv and changelogs after v24.6.3.95-stable 2024-08-06 12:54:27 +00:00
Alexey Milovidov
8301fa0b06
Merge pull request #67822 from ClickHouse/fix-bad-test-03032_redundant_equals
Fix bad test `03032_redundant_equals`
2024-08-06 12:01:31 +00:00
Igor Nikonov
feeb945461
Merge pull request #67389 from ClickHouse/pr-all-connection-failed
Try to fix: ALL_CONNECTION_TRIES_FAILED with parallel replicas
2024-08-06 11:37:23 +00:00
Max K.
8cca8ecb34
Merge pull request #67101 from ClickHouse/ci_mergeable_check_fix
CI: CheckReadyForMerge fixes
2024-08-06 11:08:45 +00:00
Nikita Taranov
173f55989e
Merge pull request #67680 from ClickHouse/fix_02313_filesystem_cache_seeks
Avoid ddl queue timeout in 02313_filesystem_cache_seeks
2024-08-06 10:54:40 +00:00
Anton Popov
3656b9094a
Merge pull request #67846 from ClickHouse/revert-67392-revert-66099-better-index-calc
Revert "Revert "Slightly better calculation of primary index""
2024-08-06 10:36:01 +00:00
Nikita Mikhaylov
b4a6f249ab
Merge pull request #66438 from ClickHouse/analyzer-beta
Analyzer is finally Beta
2024-08-06 09:39:29 +00:00
Robert Schulze
4d44682017
Merge pull request #66479 from rschu1ze/bump-rocksdb2
Bump RocksDB from v7.10.2 to v8.9.1
2024-08-06 09:31:20 +00:00
Robert Schulze
f9320b82d9
Merge pull request #67867 from rschu1ze/fuzz-and-fuss
Un-flake 02524_fuzz_and_fuss_2
2024-08-06 09:08:32 +00:00
Nikolai Kochetov
614b78495a
Merge pull request #67395 from ClickHouse/anoter-case-of-non-deterministic-func-in-group-by-key
Fix another one case of non-deterministic PK
2024-08-06 08:56:54 +00:00
Nikita Mikhaylov
22ac7ce11d Merge branch 'master' of github.com:ClickHouse/ClickHouse into pr-all-connection-failed 2024-08-06 10:31:12 +02:00
Michael Kolupaev
dc776af565
Merge pull request #67484 from ClickHouse/nojs
Revert #61750 "Improve JSONEachRow reading by ignoring the keys case"
2024-08-06 08:27:02 +00:00
Michael Kolupaev
f344d833fd
Merge pull request #65253 from ClickHouse/reg
attach_gdb.lib: print more information before all stacks
2024-08-06 08:18:46 +00:00
Michael Kolupaev
9e3bc9bc53
Merge pull request #66018 from ClickHouse/readyornot
Fix 'Not-ready Set is passed' in system tables
2024-08-06 08:13:03 +00:00
János Benjamin Antal
45c4a71ccb
Merge pull request #67800 from ClickHouse/revert-66510
Revert "Merge pull request #66510 from canhld94/fix_trivial_count_non_deterministic_func"
2024-08-06 06:30:35 +00:00
Michael Kolupaev
bb71c1eea8
Merge pull request #67874 from ClickHouse/omnomsan
no-msan 00314_sample_factor_virtual_column
2024-08-06 05:02:29 +00:00
Alexey Katsman
913bc8ab3a
Merge pull request #67869 from alexkats/misc-fixes
Misc fixes
2024-08-06 04:10:41 +00:00
Michael Kolupaev
b1b5dd6fc5
Merge pull request #67418 from ClickHouse/curange
Make Dwarf::findAddress() fallback slow path less slow
2024-08-06 03:24:08 +00:00
Alexey Milovidov
c052c92ea9
Merge pull request #67829 from ClickHouse/update-tags-for-tests
Update tags for a few tests
2024-08-06 01:25:14 +00:00
Alexey Milovidov
3419b916a9
Merge pull request #66457 from AVMusorin/add-play-now-param
Allow run query instantly in play
2024-08-06 00:50:51 +00:00
Michael Kolupaev
93afcd16b0 Merge remote-tracking branch 'origin/master' into reg 2024-08-05 22:10:56 +00:00
Michael Kolupaev
4e8bd0654c Remove from history 2024-08-05 22:06:36 +00:00
Michael Kolupaev
a05ead3f77 Conflict 2024-08-05 22:04:53 +00:00
Michael Kolupaev
cfcd9fe096 Conflicts 2024-08-05 21:57:23 +00:00
Alexey Milovidov
8e19f46829
Merge pull request #67706 from ClickHouse/ci_minot_utils_refactoring
CI: Minor refactoring in ci_utils
2024-08-05 21:34:43 +00:00
Nikita Mikhaylov
4829ba31d3 Actually fix a test 2024-08-05 21:18:53 +00:00
Michael Kolupaev
3841179a24 Merge remote-tracking branch 'origin/master' into readyornot 2024-08-05 19:58:21 +00:00
Michael Kolupaev
5b91865f58 Merge remote-tracking branch 'origin/master' into nojs 2024-08-05 19:53:53 +00:00
Michael Kolupaev
4d22cdf31f Merge remote-tracking branch 'origin/master' into curange 2024-08-05 19:52:10 +00:00
Michael Kolupaev
bf2e679a51 no-msan 00314_sample_factor_virtual_column 2024-08-05 19:40:57 +00:00
Michael Kolupaev
9137551ddc
Merge pull request #67641 from ClickHouse/typechange
Fix crash in KeyCondition::cloneASTWithInversionPushDown() caused by type change
2024-08-05 19:12:53 +00:00
Max K
529f21c6b8 CI: CheckReadyForMerge fixes 2024-08-05 20:41:16 +02:00
Alexey Milovidov
c64f060496
Merge pull request #67687 from Avogar/fix-variant-as-common-type
Fix variant as common type in if function with Tuples, Maps and incompatible integers
2024-08-05 17:48:36 +00:00
Alexey Milovidov
5137a074b9
Merge pull request #67795 from azat/tests/fix-perf
Fix possible CANNOT_READ_ALL_DATA during server startup in performance tests
2024-08-05 17:47:14 +00:00
Alex Katsman
c8805fbced Misc fixes 2024-08-05 17:41:47 +00:00
Alexey Milovidov
f5367e1dad
Merge pull request #67600 from ClickHouse/vdimir/fix_02434_cancel_insert_when_client_dies
Fix 02434_cancel_insert_when_client_dies
2024-08-05 17:02:25 +00:00
Alexey Milovidov
809d73d739
Merge pull request #67774 from azat/fix-replace-modifier-format
Fix REPLACE modifier formatting (forbid omitting brackets)
2024-08-05 17:02:00 +00:00
Alexey Milovidov
df0bc58b82
Merge pull request #67797 from Avogar/reduce-dynamic-merges-test
Reduce table size in 03037_dynamic_merges_2* tests
2024-08-05 17:01:45 +00:00
Robert Schulze
05395ac7bd
Un-flake 02524_fuzz_and_fuss_2 (hopefully)
https://s3.amazonaws.com/clickhouse-test-reports/0/3221b651da16cd868350a1aff022ba71a1a15f3c/stateless_tests__tsan__s3_storage__[2_5].html

https://s3.amazonaws.com/clickhouse-test-reports/0/1fde5b7bfa1b1a6a0d67258be5e7ef855b730559/stateless_tests__tsan__s3_storage__[2_4].html
2024-08-05 17:01:15 +00:00
Alexey Milovidov
6951816006
Merge pull request #67798 from Avogar/disable-nested-dynamic-merges-tests-sanitiziers
Disable 03038_nested_dynamic_merges* under sanitizers because it's too slow
2024-08-05 17:01:15 +00:00
Max K.
f5e7f7a3e3
Merge pull request #67863 from ClickHouse/auto/v24.5.5.78-stable
Update version_date.tsv and changelogs after v24.5.5.78-stable
2024-08-05 16:58:57 +00:00
robot-clickhouse
e4c71aec4d Update version_date.tsv and changelogs after v24.5.5.78-stable 2024-08-05 16:12:25 +00:00
Kseniia Sumarokova
bebc5c2e7e
Merge pull request #67801 from ClickHouse/kssenii-patch-12
Update comment
2024-08-05 15:57:50 +00:00