Repository navigation
ci: check native vs WASM parse parity for PG 18 - #200
pyramation wants to merge 1 commit into
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
Review complete. No blocking issues — approved ✅; 1 nitpick below. 🧹 Nitpicks (1) — 🟢 1 low
This PR introduces a dev-time parity harness that compiles a small C driver against libpg_query and compares native parse results against the bundled WASM parser, wired into the CI workflow.
Reviewed commit: eeb4d51 |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
Adds a PG 18-only CI step to the WASM build job that checks the WASM build parses SQL the same way as a native build of the same pinned libpg_query source.
scripts/native-parity.c/scripts/native-parity.jsbuild libpg_query natively, then parse every statement from the upstream SQL fixtures with both, comparing parse trees and error messages/cursors. Fails on any difference.FETCH ALLplatform adjustment; files the scanner rejects are reported separately, not as failures.Local run (CI's Emscripten image):
49968 statements from 409 files (2 unscannable), 0 differences; an injected WASM mismatch exits 1.Fresh redo of #187 on current main. Left out: PG 13-17 parity coverage and the PG ≤14 glibc workaround (PG 18 only).
Implemented in session Redo native-vs-WASM parity check in CI
Review with Devin · Open in Devin Desktop
Summary by CodeRabbit