Repository navigation
test: build the WASM depth test queries with one helper - #22
devin-ai-integration[bot] merged 2 commits into
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
Review complete. No issues found — approved ✅. This PR rewrites the stack-depth regression test harness, restructuring how nested SQL/PL-pgSQL depth cases are generated, executed, and reported, with clearer pass/fail diagnostics and exit-status aggregation. No production code changes; two minor nits surfaced during review were adjudicated as below the reporting threshold. Reviewed commit: 1d35a58 |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Summary
Cleanup of
test/wasm_depth.c(added in #18–#20); no library code and no build or stack setting changes.check_depthandcheck_plpgsql_deptheach built their query with their ownmalloc/memcpyloop and printed their own PASS/FAIL lines. Both now use:nested_query(prefix, open, body, close, suffix, depth): the one place a query is builtcheck_result(name, error, has_tree, expect_error): the one place a result is judged and printedcheck_depthtakes the closing text (")"or"") instead of anestedflag. Same six cases at the same depths, 74 lines removed and 46 added.A check added later (for example the normalize one in #21) needs only its own call to the library plus
nested_query.Ran natively against a build of this branch: all five parse cases and the
overflowcase pass; thebuild_wasmjob runs them in WebAssembly.Implemented in session Review recent WASM depth branches for cleanliness
Review with Devin · Open in Devin Desktop