Repository navigation
Conversation
…luster does not answer The build profile hook failed `Post Hooks` of green release builds whenever the CI logs cluster writer endpoint gave no HTTP answer at all (2026-10-16: every `SELECT 1` readiness probe ended with `RemoteDisconnected`). `do_query` then returned False without sending the INSERT, and the bare `assert` in `insert_profile_data` turned it into `AssertionError` and exit 1. `is_ready` now keeps the exception of its probe. When every probe of every attempt raised a `requests` `ConnectionError` or `Timeout`, i.e. nothing answered and no INSERT was sent, `do_query` raises `LogClusterUnavailable`. `build_profile_hook.check()` reports that as a workflow warning and exits 0. Everything else still fails the hook: any HTTP answer to a probe (241, 516, a headerless 503, a non-JSON 200), a mixed probe run, an INSERT that failed or was rejected, a missing or unreadable secret, a broken profile producer. `binary_sizes.txt`, the completion marker the build profile diff uses to pick its baseline, is uploaded last, so a commit whose upload stopped here never becomes a baseline. The warning keeps the lost upload visible on the job and workflow report, as the log export already does for the same endpoint. No retries or backoff are added. Related: ClickHouse#124531 (comment) 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 of the same head (2 notes).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261016-125800 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-40:20261016-124200 |
|
cc @maxknv, could you review this? When no readiness probe of the build profile upload gets any HTTP answer (the writer endpoint was down on 2026-10-16), the hook now reports a workflow warning and exits 0 instead of failing Post Hooks on a green build; every HTTP answer, a failed INSERT, a missing secret or a broken producer still fails it, and no retries are added (your #108294 concern). |
|
Workflow [PR], commit [f69e052] Summary: ✅
AI ReviewSummaryReviewed commit Final VerdictStatus: ✅ Approve |
…ducer during an outage Two holes in the warning path for a CI logs cluster that does not answer: `requests.post` reads the whole body before it returns, and a read timeout on the body is raised as a `ConnectionError`, the same type as a refused or reset connection. It also follows redirects, so the exception can come from the redirect target after the endpoint answered with a 3xx. A probe whose headers arrived (for example `403` with exception code `516`, a rotated password) but whose body stalled, or whose redirect target was unreachable, was counted as unanswered, and the hook went green with the warning. The probe now records every response in a `response` hook, which requests runs once the headers of a response (a redirect included) arrived and before the body is read; only an exception with no recorded response counts as no answer. Redirects are still followed. `_upload_profile_artifacts` checked each required artifact just before its upload. When the first upload found the endpoint unavailable, a missing or empty `binary_symbols.txt` or `binary_sizes.txt` was never looked at, and a broken producer was reported as the outage warning. All required artifacts are now checked before the first upload; the completion marker is still uploaded last. Reported by the clickhouse-gh review on the PR (r4300936551, r4300936554) and the second-model review (redirects). Validated against a stub endpoint (headers then a stalled body, a redirect to a refused port and to a working target, missing later artifacts with a closed and a refused endpoint) with requests 2.31 and 2.32.5, and against a real local server. Co-Authored-By: Claude Opus 5.5 <[email protected]>
CI finish ledger - 04beff9Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
Session id: cron:our-pr-ci-monitor:20261017-160007 |
|
Fixing PR for the |
…efore measuring Since 2f07f3f (ClickHouse#122231) `t_materialize_uniq_v2_{i64,f64}` no longer stop merges, so background merges run while the fill commits its 20 1M-row parts and keep running during queries #0-#3. Each compared server ends up with its own layout (CI server logs: 8 servers, 8 layouts, from [6,6,6,1,1] to [20] million rows). The measured `ALTER ... CLEAR STATISTICS ALL, MATERIALIZE STATISTICS ALL` runs one single-threaded mutation task per part, so its time follows the largest part, and the layout lasts the whole job, so the dashboard confirmation restart reproduces the gap (`confirmed_regression` on unrelated PRs, e.g. ClickHouse#126296: #4 0.1445 -> 0.1933 s). Merge both tables into one part in the fill with `OPTIMIZE TABLE ... FINAL SETTINGS optimize_throw_if_noop = 1` and assert one active part per table with `throwIf`, as `and_compare_chain_derived.xml` does. Without `optimize_throw_if_noop` a failed merge assignment only logs and returns success, leaving a random layout. A table that background merges already collapsed to one part is still rewritten under FINAL, so the pin never throws on it. `projection_materialize.xml` measures a mutation over one merged part the same way and is stable on the same harness. Validated on the official master release build (26.11.1.120): before, 10 fills gave 5 i64 layouts and a 1.92x spread of #4, and perf.py on two servers gave right/left 1.249, 0.892, 0.841 in 3 of 5 fills; after, one 20M-row part per table in 10 of 10 fills, #4/#5 spread 1.029/1.041, and perf.py right/left within 5% in 5 of 5. Replacing one OPTIMIZE with `SELECT 1` fails the fill. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…answer Resolve the conflicts with 4e5129b (ClickHouse#128067) and 1087a07: - log_cluster.py: master now keeps the classified server answer of a failed readiness probe in `probe_error`. The transport exception of a probe that got no response at all is stored in that same attribute instead of a separate `_probe_error`; `select` only acts on a LogClusterUnavailable there, so the read path is unchanged. - build_profile_hook.py: keep master's artifact list (no symbols upload for objects-only builds) and add the LogClusterUnavailable warning branch after it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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, 3 s compile time in total, 6 of them have a recent master baseline. |
…answer Conflict in ci/jobs/scripts/log_cluster.py with e90fa64, which makes a readiness probe that timed out after connecting set `probe_error = LogClusterUnavailable(...)` for `select`. `probe_error` keeps master's meaning. The transport exception of a probe that got no response at all moves to its own attribute, `_probe_transport_error`, which only `do_query` reads. Otherwise a timed-out probe would no longer count as unanswered on the INSERT path, and `select` would lose the LogClusterUnavailable that e90fa64 sets. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Related: #124531 (comment)
Related: #121048
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required: CI-only change.
Description
On 2026-10-16
Build (arm_release),Build (amd_release)and the warmup build finishedOK, but theirPost Hooksfailed on many pull requests and on master, for example https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=124531&sha=726f6f75887f99e327e188e8dffd2fd2401cf985&name_0=PR&name_1=Build%20(arm_release). From about 10:30 UTC the CI logs cluster writer endpoint gave no HTTP answer at all: everySELECT 1readiness probe ofLogCluster.do_queryended withRemoteDisconnected, the INSERT was never sent, and theassertininsert_profile_datafailed the hook. The same runs showFailed to start log exportwarnings for that endpoint.is_readynow also records the exception of a probe that got no response headers at all. When every probe of every attempt ended that way (ConnectionErrororTimeout), so no INSERT was sent,do_queryraisesLogClusterUnavailable, and the hook reports it as the workflow warningBuild profile not uploaded: the CI logs cluster did not answerand exits 0. Everything else still fails the hook: any HTTP answer to a probe (241,516, a headerless503, headers whose body stalls, a redirect whose target does not answer), a failed or rejected INSERT, a missing secret, a broken profile producer (required artifacts are checked before any upload).binary_sizes.txtis uploaded last, so a commit whose upload stopped this way never becomes aBuild profile diffbaseline. The lost upload is not silent (the concern in #108294): the warning shows on the job and workflow report. No retries are added. An HTTP answer can be a rotated password.selectis unchanged, including its probe classification from #128067 and #129675.Validated locally against a stub endpoint vs master (no test for CI infrastructure): in 36
do_query/selectcases and 27 end-to-end hook runs, only the cases where nothing answered (closed without response, read timeout, refused) changed, from exit 1 to exit 0 with the warning.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/126296]