Repository navigation
Filter LLVM Profile Error noise from test runner stderr - #102420
Conversation
In coverage builds (amd_llvm_coverage_per_test), short-lived clickhouse-client processes contend over profraw merge pool files, producing "LLVM Profile Error:" messages on stderr. The test runner treats any non-empty stderr as a test failure, even when the test output is correct and exit code is 0. This causes ~1160 false positives per month across 504+ tests on master coverage runs. Filter lines starting with "LLVM Profile Error:" from stderr before the pass/fail decision, following the same pattern as the existing IGNORED_SANITIZER_ERRORS mechanism. Real errors (exceptions, crashes, Fatal messages) are unaffected. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Pre-PR Validation (session
|
|
Workflow [PR], commit [e391182] Summary: ✅ AI ReviewSummaryThis PR updates ClickHouse Rules
Final Verdict
|
151a718
In coverage builds (
amd_llvm_coverage_per_test), short-livedclickhouse-clientprocesses contend over profraw merge pool files (
%2mpattern), producingLLVM Profile Error:messages on stderr. The test runner treats any non-emptystderr as a test failure (
if stderr: → FAIL), even when the test output iscorrect and exit code is 0.
This causes ~1160 false positives per month across 504+ distinct tests on
master coverage runs (CIDB data, 30-day window). Example error:
The fix filters lines starting with
LLVM Profile Error:from stderr beforethe pass/fail decision point. This follows the same pattern as the existing
IGNORED_SANITIZER_ERRORSmechanism for known false positives. Real errors(exceptions, crashes, Fatal messages) are completely unaffected.
Background: #97020 attempted to fix this via
%pin the profraw pattern but wasclosed because it creates too many files. #101912 fixed a specific integration
test. This PR addresses the root cause in the test runner itself.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Documentation entry for user-facing changes
Version info
26.4.1.824