Repository navigation
Revert the AST fuzzer correctness oracles - #117200
alexey-milovidov wants to merge 3 commits into
Conversation
Revert #99980: the `QueryOracleChecker` (TLP / NoREC / DQP metamorphic oracles), the experimental `ast_fuzzer_oracle` setting, the `AST_FUZZER_ORACLE_MISMATCH` error code, the oracle-related profile events, the `oracle_mode` support in `QueryFuzzer`, the client-side fatal exit path in `FuzzLoop`, and the `AST fuzzer (amd_release, oracle)` CI job. The `ColumnAggregateFunction::convertToValues` fix that came in the same pull request (`insertMergeResultInto` instead of `insertResultInto`) is kept, along with its two regression tests `04275_105742_uniq_state_or_default_rollup_order_by` and `04276_105740_finalize_chunk_state_combinator`: they are independent of the oracle, and reverting them would reintroduce the dangling aggregate state for `-OrFill` combinators under `WITH TOTALS` / `ROLLUP` / `CUBE`. The generated workflow files were regenerated with `python3 -m praktika yaml`. Reverts: #99980 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Workflow [PR], commit [66112c5] Summary: ❌
AI ReviewSummaryThis PR reverts the server-side AST fuzzer oracle machinery, keeps the independent Findings
Final VerdictChanges requested. LLVM Coverage Report |
|
📊 Cloud Performance Report ✅ AI verdict: no significant changes detected. K_source=6 K_base=30 flagged=0/65 clickbench🟢 No significant changes tpch_adapted_1_official🟢 No significant changes Debug info
|
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes28 object files changed (-158.07 KiB total), 0 added.
717 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units31 translation units recompiled, 185 s compile time in total, 31 of them have a recent master baseline. Symbol sizes
|
…zzer-oracle Resolve conflicts: master refactored `QueryOracleChecker.cpp` (#117189) after this branch deleted it; the deletion wins since the whole oracle is being reverted. The generated workflow files were regenerated with `python3 -m praktika yaml`.
…exit code The revert also dropped a generic harness improvement from #99980: attaching `fuzzer.log`, `server.log`, `stderr.log` and the sanitizer artifacts whenever `fuzzer_exit_code` is non-zero, not only when the job is marked failed. Exit codes 137 and 143 from the `FUZZ_TIME_LIMIT` timeout wrapper are classified as successful, so without this the timed-out runs looked like clean green jobs with no logs to inspect. Restore the `is_failed or fuzzer_exit_code != 0` condition.
| @@ -3646,9 +3646,6 @@ The fuzzer accumulates AST fragments from all queries across all sessions, produ | |||
| )", EXPERIMENTAL) \ | |||
| DECLARE(Bool, ast_fuzzer_any_query, false, R"( | |||
There was a problem hiding this comment.
Removing ast_fuzzer_oracle from the source registration is only half of the revert: the checked-in autogenerated settings docs were not refreshed. At the current head, docs/reference/settings/session-settings/ast-fuzzer.mdx:27-35 still publishes the setting, docs/reference/settings/beta-and-experimental-features.mdx:120-122 still lists it, and docs/_site/customizations/settings-legacy-routes/session-settings.js still routes #ast_fuzzer_oracle to that page. After merge the public docs will advertise a setting that system.settings no longer has. Please rerun the settings-doc autogeneration in this PR.
There was a problem hiding this comment.
🕵 The residual ast_fuzzer_oracle mentions all live inside autogenerated regions, so they cannot be refreshed from this pull request:
docs/reference/settings/session-settings/ast-fuzzer.mdx— the setting block sits between theAUTOGENERATED_START/AUTOGENERATED_ENDmarkers (lines 9 and 52).docs/reference/settings/beta-and-experimental-features.mdx— same, markers at lines 46 and 213.docs/_site/customizations/settings-legacy-routes/session-settings.jsanddocs/snippets/components/SessionSettingsExplorer/SessionSettingsExplorer.jsxare generated site artifacts built from the same source of truth.
Per the project rules, the source of truth is the DECLARE registration in src/Core/Settings.cpp, which this pull request already updates; the generated pages are refreshed by the dedicated documentation autogeneration workflow, and a pull request that touches those regions without the pr-autogenerated-docs label fails the docs check. So no hand edit here — the pages will be regenerated by that workflow.
| @@ -44,9 +44,6 @@ | |||
| M(FailedInsertQuery, "Same as FailedQuery, but only for INSERT queries.", ValueType::Number) \ | |||
| M(FailedAsyncInsertQuery, "Number of failed ASYNC INSERT queries.", ValueType::Number) \ | |||
| M(ASTFuzzerQueries, "Number of fuzzed queries attempted by the server-side AST fuzzer.", ValueType::Number) \ | |||
There was a problem hiding this comment.
The same doc-regeneration gap exists for the deleted oracle profile events. docs/reference/system-tables/metric_log.mdx:47-50 and docs/reference/system-tables/query_metric_log.mdx:53-56 still list ProfileEvent_ASTFuzzerOracle*, so the public reference would describe log columns that the server no longer produces. Please refresh the autogenerated system-table docs from the updated ProfileEvents.cpp in this PR.
There was a problem hiding this comment.
🕵 Same situation as the settings docs: docs/reference/system-tables/metric_log.mdx and docs/reference/system-tables/query_metric_log.mdx list the profile-event columns inside an AUTOGENERATED_START / AUTOGENERATED_END region (for metric_log.mdx the markers are at lines 20 and 2144). The source of truth is src/Common/ProfileEvents.cpp, which this pull request updates; the generated tables are refreshed by the documentation autogeneration workflow, and editing them here would fail the docs check without the pr-autogenerated-docs label.
|
PR does not make sense. It is working quite well |
Reverts the server-side AST fuzzer correctness oracles added in #99980: the
QueryOracleChecker(TLP / NoREC / DQP metamorphic checks), the experimentalast_fuzzer_oraclesetting, theAST_FUZZER_ORACLE_MISMATCHerror code, the oracle profile events,oracle_modeinQueryFuzzer, the fatal client exit path inFuzzLoop, and theAST fuzzer (amd_release, oracle)CI job. The generated workflow files were regenerated withpython3 -m praktika yaml.The
ColumnAggregateFunction::convertToValuesfix that came in the same pull request (insertMergeResultIntoinstead ofinsertResultInto) is kept, together with its two regression tests04275_105742_uniq_state_or_default_rollup_order_byand04276_105740_finalize_chunk_state_combinator. That fix is independent of the oracle, and reverting it would reintroduce the dangling aggregate state for-OrFillcombinators underWITH TOTALS/ROLLUP/CUBE.Related: #99980
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Workflow [PR]
Sync PR [sync-upstream/pr/117200]