Skip to content

CI: Fix log parser - #106848

Merged
maxknv merged 2 commits into
masterfrom
fix/fuzzer-log-parser-sanitizer-priority
Jun 9, 2026
Merged

maxknv merged 2 commits into
masterfrom
fix/fuzzer-log-parser-sanitizer-priority

Conversation

@maxknv

@maxknv maxknv commented Jun 9, 2026 •

Copy link
Copy Markdown
Member

When a fuzzer run produces a log where the server emits an AddressSanitizer: CHECK failed: error but also logs a generic server assertion failure, FuzzerLogParser was reporting the assertion as the failure type instead of the sanitizer error.

Root cause: the SANITIZER_ERROR_PATTERN regex only matched lines starting with (SUMMARY|ERROR|WARNING): \w+Sanitizer:, missing the \w+Sanitizer: CHECK failed: form that has no prefix keyword. Similarly, _extract_sanitizer_trace did not recognize CHECK failed: as a sanitizer report start marker.

Changes:

Extended SANITIZER_ERROR_PATTERN to also match \w+Sanitizer: CHECK failed: lines.
Updated _extract_sanitizer_trace to start a new report block on CHECK failed: lines.
Added is_check_failed_report flag: CHECK failed: reports end at the first blank line (no SUMMARY: trailer), so the extractor now terminates correctly.
Extracted both regex strings to named class constants (SANITIZER_ERROR_PATTERN, RUNTIME_ERROR_PATTERN) to eliminate duplication between the pattern table and _extract_sanitizer_trace.
Added a regression test in ci/tests/test_log_parser.py covering the mixed assertion + ASan CHECK failed case.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Version info

  • Merged into: 26.6.1.576

@clickhouse-gh

clickhouse-gh Bot commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [275d2cf]

Summary: ✅


AI Review

Summary

This PR updates FuzzerLogParser so sanitizer CHECK failed diagnostics in stderr.log are classified as sanitizer failures before generic server assertions, trims those reports at the blank separator, and adds regression tests for the mixed ASan/assertion case. I found no remaining code issues; the prior inline thread about dpkg leakage is addressed and was resolved.

Missing context / blind spots
  • ⚠️ The local environment does not have pytest, so I could not execute ci/tests/test_log_parser.py through pytest; an equivalent direct Python check against the new cases passed in build/test_log_parser_manual_pr106848.log.
  • ⚠️ The PR status context still had CI Tests in progress at review time; completed CI would close the full automated-validation gap.
Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jun 9, 2026
Comment thread ci/jobs/scripts/log_parser.py Resolved
…extend test with STID

- Trim `error_output` at the first blank line when the matched line is a
  `Sanitizer: CHECK failed:` report, preventing unrelated `stderr` noise
  (e.g. `dpkg:` output) from leaking into the issue body
- Add regression test with a realistic ASan stack trace that exercises
  the STID computation path (`1288-3bd5`) and asserts no `dpkg` tail

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@maxknv
maxknv added this pull request to the merge queue Jun 9, 2026
Merged via the queue into master with commit 06d851a Jun 9, 2026
166 checks passed
@maxknv
maxknv deleted the fix/fuzzer-log-parser-sanitizer-priority branch June 9, 2026 18:25
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants