Repository navigation
Speed up the slowest sequential tests in the fast test - #122921
Merged
Algunenano merged 6 commits intoOct 2, 2026
Merged
Conversation
The calls to `localhost:1` fail at once, but each one waited `ai_function_retry_initial_delay_ms` (1s) before its retry. That was 10 of the test's 12 seconds, run sequentially in the fast test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… less Give the remote connections a user of their own, so concurrent runs get separate pools and the test no longer needs `no-parallel`. Poll `text_log` for the pool wait instead of sleeping 2s, and lower the soft time limit from 5s to 2s. It took 19s in the sequential phase of the fast test; now about 11s in parallel. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The `SYSTEM ... ALL BACKGROUND` wildcard skips tables the caller may not control, so running it as a user granted only on the test database keeps it off the views of concurrent tests, and `no-parallel` is no longer needed. Test 1 refreshes 2 rows instead of 5. It took 11s in the sequential phase of the fast test; now about 8s in parallel. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`SYSTEM PAUSE VIEWS` and `SYSTEM START VIEWS` skip views the caller may not control, so running them as a user granted only on the test database keeps them off the views of concurrent tests, and `no-parallel` is no longer needed. Test 1 refreshes 2 rows instead of 5. It took 10s in the sequential phase of the fast test; now about 7s in parallel. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Workflow [PR], commit [1f1d3a9] Summary: ✅ AI ReviewSummaryThis PR parallelizes three formerly sequential fast-test cases and trims two retry / wait windows to cut wall time. The speedup itself looks reasonable, but the current patch still weakens the two Findings
Final Verdict
|
Polling `text_log` was too slow in sanitizer builds with s3 storage: `SYSTEM FLUSH LOGS` took up to 27s, so the holder or the waiter ran out of time before the wait was observed. Keep only the test's own user, which is what lets it run in parallel. ClickHouse/clickhouse-private#78269 Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 1, 2026
Member
Author
|
It seems |
The waiter was started once the holder showed up in `system.processes`, which is before the holder gets its connection, so under load the waiter could take the connection first and never wait. Wait for the holder's remote query instead. Copies running together have their `max_execution_time` cancellations applied one query at a time, each taking up to a second, so the soft limit arm could run past its 12 second bound. Raise the bound to 40 seconds and the holder's hold to 50. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=gh-readonly-queue/master/pr-122921-dbd6bae5d41d3720fcc4af628e121f089ec097e3&sha=4f4841817f1b9886894ba3c50349a5c83c3a6922&name_0=MergeQueueCI&name_1=Stateless%20tests%20%28amd_binary%2C%20flaky%20check%29 PR: ClickHouse#122921 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #122913
These were the four slowest
no-paralleltests in the fast test that don't use failpoints.no-paralleltests run one by one after the parallel ones, so together they took about 51s of wall time.03300_ai_functions(12s to 1s): the calls tolocalhost:1fail at once but waited 1s of retry backoff each. Setai_function_retry_initial_delay_ms = 0. It keepsno-parallel, since named collection names can't be made unique in a.sqltest.04659_connection_pool_zero_wait_blocks(19s sequential to parallel): the remote connections use a user of their own, so concurrent runs get separate pools.04319_system_stop_all_background(11s to 8s) and04105_system_pause_view(10s to 7s), both now parallel: the server-wideSYSTEM ... ALL BACKGROUND/SYSTEM PAUSE VIEWSstatements skip views the caller can't control, so they run as a user granted only on the test database.Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/122921]
Version info
26.10.1.1261-master(included in26.10and later)