Repository navigation
Conversation
…ted job ClickHouse#122111 made the targeted stateless and integration jobs SKIP instead of ERROR when a test-selection CIDB request times out on every attempt (`CIDBTimeoutError`). The first selection read, the strict previously-failed lookup in `Targeting.get_previously_failed_tests_with_info`, re-wrapped any exception as a plain `RuntimeError`, so a timeout there lost its class before reaching either `except CIDBTimeoutError` handler and the shard still ERRORed ("Failed to load test selection" in the stateless job, an uncaught exception in the integration job). On a `pr-bugfix` PR that drops `Bugfix validation` and fails `Finish Workflow / Post Hooks`. Re-raise `CIDBTimeoutError` unchanged in strict mode. Every other failure (a refused connection, an answered non-OK response) stays wrapped and keeps failing the job, as ClickHouse#114730 intends. Best-effort mode is unchanged. CIDB shows 3 such errors, all on 2026-09-24/25 during the CIDB overload ClickHouse#122111 targets (PRs ClickHouse#118823, ClickHouse#117436, ClickHouse#114865). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding; 1 full pass on the published head).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261013-114500 |
|
Workflow [PR], commit [dc8df22] Summary: ✅ AI ReviewSummaryReviewed #125613 at Final VerdictStatus: ✅ Approve |
CI finish ledger - 3769368Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
CIDB has no other Session id: cron:our-pr-ci-monitor:20261013-153004 |
…rgeted job `_post_with_retries` picks the exception from the last attempt only. An overloaded CIDB server times out some requests and rejects others with `(total) memory limit exceeded` (the server-wide limit), alternating between attempts of one request. Only a final client timeout raised `CIDBTimeoutError`, which the targeted jobs turn into SKIPPED, so the job's verdict depended on which symptom the fifth attempt happened to see. On 2026-10-17 at 05:28-05:31Z, 14 targeted stateless jobs on 14 PRs saw `M, M, T, M, M` or `T, M, T, M, M` (T = 60 s read timeout, M = HTTP 500 `(total) memory limit exceeded ... maximum: 327.61 GiB`) and ended ERROR with no test run. A job from the same wave saw the same mix and passed on the fifth attempt. The failing read, the coverage canary seed query, peaks at about 3.2 GB, so the overload was not caused by the selection itself. Treat an answer reporting the server-wide memory limit like a client timeout. Per-query and per-user memory limits (`Query`/`User memory limit exceeded`), refused connections and every other non-OK answer stay errors. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review of the new commit by an independent model (engine: codex; 1 finding; 1 full pass on the published head) plus my own review (2 nits).
Severity: ❌ blocker / |
|
@groeneai no, add retries up to 3 minutes, then skip. |
…then skip A refused connection during test selection errored the targeted job after 5 attempts (about 30 s). As asked on ClickHouse#125613, the selection client now retries a refused connection for up to 3 minutes and then raises `CIDBTimeoutError`, so the targeted stateless and integration jobs skip instead of erroring. Other CIDB clients keep the old behaviour (`refused_retry_sec` defaults to 0). Only `Connection refused` counts; SSL, proxy and DNS errors stay fatal. A request that got an error answer other than the server-wide memory limit on any attempt now always raises `RuntimeError`: a later timeout, overload or refusal no longer turns it into a skip. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Done in cafb502: during test selection a refused connection is now retried for up to 3 minutes, then the targeted job skips. Other CIDB clients still fail after 5 attempts, and a request that got any other error answer still errors the job. |
CI finish ledger - cafb502Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
All check runs completed and Session id: cron:our-pr-ci-monitor:20261018-020007 |
…ough-previously-failed-lookup Resolve the conflict in get_previously_failed_tests_with_info: the strict lookup re-raises both CIDBTimeoutError (this PR) and GitHubUnavailableError (ClickHouse#126783), so the targeted job skips when either CIDB or GitHub is unavailable. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Related: #122111
Related: #114730
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
A targeted stateless or integration job is now skipped, not errored, when a test-selection read times out in the CI database, the CI database rejects it for lack of server memory, or the connection is still refused after 3 minutes of retries.
Description
#122111 made the targeted stateless and integration jobs
SKIPPEDinstead ofERRORwhen a test-selection CIDB request times out (CIDBTimeoutError). Three cases still errored the job:Targeting.get_previously_failed_tests_with_info(strict=True), from CI: run only the selected tests in the sanitizer functional tests in PRs #114730) re-wrapped any exception as a plainRuntimeError. It now re-raisesCIDBTimeoutErrorunchanged. Example: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=118823&sha=d7096796fc6d931e090a176efa3a8f48ad84b581&name_0=PR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20distributed%20plan%2C%20targeted%29CIDB._post_with_retriesdecides from the last attempt only. An overloaded server alternates timeouts with HTTP 500(total) memory limit exceeded(the server-wide limit). On 2026-10-17, 14 targeted jobs on 14 PRs ended on such a 500 and errored, for example https://s3.amazonaws.com/clickhouse-test-reports/PRs/113336/7df483dd0c5ea714abd24f66bbcd217889c9ecf5/pr/stateless_tests_amd_asan_ubsan_db_disk_distributed_plan_targeted/job.log. That answer now counts as an overload, like a timeout.refused_retry_secis 0 by default). OnlyConnection refusedcounts, not SSL, proxy or DNS errors.A per-query or per-user memory limit and any other error answer still error the job, also when a later attempt times out. The targeted AST fuzzer reads through the same client, so in an outage its two best-effort reads also wait up to 3 minutes each before falling back.
Validation, local, through the real
CIDBandTargetingwith mockedrequests.post, a fake clock and real local sockets: every case above raisesRuntimeErroron master andCIDBTimeoutErrorwith this change; on a closed port the strict lookup skips after 180 s; a server that comes back inside the window is used; the other answers stayRuntimeError;test_selection_smokepasses.Workflow [PR]
Sync PR [sync-upstream/pr/125613]
Version info
26.12.1.418-master(included in26.12and later)