Repository navigation
Add soft time limit to flaky check to prevent timeouts - #97214
Merged
Merged
Conversation
When there are too many modified tests, the flaky check can exceed the 2.5-hour job timeout without posting results. This passes `--global_time_limit` to `clickhouse-test`, calculated as the job timeout minus elapsed time minus a 5-minute margin. The test runner then stops gracefully before the hard timeout, allowing the CI to process and report results for completed tests. Reference: #96710 Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
maxknv
approved these changes
Feb 17, 2026
alexey-milovidov
added a commit
that referenced
this pull request
Feb 21, 2026
The 5-minute margin introduced in #97214 is not enough for the cleanup phase, which includes server shutdown, system table export via `clickhouse local`, and log collection — all significantly slower under sanitizers (ASan, TSan, etc.). For example, in #96130, the `amd_asan` flaky check hit the hard timeout during `aggregated_zookeeper_log` export, killing the process before results could be uploaded (0 test results in the report). The ClickHouse server shutdown alone took ~80 seconds, and each system table export took ~50 seconds under ASan. Changelog category: CI Fix or Improvement Changelog entry: Increase soft timeout margin for flaky check to prevent job timeouts with empty results. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 task
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.
Summary
--global_time_limittoclickhouse-test, calculated as the job timeout minus elapsed time minus a 5-minute marginTest plan
clickhouse-teststops gracefully and results are postedChangelog 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.2.1.862