Skip to content

AST fuzzer: bound post-fuzz stages and detect a memory-stuck server - #111934

Closed
groeneai wants to merge 9 commits into
ClickHouse:masterfrom
groeneai:fix-fuzzer-memory-stuck
Closed

groeneai wants to merge 9 commits into
ClickHouse:masterfrom
groeneai:fix-fuzzer-memory-stuck

Conversation

@groeneai

@groeneai groeneai commented Jul 26, 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

Requested by @ alexey-milovidov in #110074 (comment).

After an AST fuzzer run ends, the server can be stuck above its memory limit while idle: every post-fuzz SELECT 1 probe is rejected with (total) memory limit exceeded and RSS keeps climbing with zero queries running. The liveness loop tolerated that as "alive, will reclaim" and looped; then a graceful stop with an unbounded wait hung on the saturated server. The job drifted into the external job-cancellation ceiling (~80-90 min) before status.tsv was written or any artifact uploaded, so the offending query history is destroyed and the growth is unattributable. Exemplar: AST fuzzer (amd_debug, targeted, old_compatibility) on #110074 head 99589a86, GHA job 89472316051 ((total) memory limit exceeded: would use 55.80 GiB (attempt to allocate chunk of 0.00 B), current RSS: 57.11 GiB, maximum: 46.32 GiB, canceled at 78.3 min). CIDB: this vanished-job mode hits about 1 run/day per targeted twin and is variant-agnostic (the harness path is shared by all AST fuzzer and BuzzHouse variants), so it is not old_compatibility-specific.

Fix: bound the three post-budget stages that produced the hang inside run-fuzzer.sh (the container's PID1) - the client reap, the liveness probe window and the teardown wait - and make the stuck state a first-class, artifact-carrying FAIL. The pre-existing zstd core.* compression is left unbounded and out of scope (it is master's behaviour, byte-identical here, and the host-side collector it feeds is not part of this change). Fuzz budgets and the --kill-after client grace are unchanged.

  • Probe loop: count consecutive server-global (total) memory limit exceeded rejections and trip on two tiers - FAST (>=12 rejections AND host MemAvailable < 4 GiB, so a grower is caught before it OOMs the box) / PATIENT (>=60 regardless). On trip: write server_memory_stuck.txt, SIGKILL the server, server_died=1. Per-query/user 241 and TOO_MANY_SIMULTANEOUS_QUERIES reset the counter; the in-loop SHOW PROCESSLIST diagnostic is wall-clock-bounded (timeout 10); the whole probe stage carries a 300 s aggregate deadline; the transient-241 reclaim tolerance is preserved within the window. A window with zero answered probes fails closed.
  • Bound the client reap and the teardown wait (previously unbounded waits); a reap/teardown escalation writes harness_watchdog.txt and reports ERROR (never a silent OK).
  • Classification: pre-run cleanup of stale inputs on reused worktrees; the memory-stuck marker reports the stable name Server unresponsive: memory limit exceeded; a genuine earlier parser finding still wins; a zero-answer exhaustion that is not memory-dominated records a probes-stage watchdog (ERROR) instead of scraping the graceful-stop signal line (the persistent-probe-timeout exit records the same watchdog); all sanitized-build OOM leniency is disabled when a marker/watchdog is present (a self-inflicted SIGKILL and the recoverable allocator_may_return_null warning must not be forgiven).

The engine-side memory accumulation is not addressed here (no artifacts exist to attribute it yet - this fix creates them). Tracking issue for that follow-up: #111892. Related: #109590 fixes a distinct sub-mode (client exits 241 while the server stays healthy - classification only).

Tests: unit only (no server/docker). The probe loop, the reap/teardown polls and the memory-stuck server kill are exercised verbatim via marker extraction with real child processes (kill/wait stay real; only sleep is PATH-mocked), so the wall-clock magnitude of each bound is pinned separately against the block text (poll cadence, counter step, probe-stage deadline, reap slack, teardown deadline). The Python classification is covered via the production helpers, whose call sites in run_fuzz_job are pinned by name. The artifact chmod is exercised through its real EXIT trap (normal failed exit, a set -e abort after the marker write, a failing earlier trap handler, a healthy run that must not chmod, and a root-owned core.*). The ownership-repair decision also inspects the cores ClickHouseService.collect_cores will read - an unreadable core makes it raise after classification and would discard the whole Result - and those cores are deliberately kept out of the upload list, since a core may only leave the runner compressed and encrypted. Outside the markers, and so only bash -n-checked: the two gdb tracer PID captures. ci/tests/test_fuzzer_liveness_loop.py (extended) + ci/tests/test_ast_fuzzer_memory_stuck.py (new).

@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review - adjudicated (click to expand)

An independent reviewer pass (own cold review + a second-model gate) ran against this change before publication, over 12 review rounds. Every finding was adjudicated with recorded evidence; blocker/major findings that held up were fixed before this PR was opened. The final round returned zero findings from both the cold review and the gate.

# Finding Severity Verdict
❌ 1 A reap-stage watchdog with a healthy, gracefully-stopped server let the log parser scrape the normal-termination Received signal 15 line into a crash-looking FAIL row, suppressing the watchdog ERROR. major AGREE - fixed. The classification gate is restored to master's invariant: the parser scrapes logs only when the server actually died (_should_parse_logs); watchdog-only runs surface the watchdog ERROR sub-result.
❌ 2 Pre-run hygiene logged and ignored unlink failures; a surviving stale marker would deterministically misclassify the NEXT run as memory-stuck. major AGREE - fixed. _clean_stale_run_state now fails closed: any surviving stale classification input raises before the container launches.
❌ 3 Test liveness: the sanitized-OOM-leniency test asserted a copied predicate rather than the production one, and one parametrize axis was decorative. major AGREE - fixed. The leniency guard and the parser gate are production helpers (_oom_leniency_granted, _should_parse_logs) invoked at the call sites and tested directly; the decorative parametrize is gone.
⚠️ 4 The 12/60-probe stuck thresholds could kill a live server that would have recovered, without a discriminating observation of "still growing". major DISAGREE - evidence recorded. A probe succeeds iff tracked memory drops below the cap, so 60 consecutive rejections = 60 s of zero net reclaim while idle, on par with the loop's pre-existing ~72 s persistent-timeout declare-point; the fast tier additionally requires the server's own tracker over cap AND host MemAvailable < 4 GiB (unrelated host pressure alone cannot produce the first conjunct). A false trip yields an artifact-carrying FAIL with probe count/tier/MemAvailable recorded (triageable, and countable in CIDB under the stable row name for recalibrating the two constants); the status-quo outcome for the same state is the evidence-destroying external cancel. Historical healthy-recovery replay is structurally unobtainable pre-merge: passing runs leave no probe traces.
❌ 5 Test liveness (re-raise of #3's remainder): the reap/teardown watchdog polls were bash -n-checked but never executed by a test, and the promoted helpers' call sites in run_fuzz_job were unpinned. major AGREE - fixed. The reap and teardown polls are now exercised verbatim (marker extraction) with real child processes - normal exits propagate the child status, deadline escalations SIGKILL and record the watchdog - and all 9 helper call sites are pinned by name.
❌ 6 A zero-answer probe exhaustion that is not memory-dominated (e.g. persistent TOO_MANY_SIMULTANEOUS_QUERIES) declared a still-live server dead without a marker; the graceful stop's normal Received signal 15 line was then scraped into a bogus crash-looking FAIL row. major AGREE - fixed. Such an exhaustion now records a probes-stage watchdog line; classification treats the subsequent stop as self-inflicted and reports the watchdog ERROR instead (a genuine earlier sanitizer/logical-error finding still wins).
❌ 7 The TOO_MANY_SIMULTANEOUS_QUERIES branch's SHOW PROCESSLIST diagnostic ran with the client's 300 s receive-timeout default, up to 100 times inside the probe loop - an admitted-but-slow diagnostic on a thrashing server could hold the stage (and a query slot) toward the same external-cancellation ceiling this PR closes. major AGREE - fixed. The diagnostic is wall-clock-bounded (timeout 10), and a static test asserts every in-loop clickhouse-client invocation carries an explicit bound.
💡 8 _STALE_RUN_STATE omitted fuzzerout.sql, the parser's fuzzer_log input for BuzzHouse runs. nit AGREE - fixed (added to the hygiene list).
💡 9 black re-wrap churn in _collect_targeted_queries (~40 cosmetic lines). nit Noted, not blocking. Re-verified hunk by hunk as pure re-wrapping of logging calls, and this repository's style check runs ruff only, so nothing gates on it; reverting would add churn on lines the fix does not touch.
💡 10 Comments/docstrings still described the watchdog as reap/teardown-only and the exhaustion fallback as parser-classified, contradicting the probes-stage watchdog added for finding 6. nit AGREE - fixed (comments/docstrings generalized; no code change).
❌ 11 Per-call bounds still allowed the probe stage to aggregate ~16 s per TOO_MANY_SIMULTANEOUS_QUERIES iteration (~27 min over 100 probes) - on a 60-minute run plus reap/teardown allowances that erodes the margin to the external cancel this PR closes, and the static test accepted any numeric bound. major AGREE - fixed. The probe stage carries a 300 s aggregate wall-clock deadline (above every detector's trip point, so none is preempted); a deadline exit flows into the fail-closed exhaustion classification; the static test now caps per-call bounds at 60 s.
❌ 12 The persistent-probe-timeout exit (12 consecutive receive timeouts) declared a live-but-unanswering server dead without recording harness state; the subsequent graceful stop's normal Received signal 15 line was then scraped into a crash-looking FAIL row (same mechanism as finding 6, last remaining path). major AGREE - fixed. That exit now records the probes-stage watchdog; classification treats the stop as self-inflicted and reports the watchdog ERROR (a genuine earlier sanitizer/logical-error finding still wins).
❌ 13 The aggregate probe-stage deadline was covered only by a zero-second test that exits before its first probe, so it could not distinguish the per-iteration check from a guard hoisted out of the loop, and nothing pinned the 300 s production default. major AGREE - fixed. A second test drives the loop with a genuinely delayed child and a nonzero deadline (the loop starts, serves probes, and is cut off far short of the 100-probe cap - which only a per-iteration check can do), and a static test pins the production default to the 120-300 s window.
❌ 14 Test liveness of the reap/teardown bounds: production expresses them as iteration counters next to sleep 1, while the test helper mocks sleep to a fixed 0.01 s ignoring its argument - so raising the cadence to sleep 10, or the 180/390 limits tenfold, would add tens of minutes in production with the suite still green. major AGREE - fixed. Static pins over the marked block text assert the 1 s poll cadence in all three polled blocks and cap the reap slack, the teardown deadline, and the post-SIGKILL grace, so a wall-clock regression in any of them fails the suite. The polls themselves are unchanged.
❌ 15 The counter STEP was the one unpinned factor of the same wall-clock product (ceil(deadline / step) x cadence): stepping by 10 shrinks the reap bound from 3990 s to 399 s (which would SIGKILL a healthy 60-minute fuzz client) and the teardown bound from 180 s to 18 s, with every existing test still green. Nor did any test prove a poll TOLERATES a live child up to its deadline - both escalation tests use a child that never exits, so they pass either way. major AGREE - fixed. A static pin asserts, for both polled blocks, that the step is exactly 1, the escalation comparison direction is intact and the counter is zero-initialised; two behavioral tests place a real child's exit deep inside each deadline and assert the child's own status is propagated with no watchdog written, so a step or operator mutation flips them to a SIGKILL plus a bogus watchdog record.
❌ 16 The deliberate memory-stuck server kill sat between two marked blocks, so no test executed it: deleting its body left the whole suite green while, in production, a stuck server would survive into the graceful stop and only die at the teardown escalation. major AGREE - fixed. The guard is now exercised verbatim with real child processes in both directions - when stuck, the server and its gdb tracer are both reaped as SIGKILLed; when not stuck, both are left to exit on their own, which also covers the unset-tracer shape ASan builds produce.
💡 17 Two test comments stated arithmetic contradicting their own assertions: a probe-index off-by-one, and the poll-bound formula written as step x cadence x deadline rather than deadline / step x cadence. nit AGREE - fixed (comments only; the assertions were already correct).
❌ 18 The self_killed_server flag skipped the whole Signal pattern rather than only the harness-generated lines, so a server that died of a genuine fatal signal (6/7/8, or 11 logged only as Received signal 11) while the probe stage declared it unanswering lost its crash signature entirely - the higher-priority SegFault pattern matches only the literal "Segmentation fault" and cannot rescue those. major AGREE - fixed. The flag now drops only the three harness-generated signatures (Received signal 15, Received termination signal, Child process was terminated by signal 9); every other signal stays reportable, pinned by tests using signals 6 and 7.
❌ 19 The reap escalation's auxiliary kills (the gdb tracer and the actual client behind the timeout wrapper) were unexercised, and the ASan-shape test asserted a false premise - actual_fuzzer_pid is assigned before the ASan branch, so only the tracer PID is unset there. Nesting the client kill under the tracer guard would have left both fixtures green while orphaning a live client that keeps issuing queries during the post-fuzz probes. major AGREE - fixed. All three PIDs are real children and each is asserted SIGKILLed; the ASan variant binds the client and leaves only the tracer unset, keeping the set -u guard coverage. Mutants that nest or delete the client kill now fail.
❌ 20 The two memory thresholds (the 4 GiB MemAvailable floor and the 30-rejection exhaustion dominance cutoff) had no adjacent-boundary coverage, so a value moved just inside either bracket would change production behavior with the suite green. major AGREE - fixed. Behavioral cases at just-below / just-at the 4 GiB floor and at 29 vs 30 rejections, plus static pins on both constants.
❌ 21 The self-kill filter ran on rg's OUTPUT, after -A 10 had already expanded up to ten trailing context lines around the harness line. Those context lines do not match the filter, so they survived: an ordinary shutdown line became the failure name, and downstream it passed as a genuine parser finding and DEMOTED the memory-stuck marker row - destroying the stable CIDB signature this PR promises. blocker AGREE - fixed. The filter now runs on the source file BEFORE the search expands context, so the harness lines cannot generate context at all. Verified in six directions (with and without trailing context, self-only, genuine-only, self-above-genuine, SIGTERM vs SIGKILL); the flag-off command string is byte-identical to master, so the six other parser call sites are unaffected.
❌ 22 Test liveness of the same defect: the filter fixtures ended at the line under test, so -A 10 had no context to leak and they passed over the broken path; nothing pinned the downstream marker-vs-parser selection on that shape. major AGREE - fixed. Fixtures now carry realistic trailing shutdown / watchdog context, and a third test feeds the parser output to the real selection helper and asserts the marker row still wins.

Two further findings were DISAGREEd with recorded evidence rather than fixed. First, that the parser's self_killed_server argument is unpinned: every single-step mutation of that call site (removing the keyword, or pinning it to a constant) leaves the feeding local unused and is rejected by this repository's own ruff gate (F841, selected in pyproject.toml and run by check_style.py); the only mutation that escapes ruff also removes two helper names that the existing call-site pin asserts. Second, finding 4 above.

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. The extracted-loop unit test drives the real probe-loop text (verbatim between the BEGIN/END markers) with a mock clickhouse-client emitting the exact (total) memory limit exceeded probe line from the exemplar job and a fake /proc/meminfo via the MEMINFO_PATH seam.
b Root cause explained? Yes. Post-fuzz server pinned above cap and growing while idle -> loop tolerated (total) 241 indefinitely (server_died=0) -> unbounded graceful-stop wait + unbounded client reap -> job hit the ~80-90 min external cancel before status.tsv/artifact upload -> no CIDB row, evidence destroyed.
c Fix matches root cause? Yes. Bounds every post-budget stage in run-fuzzer.sh and makes the stuck state a first-class artifact-carrying FAIL. Not a band-aid: fuzz budgets and the --kill-after grace are untouched; the engine-side growth is deferred to a tracking issue (no artifacts to attribute it yet).
d Test intent preserved / new tests added? Yes. The pre-existing liveness-loop / log-parser / stress-job tests pass unchanged; the liveness-loop suite grew from 3 to 37 cases (probe loop, aggregate stage deadline exercised with a delayed child, reap/teardown polls with real children in BOTH directions - escalation and tolerance of a child still live deep into its deadline - the deliberate memory-stuck kill exercised verbatim with real children in BOTH directions (SIGKILL of the server and of the gdb tracer; no-op when not stuck), the reap escalation's gdb-tracer and actual-client kills in both the traced and the ASan no-tracer shape under set -u, the fast-tier MemAvailable floor and the exhaustion dominance cutoff at their adjacent boundaries, and static pins on the poll cadence, the counter step/operator, the reap/teardown/grace limits and the two memory thresholds) plus a classification suite of 47 collected cases, which also covers a genuine fatal signal surviving the self-kill filter, the filter running before rg -A 10 expands context, and the marker row outranking a self-inflicted context line. 104 cases collected and passing across the four exercised suites.
e Both directions demonstrated? Yes. The new memory-stuck cases FAIL against the pristine origin/master run-fuzzer.sh (old loop leaves server_died=0 for a stuck server) and PASS with the patch. Each classification and reap assertion is likewise pinned by a mutant that fails it (post-filter ordering restored, pre-filter removed, self-kill pattern widened, the client kill nested under the tracer guard or deleted).
f Fix is general across code paths? Yes. run-fuzzer.sh is shared by all AST fuzzer variants + BuzzHouse; the self_killed_server filter drops only the three harness-generated signatures and runs before the search expands context, so it covers every producer of the flag (memory-stuck marker, teardown watchdog, both probes-stage exits) while a genuine fatal signal stays reportable and the stable memory-stuck name is never demoted. All 6 other FuzzerLogParser call sites (stress_job.py, clickhouse_proc.py, the __main__ demo, 3 in test_log_parser.py) default to False and keep byte-identical command strings.
g Fix generalizes across inputs? Yes. Two-tier trip + exhaustion fail-closed + counter-reset matrix, covering (total) 241 / per-query 241 / TOO_MANY_SIMULTANEOUS_QUERIES / probe timeout, with the MemAvailable and probe-count boundaries pinned. The classification side is exercised with and without trailing context lines, self-only / genuine-only / self-above-genuine, SIGTERM vs SIGKILL, plus empty-filtered-output and missing-file boundaries.
h Backward compatible? Yes. CI-harness only: no server settings, no SettingsChangesHistory.cpp, no format/versioning. Healthy runs behave identically (leniency gated on marker+watchdog absent).
i Invariants and contracts preserved? Yes. status.tsv 3-field contract intact (the new state travels via marker/watchdog files + the existing server_died field); pre-run hygiene never wipes pre-container survivors (ci-targeted-queries.txt, fuzz.json); marker forces FAIL / watchdog forces ERROR, never OK.

Session id: cron:clickhouse-impl-slot-5:20260726-045900

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @leshikus - could you review this? It bounds the three unbounded post-budget stages in run-fuzzer.sh (client reap, the liveness probe window, teardown) and turns a post-fuzz server that is stuck above its memory limit into an artifact-carrying FAIL, so those jobs stop drifting into the external cancel with no status.tsv and no uploaded logs.

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

clickhouse-gh Bot commented Jul 26, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [4a26d98]


AI Review

Summary

This PR bounds the post-fuzz AST/BuzzHouse cleanup stages, adds memory-stuck and watchdog classification, and tries to preserve artifacts on abnormal exits. The remaining issue is in the early-abort witness: it still treats any watchdog as proof that the harness already stopped the server, which can hide a genuine server signal when the shutdown witness write fails before clickhouse stop.

Findings

⚠️ Majors

  • [ci/jobs/ast_fuzzer_job.py:682] _early_abort_stopped_by_harness conflates pre-shutdown watchdogs with a completed harness stop. stage=reap is written before the probe loop and stage=probes before server_stopping.txt, so a failing server_stopping.txt write under set -e reaches the early-abort path with a watchdog file but without any stop having been sent. Returning True here makes _parse_and_select_failure drop a genuine Received signal 15 / Received termination signal and misclassify the abort as self-inflicted.
    Suggested fix: key this helper only on witnesses that imply the stop already happened (marker_result, SERVER_STOPPING, and at most a stage=teardown watchdog), and add a focused regression that combines a pre-shutdown watchdog with a failing server_stopping.txt write.
Final Verdict

Changes required before merge: the early-abort shutdown witness is still too broad and can suppress a real server signal.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jul 26, 2026
Comment thread ci/jobs/ast_fuzzer_job.py Resolved
@groeneai
groeneai force-pushed the fix-fuzzer-memory-stuck branch from d2deba8 to 79a0be3 Compare July 26, 2026 15:54
@groeneai

Copy link
Copy Markdown
Collaborator Author

Pushed 79a0be32d1eed, and squashed the branch to a single commit (it had grown to 13).

CI Tests / ci/tests/test_e2e.py::test_fuzzer was PR-caused, and is fixed. CIDB over 30 days for that test: 1165 OK / 1 FAIL, the FAIL being this PR; 8 other PRs ran it green in the same 6h window and master has zero hits. Reproduced locally in 7 s, and the counterfactual pins it: replacing the _clean_stale_run_state() call with pass turns the test green.

The mechanism, from the job log rather than inference: it prints Fuzzer runner aborted before writing status.tsv. test_fuzzer seeds status.tsv plus the job artifacts and then invokes the real job, and my pre-run cleanup deleted that seeded status.tsv one line before the container ran. The job then took the missing-status.tsv early abort, which completes the job and exits before collect_cores, so the report carried no encrypted core.

The cleanup itself has to stay (praktika reuses worktrees and ci/tmp is gitignored, so git clean -ffd keeps whatever the last run left), and the test's .zst.enc / .rsa / no-raw-key assertions are the only end-to-end coverage of the core encryption path, so neither side could be weakened. The fix is an explicit opt-in the fixture sets. Notably not the generic local-run flag, which I tried first: ci.praktika run sets it by default, so that would have stopped ordinary local reruns from cleaning up after themselves.

Two more defects came out of reviewing that change, both folded into the same commit:

  • The AI Review finding at ast_fuzzer_job.py:693 is correct. Verified by driving Result.create_from directly: status=ERROR plus a marker sub-result returns FAIL, because it re-derives from sub-results when given no status and a marker row is a FAIL. So the ERROR set by the BuzzHouse-227, client-failure, and dmesg-OOM branches was silently downgraded. ERROR outranks FAIL in that same derivation, so an already-decided ERROR is now kept.
  • Stale cores could be attributed to the wrong run. zstd keeps its input, so a raw core outlives the run that produced it, and both the runner tail and collect_cores glob core.* blindly. A later run that produces no core of its own, which is exactly what the memory-stuck kill does, would compress, encrypt and attach the previous run's core as its own evidence. core.* is now part of the cleanup.

The extracted shell blocks also now run under run-fuzzer.sh's own set -euo pipefail instead of just set -u. Dropping the ||: from the teardown poll's cleanup kill previously passed silently; it now fails three teardown tests.

ci/tests: 516 pass. The 7 remaining failures are pre-existing on the base commit (verified by restoring the base versions of my files and re-running) and need a real server binary; CI itself ran 522 with exactly one red, this one. Each fix above is mutation-tested: reverting any one of them fails a specific named assertion.

One finding I did not act on: the reviewer flagged the unbounded zstd --threads=0 core.* in run-fuzzer.sh. That block is byte-identical to the merge base, and the other paths cited (collect_cores, praktika/utils.py) are not touched by this PR, so bounding it is a separate concern rather than a regression here.

@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Jul 26, 2026
Comment thread ci/jobs/ast_fuzzer_job.py Resolved
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Jul 26, 2026
The in-container `chmod -R a+r` that makes sanitizer.log.* and the logs
host-readable ran inline at the end of `fuzz`, after the marker write. The
script runs under `set -e`, so any non-zero command in between skips it: a
failing `zstd core.*` on a nearly-full box and a failing `status.tsv` write both
abort there, and both were reproduced. On that path the Python side saw a marker
and skipped its own host-side ownership repair, so the run uploaded nothing
readable - exactly the evidence this change exists to preserve.

The chmod now runs from the EXIT trap (after collect_sanitizer_reports, which
appends the reports into stderr.log/server.log, so ordering matters), and each
trap handler is `||:`-guarded because the trap body itself runs under `set -e`.

The Python side no longer treats "a marker exists" as proof that the chmod ran:
a container SIGKILLed by the kernel OOM killer never reaches its trap, so the
files can still be root-owned 0640. The ownership repair is now skipped only
when the artifacts are actually readable.

Reported by clickhouse-gh[bot] on ClickHouse#111934.

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

Copy link
Copy Markdown
Collaborator Author

Pushed 793d44ad266a86. The report is correct on both counts and I reproduced each one.

1. set -e can abort between the marker write and the chmod. Two concrete
aborts, both reproduced in a scratch shell running production's
set -euo pipefail:

  • zstd --threads=0 core.* exiting non-zero (a full disk is the realistic case)
    aborts at run-fuzzer.sh:643 and never reaches the chmod at :654.
  • the echo ... > status.tsv at :662 failing on a read-only/full workspace does
    the same.

The mv core.*.zst core.zst example does not fire, for a reason worth recording:
with more than one core, test -f core.* at :642 itself fails with
test: core.111: binary operator expected, and since the if condition is
exempt from set -e the whole block is skipped rather than aborted, so the
chmod is reached. The failure mode you describe is real; the specific command
named is not the one that triggers it.

2. The Python side did use the marker as a proxy for the chmod having run.
Confirmed: ast_fuzzer_job.py skipped fix_ownership_after_docker whenever a
marker/watchdog existed, and sanitizer.log.* is written 0640 by Clang under
umask 022, so a container SIGKILLed before its EXIT trap (kernel OOM killer,
docker teardown) leaves exactly the abnormal-run evidence unreadable by the
uploading host user.

Both of your suggested shapes are now in place, because they cover different
failures:

  • the chmod moved into the EXIT trap, so an abort inside fuzz is covered;
  • the ownership repair is skipped only when the artifacts are actually
    readable (_unreadable_artifacts), so a container that never reached its trap
    at all is covered too.

One defect found while implementing this that is worth naming: the trap body
also runs under set -e, so trap 'collect_sanitizer_reports; make_artifacts_host_readable' EXIT drops the chmod whenever the first handler
returns non-zero, and it replaces the script's exit code (137 became 3 in a
mutation run). Each handler is now ||:-guarded.

Five mutation tests, each killing its intended assertion: unguarded trap handlers,
the chmod moved back inline, the readability gate reverted to marker-only, the
unreadable term replaced with a constant, and the call site dropped. All
restores md5-verified. ci/tests/: 527 passed, 7 failed - the same 7 that fail on
the delta base and need a real binary or live server. ruff clean, bash -n clean.

Also corrected a now-false line in the PR description: it still said the artifact
chmod was only bash -n-checked.

Not addressed, and not a regression of this change: the unbounded
zstd --threads=0 core.* itself, plus the second compression in collect_cores.
That block is byte-identical to the merge-base, and neither
ci/jobs/scripts/clickhouse_service.py nor ci/praktika/utils.py is in this PR
(git diff --name-only lists neither). Bounding the core compressor end-to-end
is a separate root cause and belongs in its own PR.

Comment thread ci/jobs/ast_fuzzer_job.py Resolved
@groeneai

Copy link
Copy Markdown
Collaborator Author

Pushed 383ea5ff5564c8. The report is correct, and I reproduced every leg of it before agreeing.

All three legs confirmed. paths really is logs + markers + the optional BuzzHouse pair only -- I extracted the whole construction block programmatically and it contains no core at all, so _unreadable_artifacts structurally could not see a core. run-fuzzer.sh had no chmod covering them either: expanding its exact glob list in a directory that also held core.12345 / core.zst yielded sanitizer.log.1 ./server.log ./stderr.log status.tsv server_memory_stuck.txt harness_watchdog.txt and nothing else. And driving the real ClickHouseService.collect_cores against one mode-000 core reproduced the failure reported: RuntimeError: command failed, exit code 1 / zstd: .../core.12345: Permission denied (Utils.compress_zst calls Shell.check(..., strict=True)).

The consequence is worse than losing the core. AST-walking run_fuzz_job: collect_cores is called at line 788 and the final result.complete_job() at 793, the call is inside no try/except, and __main__ has none either. So the raise aborts the job after classification and discards the whole Result -- the marker/watchdog sub-results included, i.e. every artifact this PR exists to preserve.

Reachability is real, and it is a shape this PR deliberately keeps reportable. Cores are on by default (programs/server/Server.cpp sets RLIMIT_CORE to core_dump.size_limit, 1 GiB when the config leaves it commented out); a kernel-written core belongs to the crashing in-container root process. The reachable combination is a reap-stage watchdog plus a genuine server crash: run-fuzzer.sh:360 appends stage=reap ..., and ast_fuzzer_job.py:744-748 leaves self_killed_server False for exactly that stage so a real server signal stays attributable. _force_fail_for_markers then puts the run on the is_failed branch that calls collect_cores.

Also: this is mine, not pre-existing. At the merge-base the repair ran unconditionally and chowned the whole workspace, cores included; the skip introduced in this PR is what opened the gap.

Fixed on both halves you offered, because they cover different failures -- the same split this PR already used for sanitizer.log.*:

  • run-fuzzer.sh: the EXIT-trap chmod now covers core.*, handling a set -e abort or an ordinary abnormal exit with no docker chown container.
  • ast_fuzzer_job.py: the readability decision now also inspects the cores the collector will read, handling a container that never reached its trap at all (kernel OOM kill, docker teardown).

One constraint worth naming: the cores are passed to the readability check only and are deliberately not appended to paths, because paths is also the upload list and a core may only leave the runner compressed and encrypted by collect_cores. A test pins both halves -- the check must consult them, and paths.extend must not.

_collectable_cores mirrors the collector's own selection, and a second-model re-review caught that my first version got the order wrong: it filtered the processed .zst/.enc entries and then took three, while collect_cores takes the first three and filters afterwards. For core.1, core.2.zst, core.3.enc, core.4, core.5 the collector reads only core.1 while my helper reported three files -- which would have run the unbounded repair container for a core that is never read. Fixed, and the fixture now places the processed entries inside the cutoff (the old one placed them after it, where both orderings agree, so it could not have caught this).

Six new tests; the readability trap is exercised with a real 0640 core.31337 through the actual EXIT trap, plus a healthy-run case asserting the chmod stays a no-op. ci/tests is 533 passed with the same 7 failures the base has (they need a real binary or a live server); the passed delta is exactly the six added. Five mutants each kill only their intended assertion: dropping core.* from the shell chmod, reverting the readability decision to paths only, breaking the collector-mirroring cutoff, leaking the cores into the upload list, and the filter-then-slice ordering.

I also narrowed the description, which said "bound every post-budget stage": the zstd core.* compression is a post-budget stage and is not bounded. It is byte-identical to master here and the host-side collector it feeds is not part of this change, so it stays out of scope -- but the description should not have claimed otherwise.

@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Jul 27, 2026
Comment thread ci/jobs/ast_fuzzer_job.py Resolved
Comment thread ci/jobs/ast_fuzzer_job.py Resolved
groeneai and others added 7 commits July 28, 2026 20:09
…k server

The `old_compatibility` AST fuzzer job was cancelled by the workflow before it
could upload anything, so the offending query was unattributable: the server
kept growing past its memory limit after the fuzz run, and every stage after
the budget could block indefinitely.

Bound those stages (the fuzzer-client reap, the graceful-stop probe and the
teardown watchdog), SIGKILL a memory-stuck server so the teardown is bounded
and still carries its artifacts, and report the memory-stuck condition as its
own result instead of letting it masquerade as a test failure.

Persist the result BEFORE collecting cores, so the worst case is a report
without its core rather than the artifact-less cancellation this change
exists to remove, and keep the raw sanitizer logs readable on abnormal runs.

Exemplar: AST fuzzer (amd_debug, targeted, old_compatibility) on
ClickHouse#110074 head 99589a8,
https://github.com/ClickHouse/ClickHouse/actions/runs/30084913668/job/89472316051

Co-Authored-By: Claude Fable 5 <[email protected]>
The aggregate probe-stage budget could be exceeded by the very last call it
was meant to bound. With one second of budget left, reserving the one second
kill grace leaves zero, and a `< 1` clamp restored it to a one second TERM
timeout, so `timeout -k 1 1` spent two seconds (measured 2.013s against a
TERM-ignoring client) plus a one second cool-down, all past expiry.

Clamping a too-small budget up to a launchable value is what exceeds the bound
instead of enforcing it. A schedule shorter than TERM plus the kill grace
cannot be expressed, so the stage now ends rather than launching such a call.
It is a zero-answer exit, so it fails closed exactly like the existing deadline
break.

The same hazard on the diagnostic was worse: clamping there produced
`timeout -k 1 0`, and `timeout 0` means no limit at all (measured: a four
second child ran to completion, rc=0), which would have made the call this
change wraps to bound unbounded again. It is only a diagnostic, so it is
skipped with a log line. Reachability confirmed by sweeping deadlines 2-7
against probe costs 0-4s: the budget seen at the diagnostic takes every value
from 1 upward, so the one second case is reachable rather than hypothetical.

The one second cool-down is also charged against the budget now, and skipped
once it is spent, since the loop head breaks on the next iteration anyway.

Two of the existing structural guards matched only the old inline spelling of
the recompute and the cool-down; both keep their invariant and additionally pin
that the new helpers really derive from the deadline, so neither can be
satisfied by a helper returning a constant.

Verified by mutation. The boundary and refusal tests were first written with a
loose slack that let the pre-fix clamp pass, i.e. vacuously: the two forms only
diverge when exactly one second remains (measured 0.00s fixed vs 2.01s clamped
at deadline 1, and byte-identical 2.01/3.01/4.01s at deadlines 2/3/4), so the
assertion is tight by necessity. The cool-down guard cannot be measured
behaviorally at all, because `sleep` is mocked to a no-op in these tests, so it
is pinned structurally.
The test drove the probe with a 0.9s sleep to leave the diagnostic exactly one
second of stage budget. But `SECONDS` counts whole seconds from an arbitrary
tick phase, so that sub-second probe reads as either zero or one elapsed
second; when it reads zero, two seconds still remain and production correctly
launches the bounded diagnostic, so the skip assertion fails on correct
behavior. Measured 1 failure in 20 runs.

Wait for the tick to turn instead: the probe now burns two whole seconds of a
three second budget regardless of phase, so the diagnostic always sees exactly
one second. 30 consecutive runs pass, and the mutant that removes the guard
still fails all 6 of 6, so the test stays live rather than merely quiet.
The status.tsv early-abort path ran the log parser only when a memory-stuck
marker or a harness watchdog was present. But a server can log a sanitizer
report or a logical error and die during STARTUP, before the probe loop that
writes a marker is ever reached and long before status.tsv exists; `set -e`
then aborts at the PID read or the `kill -0` right after the startup wait. That
class had neither marker nor watchdog, so it skipped the parser entirely and
was reported as a generic harness error, discarding the stable finding name and
its reproduction files -- the same misattribution this change exists to remove,
one branch over.

Parse unconditionally. With a marker present the parser still outranks it, and
`_select_failure_result` keeps the marker as the floor, so a no-match still
reports it; with no marker, a genuine finding is all there is, and it now sets
the top-level status instead of being buried under the harness error. A FAULTY
status.tsv (malformed, unreadable, undecodable) still reports ERROR, since that
is a harness bug rather than a run that aborted before reporting.

`server_stopped_by_harness` becomes conditional on the run being classified.
It tells the parser to treat the server's signal line as self-inflicted, which
holds for a classified abort (status.tsv is written after the graceful stop) but
not for a startup failure where no stop ever ran -- hardcoding it would suppress
a genuine server signal, possibly the only evidence such a crash leaves.

The existing guard that pinned the literal `True` keeps its invariant: it now
also accepts a name, and additionally checks that the name is derived from
marker/watchdog presence, so it cannot be satisfied by an unrelated truthy
value. Verified by mutation: reinstating the marker gate is caught only by the
structural pin (a behavioral test on the shared helper cannot see a caller-side
`if`), and restoring the hardcoded `True` is caught by its own test.
Parsing every early abort introduced the mirror image of the bug it fixed. The
runner stops the server BEFORE writing status.tsv, so an abort in that window
leaves a run with no marker and no watchdog whose log already contains our own
"Received signal 15" -- and with nothing to say the stop was ours, that routine
SIGTERM became the failure row, turning a harness error into a misleading FAIL.
Reproduced against the shared helper: the selected finding went from
'Unknown error' to 'Received signal 15 (STID: None)'.

Inferring the shutdown from marker presence cannot separate the two cases: a
startup crash and a post-stop abort both arrive unclassified. So record the fact
directly. run-fuzzer.sh writes server_stopping.txt immediately before the
graceful stop, and the classifier treats that as the witness alongside a marker
or watchdog. It is not a failure marker and never sets a status by itself.

The witness joins the pre-run stale-state cleanup: a leftover from an earlier
run on a reused worktree would claim the next run's signal line is
self-inflicted and suppress a real finding. A shell redirect creates it 0644, so
unlike the sanitizer logs it needs no chmod to be host-readable, and the EXIT
trap's marker-only gate stays as it is.

Verified by mutation: dropping the witness from the decision, dropping it from
the stale-state cleanup, and writing it after the stop instead of before are
each caught.
A missing status.tsv means the runner aborted before reporting, which a marker,
a watchdog or a genuine parser finding authoritatively classifies -- so the
sub-results were allowed to set the top-level status there.

The parser always yields a row, though. With nothing attributable in the logs it
returns UNKNOWN_ERROR / "Lost connection to server", and with no marker to
outrank it that row reaches the status decision as a plain FAIL. Deriving from it
relabelled the commonest early abort of all, one whose logs say nothing, as "the
test failed" rather than the harness fault it is. Key the decision on the row's
name, not its status: a genuine finding carries the same FAIL, and a no-match
standing beside a marker must not veto the marker.

The shutdown-witness read moves into a helper so both polarities can be driven
from the unit suite. run_fuzz_job drives docker and cannot run there, and while
the read was inlined an inverted witness (not SERVER_STOPPING.exists()) passed
the whole file while suppressing startup signals and exposing our own shutdown
SIGTERM -- the two bugs the witness exists to prevent, swapped.
The witness pins were satisfiable without the witness working. A text search for
the write could not see it being made unreachable, and a name-membership check on
the call site accepted `not _early_abort_stopped_by_harness(...)` -- which inverts
the verdict, so startup signals get suppressed and our own SIGTERM gets reported.

Prove the write by RUNNING the extracted teardown block and checking the file
exists afterwards, and require the call site to bind the helper's value directly.

Order stays a text pin, deliberately: `stop_server &` is asynchronous, so an
observer inside it races the parent and loses -- measured, it reported the witness
present in 5 of 5 runs with the write moved below the stop. Execution proves the
write happens, the text proves where; neither can cover the other's half.
@groeneai
groeneai force-pushed the fix-fuzzer-memory-stuck branch from 383ea5f to bbaf9cb Compare July 28, 2026 23:11
@groeneai

Copy link
Copy Markdown
Collaborator Author

Both findings AGREED and fixed; pushed as bbaf9cb82c559f.

Finding 1 (early abort exits before collect_cores) - confirmed by AST-walking the branch: the early-abort path returned via complete_job() with the collection only at the end of the normal path, so a late set -e abort (the failing status.tsv write is the concrete case) discarded a genuine crash core. The branch now collects before completing, and the result is persisted before the collection so a cancellation during it cannot lose the classification. The constraint from the previous round is preserved: cores reach the readability decision only and are still never appended to paths, because a core may leave the runner only compressed and encrypted.

Finding 2 (status=None can downgrade ERROR to FAIL) - confirmed, and the reachable case is wider than a malformed file. The parser always yields a row: with nothing attributable in the logs it returns UNKNOWN_ERROR / "Lost connection to server", and with no marker to outrank it that row arrives as a plain FAIL, so Result.create_from(status=None, ...) derived FAIL for the commonest early abort of all. Keying on FileNotFoundError alone would not have caught that, so the guard is keyed on the row's name rather than its status: a genuine finding carries the same FAIL and must still set the status, and a no-match standing beside a marker must not veto the marker's classification. All three cells are pinned.

One correction to my own previous round while I was here. The shutdown-witness pins were satisfiable without the witness working: a text search for the write could not see it being made unreachable, and a name-membership check on the call site accepted not _early_abort_stopped_by_harness(...), which inverts the verdict and produces exactly the two failures the witness exists to prevent. The write is now proven by executing the extracted teardown block and checking the file, and the call site must bind the helper's value directly. The ordering half stays a text pin deliberately: stop_server & is asynchronous, so an observer inside it races the parent and loses: measured, it reported the witness present in 5 of 5 runs with the write moved below the stop.

Verification: 196 focused tests pass. Each new assertion was mutation-tested and fails only for its own defect (no-match guard removed, guard keyed on status instead of name, witness inverted, witness write made unreachable via if false, write moved below the stop, and the call site dropped). The 4 remaining failures in the wider ci/tests run are in files byte-identical to the merge base and untouched by this PR (they need a live server or process-group sandboxing this host does not provide).

On the repeated request for fleet or replay distributions behind the 12- and 60-probe tiers: that evidence cannot be produced yet, and the PR body says so. The classifier does not exist on master, so CIDB has zero occurrences of its log line over 45 days. What is checkable is checked: both tiers are bracketed from both sides by tests (11 and 59 consecutive rejections stay healthy, 12 and 60 trip), the loop runs only after the fuzz budget is spent and probes an idle server, only the server-global (total) form counts (a per-query/user 241 or TOO_MANY_SIMULTANEOUS_QUERIES resets the counter), and the 12-probe tier additionally requires host MemAvailable below 4 GiB. The first real evidence will be a memory-stuck FAIL carrying server_memory_stuck.txt with its probe count and MemAvailable, which is what retuning them needs.

The only conflict was the import block in ci/jobs/ast_fuzzer_job.py: master
added `import re` for the benign-241 classifier while this branch added
`select` and `signal` for the bounded post-fuzz stages. Kept all three.

Master's benign-241 work (1efd8e1..11c387f) and this branch's
memory-stuck detector both reason about a server that exceeded its memory
limit, so the reconciliation was checked rather than assumed. They cannot
double-handle the same evidence: `_is_benign_memory_limit` requires
server_died=0, and both paths that write the memory-stuck marker set
server_died=1 before breaking out of the probe loop. Where an escalation
does leave server_died=0 (the teardown/probes watchdog),
`_force_fail_for_markers` runs unconditionally after the classification
chain and turns that OK back into FAIL, so the watchdog still reports.

Verified with the merged suites: 221 tests pass, which is this branch's 196
plus the 18 benign-241 tests master brought in and the shared e2e rows.
Comment thread ci/jobs/ast_fuzzer_job.py Outdated
"""
return (
marker_result is not None
or watchdog_result is not None

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

watchdog_result is not always evidence that the harness already stopped the server. The stage=reap watchdog is written before the probe loop, and the stage=probes watchdog is written before server_stopping.txt. If echo "phase=shutdown" > server_stopping.txt or another pre-stop step fails under set -e, we enter the early-abort path with a watchdog file but without ever sending clickhouse stop.

Returning True here makes _parse_and_select_failure suppress a genuine Received signal 15 / Received termination signal from the server or the orchestrator and misclassify that abort as self-inflicted. This helper needs to treat only witnesses that imply the stop already happened (marker_result, SERVER_STOPPING, and at most stage=teardown) as sufficient, and it needs a regression that forces a pre-shutdown watchdog plus a failing server_stopping.txt write.

_early_abort_stopped_by_harness accepted any harness_watchdog.txt as evidence
that we had already stopped the server. The stage is what carries that meaning:
run-fuzzer.sh writes the reap line while the server is untouched and healthy
(it kills client-side processes only), and writes the probes and teardown lines
only where it goes on to stop the server itself.

So a reap-stage escalation whose run then aborted before the shutdown record was
written reached the classifier claiming a harness stop. The parser was told to
ignore the termination signal, and a genuine server abort was reported as
"Unknown error" instead of "Received signal 15" -- the misattribution this
change exists to prevent, with the real cause dropped.

The window is reachable: the two `} > server_memory_stuck.txt` redirections in
the probe loop are unguarded under `set -e` and run after the reap line, so a
failing write there aborts before `echo "phase=shutdown" > server_stopping.txt`.

Reuse the stage predicates the normal classification path already applies, so
both paths now answer this question the same way. Narrowing to the bot's
suggested set (marker, the shutdown record, teardown only) would have been wrong
in the other direction: the probes stage does stop the server, so dropping it
reintroduces false failures. Measured over stage x shutdown-record, the shipped
predicate was wrong in 1 of 6 cells and that set in 1 of 6, the other one.

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

groeneai commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks - this one is correct, and I measured every leg before changing anything. Fixed in f1b1261.

Write order per stage (confirms the premise). In run-fuzzer.sh: stage=reap is written at :363, stage=probes at :606 and :648, all three before echo "phase=shutdown" > server_stopping.txt at :692 and stop_server & at :693. Only stage=teardown (:719) is written after the stop.

The window is reachable. Enumerating unguarded, set -e-abortable statements between :363 and :692 leaves the two } > server_memory_stuck.txt redirections at :539 and :640. Both are unguarded redirections that run after the reap line, so a failing write there aborts before the shutdown record is ever created - the concrete case for the mechanism you describe.

Effect, measured. Driving _parse_and_select_failure with a reap-only watchdog and a genuine termination as the only log evidence: server_stopped_by_harness=False reports Received signal 15 (STID: None), True reports Unknown error. So a real server abort was reported as Unknown error with the actual cause dropped.

One correction to the suggested witness set. I did not narrow to marker_result, SERVER_STOPPING and teardown, because that is wrong in the other direction: the probes stage does stop the server (:606/:648, then the graceful stop at :692), so dropping it turns a self-inflicted SIGTERM back into a reported failure. Over the six cells of (stage x shutdown-record present) against whether the harness had in fact stopped the server:

stage record before suggested set shipped now
reap absent wrong correct correct
probes absent correct wrong correct
teardown absent correct correct correct
any present correct correct correct

The old predicate was wrong in one of six cells and the suggested one in a different one. The fix reuses _watchdog_stage_teardown() and _watchdog_stage_probes(), the same stage predicates the normal classification path already applies, so both paths now answer this question identically. watchdog_result stays in the signature; it is simply no longer sufficient on its own.

Regression. test_reap_watchdog_without_a_stop_keeps_a_real_server_signal builds exactly the state you asked for - a pre-shutdown watchdog with no shutdown record - and asserts the reported failure row, not the verdict, so it fails if the signal is dropped rather than merely if a boolean flips. test_shutdown_witness_decides_both_ways loses the bare-watchdog assertion that encoded the bug and gains the three-stage table. Reverting only the narrowing kills exactly those two arms and leaves the other 195 green; forcing the suppressing flag while keeping the narrowing kills the new arm at the signal assertion, so that oracle is load-bearing.

197 focused tests pass. Wider ci/tests: 689 passed, 5 failed - all five in files byte-identical to the previous head and untouched here; the same tree before this change fails those five plus two more on this host, which has no live server.

@PedroTadim

Copy link
Copy Markdown
Member

@groeneai is PR still relevant?

@groeneai

Copy link
Copy Markdown
Collaborator Author

No, and I am closing it.

The mechanism it guards is still on master (run-fuzzer.sh:421-423, stop_server & followed by an unbounded wait $server_bg_pid, and clickhouse stop at :110 with no bound), but the failure mode it was opened for is no longer observable. The job's hang tail is gone: AST fuzzer (amd_debug, targeted, old_compatibility) runs exceeding 80 minutes are 0 for the last 5 consecutive weeks, last seen in the week of 2026-07-05 (2 runs), against a p95 that has sat at 62 minutes throughout. Every failure of that check in the last 7 days carries an attributed test (69 failed runs, 0 unattributable), and they are genuine engine findings rather than harness aborts.

Three of the pieces I opened this for also landed separately since: #107676 (report runner aborts instead of an opaque status.tsv error), #108582 (do not treat a transient liveness-probe timeout as a dead server), #113991 (core_dump.yaml, so cores are not capped at 1 GiB). That covers most of the diagnostic value.

What remains here is +5970/-78 across 6 files, 8721 commits behind master, with 0 check-runs on its head because the fork workflow was never approved. That is far too large to ask anyone to review for a defect with no current symptom.

If you want the one real residual, I will send it standalone and small: bound the post-stop wait so a memory-stuck server cannot hold the job open to the job timeout. Otherwise nothing is needed here.

I am leaving #111892 open for the engine-side memory accumulation, which is the half I never fixed.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants