Repository navigation
Conversation
On amd_llvm_coverage_per_test builds, thread_cancel SIGKILLs coverage-instrumented clickhouse-client processes mid-insert. On abnormal death those clients print 'LLVM Profile Error:' lines to stderr (profraw merge-pool contention, see ClickHouse#97020). clickhouse-test filters these from a client's stderr, but thread_insert merges client stderr into stdout via '2>&1' and only filtered 'Killed', so the LLVM lines leaked into the test's stdout and produced a 'result differs with reference' diff. The cancellation count itself was correct. Extend the thread_insert filter to also drop 'LLVM Profile Error:' lines, in all three sibling tests (02434, 04365, 04366) which share the identical pattern. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-2:20260716-150500 |
|
cc @CheSema (cancel-insert test family owner) — test-only fix: the |
|
Workflow [PR], commit [ac53c75] Summary: ❌
AI ReviewSummaryThis PR extends the shell-side Final Verdict✅ No actionable findings on the current head. |
CI finish ledger — 63846fbEvery failure below has an owner: a fixing PR, or a full-effort fix task whose fixing-PR link will be posted here when it opens. Only
Session id: cron:our-pr-ci-monitor:20260718-080000 |
02435 shares the defect this PR fixes in the three sibling cancel-insert tests: its thread_insert merges insert_data stderr into stdout with 2>&1 and filters only Killed/SESSION_IS_LOCKED/SESSION_NOT_FOUND. The TYPE>=3 branch of insert_data runs a native clickhouse-client whose stderr is not redirected, so when thread_cancel kills a coverage-instrumented client mid-insert the resulting "LLVM Profile Error:" lines land in the test's stdout and break the reference diff. clickhouse-test strips those lines from stderr only, so they survive the 2>&1 merge. Observed on master, not just latent: 3 failures on Stateless tests (amd_llvm_coverage_per_test, per_test_coverage, 2/8) between 2026-06-15 and 2026-07-17, each a "result differs with reference" whose added lines are exactly the three LLVM Profile Error messages. Reported by clickhouse-gh[bot] on this PR. A repo-wide sweep of stateless .sh tests that signal-kill processes and merge output with 2>&1 confirms these four tests are the complete carrier set.
CI finish ledger - ac53c75Every failure below has an owner: a fixing PR, or a full-effort fix task whose
Session id: cron:our-pr-ci-monitor:20260729-083000 |
|
Superseded by my #113619 (merged 2026-08-29), which strips
The per-test filters here add nothing on top of that, so this can be closed. Context: #110833 (comment) |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Description
Four cancel-insert tests (02434, 02435, 04365, 04366) fail on
Stateless tests (amd_llvm_coverage_per_test, per_test_coverage)withresult differs with reference, where the diff's added lines areLLVM Profile Error:messages rather than wrong test output. The cancellation counts are correct.Root cause:
thread_cancelSIGKILLs coverage-instrumentedclickhouse-clientprocesses mid-insert. On abnormal death those clients emitLLVM Profile Error: ...to stderr (profraw merge-pool contention, see #97020).clickhouse-teststrips those lines from a client's stderr only;thread_insertmerges client stderr into stdout via2>&1and filtered justKilled(plus session noise in 02435), so the lines survived into the test's stdout and broke the reference diff.Fix: extend each
thread_insertfilter withgrep -Fav "LLVM Profile Error:". A repo-wide sweep of stateless.shtests that signal-kill processes and merge output with2>&1confirms these four are the complete carrier set: the other candidates either capture into a variable and positivelygrepforReceived from(01169 pair), redirect client output to a file or/dev/null(03776, 03803, 04003, 04051, 04052), or filter onException:(02443).02435 was added after
clickhouse-gh[bot]pointed it out on this PR; it has 3 master failures of this exact signature (2026-06-15, 2026-07-16, 2026-07-17).Validation: this check runs only in
NightlyCoverage(ci/workflows/nightly_coverage.py,Event.SCHEDULE, master), so it cannot run on this PR. Instead, each test's committed filter chain was extracted from the file and driven against the verbatim CI-captured stdout: post-fix output matches the reference byte-for-byte; removing the new filter reproduces the failure (so it is load-bearing); and a realDB::Exceptionline is preserved, confirming only the profiler noise is dropped. 12/12 assertions pass across the four tests.Report (04365, 2026-07-28 master): https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=4a44dcefc451d3da3f7a9e7c8a38f74180b34ebc&name_0=NightlyCoverage&name_1=Stateless%20tests%20%28amd_llvm_coverage_per_test%2C%20per_test_coverage%2C%208%2F8%29
Prior PR #108343 widened the final cancel-message matcher (a separate genuine gap); the recurrence was this stdout pollution.