Repository navigation
CI: classify a timed-out "Build profile diff" readiness probe as a CI logs cluster outage - #129675
Conversation
… logs cluster outage When the read-only sub-service of the CI logs cluster stops answering, every `SELECT 1` readiness probe of `LogCluster.select` raises `requests.exceptions.ReadTimeout`. `is_ready` turned that into a bare False without a `probe_error`, so `select` raised `LogClusterNotReady`, which `build_profile_diff_job.main` does not catch, and the check went red on unrelated PRs (8 of them on 2026-11-06 between 00:00Z and 02:52Z, e.g. job 127646247697 of ClickHouse#129611). The same outage hitting a POST already ends `LogClusterUnavailable` (ClickHouse#121048), and so does a probe the server rejects with 241 (ClickHouse#128067). A probe that raises `ReadTimeout` now records `LogClusterUnavailable` in `probe_error`, and the tail added by ClickHouse#128067 reports the read green as "the endpoint never became ready: the readiness probe timed out: ...". The last probe decides, as there. A `ReadTimeout` (requests 2.33.0, the CI pin) is raised only after the name resolved and a server accepted the connection: a stalled TLS handshake or a stalled answer. Connection refused, an unresolvable name, no SYN-ACK and a certificate mismatch raise `ConnectionError` (`ConnectTimeout` and `SSLError` are subclasses), and the server itself rejects a rotated password with 516. All of those, a missing secret and a gateway answer still end `LogClusterNotReady`, as ruled on ClickHouse#120288. This is the `SELECT 1`-timeout leg left open on ClickHouse#121048. Validated with a throwaway harness against master (real sockets, mocked transport and `main()` end to end); only the probe-timeout cases change. No test is committed for the CI scripts (ClickHouse#119766). 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; 0 findings) plus my own review (0 blockers, 0 majors). Two documentation-level nits were noted and not acted on: neither changes behaviour. Session id: cron:clickhouse-review-slot-8:20261106-041700 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261106-040100 |
|
cc @alexey-milovidov @leshikus, could you review this and add the |
|
Workflow [PR], commit [e90fa64] Summary: ✅
AI ReviewSummaryThe PR classifies a readiness-probe Final VerdictStatus: ✅ Approve. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline. |
ef104dd
Related: #121048
Related: #128067
Related: #120462
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Build profile diffreports a readiness probe that connected to the CI logs cluster and then timed out as a cluster outage (green, nothing compared) instead of failing the check.Description
On 2026-11-06 between 00:00Z and 02:52Z,
Build profile difffailed on 8 unrelated PRs, for example #129611 (job). Each log shows 8 readiness probes endingRead timed out. (read timeout=3), thenLogClusterNotReady: the endpoint never became ready.The read-only sub-service of the CI logs cluster stopped answering for 2 to 14 minute windows.
LogCluster.is_readyturns a transport exception on itsSELECT 1into a bareFalsewith noprobe_error, soselectraisesLogClusterNotReady, whichmaindoes not catch. The same outage hitting a POST endsLogClusterUnavailable(#121048), as does a probe the server rejects with 241 (#128067).Change: a probe that raises
requests.exceptions.ReadTimeoutnow setsprobe_errortoLogClusterUnavailable, and the existing #128067 path reports the check green withCI logs cluster unavailable, nothing compared: the endpoint never became ready: the readiness probe timed out: ...in the result and the PR comment. As there, the last probe decides. This is theSELECT 1-timeout leg from #121048 (comment).A
ReadTimeoutcannot be a wrong endpoint: with requests 2.33.0 (the CI pin) it is raised only after the name resolved and a server accepted the connection. Refused, unresolvable (no wildcard DNS inus-east-2.aws.clickhouse-staging.com), unreachable and certificate-mismatch hosts raiseConnectionError, and the server itself rejects a rotated password with 516. Those, a missing secret and a gateway answer stay red.Validation: a throwaway harness compared master with this branch on 6 real-socket cases, 12 mocked-transport cases and
main()end to end. Only the probe-timeout cases change.Workflow [PR]
Sync PR [sync-upstream/pr/129675]
Version info
26.11.1.2789-master(included in26.11and later)