Repository navigation
Cap 04299_move_assignment_memory_limit loop at 60 seconds - #108273
Merged
Algunenano merged 2 commits intoJun 24, 2026
Merged
Conversation
The test spawns a fresh clickhouse-client 500 times. The query is trivial (constants, FORMAT Null, no storage), so per-iteration process startup dominates. Under TSan it takes ~1.5s/iter, so 500 iterations exceed the 600s run timeout and the test is killed. A buggy build terminates within a few dozen iterations, so the full 500 are never needed to catch the regression. Cap the loop at 500 iterations or 60 seconds, whichever comes first, using the bash SECONDS builtin. This keeps the slowest configs well under the timeout while preserving the regression check. Observed in MasterCI Stateless tests (amd_tsan, s3 storage, parallel, 2/2): https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=be3417e5cb5428775e9586b2b453ad8b07aee237&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_tsan%2C%20s3%20storage%2C%20parallel%2C%202%2F2%29 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [cc78d9d] Summary: ❌
AI ReviewSummaryThis PR limits Final VerdictStatus: ✅ Approve |
On fast builds (e.g. arm_binary) all 500 iterations finish before the 60s budget, so the loop ends naturally and its last evaluated command is the arithmetic time check, which is false (exit status 1) until the budget is hit. The script then exits 1 and clickhouse-test marks the test failed even though no regression occurred. Invert the check to `(( elapsed < 60 )) || break` and add an explicit `exit 0`, so the script's status is independent of the timing test. Observed in PR Stateless tests (arm_binary, parallel): https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=108273&sha=6cbcf1aff7dbb2fc7194f3f03dc9b039e418af0b&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20parallel%29 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 222 line(s), 33 function(s) across 88 file(s) · Details Top files
|
Algunenano
enabled auto-merge
June 24, 2026 08:29
Merged
via the queue into
ClickHouse:master
with commit Jun 24, 2026
c633c72
164 of 167 checks passed
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…ssignment-timeout Cap 04299_move_assignment_memory_limit loop at 60 seconds
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.
The test spawns a fresh
clickhouse-client500 times. The query is trivial (constants,FORMAT Null, no storage), so per-iteration process startup dominates. Under TSan it takes ~1.5s/iteration, so 500 iterations exceed the 600s run timeout and the test is killed.A buggy build terminates within a few dozen iterations, so the full 500 are never needed to catch the regression. Cap the loop at 500 iterations or 60 seconds, whichever comes first, using the bash
SECONDSbuiltin.Observed in MasterCI Stateless tests (amd_tsan, s3 storage, parallel, 2/2):
https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=be3417e5cb5428775e9586b2b453ad8b07aee237&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_tsan%2C%20s3%20storage%2C%20parallel%2C%202%2F2%29
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
🤖 Generated with Claude Code
Version info
26.6.1.1199