Skip to content

Fix 05227_ast_fuzzer_no_profile_events_leak flakiness - #121762

Merged
azat merged 1 commit into
ClickHouse:masterfrom
azat:tests/05227_ast_fuzzer_no_profile_events_leak
Sep 23, 2026
Merged

azat merged 1 commit into
ClickHouse:masterfrom
azat:tests/05227_ast_fuzzer_no_profile_events_leak

Conversation

@azat

@azat azat commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

@clickhouse-gh

clickhouse-gh Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [a06037a]

Summary: ✅


AI Review

Summary

This PR tries to stop 05227_ast_fuzzer_no_profile_events_leak from failing on stderr by moving the AST-fuzzer settings onto the seed INSERT and adding send_logs_level = 'fatal'. That addresses the observed UNKNOWN_TABLE noise from fuzzed INSERT clones, but it also removes the old session-level ast_fuzzer_runs = 0 cleanup, so the verification query falls back to any nonzero ambient AST-fuzzer default. In stress/serverfuzz-style environments that can fuzz the trailing read again and recreate the same stderr-only flake, so I would not approve this as a complete fix yet.

Findings

⚠️ Major: [tests/queries/0_stateless/05227_ast_fuzzer_no_profile_events_leak.sql:6] The old test explicitly turned ast_fuzzer_runs back off after the seed INSERT. This version makes the seed query local, but it no longer pins the session baseline to 0, so later statements inherit whatever the profile or user default is. Several AST-fuzzer tests in this tree already guard against stress profiles that enable ast_fuzzer_runs globally; under those environments the trailing SELECT becomes fuzzed again and can still emit <Error> ASTFuzzer ... to stderr even when the assertion result stays 0. Suggested fix: set the session baseline to ast_fuzzer_runs = 0 (and ast_fuzzer_any_query = 0) before the INSERT, then keep the seed INSERT opt-in via SETTINGS ast_fuzzer_runs = 50, ast_fuzzer_any_query = 1, send_logs_level = 'fatal'.

Final Verdict

Status: ⚠️ Request changes
Minimum required action: restore test isolation from ambient AST-fuzzer defaults so only the seed INSERT is fuzzed.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Sep 23, 2026
@Algunenano Algunenano self-assigned this Sep 23, 2026
@azat
azat enabled auto-merge September 23, 2026 12:23
@azat
azat force-pushed the tests/05227_ast_fuzzer_no_profile_events_leak branch from 68a4bc6 to a06037a Compare September 23, 2026 13:01
@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Sep 23, 2026
@azat
azat added this pull request to the merge queue Sep 23, 2026
Merged via the queue into ClickHouse:master with commit b7060f1 Sep 23, 2026
176 checks passed
@azat
azat deleted the tests/05227_ast_fuzzer_no_profile_events_leak branch September 23, 2026 19:59
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 23, 2026
@clickhouse-gh clickhouse-gh Bot added comp-fuzzing Fuzzers: BuzzHouse (the query generator in the client), the AST fuzzer (QueryFuzzer), and the lib... and removed comp-testing Test content only (no production code). labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-fuzzing Fuzzers: BuzzHouse (the query generator in the client), the AST fuzzer (QueryFuzzer), and the lib... pr-not-for-changelog This PR should not be mentioned in the changelog 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.

3 participants