Merge pull request #65535 from ClickHouse/chesema-fix-test-with-many-tables

CI: some time there are timeouts on DROP TABLES for random tests
This commit is contained in:
Sema Checherinda 2024-06-24 10:57:00 +00:00 committed by GitHub
commit adb40eb701
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 39 deletions

View File

@ -1,10 +0,0 @@
#!/usr/bin/expect -f
log_user 1
set timeout 5
match_max 100000
spawn bash -c "$env(CLICKHOUSE_CLIENT_BINARY) --no-warnings $env(CLICKHOUSE_CLIENT_OPT)"
expect ":) "
send -- "\4"
expect eof

View File

@ -1 +0,0 @@
Loaded 10000 queries.

View File

@ -1,28 +0,0 @@
#!/usr/bin/env bash
# Tags: no-fasttest
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
# Create a huge amount of tables, so Suggest will take a time to load
${CLICKHOUSE_CLIENT} -q "SELECT 'CREATE TABLE test_' || hex(randomPrintableASCII(40)) || '(x UInt8) Engine=Memory;' FROM numbers(10000)" --format=TSVRaw | ${CLICKHOUSE_BENCHMARK} -c32 -i 10000 -d 0 2>&1 | grep -F 'Loaded 10000 queries'
function stress()
{
# 2004l is ignored because parallel running expect emulated terminal doesn't
# work well with bracketed paste enabling sequence, which is \e033?2004l
# (https://cirw.in/blog/bracketed-paste)
while true; do
"${CURDIR}"/01526_client_start_and_exit.expect-not-a-test-case | grep -v -P 'ClickHouse client|Connecting|Connected|:\) Bye\.|new year|^\s*$|spawn bash|\?2004l|^0\s*$'
done
}
export CURDIR
export -f stress
for _ in {1..10}; do
timeout 3 bash -c stress &
done
wait