Repository navigation
AST fuzzer oracle: collapse per-oracle dispatch + fix neighbor/runningAccumulate false mismatch - #117189
Conversation
…inistic Both read across rows in physical block order (offset neighbours / a running state), so any oracle rewrite that reorders, repartitions or reblocks the input (TLP partitions, NoREC, DQP setting toggles, multi-threaded reads) changes their per-row output legitimately. Left out of QueryOracleChecker's non_deterministic_functions denylist, they could produce a false oracle mismatch, so add them alongside the existing rowNumberInBlock / runningDifference entries. Co-Authored-By: Claude Opus 4.8 <[email protected]>
check() ran each of the nine oracles inside an identical try/catch block that re-threw AST_FUZZER_ORACLE_MISMATCH and swallowed every other error with the same log line — ~150 lines of copy-paste that any new oracle had to duplicate. Replace them with a single run_oracle(name, fn) lambda that applies the guard uniformly; the per-oracle log wording and the outer mismatch-settings annotation are preserved, so behavior is unchanged. Verified: the existing oracle stateless tests still pass and the oracles still fire (generic and TLP-aggregate ProfileEvents still increment). Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Workflow [PR], commit [bdc78f8] Summary: ✅
AI ReviewSummaryThis PR refactors Findings
Tests
Final VerdictRequest changes. The dispatch refactor is acceptable, but the LLVM Coverage ReportMeasured on commit bdc78f8.
Changed lines: Changed C/C++ lines covered: 18/22 (81.82%) · Uncovered code |
| /// order (offset neighbours / a running state), so any rewrite that reorders, | ||
| /// repartitions or reblocks the input (TLP partitions, NoREC, DQP setting | ||
| /// toggles, multi-thread reads) changes their per-row output legitimately. | ||
| "neighbor", "runningAccumulate", |
There was a problem hiding this comment.
neighbor and runningAccumulate already look excluded by the existing FunctionFactory::tryGet(...)->isDeterministic() gate in hasNonDeterministicFunctionsImpl: both resolvers return false from isDeterministic() (src/Functions/neighbor.cpp:64, src/Functions/runningAccumulate.cpp:73). So this denylist addition does not seem to change oracle eligibility for the normal function form the PR description talks about.
If there is still a false-mismatch reproducer here, it needs to bypass that resolver path, and this PR does not touch that path. Please either add a focused repro/test for the actual bypass or move the fix to the code that still lets these queries reach an oracle.
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units7 translation units recompiled, 10 s compile time in total, 7 of them have a recent master baseline. |
Unrelated flaky failure: Stress test (arm_tsan) — Hung check possible deadlock. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…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`.
Two related cleanups to the server-side AST-fuzzer oracle dispatcher:
check() ran each of the nine oracles inside an identical try/catch block —
re-throwing AST_FUZZER_ORACLE_MISMATCH, swallowing every other error with the
same log line. That was ~150 lines of copy-paste every new oracle had to
duplicate. They now go through one run_oracle(name, fn) guard; the per-oracle
log wording and the outer mismatch-settings annotation are preserved.
neighbor and runningAccumulate read across rows in physical block order, so
any oracle rewrite that reorders/repartitions/reblocks the input changes their
per-row output legitimately. They were missing from non_deterministic_functions
and could produce a false oracle mismatch; add them next to rowNumberInBlock /
runningDifference.
Behavior-preserving: the existing oracle stateless tests still pass and the
oracles still fire (generic ProfileEvent 0->103, TLP-aggregate 0->1 in a local run).
Related: #99980
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/117189]
Version info
26.9.1.497(included in26.9and later)