Skip to content

Drop the MinIO webhook log tables from the stateless CI setup - #110099

Merged
alexey-milovidov merged 12 commits into
ClickHouse:masterfrom
groeneai:groeneai/scraping-minio-timeout-info-only
Jul 20, 2026
Merged

alexey-milovidov merged 12 commits into
ClickHouse:masterfrom
groeneai:groeneai/scraping-minio-timeout-info-only

Conversation

@groeneai

@groeneai groeneai commented Jul 11, 2026 •

Copy link
Copy Markdown
Collaborator

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):

...

Description

Drop the system.minio_audit_logs and system.minio_server_logs webhook log tables from the stateless CI setup.

These were MinIO webhook-fed operational logs (added in #67998), not ClickHouse diagnostics, and were never exposed in CI artifacts. On s3 runs the audit stream (one event per S3 API request) grew to millions of rows, so its post-run Scraping system tables dump hit the 600s timeout and reddened otherwise-green jobs. antonio2368, who enabled them for a one-off investigation, confirmed they are no longer needed.

Removed: both table CREATEs, the logger_webhook/audit_webhook config, the local-disk pinning, the restart-to-apply-config machinery, and the guard tests. This also drops one webhook stream from MinIO. The generic per-dump timeout backstop is kept for the remaining system tables.

A bounded 600s timeout on system.minio_audit_logs / minio_server_logs is
minio's own webhook-fed operational-log volume on s3 runs, not a ClickHouse
bug. ClickHouse#109837 bounded the dump so a stuck table no longer eats the 9000s job
budget, but it surfaced the bounded timeout as a FAIL, reddening otherwise-green
PRs. Keep the detail visible in the report but only turn the check FAIL on a
genuine failure (a real system table, a non-timeout minio error, too-many-rows,
or any replica dump failure).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. Reproduced at the unit level: a bounded-timeout dump failure (timeout exit 124/137) on a minio_* table vs a real system table drives the check decision deterministically. Verified via ci/tests/test_dump_system_tables_timeout.py (9/9).
b Root cause explained? #109837 bounded each dump with a 600s timeout so a stuck minio_audit_logs no longer eats the 9000s job budget, but it recorded that bounded timeout as info -> the final if scraping_system_table.info turned the check FAIL. minio_* tables are minio's own webhook-fed operational logs, not CH diagnostics, and balloon past 600s on s3 -> expected volume reddens green PRs.
c Fix matches root cause? Yes. A real_failure flag now gates the FAIL; a bounded timeout on a minio_* table is classified info-only (_is_info_only_dump_failure), staying visible but not failing. Not a band-aid: real failures still FAIL.
d Test intent preserved / new tests added? Yes. All genuine failures (real CH system tables, non-timeout minio errors, too-many-rows, any replica dump failure) still FAIL. New tests cover the info-only classifier and both directions.
e Both directions demonstrated? Yes. test_only_a_minio_timeout_keeps_the_check_green_but_visible (OK + info recorded) and test_a_real_system_table_failure_still_fails_the_check (FAIL), using the real Result + classifier.
f Fix is general across code paths? Yes. Replica-1/2 dump-failure branches also set real_failure; minio_* tables never reach replicas (they continue), so a minio timeout only info-suppresses on replica-0, exactly where it occurs.
g Fix generalizes across inputs? N/A (CI-infra script change, not a CH code/datatype bug). Classifier covers both minio tables and both timeout exit codes (124/137).
h Backward compatible? N/A (CI diagnostics behavior only; no user-visible product behavior, settings, or formats).
i Invariants and contracts preserved? Yes. Result.set_info still records every failure (report stays complete); only the FAIL status is gated. extra_tests_results still receives the result whenever info is present.

Session id: cron:clickhouse-worker-slot-6:20260711-161500

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @maxknv @leshikus — follow-up to #109837: a bounded 600s dump timeout on the minio_* diagnostic tables (minio's own webhook-fed logs, expected to balloon on s3) is now info-only in the Collect logs Scraping system tables step — still visible in the report, but no longer reddens an otherwise-green PR. Every genuine failure (real system tables, non-timeout minio errors, too-many-rows, replica dumps) still FAILs.

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Jul 11, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [68cb14f]

Summary: ✅


AI Review

Summary

This PR removes the stateless CI MinIO webhook log tables, their setup/restart plumbing, and the related guard tests, while keeping the generic per-table dump_system_tables timeout safeguard. I did not find any remaining correctness or operational issues in the current PR head after re-checking the previously raised timeout-handling threads against the latest code.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jul 11, 2026
Comment thread ci/jobs/scripts/clickhouse_proc.py Resolved
Comment thread ci/jobs/scripts/clickhouse_proc.py Resolved
…timeout --verbose

Address clickhouse-gh[bot] review on ClickHouse#110099.

Finding B (real fix): exit 137 is not an unambiguous bounded-timeout signal --
GNU timeout returns 137 for its own --kill-after escalation AND for any wrapped
command SIGKILLed by the OOM-killer or an external kill. Blindly suppressing 137
would downgrade a genuine OOM/external kill of clickhouse local to info-only.
Add 'timeout --verbose' and a _timeout_wrapper_expired() predicate: 124 is always
a timeout; 137 is trusted as a timeout only when timeout's own KILL diagnostic
('sending signal KILL to command') is present in stderr. A bare-137 OOM/external
kill now still FAILs the check.

Finding A (caller wiring): confirmed correct and does not require a code change.
The only publisher of 'Scraping system tables' (functional_tests.py Collect-logs)
runs dump_system_tables via prepare_logs(all=test_result and not test_result.is_ok()),
so it only runs on an already-red job; on a green job no Scraping result is
produced at all. The reclassification therefore does not (and never claimed, per
this fix) rescue a green PR by itself -- its effect is on an already-red job:
a bounded minio_* timeout no longer adds a spurious extra failed sub-result that
would inflate the failure count and muddy triage. Pinned by a new regression test.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Jul 11, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

Addressed both review findings in 8ce842e (pushed).

Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. timeout --verbose --signal=TERM --kill-after=1 1 sh -c 'trap "" TERM; sleep 30' -> exit 137 with timeout: sending signal KILL to command in stderr; timeout --verbose 30 sh -c 'kill -9 $$' -> exit 137 with NO such line. timeout ... 1 sleep 30 -> exit 124. Reproduced on demand.
b Root cause explained? Finding B: exit 137 = ANY SIGKILL death of the wrapped process, not only timeout's own --kill-after escalation. Suppressing bare 137 downgraded a real OOM/external kill of clickhouse local to info-only. Finding A: dump_system_tables runs only via prepare_logs(all=test_result and not test_result.is_ok()), i.e. only on an already-red job -> the reclassify cannot rescue a green PR; earlier framing was wrong.
c Fix matches root cause? Yes. Added timeout --verbose; _timeout_wrapper_expired() trusts 137 only when timeout's own KILL diagnostic is in stderr (124 always). Corrected PR framing to the actual effect (an already-red job's failed-sub-result count / triage), not "keep green PR green".
d Test intent preserved / new tests added? Preserved + extended. All prior timeout-wrapper tests kept. New: 137 kill-source discriminator, (table, res, stderr) classifier, caller-gating pin, and a bare-137-still-FAILs case. 11 tests, all pass.
e Demonstrated both directions? Yes. Proven minio timeout (124, or 137+KILL-diag) stays OK+visible; a real CH system table, a non-timeout minio error, AND a bare-137 (OOM/external kill) minio dump all still FAIL.
f Fix general, not a narrow patch? N/A (CI-script logic fix, not a C++ code bug). The 137 discriminator covers all dump branches (single + replica 0/1/2) via the shared classifier.
g Generalizes across inputs? Covered: exit codes {0,1,124,137}, 137 with/without diagnostic, minio_* vs real CH tables, and the KILL substring matches regardless of wrapped command name (verified).
h Backward compatible? N/A (CI-only; no user-facing setting / format / on-disk change).
i Invariants/contracts preserved? Yes. "Every genuine failure still FAILs" now holds strictly (bare-137 kill no longer slips through); real_failure still gates the final FAIL; info is still recorded for every failure so the report stays visible.

Session id: cron:clickhouse-worker-slot-3:20260711-172000

@alexey-milovidov alexey-milovidov self-assigned this Jul 12, 2026
Comment thread ci/jobs/scripts/clickhouse_proc.py Resolved
_annotate_timeout stamped "timed out after 600s" on every 137, so an
OOM/external SIGKILL of clickhouse local (which still FAILs) was mislabeled
a timeout. Gate it on _timeout_wrapper_expired (124, or 137 + timeout's
--verbose KILL diagnostic) so a bare 137 keeps its raw stderr. Adds a
focused bare-137 test.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

Addressed the follow-up finding on _annotate_timeout in 02483b8.

Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. _annotate_timeout(137, "") returned "timed out after 600s\n" for an OOM/external kill; unit-asserted before/after.
b Root cause explained? _annotate_timeout gated on raw _TIMEOUT_EXIT_CODES membership (124, 137), so it stamped the timeout annotation onto every 137 exit — including a bare 137 (OOM/external SIGKILL of clickhouse local) which is not our wrapper's --kill-after escalation and correctly still FAILs. The annotation therefore mislabeled a genuine kill as a timeout.
c Fix matches root cause? Yes. _annotate_timeout now gates on _timeout_wrapper_expired(res, stderr) — the same proven-timeout predicate used for the info-only downgrade: 124 always; 137 only when timeout's own --verbose sending signal KILL to command diagnostic is present in stderr.
d Test intent preserved? / New tests added? Yes. Added test_annotate_timeout_only_stamps_proven_timeouts (bare-137 path); pinned the wiring in the source-guard test. No assertion weakened. 12 tests pass.
e Demonstrated both directions? Yes. 124 and proven-137 → annotated (timed out after 600s, raw stderr preserved); bare 137 and non-timeout codes → raw stderr unchanged.
f Fix general, not a narrow patch? Yes. The fix reuses the single existing predicate rather than special-casing one code path, so the downgrade classifier and the annotation now share one source of truth.
g Generalizes across inputs? N/A — CI-script setting fix, not an engine code bug.
h Backward compatible? N/A — CI-only Python; no user-facing behavior, settings, or on-disk/wire format.
i Invariants/contracts preserved? N/A — CI-only Python; no engine invariants touched.

Session id: cron:clickhouse-worker-slot-6:20260712-210700

azat
azat previously requested changes Jul 13, 2026
# own escalation; _timeout_wrapper_expired uses that to tell a real
# --kill-after escalation apart from an OOM/external SIGKILL that also
# exits 137 but must still fail the check.
dump_prefix = f"timeout --verbose --signal=TERM --kill-after=60 {self.DUMP_SYSTEM_TABLE_TIMEOUT} "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not use "--max_execution_time" of clickhouse?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

And a general question, why we have so much MinIO logs? Maybe we can reduce them somehow? I.e. log slightly bigger severity that now

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Considered it, but it cannot replace the process-level cap here. max_execution_time is a query-level soft limit checked cooperatively between blocks. The failure we bound is a wedged clickhouse local (server crashed, so we read via clickhouse-local; on s3_with_keeper disk/keeper init is a known hang, #77320) where the stall is in startup / disk init / outfile flush / shutdown, not in query execution, so max_execution_time never fires and the process eats the whole 9000s budget. The log saver also deliberately zeroes max_execution_time (LOGS_SAVER_CLIENT_OPTIONS) to gather complete *_log tables. timeout is the unconditional wall-clock hard cap. Happy to add --max_execution_time <cap> as a cheap first-line soft limit on top, but it is a complement, not a replacement.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Right, the volume is the real problem and this PR only stops it reddening green jobs. minio_audit_logs is JSON-typed and fed by minio audit_webhook (one row per S3 API request), so on s3 runs every part PUT/GET/HEAD/LIST/DELETE across the parallel suite becomes a row, reaching into the millions (that is what the 20M-row ROWS_COUNT_IN_SYSTEM_TABLE_LIMIT guard is for). Reducing at the source is the durable fix. Two options I can send as a follow-up: (1) raise minio audit severity / drop the audit_webhook so we stop emitting per-request rows, or (2) dump an aggregate rollup (counts grouped by api/status/bucket) instead of raw rows, which is what triage actually reads. Which do you prefer? The timeout stays as a backstop for the wedged-process case regardless.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

raise minio audit severity

Let's do this one and in this PR (cc @antonio2368 as an author of #67998, maybe you find this logs useful, and they will loose the purpose after this change)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't mind, I enabled it initially to try figure out an obscure issue but it's not that critical now.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done in a3dd904. The audit webhook has no severity/level knob (minio emits one audit event per S3 API request unconditionally, see the audit_webhook config list), so raising its severity is not possible. Since the audit stream is no longer needed, I dropped it at the source instead: removed the system.minio_audit_logs table, the audit_webhook:ch_audit_webhook config, its teardown reset, and its dump entry. Only the low-volume logger_webhook server logs remain. The bounded-timeout backstop stays for the remaining minio_server_logs dump.

Per review: the test exercised GNU coreutils' `timeout` (exit 124 vs
137 escalation) rather than any ClickHouse logic, so it would not catch
a regression in our code. Remove it.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

Addressed the CHANGES_REQUESTED review (894d6c3): removed ci/tests/test_dump_system_tables_timeout.py as requested. Replied in-thread on the --max_execution_time and MinIO-log-volume questions (both are design-level; the timeout wrapper stays as the process-level backstop, source-side log reduction proposed as a follow-up).

Pre-PR validation gate (click to expand)
# Check Result
a Deterministic repro? N/A - this commit only deletes a test file at reviewer request; no behavior change to reproduce.
b Root cause explained? The removed test exercised GNU coreutils timeout (124 vs the 137 --kill-after escalation), not ClickHouse logic, so it could not catch a regression in our code.
c Fix matches root cause? Yes - deleting the low-value test is exactly what the reviewer asked.
d Test intent preserved / new tests? The remaining classification logic (_timeout_wrapper_expired, _is_info_only_dump_failure, _annotate_timeout) is still pinned by the production code itself; no ClickHouse behavior was ever covered by the deleted test.
e Demonstrated both directions? N/A - test-only deletion. pytest ci/tests/ still collects and passes the remaining suite.
f Fix is general, not a narrow patch? N/A - no code bug.
g Generalizes across inputs/types? N/A - no code bug.
h Backward compatible? N/A - CI-script test removal, no user-visible change.
i Invariants/contracts preserved? N/A - CI-script test removal.

Session id: cron:clickhouse-worker-slot-0:20260713-093100

The minio audit webhook emits one event per S3 API request with no
severity or level filter, so on s3 runs system.minio_audit_logs grows to
millions of rows and its dump hangs past the 600s cap. minio offers no
way to raise the audit severity, and the audit stream is no longer
needed, so drop the audit table, webhook, and dump entirely, keeping the
low-volume server-log webhook. The bounded-timeout backstop stays as the
safety net for the remaining minio_server_logs dump.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Check Answer
a Deterministic repro? Yes. On s3 runs system.minio_audit_logs grows to millions of rows (one row per S3 API request) and its dump reliably exceeds the 600s cap; this change removes the source of that volume.
b Root cause explained? The minio audit webhook (audit_webhook:ch_audit_webhook) emits one event per S3 API request with no severity/level filter, so on s3 runs the audit table balloons and its dump hangs.
c Fix matches root cause? Yes. Drops the audit stream at the source (table + webhook + teardown reset + dump entry), rather than only bounding the dump. minio has no severity knob for audit logs, so source-removal is the only volume reduction available.
d Test intent preserved? Yes. Server logs (logger_webhook / minio_server_logs) are still collected. The bounded-timeout backstop and its info-only classification stay in place for the remaining minio_server_logs dump.
e Demonstrated both directions? N/A (CI-infra config removal; no server logic changed). Verified: no stateless test references minio_audit_logs; python parses; only ci/jobs/scripts/clickhouse_proc.py touched.
f Fix is general, not a narrow patch? N/A (CI script config change, not a code bug).
g Generalizes across inputs? N/A (CI script config change, not a code bug).
h Backward compatible? N/A (CI-infra only; no user-visible ClickHouse behavior).
i Invariants/contracts preserved? N/A (CI-infra only).

Changelog category: CI Fix or Improvement (unchanged).

Session id: cron:clickhouse-worker-slot-8:20260713-102500

@azat azat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

And now cleanup the patch from useless comments and update PR title and description according to latest changes and keep only essential things there

…inio-timeout-info-only

# Conflicts:
#	ci/jobs/scripts/clickhouse_proc.py
#	ci/tests/test_minio_log_tables_local_storage.py
@groeneai

Copy link
Copy Markdown
Collaborator Author

@azat cleaned up: trimmed the now-stale code comments to essentials, dropped the dead _TIMEOUT_EXIT_CODES constant, and rewrote the PR title and description to match what the patch now does (drop the minio audit-log webhook at the source; keep the bounded-timeout backstop treating a proven minio timeout as info-only). Also merged master to resolve the conflicts @tiandiwonder flagged. Net diff is 3 files (clickhouse_proc.py, the local-storage guard test now single-table, and the deleted dump-timeout test); no submodule drift.

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? N/A. This run is a comment cleanup + master merge to resolve conflicts; no new failure. The underlying timeout/info-only behavior was validated in earlier commits.
b Root cause explained? Yes. The audit webhook emitted one event per S3 API request, ballooning system.minio_audit_logs past the 600s dump cap; dropping it at the source removes the volume, and the bounded timeout stays as a backstop.
c Fix matches root cause? Yes. Drop the audit stream (table, config, teardown, dump entry) + treat only a proven minio timeout as info-only.
d Test intent preserved? Yes. The local-storage guard test still asserts the surviving minio_server_logs is pinned to an explicit local disk and its reset step is symlink-safe; updated to a single table since the audit table is gone.
e Demonstrated both directions? Guard tests run locally: both pass on the merged tree.
f Fix general, not narrow? N/A (CI-script change, not a code bug).
g Generalizes across inputs/types? N/A (CI-script change).
h Backward compatible? N/A (CI-infra only).
i Invariants preserved? Yes. _is_info_only_dump_failure still requires a proven wrapper timeout (124, or 137 with timeout's own KILL diagnostic); OOM/external SIGKILL still fails.

Session id: cron:clickhouse-worker-slot-2:20260717-093600

`ENGINE = MergeTree` tables, so unless pinned they inherit the server's default
merge_tree storage policy. On s3 storage runs that default is S3
(s3_storage_policy_for_merge_tree_by_default.xml sets
`system.minio_server_logs` is a diagnostic table that captures the MinIO server

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we don't expose it in artifacts, why do we need it? Let's remove it. Maybe this will also make MinIO faster

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done, removed the whole thing. Both system.minio_audit_logs and system.minio_server_logs webhook log tables are gone: the table CREATEs, the logger_webhook/audit_webhook config, the local-disk pinning, _restart_minio_to_apply_config and its helpers, the guard tests, and the two create_minio_log_tables call sites in functional_tests.py. That also drops a webhook stream from MinIO. The generic per-dump timeout backstop stays for the remaining system tables, so this PR now shrinks to a pure removal. Title and description updated to match.

groeneai and others added 2 commits July 17, 2026 13:31
The system.minio_audit_logs and system.minio_server_logs tables were
webhook-fed operational logs, not ClickHouse diagnostics, and were never
exposed in CI artifacts. On s3 runs the audit stream (one event per S3
API request) grew to millions of rows, so its post-run dump hit the
Scraping system tables timeout. antonio2368 (who enabled them in ClickHouse#67998
for a one-off investigation) confirmed they are no longer needed.

Remove both tables, their webhook config, the local-disk pinning, the
restart-to-apply-config machinery, and their guard test. This also drops
one webhook stream from MinIO. The generic per-dump timeout backstop is
kept for the remaining system tables.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai groeneai changed the title Drop the minio audit-log webhook; do not fail 'Scraping system tables' on a bounded minio timeout Drop the MinIO webhook log tables from the stateless CI setup Jul 17, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Check Answer
a Deterministic repro? N/A. This removes a CI harness feature (MinIO webhook log tables); no product bug to reproduce. The motivating symptom (audit-log dump hitting the 600s Scraping timeout on s3 runs) is well established in #109837.
b Root cause explained? The minio_audit_logs/minio_server_logs tables are MinIO webhook-fed operational logs, not CH diagnostics, never exposed in CI artifacts. The audit stream emits one event per S3 API request, so on s3 runs it grows to millions of rows and its dump exceeds the cap.
c Fix matches root cause? Yes. Removing the tables + webhooks at the source eliminates the volume entirely, per azat's directive and antonio2368's sign-off (they were enabled in #67998 for a one-off investigation).
d Test intent preserved? The guard tests (test_minio_log_tables_local_storage.py, test_dump_system_tables_timeout.py) covered code that no longer exists, so they are removed with it. No remaining behavior loses coverage.
e Demonstrated both directions? N/A. Pure removal of dead CI machinery; verified ast.parse + ruff clean on the merged-with-master tree, and no remaining references to the removed symbols.
f Fix general, not narrow? Yes. Removed the full feature: both tables, both webhook configs, local-disk pinning, _reset_minio_log_disk_dirs, _restart_minio_to_apply_config, _force_restart_minio, _minio_binary, _wait_minio_ready, minio_setup_error, both create_minio_log_tables call sites, and the terminate() webhook resets.
g Generalizes across inputs? N/A (CI-script removal, not a code bug).
h Backward compatible? N/A (CI-internal test harness; no user-facing behavior, on-disk/wire format, or setting).
i Invariants preserved? N/A (CI-script removal). The generic per-dump timeout backstop is retained unchanged for the remaining system tables.

Session id: cron:clickhouse-worker-slot-4:20260717-130800

@azat azat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

   Unlike `terminate`, this leaves the auxiliary services (Redpanda/Kafka,
   MinIO and its webhooks) running. It is used between bugfix-validation

This comment in clickhouse_proc.py need to updated as well, since there are no more MinIO webhooks

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 1a4d4e2

CI fully finished on this head (Config Workflow = SUCCESS, Finish Workflow = SUCCESS; 0 checks queued/in_progress; >20-min ingest buffer elapsed). CIDB shows ZERO failing tests for this commit.

Check / test Reason Owner / fixing PR
(no failing tests) - -
Sync - CH Inc sync (private, not actionable)

All checks green except the private CH Inc sync (exempt). No PR-caused failure.

Session id: cron:our-pr-ci-monitor:20260718-000000

…bhook wording

The AI review on the current head flagged that shrinking this PR to a pure
removal also dropped the earlier `137` disambiguation: `_annotate_timeout`
stamped `timed out after 600s` onto every `137` exit, so an OOM or externally
`SIGKILL`ed `clickhouse local` dump was mislabeled as a timeout. Restore the
proven-timeout predicate: the dump wrapper runs `timeout --verbose`, and
`_timeout_wrapper_expired` treats `124` as an expiry always and `137` only
when timeout's own `sending signal KILL to command` diagnostic is present in
stderr; a bare `137` keeps its raw stderr.

Also update the `stop_server` docstring that still mentioned MinIO webhooks,
as requested by review.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110099&sha=latest&name_0=PR
ClickHouse#110099
@alexey-milovidov

Copy link
Copy Markdown
Member

@azat updated the stop_server docstring in 68cb14f — it no longer mentions MinIO webhooks, only the surviving auxiliary services (Redpanda/Kafka, MinIO). The same commit restores the proven-timeout gating in _annotate_timeout (with timeout --verbose) that the AI review flagged as lost in the reshape to a pure removal: a bare 137 from an OOM/external SIGKILL is no longer mislabeled as timed out after 600s.

@alexey-milovidov alexey-milovidov added can be tested Allows running workflows for external contributors and removed can be tested Allows running workflows for external contributors labels Jul 20, 2026
@alexey-milovidov
alexey-milovidov requested a review from azat July 20, 2026 14:30
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jul 20, 2026
Merged via the queue into ClickHouse:master with commit 4b63703 Jul 20, 2026
178 checks passed
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 20, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…timeout --verbose

Address clickhouse-gh[bot] review on ClickHouse#110099.

Finding B (real fix): exit 137 is not an unambiguous bounded-timeout signal --
GNU timeout returns 137 for its own --kill-after escalation AND for any wrapped
command SIGKILLed by the OOM-killer or an external kill. Blindly suppressing 137
would downgrade a genuine OOM/external kill of clickhouse local to info-only.
Add 'timeout --verbose' and a _timeout_wrapper_expired() predicate: 124 is always
a timeout; 137 is trusted as a timeout only when timeout's own KILL diagnostic
('sending signal KILL to command') is present in stderr. A bare-137 OOM/external
kill now still FAILs the check.

Finding A (caller wiring): confirmed correct and does not require a code change.
The only publisher of 'Scraping system tables' (functional_tests.py Collect-logs)
runs dump_system_tables via prepare_logs(all=test_result and not test_result.is_ok()),
so it only runs on an already-red job; on a green job no Scraping result is
produced at all. The reclassification therefore does not (and never claimed, per
this fix) rescue a green PR by itself -- its effect is on an already-red job:
a bounded minio_* timeout no longer adds a spurious extra failed sub-result that
would inflate the failure count and muddy triage. Pinned by a new regression test.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…bhook wording

The AI review on the current head flagged that shrinking this PR to a pure
removal also dropped the earlier `137` disambiguation: `_annotate_timeout`
stamped `timed out after 600s` onto every `137` exit, so an OOM or externally
`SIGKILL`ed `clickhouse local` dump was mislabeled as a timeout. Restore the
proven-timeout predicate: the dump wrapper runs `timeout --verbose`, and
`_timeout_wrapper_expired` treats `124` as an expiry always and `137` only
when timeout's own `sending signal KILL to command` diagnostic is present in
stderr; a bare `137` keeps its raw stderr.

Also update the `stop_server` docstring that still mentioned MinIO webhooks,
as requested by review.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110099&sha=latest&name_0=PR
ClickHouse#110099
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…minio-timeout-info-only

Drop the MinIO webhook log tables from the stateless CI setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors manual approve Manual approve required to run CI 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.

6 participants