Skip to content

Give the server up to 120 seconds to become ready in CI - #110287

Merged
alexey-milovidov merged 2 commits into
masterfrom
fix/wait-ready-timeout-debug-builds
Jul 14, 2026
Merged

alexey-milovidov merged 2 commits into
masterfrom
fix/wait-ready-timeout-debug-builds

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Jul 13, 2026 •

Copy link
Copy Markdown
Member

Related: #109005

The wait_ready deadline in ci/jobs/scripts/clickhouse_proc.py (30 attempts × 2s = 60s) is too tight for debug and sanitizer builds. In a flaky-check run on #109005 the amd_debug server listened for connections ~64 seconds after the fork — about 4 seconds past the deadline — and the job failed with SETUP FAILURE: clickhouse-server not ready (wait_ready) even though the server started fine (report).

The loop exits early on success and detects a dead server via proc.poll, so raising the deadline to 120s does not slow down healthy runs or runs where the server actually crashed — only genuinely hung servers wait longer before being declared dead.

The AST/BuzzHouse fuzzer bootstrap in ci/jobs/scripts/fuzzer/run-fuzzer.sh had the same problem: it gave the server only ~30 seconds to answer select 1 before the next clickhouse-client under set -e aborted the job, while the fuzzer jobs run the same amd_debug and sanitizer artifacts. It now uses the same 120-second budget and breaks early when the server process died, as wait_for_server in ci/jobs/scripts/perf/compare.sh does.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.7.1.886 (included in 26.7 and later)

The `wait_ready` deadline of 30 attempts x 2s = 60s is too tight for
debug and sanitizer builds: in a flaky-check run the amd_debug server
listened ~64 seconds after the fork, about 4 seconds past the deadline,
and the job failed with `SETUP FAILURE: clickhouse-server not ready
(wait_ready)` even though the server started fine. The loop exits early
on success and detects a dead server via `proc.poll`, so a longer
deadline only affects genuinely hung servers.

Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109005&sha=92b35fef52a82ba621462f1218a2e5cb43ef1980&name_0=PR&name_1=Stateless%20tests%20%28amd_debug%2C%20flaky%20check%29
PR: #109005

Co-Authored-By: Claude Fable 5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [0a98bc4]

Summary: ✅


AI Review

Summary

This PR extends the CI server-readiness budget from roughly 60 seconds to 120 seconds in both ClickHouseProc.wait_ready and the AST/BuzzHouse fuzzer bootstrap, which matches the slow-start failure described in the PR body for debug and sanitizer artifacts. I reviewed the current diff together with the existing discussion thread and did not find any remaining actionable issues in the current code; the earlier fuzzer-gap report is addressed in the current head.

Final Verdict

✅ No new findings.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jul 13, 2026
Comment thread ci/jobs/scripts/clickhouse_proc.py Resolved
Address review: the AST/BuzzHouse fuzzer bootstrap in `run-fuzzer.sh`
gave the server only ~30 seconds to answer `select 1` before the next
`clickhouse-client` under `set -e` aborted the job, while the fuzzer
jobs run the same `amd_debug` and sanitizer artifacts that motivated
raising the `wait_ready` deadline in `clickhouse_proc.py`. Raise the
loop to 120 attempts and break early when the server process died, as
`wait_for_server` in `perf/compare.sh` does, so crashed servers are
still detected quickly.

PR: #110287

Co-Authored-By: Claude Fable 5 <[email protected]>

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexey-milovidov alexey-milovidov self-assigned this Jul 14, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jul 14, 2026
Merged via the queue into master with commit 74a5579 Jul 14, 2026
176 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix/wait-ready-timeout-debug-builds branch July 14, 2026 00:25
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 14, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
Address review: the AST/BuzzHouse fuzzer bootstrap in `run-fuzzer.sh`
gave the server only ~30 seconds to answer `select 1` before the next
`clickhouse-client` under `set -e` aborted the job, while the fuzzer
jobs run the same `amd_debug` and sanitizer artifacts that motivated
raising the `wait_ready` deadline in `clickhouse_proc.py`. Raise the
loop to 120 attempts and break early when the server process died, as
`wait_for_server` in `perf/compare.sh` does, so crashed servers are
still detected quickly.

PR: ClickHouse#110287

Co-Authored-By: Claude Fable 5 <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…imeout-debug-builds

Give the server up to 120 seconds to become ready in CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants